hi, I had also used jeff boleng broadcast solution in june 2000. but what i think is his was is not the correct one due to the following reason.
What jeff boleng says is that once a node receives broadcast packet, instead of sending to the port classifier, it sends to routing agent. so it sets the packet's address to current node's address in the mac layer. Disadvantage - Tracing will be difficult Second - in my application i needed multihop broadcast so i found that it was difficult to code the method for futher broadcast by a node if the ttl value is higher... What i observed is that the problem jeff boleng discussed was solved in later versions of NS. I use 2.29 and atleast 1-hop broadcast works fine in it. I have tried sending broadcast creating new agents similar to the Ping agent. for sending broadcast pakcet i set the daddr to IP_BROADCAST, set the port value to the port at which ping is attached in each node, and ttl value as 2,4,6 .. for 1hop, 2hop,3 hop broadcast etc (AODV code for broadcast requires ttl in multiple of 2) and the nodes receive the broadcast packet accordingly. For further broadcast(multihop), when a node receives a broadcast packet it must also makes a copy of it sets the direction field to down and calls the send method. This code must be written in the recv function of the agent. i use AODV so dont have much idea about DSDV code. Regarding change in size of the packet, i will have a look at it today and mail u later... Regards, Sanjay Raghani MTech CS Indian Institute of Technology, Roorkee On 6/2/06, Golnaz Karbaschi <[EMAIL PROTECTED]> wrote: > Hi Sanjay , > > > > Actually I need to broadcast some probe packets in a periodic manner . > > So , what I have done is that , > > - making a new timer with my period update time in the code of DSDV , > > - making and broadcasting my probes when the timer expires , (in DSDV) . > > > > Now it seems that there is no problem in sending my broadcast packets. (I > used a trick proposed by some one in mailing list ,15 June 2000) > > > > But do you know how can I set the size and the data written in these > broadcast packets? By chaning field of size_ in hdr_cmn can I set its > length ? > > > > > actually if u have written the broadcasting code withing DSDV, then you > > >cant generate CBR traffic upon it, CBR agent has to be attached to a > > >transport agent and not to a routing agent..also the error signify that > > >there is some problem in the port values... > > > > By starting Cbr I meant that I start sending Cbr packets in my tcl-script. > > > > But do you think that broadcasting new packets over the wireless links may > block the nodes in sending their data packets? > > > > Thank you very much for your reply > > >
