본 저자가 Star토폴로지에서의 성능평가를 위해서 작업 하였다고 하지만..
시뮬레이션 시나리오와 결과 파일 분석은 별 상관 없는거 같다..
결과적으로 이 awk는 다른곳에서도 이용이 가능할듯...한번에 여러 정보를 얻을수 있겠군^^
다시 보니 tr파일 포맷을 저자의 의도에 맞게 수정한거 같다..그냥 참고만 해야 할듯..
tr포맷 : wireless trace ( 참고 :http://www.4ellene.net/tt/1082)
s 0.006000000 _0_ MAC --- 0 CM7 8 [0 ffffffff 0 0] [energy 13000.000000]
s 0.447700000 _0_ MAC --- 0 CM7 8 [0 ffffffff 0 0] [energy 12999.999583]
s 0.670800000 _0_ MAC --- 0 CM7 8 [0 ffffffff 0 0] [energy 12999.999373]
s 0.890500000 _0_ MAC --- 0 BCN 12 [0 ffffffff 0 0] [energy 12999.999163]
N -t 1.000000 -n 0 -e 12999.998626
N -t 1.000000 -n 1 -e 12999.998802
N -t 1.000000 -n 2 -e 12999.998802
N -t 1.000000 -n 3 -e 12999.998802
s 0.447700000 _0_ MAC --- 0 CM7 8 [0 ffffffff 0 0] [energy 12999.999583]
s 0.670800000 _0_ MAC --- 0 CM7 8 [0 ffffffff 0 0] [energy 12999.999373]
s 0.890500000 _0_ MAC --- 0 BCN 12 [0 ffffffff 0 0] [energy 12999.999163]
N -t 1.000000 -n 0 -e 12999.998626
N -t 1.000000 -n 1 -e 12999.998802
N -t 1.000000 -n 2 -e 12999.998802
N -t 1.000000 -n 3 -e 12999.998802
출력 파일 : analyze\performance.txt 와 analyze\performance.txt
403 0.050450 2.142399 0.228247 745 676 69 90.738255 12999.998935 10.601537 0.081550 149 50 99 2.980000
1. Throughput
2. Minimum Delay
3. Maximum Delay
4. Average Delay
5. Data Packets Transmitted.
--IMPORTANT NOTE: This represents the number of packets transmitted at the application level.
6. Data Packets Successfully Received by their Respective Destinations.
--IMPORTANT NOTE: This represents the number of packets successfully received at the application level.
7. Number of packets dropped.
--IMPORTANT NOTE: This represents the number of packets dropped at the application level.
8. Data Packet Delivery Ratio.
--IMPORTANT NOTE: This represents the packet delivery ratio at the application level.
9. Average Initial Energy
10. Average Energy Used
11. Average Percentage Energy Used
12. Node Packet Discrepancy Ratio
13. Packet Drop statistics
(필드는 15개인데...설명은 13개다 -_-;)
사용 : awk -f <awk-script-filename.awk> <filename.tr>
작성 : 2009.04.21 by 임헌정
http://www.4ellene.net
참고 : http://www.vaddina.com/pages/01_01_00_00_Zigbee/00_content/scripts.htm#avgthru
avg_throughput.awk
Comments List
관리자만 볼 수 있는 댓글입니다.
이메일 보냈습니다..참고 하세요~