CITS3002 Computer Networks  
prev
next CITS3002 help3002 CITS3002 schedule  

Defining networks using Topology Files

cnet accepts (many) command line options and a topology file (or generates a random network). Network topologies may consist of wide-area networks (WANs), local-area-networks (LANs), and wireless local-area-networks (WLANs):

compile          = "protocol.c"
messagerate      = 500ms,
propagationdelay = 700ms,
probframecorrupt = 3

host perth {
    x=100, y=100
    messagerate  = 1000ms,

    link to melbourne
}

host melbourne {
    east of perth
    nodemtbf = 200s,

    link to perth
        { probframeloss = 2 }
}

compile        = "ethertest.c"
minmessagesize = 100bytes
maxmessagesize = 1200bytes

lansegment CSSE {
    lan-bandwidth = 10Mbps
}

host budgie {
   ostype = "linux"
   lan to CSSE {
        nicaddr = 00:90:27:62:58:84
   }
}

host bunny {
   lan to CSSE {
        nicaddr = 00:90:27:62:58:12
   }
}
compile         = "mobile1.c newswalk.o"

mapwidth        = 700m
mapheight       = 600m

mapimage        = "campus.gif"
icontitle       = "%n"

mobile mobile0 { wlan { } }
mobile mobile1 { wlan { } }
mobile mobile2 { wlan { } }
mobile mobile3 { wlan { } }
mobile mobile4 { wlan { } }
mobile mobile5 { wlan { } }
mobile mobile6 { wlan { } }
mobile mobile7 { wlan { } }







CITS3002 Computer Networks, Lecture 3, Data Link Layer protocols, p16, 13th March 2024.