Hi,

2009/10/22 Mutiullah Qureshi <[email protected]>

>
> Hello.
> I need to send a packet from one layer to another layer bypassing an
> intermediate layer. For example how can I send a packet from Transport layer
> directly to Link Layer, bypassing the intermediate Network Layer? Can
> someone help me out here please.
>

Use "Connector" command to connect Transport Layer directly with Transport
Layer.

For example:

Node/MobileNode instproc getLL { param0} {
    $self instvar ll_
    return $ll_($param0)
}

   set udp_ [new Agent/UDP]
   $ns_ attach-agent $node_($src) $udp_

   set null [new Agent/Null]
   $ns_ attach-agent $node_($dst) $null

   set exp_ [new Application/Traffic/Exponential]

   $exp_ set burst_time_ 0.01ms
   $exp_ set idle_time_ 0.04ms
   $exp_ set rate_ 1.5Mbps
   $exp_ attach-agent $udp_

   $exp_ attach-agent $udp_
   $ns_ connect $udp_ $null

   set ll_src_ [$node_($src) getLL 0]
   $udp_ target $ll_src_

With command "target" I connected udp with Link Layer.


Regards.
>
>
I don't know if I've cleared your doubt.

Urlan

Reply via email to