Routing Performance
* CMU trace format 사용
1. Routing Overhead
How to define Routing Overhead.
if All the routing packets no matter broadcasting or unicasting per -hop should be count once. There are some options:
- The total number of routing packets, counted once per hop
- The total number of routing bytes, counted once per hop
- The # of routing packets, count with seqence number, this means end-to-end, not calculated by per-hop basis.
To calulate the number of DSR packets in method 1
$ cat out.tr | grep "DSR" | wc -l
$cat out.tr |grep "^s.*DSR" | wc -l
shows only 514 DSR packets are sending.
Finally, use this awk code to count how many bytes are used.
$1~/s/ && /AODV/ && /MAC/ { dsrpktno ++ ;
dsrbyte+=$8 ;}
$1~/s/ && /tcp/ && /MAC/ { cbrpktno ++ ;
cbrbyte+=$8; }
END { print ( dsrpktno, cbrpktno,dsrpktno/(dsrpktno+cbrpktno)) }
Another definition is "Normalized Routing Overhead".
Normalized routing load is the number of routing packets transmitted per data packet sent to the destination. Also each forwarded packet is counted as one transmission. This metric is also highly correlated with the number of route changes occurred in the simulation.
The perl script to calculate this is ( thanks to Umut Akyol )
안되어서 수정한거..(종혁형)
2. 패킷 전송률 구하기 (Newtrace Format용)
Agent Level 에서 전송패킷수와 수신 패킷수 구하는 awk코드
위 코드를 awkcode1 로 저장후 아래와 같이 실행
이때 출력되는 두개의 값 (예: 2236 2213)을 보면 대부분의 대이터가 수신되었음을 알수 있다.
전송률 : 2213/2236 = 98.97%
3. Average Hop Counts ( Path length)
Instead of getting some information from DSR header about path length, we can use a method independent of Routing protocol ( DSDV, DSR, AODV). this is to use the nubmer of MAC transmission divided by Agent layer transmisison.
So, for above simulation, the avg hop count is :
4806/2236= 2.14

Comments List