Re: [Tinyos-help] Multihop Routing in TinyOS

2006-08-15 Thread Omprakash Gnawali

Hi Sumit,

Your guesses for questions 1a and 1b seem correct. How about you use
TOSSIM to verify that you have a working version of Surge and
MintRoute before you try to plug that in to EmStar?

Regarding question 2, you can use the dbg facility (or printfs) in the
code to look at the routing tables. For example, this excerpt from
MultiHopWMEWMA.nc prints the routing table on stdout:

549 : #ifndef NDEBUG 
550 : { 
551 :   int i; 
552 :   
dbg(DBG_ROUTE,\taddr\tprnt\tcost\tmisd\trcvd\tlstS\thop\trEst\tsEst\tDesc\n); 
553 :   for (i = 0;i  ROUTE_TABLE_SIZE;i++) { 
554 : if (NeighborTbl[i].flags) { 
555 :   dbg(DBG_ROUTE,\t%d\t%d\t%d\t%d\t%d\t%d\t%d\t%d\t%d\t%d\n, 
556 : NeighborTbl[i].id, 
557 :   NeighborTbl[i].parent, 
558 :   NeighborTbl[i].cost, 
559 :   NeighborTbl[i].missed, 
560 :   NeighborTbl[i].received, 
561 :   NeighborTbl[i].lastSeqno, 
562 :   NeighborTbl[i].hop, 
563 :   NeighborTbl[i].receiveEst, 
564 :   NeighborTbl[i].sendEst, 
565 :   NeighborTbl[i].childLiveliness); 
566 : } 
567 :   } 
568 :   if (gpCurrentParent) { 
569 : dbg(DBG_ROUTE,MultiHopWMEWMA: Parent = 
%d\n,gpCurrentParent-id); 
570 :   } 
571 : } 
572 : #endif 


- om_p


---

Hi,

I am trying to simulate the Mutlihop Network in EMSTAR but I have some
confustion which I want to get cleared before moving forward. I am sending
this mail second time because no one has answered my questions yet. I hope
this time these will be answered.

Question1:
In this simulation I am just trying to simulate 100 nodes sending some data
to Sink using Multihop routes. For this I used a given application named
Surge  which have source code in ../tinyos-1.x/apps/Surge directory. Now I
made a small change in MultihopWMEWMA Component (stored in
../tinyos-1.x/tos/lib/MintRoute)
by replacing 0 to 1 for BASE_STATION_ADDRESS. I did it because I have been
told that EMSTAR will not support any node with ID equals to 0 and  I'm
using EMSIM for simulations. So my doubt is:
1.a: By replacing 0 with 1 as BASE_STATION_ADDRESS, it shouldnot affect the
functionality of the nodes except now node with address 1 will automatically
act as sink?
1.b: Will nodes be able to make their routes automatically to Sink with Id =
1 in the simulation?

( Also, in MultihoWMEWMA.nc, i understand that base station will just keep
discarding data it recieve and will not forward it to other nodes, so for
simulation purpose where I just want track traffic it should work fine
without making any special change for SINK node).

Question2:
2.a: I would like to know about routing table which each node keeps to
maintaing routes to sink here and how they're connected to each other. I
mean how to access the information stored in routing table of each node in
simulation.
2.b: Using emview/tinydb, is it possible to see actual placing of nodes and
their routing structures which nodes formed.

Regards,
Sumit Gupta
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


[Tinyos-help] Multihop Routing in TinyOS

2006-08-14 Thread Sumit Gupta
Hi,I am trying to simulate the Mutlihop Network in EMSTAR but I have some confustion which I want to get cleared before moving forward. I am sending this mail second time because no one has answered my questions yet. I hope this time these will be answered.

Question1:In this simulation I am just trying to simulate 100 nodes sending some data to Sink using Multihop routes. For this I used a given application named Surge which have source code in ../tinyos-
1.x/apps/Surge directory. Now I made a small change in MultihopWMEWMA Component (stored in ../tinyos-1.x/tos/lib/MintRoute) by replacing 0 to 1 for BASE_STATION_ADDRESS. I did it because I have been told that EMSTAR will not support any node with ID equals to 0 and I'm using EMSIM for simulations. So my doubt is:
1.a: By replacing 0 with 1 as BASE_STATION_ADDRESS, it shouldnot affect the functionality of the nodes except now node with address 1 will automatically act as sink?
1.b: Will nodes be able to make their routes automatically to Sink with Id = 1 in the simulation?( Also, in MultihoWMEWMA.nc, i understand that base station will just keep discarding data it recieve and will not forward it to other nodes, so for simulation purpose where I just want track traffic it should work fine without making any special change for SINK node).
Question2:2.a: I would like to know about routing table which each node keeps to maintaing routes to sink here and how they're connected to each other. I mean how to access the information stored in routing table of each node in simulation. 
2.b: Using emview/tinydb, is it possible to see actual placing of nodes and their routing structures which nodes formed. 

Regards,
Sumit Gupta
___
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help