[ns] unable to delete LSP in IDEO labs MPLS implementation

2007-11-09 Thread Ramzi Tka

hi all,
does anyone who used the IDEO labs implementation of MPLS met the
problem of LSP deletion.
In fact , a RESVERROR is automatically generated for each LSP a while
after trying to release the session.
This implementation uses an extension of the marc greis  RSVP
implementation, and it seems that the problem is in the RSVP code
(release-session)
any suggestions please

Ramzi



[ns] Classifier::no-slot{} execution and simulation terminates with exit code 1

2007-10-18 Thread Ramzi Tka

Hi all,
I'm running wired-cum-wireless simulation .
When I decrease the mean interval time between connections so i increase
connection number, I got an execution of the default classifier no-slot{}
routine which terminates the simulation with exit code 1.

--- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) ---
...
...
with a time-spaced and relatively small number of connections , evry
thing woks properly.

Also, The use of any debugger isn't of a great help since it's a tcl
code execution and the program terminates.

do you have any idea about the origin of such problem.
thanks in advance
regards,
ramzi


[ns] get-node-id-by-addr call for mobile nodes

2007-06-04 Thread Ramzi Tka

Hi all,
I noticed that the function get-node-id-by-addr can't resolve addresses
for mobile nodes. I got the following error message.

error get-node-id-by-addr:Cannot find node with given address

This was supposed to be fixed after the installation of the WiMax NIST
module. But it seems that the fix isn't so efficiant.
Could some telle me how could I fix this?
Thanks in advance.
kind regards,
Ramzi


[ns] Packet type undefined -It undefined

2007-05-25 Thread Ramzi Tka

Hi all ,
what may be the cause of this field in the trace file when o new simple
protocol
-It undefined 
Normally, I did the relevant changements in ns-packet.tck and packet.cc.
thanks,
Ramzi


[ns] possible C++ binded variable type

2007-05-24 Thread Ramzi Tka

Hi all,
I would like to know which are the possible types of variables that we could
bind to tcl variables? I'm considering pointer-typed C++ variable.
kind regards,
Ramzi


[ns] node IP address _node mac address_tcl identifier

2007-05-18 Thread Ramzi Tka

hi all,
when we write a tcl ns-2 script, how could we recuperate the mac address
(index) , IP address (nsaddr_t) from the tcl name of the node (node(0))
defined in the tcl script. This of course supposing that we got the string
node(0)' for example in the C++ code, via the command procedure.
any suggestions are welcome.
thanks
best regards,
Ramzi


[ns] rayleigh popagation model for ns-2

2007-05-16 Thread Ramzi Tka

Hi all,
is there any Rayleigh propagation model implementation for ns-2 ?
if yes, could you please send it to me or indicate where to get it.
Thanks in advance.
best regards,
Ramzi


[ns] how to get a pointer on the C++ node instance bieing in a mac layer C++ code

2007-04-18 Thread Ramzi Tka

Hi all,
could someone tell me how to get a pointer on the C++ node instance , being
in a mac layer (C++ procedure).
thanks
ramzi


[ns] CBQ parameters

2007-04-17 Thread Ramzi Tka

Hi all,
considering the following lines :
$ns_ cfg-cbq-for-SBTS 10 DropTail 99.00 0.01 auto 0.00
$ns_ cfg-cbq-for-HBTS 10 DropTail 0.00 0.00 auto 0.00
$ns_ cfg-cbq-for-STS 10 DropTail 0.00 0.00 auto 0.00
$ns_ cfg-cbq-for-RTS 2040 DropTail 0.00 0.99 auto 0.00

could sombody explain to me the difference between SBTS , HBTS, STS and RTS
as well the signficance parameters in each of the above lines after the
Qtype DROPTAIL  parameter
Thanks a lot
kind regards,
ramzi


[ns] unknown drop reason in new trace format file

2007-04-13 Thread Ramzi Tka

Hi all,
could someone explain to me the significance of the NCO (after -Nw) drop
reason mentioned in this new trace format compliant line.

   d -t 0.414050318 -Hs 12 -Hd -1 -Ni 12 -Nx 100.00 -Ny 100.00 -Nz 0.00 -Ne
-1.00 -Nl MAC -Nw NCO -Ma 0 -Md  -Ms 5 -Mt 800 -Is 4196353.0 -Id
-1.0 -It udp -Il 132 -If 0 -Ii 4 -Iv 32

thanks
kind regards
ramzi


[ns] MIP traffic

2007-04-12 Thread Ramzi Tka

Hi all,
How could we recognise the MIP packet in the trace file? Or, at least, how
could we be sure that the MIP messages are being well exchanged?
thanks
kind regards,
 ramzi


[ns] trace interpretation

2007-04-12 Thread Ramzi Tka

Hi all,
could somebody explain to me the following trace line :

D 0.160155230 _13_ MAC  NCO 1 udp 128 [0  4 800] ---
[16779265:0 -1:0 32 0] 

especially the NCO in the 5th field.
Thanks in advance
Ramzi


[ns] packets drops causes

2007-03-16 Thread Ramzi Tka

Hi all,
How could now the cause of packets drops in ns-2.
Any tips !
Which are the components where we could have a packet drop. and what are the
possible causes?
regards,
ramzi


[ns] ns-2 hierarchical routing

2007-03-06 Thread Ramzi Tka

Hi all,
Could someone tell me how routes are computed inside a same hierarchical
cluster as defined in NS-2 ? What is the algorithm used for that ? is it
Dijkstra? or should the routes be set statically?
Could the hierarchical routing react to topological changes?
Your help is highly appreciated
best regards,
Ramzi


[ns] combined wireless and wired nodes in the same simulated topolgy

2007-02-28 Thread Ramzi Tka

Hi all,
Is it possible to simulate a wired-cum-wireless network composed by several
wireless nodes that run a given routing protocol and several wired nodes
partially meshed ( not all them are connected to the BS) . Could these wired
nodes use any routing protocol, or there is some contraints or problems for.
I have tried with the ns-2  basic LS protocol . It doesn't function.
The topology is the followin

   M1N2
   *   *
 *  *
   M2   BS * * * * * N1 * N4
 *   *
*  *
M3N3


I activated LS for bstation, sinkNode, sinkNode1, sinkNode2 and sinkNode3
and assigned the relative cost for their links.
-
$ns rtproto LS  $bstation $sinkNode $sinkNode1 $sinkNode2 $sinkNode3

  $ns cost $bstation $sinkNode 1
  $ns cost $sinkNode $bstation 1

  $ns cost $sinkNode $sinkNode1 1
  $ns cost $sinkNode1 $sinkNode  1

  $ns cost $sinkNode $sinkNode2 2
  $ns cost $sinkNode2 $sinkNode 2

  $ns cost $sinkNode1 $sinkNode3 1
  $ns cost $sinkNode3 $sinkNode1 1

  $ns cost $sinkNode2 $sinkNode3 2
  $ns cost $sinkNode3 $sinkNode2 2
-

and I used hierarchical routing adressing :
---
$ns node-config -addressType hierarchical
AddrParams set domain_num_ 2;# domain number
lappend cluster_num 1 1 ;# cluster number
for each domain
AddrParams set cluster_num_ $cluster_num
#lappend eilastlevel 1 [expr ($nb_mn+1)];# number of nodes
for each cluster (1 for sink and one for mobile nodes + base station
lappend eilastlevel 4 [expr ($nb_mn+1)] ;# number of nodes
for each cluster (4 for sink and one for mobile nodes + base station
AddrParams set nodes_num_ $eilastlevel

#creates the sink node in first addressing space.
set sinkNode [$ns node 0.0.0]
set sinkNode1 [$ns node 0.0.1]
set sinkNode2 [$ns node 0.0.2]
set sinkNode3 [$ns node 0.0.3]
set sinkNode4 [$ns node 0.0.4]

for {set i 0} {$i  $nb_mn} {incr i} {
set wl_node_($i) [$ns node 1.0.[expr $i + 1]]   ;# create the node
with given @.
$wl_node_($i) random-motion 0   ;# disable random
motion
$wl_node_($i) base-station [AddrParams addr2id [$bstation
node-addr]]
}
---

The error message was :
--
wrong # args: should be set varName ?newValue?
while executing
set nodeslist _o60 _o15 _o23 _o31 _o39
(eval body line 1)
invoked from within
eval set nodeslist $args
(procedure Agent/rtProto/LS line 5)
(Agent/rtProto/LS init-all line 5)
invoked from within
Agent/rtProto/LS init-all _o60 _o15 _o23 _o31 _o39
(eval body line 1)
invoked from within
eval Agent/rtProto/$proto init-all $rtprotos_($proto)
(foreach body line 2)
invoked from within
foreach proto [array names rtprotos_] {
eval Agent/rtProto/$proto init-all $rtprotos_($proto)
}
invoked from within
if [info exists rtprotos_] {
foreach proto [array names rtprotos_] {
eval Agent/rtProto/$proto init-all $rtprotos_($proto)
}
} else {
Agent/rtProto/St...
(procedure _o1899 line 3)
(RouteLogic configure line 3)
invoked from within
[$self get-routelogic] configure
(procedure _o3 line 5)
(Simulator run line 5)
invoked from within
$ns run


Could someone give me some idea, plz
best regards
Ramzi


[ns] error interpretation

2007-01-08 Thread Ramzi Tka

Hi,
let consider the followinf error :

(procedure _o19 line 2)
(SplitObject unknown line 2)

What is the significance of   procedure _o19 . What is the tcl file that
corresponds to _o19  so we can find line 2?

Best regards
Ramzi


[ns] 80.11 Mac Neighbors list

2006-12-02 Thread Ramzi Tka

Hi all,
Could someone tell me how to get the neighbor list whithin a mac C++ class
before or after any transmission?.
I do this distinction because if the neighbor list is updated uniquely when
receiving a packet, it would be impossible to get this neighbor list before
any transmission.
If we consider a scenario of stationnary nodes, could I get the neighbor
list at the beginning of the simulation?
and Once a neighbor has been added to a node neighbor list , is this
neighbor suppressed from the list after a ttl_ inactivity time ?
best regards
Ramzi TKA


[ns] wimax and Wifi TxPower default value

2006-11-22 Thread Ramzi Tka

Hi all,
Could someone tell me what is the default Tx Power for 802.11 ns
implementation and what could be a 802.16 default Tx Power.
How do we set Tx Power values from C++ code and TCL script ?
Best regards,
 Ramzi TKA


[ns] ns debug

2006-10-21 Thread Ramzi Tka

Hi all
does
1)'-g' added to CCFLAG variable in the Makefile
and
2)'--enabled-debug' ./configure parameter

equivalent ?
I mean do I just use one of them to enable DGB or other debuggers?
Best regards
Ramzi Tka


[ns] routing in ns-2

2006-10-17 Thread Ramzi Tka

Hi all,
what is the function and the class in which a node verify whether  (1) the
destination ip addr node is directly connected to the transmitter node and
then do an arp request if necessary  or  (2) do a routing table request to
set the approriate mac adress.
thanks


[ns] ns-2 mac addresses

2006-10-17 Thread Ramzi Tka

Hi all,
I have three questions :
1. When, how and by whoom 802.11 dst mac addresses are set (  in term of
class and function if possible)?
2. How could we get a nde macc address. What about the case of multiple
interfaces ?
3. What's the difference between node id and mac @ ?

thank you
Best regards

Ramzi Tka


[ns] !!!! How to call ifq functions from 802.11 mac layer

2006-10-14 Thread Ramzi Tka

Hi all,
I want to have a pointer ( in the c++ mac 802.11 class ) on the ifq layer
so I could call some functions I added. I found only a handler that is used
whenever a packet is sent to the channel. How could I have a reference on
the ifq layer?
Thanks
Best regards
Ramzi Tka


[ns] how could I trigger a function call at a node 802.11 mac layer whenever its neighbouthood changes

2006-10-14 Thread Ramzi Tka

Hi,
how could I trigger a function call at a node 802.11 mac layer whenever its
neighbouthood changes?
Thanks alot
regards
Ramzi Tka


[ns] GMPLS implementation

2006-09-27 Thread Ramzi Tka

Hi all,
is there any GMPLS implementation under ns-2
Thanks
Ramzi TKA


[ns] RSVP-TE implementation

2006-09-27 Thread Ramzi Tka

Hi all
is there any tested RSVP-TE implementation under ns-2 ?
Thanks
Ramzi Tka


[ns] Strict Priority Queuing Implementation in NS-2

2006-09-27 Thread Ramzi Tka

Hi all ,
is there any priority queuing implementation for ns-2 . I can find the c++
class PriQueue in ns-2 . It aims to prioritize routing traffic over ordinary
traffic. This is not what I am looking for . A Scheduler that serves several
queue with different priorities. These files are emptied fro m beginning
from the highest priority queue to the least one.
Best regards
Ramzi TKA


[ns] 802.11 and 802.16 mac packet allocation functions

2006-09-22 Thread Ramzi Tka

Hi all,
I'am implementing 802.16 mac protocol. I examined other protocols. I
remarked that there are 2 functions for packet pointer creation alloc() et
allocpkt().
1. What are the difference between these functions? [allocpkt() et alloc()]
2. Why in 802.11, there are no explicit data buffer allocation using
allocdata() function or using the alloc(n) instead of alloc() function for
packet allocation , n is the data size.
3. Is that done anywhere else? has it any impact when simulating big
networks (on scalability for example)?
Thank you in advance
Best regards
Ramzi Tka


[ns] how to send 802.16 undetermined size Control messages in ns2

2006-09-19 Thread Ramzi Tka

Hi evry body,
I'am writing 802.16 mesh extensions for ns-2. My problem is that I can't
find the right way to send a control message (DSCH-MSH message). In fact,
this type of message have a variable length, since they are composed of a
sequence of data structures whose total number varies in function of the
number of neighbors. When i looked to the 802.11 implementation in order to
have some ideas, I found that the control messages have always a constant
length and structure:

Packet *p = Packet::alloc();
hdr_cmn* ch = HDR_CMN(p);
struct cts_frame *cf = (struct cts_frame*)p-access(hdr_mac::offset_);

assert(pktCTRL_ == 0);

ch-uid() = 0;
ch-ptype() = PT_MAC;
ch-size() = phymib_.getCTSlen();


ch-iface() = -2;
ch-error() = 0;
//ch-direction() = hdr_cmn::DOWN;
bzero(cf, MAC_HDR_LEN);

cf-cf_fc.fc_protocol_version = MAC_ProtocolVersion;
cf-cf_fc.fc_type= MAC_Type_Control;
cf-cf_fc.fc_subtype= MAC_Subtype_CTS;
 cf-cf_fc.fc_to_ds= 0;
 cf-cf_fc.fc_from_ds= 0;
 cf-cf_fc.fc_more_frag= 0;
 cf-cf_fc.fc_retry= 0;
 cf-cf_fc.fc_pwr_mgt= 0;
 cf-cf_fc.fc_more_data= 0;
 cf-cf_fc.fc_wep= 0;
 cf-cf_fc.fc_order= 0;
in 802.111, the developper has just to fill a given structure fields. How
about 80.16 ?
Could someone help me please!
Thanks in advance
Ramzi Tka


[ns] how to send 802.16 undetermined size Control messages in ns2

2006-09-19 Thread Ramzi Tka

Hi evry body,
I'am writing 802.16 mesh extensions for ns-2. My problem is that I can't
find the right way to send a control message (DSCH-MSH message). In fact,
this type of message have a variable length, since they are composed of a
sequence of data structures whose total number varies in function of the
number of neighbors. When i looked to the 802.11 implementation in order to
have some ideas, I found that the control messages have always a constant
length and structure:

Packet *p = Packet::alloc();
hdr_cmn* ch = HDR_CMN(p);
struct cts_frame *cf = (struct cts_frame*)p-access(hdr_mac::offset_);

assert(pktCTRL_ == 0);

ch-uid() = 0;
ch-ptype() = PT_MAC;
ch-size() = phymib_.getCTSlen();


ch-iface() = -2;
ch-error() = 0;
//ch-direction() = hdr_cmn::DOWN;
bzero(cf, MAC_HDR_LEN);

cf-cf_fc.fc_protocol_version = MAC_ProtocolVersion;
cf-cf_fc.fc_type= MAC_Type_Control;
cf-cf_fc.fc_subtype= MAC_Subtype_CTS;
 cf-cf_fc.fc_to_ds= 0;
 cf-cf_fc.fc_from_ds= 0;
 cf-cf_fc.fc_more_frag= 0;
 cf-cf_fc.fc_retry= 0;
 cf-cf_fc.fc_pwr_mgt= 0;
 cf-cf_fc.fc_more_data= 0;
 cf-cf_fc.fc_wep= 0;
 cf-cf_fc.fc_order= 0;
in 802.11, the developper has just to fill a given structure fields. How
about 80.16 ?
Could someone help me please!
Thanks in advance
 Ramzi Tka


[ns] how to send 802.16 undetermined size Control messages in ns2

2006-09-19 Thread Ramzi Tka

Hi evry body,
I'am writing 802.16 mesh extensions for ns-2. My problem is that I can't
find the right way to send a control message (DSCH-MSH message). In fact,
this type of message have a variable length, since they are composed of a
sequence of data structures whose total number varies in function of the
number of neighbors. When i looked to the 802.11 implementation in order to
have some ideas, I found that the control messages have always a constant
length and structure:

Packet *p = Packet::alloc();
hdr_cmn* ch = HDR_CMN(p);
struct cts_frame *cf = (struct cts_frame*)p-access(hdr_mac::offset_);

assert(pktCTRL_ == 0);

ch-uid() = 0;
ch-ptype() = PT_MAC;
ch-size() = phymib_.getCTSlen();


ch-iface() = -2;
ch-error() = 0;
//ch-direction() = hdr_cmn::DOWN;
bzero(cf, MAC_HDR_LEN);

cf-cf_fc.fc_protocol_version = MAC_ProtocolVersion;
cf-cf_fc.fc_type= MAC_Type_Control;
cf-cf_fc.fc_subtype= MAC_Subtype_CTS;
 cf-cf_fc.fc_to_ds= 0;
 cf-cf_fc.fc_from_ds= 0;
 cf-cf_fc.fc_more_frag= 0;
 cf-cf_fc.fc_retry= 0;
 cf-cf_fc.fc_pwr_mgt= 0;
 cf-cf_fc.fc_more_data= 0;
 cf-cf_fc.fc_wep= 0;
 cf-cf_fc.fc_order= 0;
in 802.111, the developper has just to fill a given structure fields. How
about 80.16 ?
Could someone help me please!
Thanks in advance
 Ramzi Tka


[ns] olsr implementation

2006-08-15 Thread Ramzi Tka

hi evrybody,
is there any available OLSR implentation under ns-2.? if yes, how could i
get it ?
thanks a lot
ramzi tka


[ns] 802.16 extensions to NS-2

2006-08-05 Thread Ramzi Tka

Hi All,
I think that the architecture of a mobilenode is not suitable for
802.16networks (mode PMP  Mesh). In fact , in networks such as
802.11 , when high layers have to send Data, they pass it to LL which in
turn passes it to IFq and then to MAC (through PHY). When a packet is
transmitted , another is sent to MAC and so on.
However for 802.16 networks, the mac layer must take knowledge of the amount
of data to be transmitted from higher layers in order to try to reserve
enough radio ressources (minislots) to make the transmission.
If we want to simulate 802.16 nets under ns-2, we must extend IFq with
procedures that cuold notify the mac layer of the size of the new data it
receives.Also the IFq must manage different queues corresponding to
different classes of service. Am I right ?
Another possible scenario, is that these queues are implemented in the
802.16 mac layer. This way all relevant tasks become easier. What is your
opinion about this scenario?
Could you help to make the best choice. If you have other suggestions they
are welcome.
Thanks a lot
Ramzi TKA