Skip to content
  • Home
  • Mentions
  • Clients
  • Contact
  • Twitter
  • Dribbble
  • Behance
  • LinkedIn
  • Instagram
  • Facebook
  • Medium
  • Google Plus
  • YouTube

Darshan Gajara

Stories and insights on Design + Travel

  • About
    • Blog
    • Darshan Gajara
  • Design
    • Case Studies
    • Updates
  • Poems
  • Techo
    • Java | C++ Programs
      • System Security
      • Computer Networks
      • Micro Processor
      • Computer Graphics
  • Freebies
    • Tricks & Treats
    • Free Photos
  • Conversations

Tag: ns2

Computer Networks

Stop & Wait (NS2)

set ns [new Simulator] $ns color 1 Blue set nf [open out.nam w] $ns namtrace-all $nf proc finish {} { global ns nf $ns flush-trace close $nf exec nam out.nam & exit 0 } set n0 [$ns node] set n1 [$ns node] $ns at 0.0 “$n0 label \” sender \” ” $ns at 0.0 “$n1 label \”receiver\” ” $ns duplex-link $n0 $n1 1Mb 200ms DropTail … Continue reading Stop & Wait (NS2)

Unknown's avatarDarshan GajaraOctober 30, 2013Leave a comment
Computer Networks

Multicasting (NS2)

set ns [new Simulator -multicast on] set f [open out.tr w] $ns trace-all $f $ns namtrace-all [open out.nam w] $ns color 1 red # prune/graft packets $ns color 30 purple $ns color 31 bisque set n0 [$ns node] set n1 [$ns node] set n2 [$ns node] set n3 [$ns node] # Use automatic layout $ns duplex-link $n0 $n1 1.5Mb 10ms DropTail $ns duplex-link $n1 $n2 … Continue reading Multicasting (NS2)

Unknown's avatarDarshan GajaraOctober 30, 2013Leave a comment
Computer Networks

Static Routing (NS2)

set ns [new Simulator] #Define different colors for data flows (for NAM) $ns color 1 Blue $ns color 2 Red #Open the Trace file set file1 [open out.tr w] $ns trace-all $file1 #Open the NAM trace file set file2 [open out.nam w] $ns namtrace-all $file2 #Define a ‘finish’ procedure proc finish {} { global ns file1 file2 $ns flush-trace close $file1 close $file2 exec nam … Continue reading Static Routing (NS2)

Unknown's avatarDarshan GajaraOctober 30, 2013Leave a comment
Untitled UI – Figma UI Kit & Design System
Landing Page Hot Tips by Rob Hope
Podia – Memberships

Categories

Untitled UI – Figma UI Kit & Design System
Landing Page Hot Tips by Rob Hope
Podia – Memberships
Audddience
  • Home
  • Mentions
  • Clients
  • Contact
  • Twitter
  • Dribbble
  • Behance
  • LinkedIn
  • Instagram
  • Facebook
  • Medium
  • Google Plus
  • YouTube
Website Powered by WordPress.com.
Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Subscribe Subscribed
    • Darshan Gajara
    • Join 361 other subscribers
    • Already have a WordPress.com account? Log in now.
    • Darshan Gajara
    • Subscribe Subscribed
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar