[ns] coop MAC and cross layer
I'm working with 802.11e using cooperative MAC and cross layer optimization between PHY, MAC and TCP. Firstly I implement 802.11e with coop MAC but I found that the packet delay is high don't know why please inform me what the problem is and also find below the part of Coop MAC added in my TCL file $ns at 0.0 "$node_(0) setdest 100.0 100.0 20.0" $ns at 0.0 "$node_(1) setdest 200.0 200.0 20.0" #$ns at 0.0 "$node_(2) setdest 300.0 200.0 20.0" #$ns at 0.0 "$node_(3) setdest 400.0 300.0 20.0" #$ns at 0.0 "$node_(4) setdest 500.0 400.0 20.0" #$ns at 0.0 "$node_(5) setdest 100.0 280.0 20.0" #$ns at 0.0 "$node_(6) setdest 550.0 200.0 20.0" #$ns at 0.0 "$node_(7) setdest 600.0 300.0 20.0" #$ns at 1.5 "$node_(5) setdest 100.0 400.0 5.0" ##$ns at 1.0 "$node_(3) setdest 400.0 400.0 5.0" #$ns at 2.5 "$node_(5) setdest 500.0 300.0 5.0" #$ns at 3.5 "$node_(5) setdest 500.0 100.0 5.0" ##$ns at 4.0 "$node_(3) setdest 600.0 400.0 5.0" ##$ns at 3.5 "$node_(5) setdest 300.0 100.0 5.0" #$ns at 7.0 "$node_(6) setdest 550.0 550.0 5.0" #$ns at 8.0 "$node_(6) setdest 100.0 400.0 5.0" #$ns at 0.4 "$node_(0) label \"source\"" #$ns at 0.4 "$node_(5) label \"destination\"" ##$ns at 0.4 "$node_(3) label \"destination\"" $ns at 1.9 "$node_(1) label \"helper\"" ##$ns at 2.4 "$node_(3) label \" \"" $ns at 3.3 "$node_(1) label \" \"" #$ns at 3.4 "$node_(2) label \"helper\"" #$ns at 4.8 "$node_(5) label \"\"" #$ns at 4.5 "$node_(3) label \"destination\"" #$ns at 6.2 "$node_(6) label \"destination\"" #$ns at 6.8 "$node_(2) label \"\"" #$ns at 7.0 "$node_(3) label \"helper\"" #$ns at 7.9 "$node_(3) label \"\"" #$ns at 8.0 "$node_(4) label \"helper\"" #$ns at 9.0 "$node_(4) label \"\"" #$ns at 9.1 "$node_(1) label \"helper\"" In addition I need your advice for the cross layer is this code is correct for the cross layer between TCP and MAC if (strcmp(argv[1], "access-mac") == 0) { mac_pt_ = (Mac802_11*)TclObject::lookup(argv[2]); if (mac_pt_ == 0) return TCL_ERROR; return TCL_OK; waiting for ur urgent reply Best Regards -- Eng.Radwa Osman Teacher Assistant Basic & Applied Science Department Arab Academy for science and Technology and maritime transport PO box 1029 Abo Kir, Alexandria, Egypt
Re: [ns] Help friends !!!
Hi, there is a unique node ID generated by NS2 for the nodes during their creation. it's an int. and since a short int is 16 bits, an int is 32 bits, and a long int is 64 bits. i suppose by acceding the class Node in the c++ hierarchy and setting the "int nodeid_" member as "short int nodeid_", you will get what u want (NS2 will generate the id as short int (16 bits)). of course you have to recompile... > Date: Sat, 4 Jan 2014 12:32:41 -0800 > From: mfare...@yahoo.com > To: ns-users@ISI.EDU > Subject: [ns] Help friends !!! > > > Hi, > I am working in a wire-based topology, and I need each node in the topology > to has a unique 16 bits ID. > > Actually I have a huge number of nodes in my topology. And I will use this 16 > bits ID in future work. Is there any way to do this in NS2. > > > Many thanks in advance > > Eng. Magdy
[ns] Help friends !!!
Hi, I am working in a wire-based topology, and I need each node in the topology to has a unique 16 bits ID. Actually I have a huge number of nodes in my topology. And I will use this 16 bits ID in future work. Is there any way to do this in NS2. Many thanks in advance Eng. Magdy