[ns] Can't Seen any tcp flow in trace file

2012-12-19 Thread Salman Malik



Hi All,

I am a newbie to ns2 and trying to simulate a fat-tree like topology of depth 3 
in the simulator. I am using DV routing protocol for routing and the leafs in 
the topology send packets to the root of the tree (which in my case is a sink). 
I have used the following to attach sources to the leaf nodes:

for {set i 1} {$i = $switches*$hosts} {incr i} {
#Create a TCP agent and attach it to hosts
set tcp($i) [new Agent/TCP]
# Create exponential traffic sources and attach it to tcp agents
set e($i) [new Application/Traffic/Exponential]
$e($i) set packetSize_ 500
#$e($i) set interval 0.005
$e($i) set burst_time_ 990ms
$e($i) set idle_time_ 10ms
$e($i) set rate_ 100k
$e($i) attach-agent $tcp($i)
}

And I attach all the leaves to the root-sink node as follows:

#Create a Null agent (a traffic sink) and attach it to node n(3)
set null0 [new Agent/Null]
$ns attach-agent $n(0) $null0

#Connect the traffic source with the traffic sink
for {set i 1} {$i = $switches*$hosts} {incr i} {
$ns connect $tcp($i) $null0
}

(Other links in the topology also seem fine, as shown in nam. Further, I also 
started all the sources at the end of .tcl file)

But when I inspect the trace file, I don't see any tcp flows in the file. I 
just see flows of type rtprotodv in the file. 
What could be wrong here? 

Thanks,
Salman  
  


Re: [ns] Can't Seen any tcp flow in trace file

2012-12-19 Thread Salman Malik

Sorry for the previous email: I have just spotted my mistake. 

Regards,
Salman

From: salma...@live.com
To: ns-users@isi.edu
Subject: Can't Seen any tcp flow in trace file
Date: Wed, 19 Dec 2012 14:29:06 -0600






Hi All,

I am a newbie to ns2 and trying to simulate a fat-tree like topology of depth 3 
in the simulator. I am using DV routing protocol for routing and the leafs in 
the topology send packets to the root of the tree (which in my case is a sink). 
I have used the following to attach sources to the leaf nodes:

for {set i 1} {$i = $switches*$hosts} {incr i} {
#Create a TCP agent and attach it to hosts
set tcp($i) [new Agent/TCP]
# Create exponential traffic sources and attach it to tcp agents
set e($i) [new Application/Traffic/Exponential]
$e($i) set packetSize_ 500
#$e($i) set interval 0.005
$e($i) set burst_time_ 990ms
$e($i) set idle_time_ 10ms
$e($i) set rate_ 100k
$e($i) attach-agent $tcp($i)
}

And I attach all the leaves to the root-sink node as follows:

#Create a Null agent (a traffic sink) and attach it to node n(3)
set null0 [new Agent/Null]
$ns attach-agent $n(0) $null0

#Connect the traffic source with the traffic sink
for {set i 1} {$i = $switches*$hosts} {incr i} {
$ns connect $tcp($i) $null0
}

(Other links in the topology also seem fine, as shown in nam. Further, I also 
started all the sources at the end of .tcl file)

But when I inspect the trace file, I don't see any tcp flows in the file. I 
just see flows of type rtprotodv in the file. 
What could be wrong here? 

Thanks,
Salman  
  


[ns] Fixed Flow_id's ?

2012-12-19 Thread Salman Malik

Hi,

I have a topology where 20 hosts are connected and talking to another host 
through TCP i.e. the first 20 hosts are attached to TCP source : [new 
Agent/TCP] with an exponential application running on top : [new 
Application/Traffic/Exponential], whereas the last host is simply the TCPsink 
node : [new Agent/TCPSink]. 

When I run the simulation, I see that the flow_id for all communications is 
fixed to '0'. Also the packet size for the exponential sending application 
doesn't match the value that I set it to e.g. I had packetSize_ set to 128 and 
I see packet sizes of 40 (this may be the ack bytes) and 1040 (which I am not 
sure of) in the trace file.

Comments please ?

Regards,
Salman


Re: [ns] Can't Seen any tcp flow in trace file

2012-12-19 Thread Salman Malik

I had the same start and finish time and hence no activity...

 CC: ns-users@ISI.EDU
 From: kiran13...@gmail.com
 Subject: Re: [ns] Can't Seen any tcp flow in trace file
 Date: Wed, 19 Dec 2012 21:55:28 +
 To: salma...@live.com
 
 Wt was the mistake?
 
 Sent from my iPhone
 
 On 19 ಡಿಸೆಂಬರ್ 2012, at 08:35 PM, Salman Malik salma...@live.com wrote:
 
  
  Sorry for the previous email: I have just spotted my mistake. 
  
  Regards,
  Salman
  
  From: salma...@live.com
  To: ns-users@isi.edu
  Subject: Can't Seen any tcp flow in trace file
  Date: Wed, 19 Dec 2012 14:29:06 -0600
  
  
  
  
  
  
  Hi All,
  
  I am a newbie to ns2 and trying to simulate a fat-tree like topology of 
  depth 3 in the simulator. I am using DV routing protocol for routing and 
  the leafs in the topology send packets to the root of the tree (which in my 
  case is a sink). I have used the following to attach sources to the leaf 
  nodes:
  
  for {set i 1} {$i = $switches*$hosts} {incr i} {
 #Create a TCP agent and attach it to hosts
 set tcp($i) [new Agent/TCP]
 # Create exponential traffic sources and attach it to tcp agents
 set e($i) [new Application/Traffic/Exponential]
 $e($i) set packetSize_ 500
 #$e($i) set interval 0.005
 $e($i) set burst_time_ 990ms
 $e($i) set idle_time_ 10ms
 $e($i) set rate_ 100k
 $e($i) attach-agent $tcp($i)
  }
  
  And I attach all the leaves to the root-sink node as follows:
  
  #Create a Null agent (a traffic sink) and attach it to node n(3)
  set null0 [new Agent/Null]
  $ns attach-agent $n(0) $null0
  
  #Connect the traffic source with the traffic sink
  for {set i 1} {$i = $switches*$hosts} {incr i} {
 $ns connect $tcp($i) $null0
  }
  
  (Other links in the topology also seem fine, as shown in nam. Further, I 
  also started all the sources at the end of .tcl file)
  
  But when I inspect the trace file, I don't see any tcp flows in the file. I 
  just see flows of type rtprotodv in the file. 
  What could be wrong here? 
  
  Thanks,
  Salman  
  
  

Re: [ns] Fixed Flow_id's ?

2012-12-19 Thread Salman Malik




I already have modified it to 128 bytes but to no avail.
Also, if I change the agent to UDP, ns2 doesn't launch...

Any other ideas?  

 CC: ns-users@ISI.EDU
 From: kiran13...@gmail.com
 Subject: Re: [ns] Fixed Flow_id's ?
 Date: Wed, 19 Dec 2012 21:54:33 +
 To: salma...@live.com
 
 By default packetsize_ for tcp is 1000. Change that you may get it. 
 
 Sent from my iPhone
 
 On 19 ಡಿಸೆಂಬರ್ 2012, at 09:27 PM, Salman Malik salma...@live.com wrote:
 
  
  Hi,
  
  I have a topology where 20 hosts are connected and talking to another host 
  through TCP i.e. the first 20 hosts are attached to TCP source : [new 
  Agent/TCP] with an exponential application running on top : [new 
  Application/Traffic/Exponential], whereas the last host is simply the 
  TCPsink node : [new Agent/TCPSink]. 
  
  When I run the simulation, I see that the flow_id for all communications is 
  fixed to '0'. Also the packet size for the exponential sending application 
  doesn't match the value that I set it to e.g. I had packetSize_ set to 128 
  and I see packet sizes of 40 (this may be the ack bytes) and 1040 (which I 
  am not sure of) in the trace file.
  
  Comments please ?
  
  Regards,
  Salman 

  

Re: [ns] Fixed Flow_id's ?

2012-12-19 Thread Salman Malik




Ok, let me explain the toplogy here. I have 4 switches, each switch is 
connected with four nodes (which are 'upstream') and a root switch which is 
also an 'upstream' node for other switches. Finally, this root switch is 
connected with a single node (which acts as a sink). I have tried to draw it 
here:

  [H1]
 ^
 |
 |
[Root Switch]
^

 |

 |
  [switch1] (this island is replicated three more 
times and is connected with the root switch)
 ^^   ^^

  |  | | |

  |  | | |
[H2] [H3] [H4] [H5] 

The hosts at the lowest levels are used to send traffic to the host at the top.

You can also find attached the trace and the tcl files.

In
 addition to already mentioned problem, I also want to measure the 
bandwidth consumed by the traffic at [Root switch] to [Host1] link. I 
have some code in there but it isn't working right now. Let me know how 
to get it working.

Thanks,
Salman


 From: svana...@gmail.com
 Date: Wed, 19 Dec 2012 23:10:45 +
 Subject: Re: [ns] Fixed Flow_id's ?
 To: salma...@live.com
 CC: ns-users@isi.edu
 
 Mate,
 
 No inkling what you are trying to say here.
 
 1. Create a simplified scenario to reproduce the problem.
 
 2. Share the TCL and trace file.
 
 Use it to explain your issue and steps you have taken to debug the problem.
 
 rgds
 Saravanan K
 
 On Wed, Dec 19, 2012 at 9:27 PM, Salman Malik salma...@live.com wrote:
 
  Hi,
 
  I have a topology where 20 hosts are connected and talking to another host 
  through TCP i.e. the first 20 hosts are attached to TCP source : [new 
  Agent/TCP] with an exponential application running on top : [new 
  Application/Traffic/Exponential], whereas the last host is simply the 
  TCPsink node : [new Agent/TCPSink].
 
  When I run the simulation, I see that the flow_id for all communications is 
  fixed to '0'. Also the packet size for the exponential sending application 
  doesn't match the value that I set it to e.g. I had packetSize_ set to 128 
  and I see packet sizes of 40 (this may be the ack bytes) and 1040 (which I 
  am not sure of) in the trace file.
 
  Comments please ?
 
  Regards,
  Salman