1. SSscheduler::pause_scanning ()
2. Mac::send_scan_result (void *res, int size)
3. MIHAgent::process_scan_response (Mac *mac, void *rsp, int size)
3.1 MIHScan::process_scan_response (int macAddr, void *rsp, int size)
4. Handover1::process_scan_conf (struct mih_scan_rsp *rsp)
2007年5月18日 星期五
2007年5月17日 星期四
NIST Handover 重要function
Define old link(ss & old BS) and new link(ss & new BS)
void Mac::send_link_handover_imminent (int macTerminal, int oldPoA, int macPoA){ if (mih_ && ((subscribedEventList_ >> MIH_LINK_HANDOVER_IMMINENT)& 0x1) ) {
link_handover_imminent_t *e = (link_handover_imminent_t*) malloc (sizeof (link_handover_imminent_t)); e->linkIdentifier.type = linkType_; e->linkIdentifier.macMobileTerminal = macTerminal; e->linkIdentifier.macPoA = oldPoA; e->newLinkIdentifier.type = linkType_; e->newLinkIdentifier.macMobileTerminal = macTerminal; e->newLinkIdentifier.macPoA = macPoA; e->macOldAccessRouter = oldPoA; e->macNewAccessRouter = macPoA; mih_->recv_event (MIH_LINK_HANDOVER_IMMINENT, e); } //else we don't need to do anything}
void Mac::send_link_handover_imminent (int macTerminal, int oldPoA, int macPoA){ if (mih_ && ((subscribedEventList_ >> MIH_LINK_HANDOVER_IMMINENT)& 0x1) ) {
link_handover_imminent_t *e = (link_handover_imminent_t*) malloc (sizeof (link_handover_imminent_t)); e->linkIdentifier.type = linkType_; e->linkIdentifier.macMobileTerminal = macTerminal; e->linkIdentifier.macPoA = oldPoA; e->newLinkIdentifier.type = linkType_; e->newLinkIdentifier.macMobileTerminal = macTerminal; e->newLinkIdentifier.macPoA = macPoA; e->macOldAccessRouter = oldPoA; e->macNewAccessRouter = macPoA; mih_->recv_event (MIH_LINK_HANDOVER_IMMINENT, e); } //else we don't need to do anything}
2007年5月14日 星期一
NIST TCL 設定
設定 SS 跟BS連接
$init_node($i) base-station [AddrParams addr2id [$bstationWIMAX($i) node-addr]] ;
$init_node($i) base-station [AddrParams addr2id [$bstationWIMAX($i) node-addr]] ;
2007年5月13日 星期日
2007年4月11日 星期三
BS 發送 鄰近BS相關資訊
At 0.504001 in BS 0 send_nbr_adv (nb_neighbor=1)
BS0 送出鄰近BS資訊, nb_neighbor=1 代表有一個鄰近BS
BS0 送出鄰近BS資訊, nb_neighbor=1 代表有一個鄰近BS
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);
訂閱:
文章 (Atom)