At 0.504001 in BS 0 send_nbr_adv (nb_neighbor=1)
BS0 送出鄰近BS資訊, nb_neighbor=1 代表有一個鄰近BS
2007年4月11日 星期三
2007年4月10日 星期二
NIST 建立packet 的一些動作
mac_->getPacket ();
struct hdr_cmn *ch = HDR_CMN(rep);
rep->allocdata (sizeof (struct mac802_16_rng_rsp_frame));
mac802_16_rng_rsp_frame *frame = (mac802_16_rng_rsp_frame*) rep->accessdata();
frame->type = MAC_RNG_RSP;
frame->uc_id = ulsubframe->getChannelID();
frame->rng_status = RNG_SUCCESS;
frame->ss_mac_address = req->ss_mac_address;
frame->basic_cid = basic->get_cid();
frame->primary_cid = primary->get_cid();
ch->size() = RNG_RSP_SIZE;
Burst *b = map_->getDlSubframe()->getPdu ()->getBurst (0);
double txtime = mac_->getPhy()->getTrxTime (ch->size(),map_->getDlSubframe()->getProfile (b->getIUC())->getEncoding());
ch->txtime() = txtime;
mac_->getCManager()->get_connection (BROADCAST_CID, false)->enqueue (rep);
struct hdr_cmn *ch = HDR_CMN(rep);
rep->allocdata (sizeof (struct mac802_16_rng_rsp_frame));
mac802_16_rng_rsp_frame *frame = (mac802_16_rng_rsp_frame*) rep->accessdata();
frame->type = MAC_RNG_RSP;
frame->uc_id = ulsubframe->getChannelID();
frame->rng_status = RNG_SUCCESS;
frame->ss_mac_address = req->ss_mac_address;
frame->basic_cid = basic->get_cid();
frame->primary_cid = primary->get_cid();
ch->size() = RNG_RSP_SIZE;
Burst *b = map_->getDlSubframe()->getPdu ()->getBurst (0);
double txtime = mac_->getPhy()->getTrxTime (ch->size(),map_->getDlSubframe()->getProfile (b->getIUC())->getEncoding());
ch->txtime() = txtime;
mac_->getCManager()->get_connection (BROADCAST_CID, false)->enqueue (rep);
2007年4月9日 星期一
NS2 trace format
For example
s -t 5.144001358 -Hs 1 -Hd -2 -Ni 1 -Nx 50.00 -Ny 50.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0
在 5.144001358, node 1 傳送給 node 2
node 1 的 x座標50 ,y座標50,z座標 0 ,
Node Energy Level = -1
Network trace Level = MAC
Drop Reason = null
s -t 5.144001358 -Hs 1 -Hd -2 -Ni 1 -Nx 50.00 -Ny 50.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw --- -Ma 0 -Md 0 -Ms 0 -Mt 0
在 5.144001358, node 1 傳送給 node 2
node 1 的 x座標50 ,y座標50,z座標 0 ,
Node Energy Level = -1
Network trace Level = MAC
Drop Reason = null
2007年4月8日 星期日
封包在模組之間的流程
mac-802.16.cc -> phy.cc -> wirlessphy.cc->channel.cc-> channel.cc (WirelessChannel::sendUp(Packet* p, Phy *tifp)) ->
訂閱:
文章 (Atom)