Silly Computer Engineer.
Lin~Jing~Sen
Something as small as the flutter of the butterfly's wing
can ultimately cause a typoon half way around the world

Group Blog
 
All Blogs
 
NS2 SMAC - Validation test

จากครั้งที่แล้ว validation test เกิด segmentation fault เพราะ config การสร้างโหนดใน test กับของเราไม่เหมือนกัน ก็เลยre-code ทั้ง C++ และ config การสร้างโหนดใน test-suite ให้เหมือนที่จะใช้จริง

เมื่อกำหนด modeltype เป็น ORG ทำ test ไป 3 ตัวคือsmac , smac-multihop , energy ผลปรากฏว่าก็ผ่านหมด ต่างกันแค่ตัว output ที่มีการ log-energy เท่านั้น

ก้อสบายใจในระดับหนึ่ง

แต่พอไปรัน ของจริงตามscript เดิมปรากฎว่าเกิด segmentation fault อีก ก็เลยลอง trace ดู จาก ฟังก์ชั่น recv ใน SMAC ตรงแถวๆ Cancelling CS (ยกเลิก carrier sense เพราะได้รับ Smac packet) ซึ่งพบว่าทั้ง function ทำงาน ok นะ ก็เลยไม่รู้จะไป trace ตรงไหนต่อ เลยยังหาที่ผิดไม่ได้

แต่พอลองทดสอบกับ 4 nodes ก็ทำงานเป็นปกตินะ
หรือว่าเป็น SMAC bug หว่า เดี๋ยวลอง ทดสอบแบบ node density น้อยลงดีกว่า

คิดว่าน่าจะเป็นที่ config แต่ก็ไม่แน่ เพราะยังหาสาเหตุที่ทำให้ segmentation fault ไม่ได้


Create Date : 03 กันยายน 2548
Last Update : 3 กันยายน 2548 15:12:46 น. 1 comments
Counter : 478 Pageviews.

 
แวะมาทักทาย...สวัสดีครับ


โดย: **mp5** วันที่: 3 กันยายน 2548 เวลา:16:07:36 น.  

ชื่อ :
Comment :
  *ใช้ code html ตกแต่งข้อความได้เฉพาะสมาชิก
 

nmapxp
Location :
กรุงเทพ Thailand

[Profile ทั้งหมด]

ฝากข้อความหลังไมค์
Rss Feed

ผู้ติดตามบล็อก : 1 คน [?]





Friends' blogs
[Add nmapxp's blog to your web]
Links
 

 Pantip.com | PantipMarket.com | Pantown.com | © 2004 BlogGang.com allrights reserved.