2007年4月11日 星期三

BS 發送 鄰近BS相關資訊

At 0.504001 in BS 0 send_nbr_adv (nb_neighbor=1)

BS0 送出鄰近BS資訊, nb_neighbor=1 代表有一個鄰近BS

NIST connection 資訊

每各connection 都會紀錄 是要跟那一各node連接

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);

WiMAX module of NIST

因為發現一各去年就已經釋出的模組
雖然他有 handoff 機制
但是他的service flow未開發完成
現在要轉向開發這各NIST模組
唉 人生

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

NodeID認定方式

ns2內部認定 nodeid方式 是依照產生的順序
由 zero開始開始 每次加一遞增

2007年4月8日 星期日

封包在模組之間的流程

mac-802.16.cc -> phy.cc -> wirlessphy.cc->channel.cc-> channel.cc (WirelessChannel::sendUp(Packet* p, Phy *tifp)) ->

2007年4月6日 星期五

模擬參數

Phy/WirelessPhy set RXThresh_ 2.37e-11
Phy/WirelessPhy set CSThresh_ 1.5e-11
Phy/WirelessPhy set Pt_ 3.08