Wednesday 27 March 2013

NS2 Simulation Environment Setup


4 comments:

  1. hi , how did you control your data rate in your TCL file?

    ReplyDelete
  2. I used Mac/802_11 set dataRate_ 1.0e6 to control but, it seems not working

    ReplyDelete
    Replies
    1. By Default the data rate will be 11 mbps.you can see the effect in trace file. Data rate is the bandwidth ,basic rate is the data transfer
      rate
      command :

      Mac/802_11 set dataRate_ 11Mb
      Mac/802_11 set basicRate_ 2Mb

      Delete
  3. (I'm not good at speaking English Please forgive my bad English)

    Why basicRate_ need to set 2Mb, and how do i know what value should i set when i want to set another dataRate_
    ?

    I read mac-802_11.cc at line #1247 to #1260

    if(dst != MAC_BROADCAST) {
    /* store data tx time for unicast packets */
    ch->txtime() = txtime(ch->size(), dataRate_);

    dh->dh_duration = usec(txtime(phymib_.getACKlen(), basicRate_)
    + phymib_.getSIFS());

    } else {
    /* store data tx time for broadcast packets (see 9.6) */
    ch->txtime() = txtime(ch->size(), basicRate_);

    dh->dh_duration = 0;
    }

    Does it means broadcast use basicRate_ and unicast use dataRate_ ?

    Thank you for your response :)

    ReplyDelete