# Base system # Display info DEBUG=True # Name of the configuration NAME="Random Wifi Delay (std 37.5%)" # Cloud added latency cd=7.5 #Links d2dlink=Link("D2D",50000000., 1.75, 50000000., 1.75) ltelink=Link("LTE",30000000., 9.95, 30000000., 9.95) ltecloudlink=Link("LTE2Cloud",30000000., 9.95+cd, 30000000., 9.95+cd) wifilink=RandomLink("WiFi",100000000.,37500000, 1.85,0,100000000.,37500000, 1.85,0) wificloudlink=RandomLink("WiFi2Cloud",100000000.,37500000, 1.85+cd,0,100000000.,37500000, 1.85+cd,0) #Set the one way added delay to connect to the cloud device1=Server("Device",200.) edge1=Server("Edge1",1000.) edge2=Server("Edge2",1000.) cloud1=Server("Cloud1",5000.) cloud2=Server("Cloud2",5000.) cloud3=Server("Cloud3",5000.) # Connect the devices with a given link combinations=[(d2dlink,device1), (ltelink,edge1), (wifilink,edge2),
# Base system # Display info DEBUG=True # Name of the configuration NAME="Random Wifi Delay (std 400%)" # Cloud added latency cd=7.5 #Links d2dlink=Link("D2D",50000000., 1.75, 50000000., 1.75) ltelink=Link("LTE",30000000., 9.95, 30000000., 9.95) ltecloudlink=Link("LTE2Cloud",30000000., 9.95+cd, 30000000., 9.95+cd) wifilink=RandomLink("WiFi",100000000.,0, 1.85,1.85*4,100000000.,0, 1.85,1.85*4) wificloudlink=RandomLink("WiFi2Cloud",100000000.,0, 1.85+cd,1.85*4,100000000.,0, 1.85+cd,1.85*4) #Set the one way added delay to connect to the cloud device1=Server("Device",200.) edge1=Server("Edge1",1000.) edge2=Server("Edge2",1000.) cloud1=Server("Cloud1",5000.) cloud2=Server("Cloud2",5000.) cloud3=Server("Cloud3",5000.) # Connect the devices with a given link combinations=[(d2dlink,device1), (ltelink,edge1), (wifilink,edge2),
from sim.task import Task, TaskPattern # Base system # Display info DEBUG = True # Name of the configuration NAME = "Random" # Cloud added latency cd = 7.5 #Links d2dlink = Link("D2D", 50000000., 1.75, 50000000., 1.75) ltelink = RandomLink("LTE", 30000000., 15000000, 9.95, 1.29, 30000000., 15000000, 9.95, 1.29) ltecloudlink = RandomLink("LTE2Cloud", 30000000., 15000000, 9.95 + cd, 1.29, 30000000., 15000000, 9.95 + cd, 1.29) wifilink = RandomLink("WiFi", 100000000., 50000000, 1.85, 1.20, 100000000., 50000000, 1.85, 1.20) wificloudlink = RandomLink("WiFi2Cloud", 100000000., 50000000, 1.85 + cd, 1.20, 100000000., 50000000, 1.85 + cd, 1.20) #Set the one way added delay to connect to the cloud device1 = Server("Device", 200.) edge1 = Server("Edge1", 1000.) edge2 = Server("Edge2", 1000.) cloud1 = Server("Cloud1", 5000.) cloud2 = Server("Cloud2", 5000.) cloud3 = Server("Cloud3", 5000.)
from sim.link import Link from sim.server import Server from sim.task import Task, TaskPattern # Base system NAME = "Single Server LTE" # Display info DEBUG = True # Cloud added latency cd = 7.5 #Links d2dlink = Link("D2D", 50000000., 1.75, 50000000., 1.75) ltelink = RandomLink("LTE", 30000000., 15000000 * 15000000, 9.95, 1.29, 30000000., 15000000 * 15000000, 9.95, 1.29) ltecloudlink = RandomLink("LTE2Cloud", 30000000., 15000000, 9.95 + cd, 1.29, 30000000., 15000000 * 15000000, 9.95 + cd, 1.29) wifilink = IntermittentLink("WiFi", 100000000., 50000000, 1.85, 1.20, 100000000., 50000000, 1.85, 1.20, 0.7) wificloudlink = IntermittentLink("WiFi2Cloud", 100000000., 50000000, 1.85 + cd, 1.20, 100000000., 50000000, 1.85 + cd, 1.20, 0.7) #Set the one way added delay to connect to the cloud device1 = Server("Device", 200.) edge1 = Server("Edge1", 1000.) edge2 = Server("Edge2", 1000.) cloud1 = Server("Cloud1", 5000.) cloud2 = Server("Cloud2", 5000.) cloud3 = Server("Cloud3", 5000.)
from sim.task import Task,TaskPattern # Base system # Display info DEBUG=True # Name of the configuration NAME="5G 60FPS" # Cloud added latency cd=7.5 #Links d2dlink=Link("D2D",50000000., 1.75, 50000000., 1.75) ltelink=RandomLink("LTE",1000000000.,100000000, 1.,0.13,1000000000.,100000000, 1.,0.13) ltecloudlink=RandomLink("LTE2Cloud",1000000000.,100000000, 1+cd,0.13, 1000000000.,100000000, 1+cd,0.13) wifilink=RandomLink("WiFi",600000000.,10000000, 1.85,1.20,600000000.,100000000, 1.85,1.20) wificloudlink=RandomLink("WiFi2Cloud",600000000.,100000000, 1.85+cd,1.20,600000000.,100000000, 1.85+cd,1.20) #Set the one way added delay to connect to the cloud device1=Server("Device",200.) edge1=Server("Edge1",1000.) edge2=Server("Edge2",1000.) cloud1=Server("Cloud1",5000.) cloud2=Server("Cloud2",5000.) cloud3=Server("Cloud3",5000.) # Connect the devices with a given link combinations=[(d2dlink,device1),