from netpylab import World from places import * from paths import * from nodes import * from interfaces import * from applications import * from channels import * from report import Report from layers.ipv6 import mac2linklocal world = World() t = GpxPath('../gpx/rennes1.gpx', 'Rennes1') c = Car(world, t, label='c') a1 = Anchor(world, 48.113205, -1.649238, label='a1') a2 = Anchor(world, 48.114447,-1.63994, label='a2') b1 = Building(world, 48.120205, -1.644238, label='b1') b2 = Building(world, 48.122205, -1.644238, label='b2') b3 = Building(world, 48.122205, -1.636238, label='b3') c.start(at=0) cable1 = EthernetCable(world) cable2 = EthernetCable(world) cable3 = EthernetCable(world) cable4 = EthernetCable(world) mn = MobileNode(c, '2009::1', '2009::100', 'mn') ap1 = AccessPoint(a1, 'ap1', channel = cable1) ap2 = AccessPoint(a2, 'ap2', channel = cable2)
import os from netpylab import World from places import * from paths import * from nodes import * from interfaces import * from applications import * from channels import * from report import Report from layers.ipv6 import mac2linklocal world = World() t = GpxPath('../gpx/rennes1.gpx', 'Rennes1') c = Car(world, t, label='c') a = Anchor(world, 48.113205, -1.649238, label='a') b1 = Building(world, 48.120205, -1.644238, label='b1') b2 = Building(world, 48.122205, -1.644238, label='b2') b3 = Building(world, 48.122205, -1.643238, label='b3') c.start(at=0) mn = MobileNode(c, '2009::1', '2009::100', 'mn') ap1 = AccessPoint(a, 'ap1') ar = IPRouter(b1, 'ar') ha = HomeAgent(b2, '2009::100', '2009::', 64, 'ha') cn = IPNode(b2, 'cn')
import os from scapy.layers import inet from netpylab import World from places import * from paths import * from nodes import * from interfaces import * from applications import * from channels import * world = World() scenario = 4 if scenario == 1: speed = 2 elif scenario == 2: speed = 2 else: speed = 7 w.scenario = scenario t = GpxPath('../gpx/rennes1.gpx', 'Rennes1') c = Car(world, t, label='c') a1 = Anchor(world, 48.119205, -1.650238, label='a1') a2 = Anchor(world, 48.119205, -1.640238, label='a2') a3 = Anchor(world, 48.124423,-1.627218, label='a3') b1 = Building(world, 48.108205, -1.640238, label='b1') b2 = Building(world, 48.102205, -1.625238, label='b2') b3 = Building(world, 48.120103,-1.627092, label='b3') c.start()