Presentation is loading. Please wait.

Presentation is loading. Please wait.

Cloud computing for internet emulator. Professor Muthucumaru Maheswaran Team Members Mia Hochar Simon Foucher David El Achkar David El Achkar Marc Atie.

Similar presentations


Presentation on theme: "Cloud computing for internet emulator. Professor Muthucumaru Maheswaran Team Members Mia Hochar Simon Foucher David El Achkar David El Achkar Marc Atie."— Presentation transcript:

1 Cloud computing for internet emulator

2 Professor Muthucumaru Maheswaran Team Members Mia Hochar Simon Foucher David El Achkar David El Achkar Marc Atie Marc Atie GINI on a Cloud © November 092 David El Achkar, Simon Foucher, Mia Hochar, Marc Atie

3 Professor Muthucumaru Maheswaran 3. Resource Manager B. Proposed Improvements 1. Overview 2. Dispatcher A. Current State of GINI Objectives Mia Hochar Simon Foucher David El Achkar David El Achkar Marc Atie Marc Atie GINI on a Cloud © November 093 David El Achkar, Simon Foucher, Mia Hochar, Marc Atie C. Conclusion 1. Summary and Advantages 2. Recommendations

4 1. What is GINI? 2. GINI’s purpose, features, & components 3. Drawbacks GINI on a Cloud © November 094 David El Achkar, Simon Foucher, Mia Hochar, Marc Atie

5 Current State of GINI What is GINI? Toolkit for creating virtual micro Internets Create midsize networks Process creates virtual instances of network elements GINI on a Cloud © November 095 David El Achkar, Simon Foucher, Mia Hochar, Marc Atie

6 GINI Snapshot GINI on a Cloud © November 096 David El Achkar, Simon Foucher, Mia Hochar, Marc Atie

7 Current State of GINI GINI’s purpose: Teaching and learning tool Suitable to many levels of knowledge Future applications GINI on a Cloud © November 097 David El Achkar, Simon Foucher, Mia Hochar, Marc Atie

8 Current State of GINI GINI Features: Simple to use GUI Fully open-source system Standard compliant router Ability to implement additional protocols or new network elements GINI on a Cloud © November 098 David El Achkar, Simon Foucher, Mia Hochar, Marc Atie

9 gRouter GiniLinux uSwitch WGINI gLoader gBuilder Current State of GINI GINI Components: gBuilder gLoader gRouter GiniLinux uSwitch WGINI GINI on a Cloud © November 099 David El Achkar, Simon Foucher, Mia Hochar, Marc Atie

10 Drawbacks Complicated Installation process GINI on a Cloud © November 0910 David El Achkar, Simon Foucher, Mia Hochar, Marc Atie

11 Drawbacks OS Compatibility issues Network protocol compatibility issues GINI on a Cloud © November 0911 David El Achkar, Simon Foucher, Mia Hochar, Marc Atie

12 1. Overview 2. Dispatcher Flow 1 – Request/Reply 3. Dispatcher Flow 2i – Connection Established 4. Dispatcher Flow 2ii – Connection Recorded 5. Why Twisted? GINI on a Cloud © November 0912 David El Achkar, Simon Foucher, Mia Hochar, Marc Atie

13 Improvements Overview GINI on a Cloud © November 0913 David El Achkar, Simon Foucher, Mia Hochar, Marc Atie ClientWorker Front EndBack End

14 Improvements Overview GINI on a Cloud © November 0914 David El Achkar, Simon Foucher, Mia Hochar, Marc Atie ClientWorker Front EndBack End

15 Improvements Overview GINI on a Cloud © November 0915 Front EndDispatcher Database Scheduler Back End ServerWorkersClient David El Achkar, Simon Foucher, Mia Hochar, Marc Atie

16 Dispatcher Flow 1 Request/Reply Front EndDispatcher Database I need a worker Worker’s IP Lowest CPU Usage GINI on a Cloud © November 0916 David El Achkar, Simon Foucher, Mia Hochar, Marc Atie

17 Dispatcher Flow 1 Request/Reply Dispatcher DNSIPW_CPU% Lab2_17@cs.mcgill.ca134.204.2.565 Lab2_18@cs.mcgill.ca134.204.2.218 Lab2_29@cs.mcgill.ca134.204.2.3712 Lab2_20@cs.mcgill.ca134.204.2.11218 ……… Return IP or host name Query min() GINI on a Cloud © November 0917 David El Achkar, Simon Foucher, Mia Hochar, Marc Atie

18 Dispatcher Flow 2i Connection Established Front EndBack End SSH Tunnel GINI on a Cloud © November 0918 David El Achkar, Simon Foucher, Mia Hochar, Marc Atie

19 Dispatcher Flow 2i Connection Recorded Dispatcher Database 1.Create host IP entry 2.Time Stamp GINI on a Cloud © November 0919 David El Achkar, Simon Foucher, Mia Hochar, Marc Atie

20 Dispatcher Flow 2ii Connection Recorded Dispatcher ClientConnected toTime Stamp 14.89.2.44134.204.2.561:03 168.141.71.9134.204.2.211:21 191.24.2.56134.204.2.371:56 134.13.22.121134.204.2.11212:12 ……… GINI on a Cloud © November 0920 David El Achkar, Simon Foucher, Mia Hochar, Marc Atie

21 Dispatcher Network Programming models Handle connections in a separate OS process Handle connections in a separate thread Use non-blocking system calls to handle all connections in one thread. GINI on a Cloud © November 0921 David El Achkar, Simon Foucher, Mia Hochar, Marc Atie

22 Dispatcher- Why Twisted? GINI already in Python Available Win/Linux Networking libraries Flexibility Available source code Stability High-level language GINI on a Cloud © November 0922 David El Achkar, Simon Foucher, Mia Hochar, Marc Atie

23 1. Purpose 2. Database 3. Time Out 4. User Interface GINI on a Cloud © November 0923 David El Achkar, Simon Foucher, Mia Hochar, Marc Atie

24 Purpose Manage workers and their connections Examine CPU usage GINI on a Cloud © November 0924 David El Achkar, Simon Foucher, Mia Hochar, Marc Atie

25 Database Storage What will store all the information ? Database Links scheduler and dispatcher Dispatcher Database Scheduler GINI on a Cloud © November 0925 David El Achkar, Simon Foucher, Mia Hochar, Marc Atie

26 Database Storage DB keeps history of 10 last CPU usages for every worker WorkersUsageHistory W134%12158045… W249%70331028… W357%2887865… ……… Database GINI on a Cloud © November 0926 David El Achkar, Simon Foucher, Mia Hochar, Marc Atie

27 Database Storage How does the scheduler determine the usage? Pipe $PS data Extract CPU usage Scheduler Worker 1 CPU Usage 26% Worker 2 Worker 3 … GINI on a Cloud © November 0927 David El Achkar, Simon Foucher, Mia Hochar, Marc Atie

28 Database Update 1. Query database for worker entry 2. Extract previous ten CPU usages 3. Compute new weighted average 4. Store new weighted average GINI on a Cloud © November 0928 David El Achkar, Simon Foucher, Mia Hochar, Marc Atie

29 Database Update Database Scheduler Worker 1 New Usage 26% 3 WorkersNew UsageHistory W126%… W249%… ……… 4 Request Worker 1 Entry 1 12, 15, 80, 45, … 2 GINI on a Cloud © November 0929 David El Achkar, Simon Foucher, Mia Hochar, Marc Atie

30 Time Out Timer value must be inserted by user When time limit expires: user gets a popup message HostTime 15.141.123.443:27 122.131.4.1060:01 192.168.2.12507:13 …… Database Scheduler Host IP 122.131.4.10 Are you still there? GINI on a Cloud © November 0930 David El Achkar, Simon Foucher, Mia Hochar, Marc Atie

31 User Interface Scheduler process runs in background Update $PATH file on server Add few commands to communicate with scheduler $ gtimeout $ gkill $ gaddworker $ gremoveworker $ showWorkers $ showActiveSessions GINI on a Cloud © November 0931 David El Achkar, Simon Foucher, Mia Hochar, Marc Atie

32 Dynamic Update Update worker boot/shutdown sequence GINI on a Cloud © November 0932 Scheduler Worker $ gAddWorker<> $ gRemoveWorker<> David El Achkar, Simon Foucher, Mia Hochar, Marc Atie

33 1. Summary 2. Advantages 3. Recommendations GINI on a Cloud © November 0933 David El Achkar, Simon Foucher, Mia Hochar, Marc Atie

34 Summary Initiating a connection ClientDispatcher Database Worker 1. Client contacts dispatcher 3. Dispatcher sends IP address of worker to the client 2. Dispatcher queries database for worker, updates database accordingly 4. Client connects to worker through SSH tunnel GINI on a Cloud © November 0934 David El Achkar, Simon Foucher, Mia Hochar, Marc Atie

35 Summary Killing a connection Manual Client shuts down connection Sends message to dispatcher Polling (time out): Scheduler periodically polls client No response: scheduler terminates connection GINI on a Cloud © November 0935 David El Achkar, Simon Foucher, Mia Hochar, Marc Atie

36 Advantages No need to install back end Easier installation (less packages) Saves user trouble of software maintenance / update Cross-platform compatibility Back end can only run on Linux Front end supported by Linux and Windows GINI on a Cloud © November 0936 David El Achkar, Simon Foucher, Mia Hochar, Marc Atie

37 Advantages Mobility Back end runs on remote server Users can run GINI from wherever they are Resource usage Managed, automated distribution of computing resources among users Easy to monitor and to add more workers GINI on a Cloud © November 0937 David El Achkar, Simon Foucher, Mia Hochar, Marc Atie

38 Recommendations Move to a public cloud: Make software more accessible Provide better educational platform for students Support for additional platforms: Many different OS on market Support more platforms for expansion GINI on a Cloud © November 0938 David El Achkar, Simon Foucher, Mia Hochar, Marc Atie

39 Questions? GINI on a Cloud © November 0939


Download ppt "Cloud computing for internet emulator. Professor Muthucumaru Maheswaran Team Members Mia Hochar Simon Foucher David El Achkar David El Achkar Marc Atie."

Similar presentations


Ads by Google