11.07.2015 Views

IEEE Paper Template in A4 (V1) - International Journal of Computer ...

IEEE Paper Template in A4 (V1) - International Journal of Computer ...

IEEE Paper Template in A4 (V1) - International Journal of Computer ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Nakhaee et. al.The color set RoutTable (l<strong>in</strong>e 17 <strong>in</strong> Fig. 8) def<strong>in</strong>es thestructure <strong>of</strong> a route entry <strong>in</strong> route table. It conta<strong>in</strong>s thefollow<strong>in</strong>g fields:DID: Dest<strong>in</strong>ation <strong>of</strong> the route.NID: Next node on the route to DID.DSEQ: Most recent recorded sequence number fordest<strong>in</strong>ation DID.INT: Distance from the dest<strong>in</strong>ation DID, measured <strong>in</strong>the number <strong>of</strong> hops that need to be traversed to reachDID.LIFETIME: Rema<strong>in</strong><strong>in</strong>g time before the route expires.R_degree: Route reliability degree.colset INT = <strong>in</strong>t;colset LIFETIME, BID,DSEQ, SSEQ, DEST, DUMMY,Node_id,Q_len = INT;colset DID, SID, NID, PID = Node-id;colset Qmean, Rlb: realcolset TYPE = with P|Q;closet Maxq = Q_len;colset RoutMsg = productBID*SID*SSEQ*DID*DSEQ*PID*INT*TYPE*DUMMY*Qmean*Maxq;colset BufferREQ = product BID*SID*INT*PID*Qmean*Maxq;colset bufferReqList = List BufferREQ;var lst: bufferReqList;colset Topology = product Node-id * Node-id;colset AHTopology = List Topology;colset INTxINT = product INT*INT;colset INTxINTxINT = product INT*INT*INT;colset RoutTable = product DID*DSEQ*INT*NID*Rlb*LIFETIME;colset routTabList =list RoutTable;var routlst : routTablist;var wait, lifetime : TIME;var bid, sseq, dseq, hopn: INT;var rlb,rrlb: Rlb;var sid, did , selfid, preid : Node-id;var adhoc-topology : AHTopology;var bbid, ssid, ddid, ddseq : INT;var qmean : Qmean;var maxq,qlen : Q_len;var nohop, dest, n, nexthop : INT;var ptype: TYPE;var nid,pid : NID;var msg, routMsg : RoutMsg;var i: Node-id;Fig. 8. Color sets and variablesTABLE1– FUNCTIONS LISTNumber Function1 fun has_validRout(did,[])= false|has_validRout(did,(ddid,dseq,I,nid,lifetime)::rest)=if (did = ddidandalso lifetimeadd_rout(did,dseq,nohop,nid,0,routlst,rrlb)|2 =>routlst;fun arc_forward RREP(sid,selfid,bid,lifetime,did, dseq,n,hop,lst,rrlb)=If(sid selfid)then 1’(bid, sid, lifetime, did,dseq, selfid,nohop+1,p,rrlb,get_pid(bid, sid,lst))else emptyfun arc_newbid(bid,sid, lst,sseq, did,dseq,pried,nohop, qmean,maxq)=if has_id (bid, sid, lst)then emptyelse 1’(bid, sid, sseq, did, dseq, pried,nohop,q,99,qmean,maxq);fun guard_sendRREP(did,routlst,dseq,selfid)=if((dseq get_dseq(routlst)andalsohas_validrout(did,routlst))orelse(did=selfid))andalso (timerrlb1 orelselifetime>100) then 1elseif( did=ddid andalso rrlb

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!