Vous êtes sur la page 1sur 2

Packet delivery Ratio BEGIN { sendLine = 0; recvLine = 0; fowardLine = 0; } $0 !"s#$ %G&! { sendLine '' ; } $0 !"r#$ %G&!

{ recvLine '' ; } $0 !"f#$ R&R! { fowardLine '' ; } EN( { )rintf *c+r s,-d r,-d. r!s Ratio,-#/f. f,-d 0n*. sendLine. recvLine. 1recvLine!sendLine2.fowardLine; }

End to End (elay BEGIN { 3 si4)le awk scri)t to 5enerate end6to6end )acket lifeti4e statistics 3 in a for4 s7ita+le for )lottin5 wit8 95ra)8# 3 Lloyd :ood. ;7ly <===# 3 8tt),!!www#ee#s7rrey#ac#7k!Personal!L#:ood!ns! 8i58est>)acket>id = 0; } { action = $< ti4e = $? node>id = $@ flow>id = $?= )acket>id = $/< )kt>siAe = $?B flow>t = $/@ level = $<= if 1 )acket>id C 8i58est>)acket>id 2 8i58est>)acket>id = )acket>id; 3 5ettin5 start ti4e is not a )ro+le4. )rovided yo7Dre not startin5 3 traffic at 0#0# 3 co7ld test for sendin5 node><>address or flow>id 8ere# if 1 start>ti4eE)acket>idF == 0 2 start>ti4eE)acket>idF = ti4e; 3 only 7sef7l for s4all 7nicast w8ere )acket>id doesnDt wra)# 3 c8eckin5 receive 4eans avoidin5 recordin5 dro)s if 1 action G= *d* 2 { if 1 action == *r* 2 { 3 co7ld test for receivin5 node>H>address or flow>id 8ere# end>ti4eE)acket>idF = ti4e; } } else { end>ti4eE)acket>idF = 6<; } } EN( { for 1 )acket>id = 0; )acket>id I= 8i58est>)acket>id; )acket>id'' 2 { start = start>ti4eE)acket>idF; end = end>ti4eE)acket>idF; )acket>d7ration = end 6 start; if 1 start I end 2 )rintf1*-d -f0n*. start. )acket>d7ration2; } }

Vous aimerez peut-être aussi