next up previous contents index
Next: 13.7 LanRouter class Up: 13.6 LL (link-layer) Class Previous: 13.6.1 LL Class in

   
13.6.2 Example: Link Layer configuration

    set ll_  [new LL]
    set ifq_ [new Queue/DropTail]
    $ll_ lanrouter  [new LanRouter $ns $lan] # LanRouter is one object
                                             # per LAN
    $ll_ set delay_ $delay        # link-level overhead
    $ll_ set bandwidth_ $bw       # bandwidth
    $ll_ sendtarget $mac          # interface queue at the sender side
    $ll_ recvtarget $iif          # input interface of the receiver
             . . .




2000-08-24