Green ICT 2011 · T-110.4100 Computer Networks Green ICT 18.10.2011 Matti Siekkinen External...

31
T-110.4100 Computer Networks Green ICT 18.10.2011 Matti Siekkinen External sources: • Y. Xiao: Green communications. T-110.5116 lecture. Aalto. 2010.

Transcript of Green ICT 2011 · T-110.4100 Computer Networks Green ICT 18.10.2011 Matti Siekkinen External...

Page 1: Green ICT 2011 · T-110.4100 Computer Networks Green ICT 18.10.2011 Matti Siekkinen External sources: • Y. Xiao: Green communications. T-110.5116 lecture. Aalto. 2010.

T-110.4100 Computer Networks Green ICT

18.10.2011 Matti Siekkinen

External sources:

•  Y. Xiao: Green communications. T-110.5116 lecture. Aalto. 2010. • 

Page 2: Green ICT 2011 · T-110.4100 Computer Networks Green ICT 18.10.2011 Matti Siekkinen External sources: • Y. Xiao: Green communications. T-110.5116 lecture. Aalto. 2010.

18 October 2011

Which one is Green ICT?

Source: Google image

Page 3: Green ICT 2011 · T-110.4100 Computer Networks Green ICT 18.10.2011 Matti Siekkinen External sources: • Y. Xiao: Green communications. T-110.5116 lecture. Aalto. 2010.

18 October 2011

What is Green ICT?

q ICT systems for efficient gardening? §  No

q Green ICT §  Reduce energy consumption of ICT §  Green comes from energy and emissions

q What’s involved? §  Networked Equipment

o  PCs, mobile phones, data centers, set-top boxes,... §  Network Equipment (infrastructure)

o  Routers, switches, wireless access points, …

Page 4: Green ICT 2011 · T-110.4100 Computer Networks Green ICT 18.10.2011 Matti Siekkinen External sources: • Y. Xiao: Green communications. T-110.5116 lecture. Aalto. 2010.

18 October 2011

Networking

Page 5: Green ICT 2011 · T-110.4100 Computer Networks Green ICT 18.10.2011 Matti Siekkinen External sources: • Y. Xiao: Green communications. T-110.5116 lecture. Aalto. 2010.

18 October 2011

Questions, questions, …

q Lot of different stuff §  In network equipment

o  Routers, switches, wireless access points, … §  At the edge

o  PCs, mobile phones, data centers, set-top boxes,... q How much energy does all this stuff consume? q How much could we save? … in network equipment?... at

the edge (networked equipment)? And how do we do it? q Where does the energy go?

§  Transmission §  Computation §  Cooling

Page 6: Green ICT 2011 · T-110.4100 Computer Networks Green ICT 18.10.2011 Matti Siekkinen External sources: • Y. Xiao: Green communications. T-110.5116 lecture. Aalto. 2010.

18 October 2011

Why we give a damn

q ICT energy consumption §  About 12% of global power consumption §  60billion KWh wasted by inefficient computing every year §  Telecom data volume increases approximately by a factor of

10 every 5 years, which corresponds to an increase of the associated energy consumption of 16-20% every year

q CO2 §  At least 2% of global CO2 emission §  As much as airplanes, and ¼ of cars

q €€¥££ §  Data center and network operators §  Large part of operation costs

Page 7: Green ICT 2011 · T-110.4100 Computer Networks Green ICT 18.10.2011 Matti Siekkinen External sources: • Y. Xiao: Green communications. T-110.5116 lecture. Aalto. 2010.

18 October 2011

Why especially we give a damn

q Energy constrained devices §  Smart phones

o  Need to recharge more and more often §  Sensors and sensor networks

o  Don’t want to or cannot change batteries often q Quality of service or availability issue

§  Not really a question of €$£¥ §  Not so much a ”greenness” issue either

o  Although scale is very large... q Our main research focus

Page 8: Green ICT 2011 · T-110.4100 Computer Networks Green ICT 18.10.2011 Matti Siekkinen External sources: • Y. Xiao: Green communications. T-110.5116 lecture. Aalto. 2010.

18 October 2011

Outline

q What is Green ICT? q Energy efficient mobile computing q Where does the energy go on a smart phone and how

can we know that? q Examples of how to save energy of a smart phone

Page 9: Green ICT 2011 · T-110.4100 Computer Networks Green ICT 18.10.2011 Matti Siekkinen External sources: • Y. Xiao: Green communications. T-110.5116 lecture. Aalto. 2010.

18 October 2011

Low power hardware or higher capacity batteries?

q No, not really q We don’t build hardware

§  We are software guys q Don’t know that much about chemistry/material

physics either §  Leave the batteries alone…

q Our focus: §  All layers in communication protocol stack above the

physical layer §  All the software that interacts directly or indirectly

with the hardware o  E.g. operating system

Page 10: Green ICT 2011 · T-110.4100 Computer Networks Green ICT 18.10.2011 Matti Siekkinen External sources: • Y. Xiao: Green communications. T-110.5116 lecture. Aalto. 2010.

18 October 2011

So, what is it about?

q Goals: §  Minimize nb of Joules per bit, CPU cycle,

instruction… §  Deliver service with as few Joules as possible

o  Maybe trade off some QoS q How?

§  Optimization of protocols for energy efficiency o  Across the whole stack

§  Optimize power management to cooperate with protocols

q Necessary activities for doing this: §  Power measurements §  Power modeling

Page 11: Green ICT 2011 · T-110.4100 Computer Networks Green ICT 18.10.2011 Matti Siekkinen External sources: • Y. Xiao: Green communications. T-110.5116 lecture. Aalto. 2010.

18 October 2011

Measuring power q Hardware measurements q Can have much higher Hz q No software overhead

q Software-based measurements

q Nokia Energy Profiler q Easy to use q Sampling frequency: 4Hz q Only for Symbian L

Page 12: Green ICT 2011 · T-110.4100 Computer Networks Green ICT 18.10.2011 Matti Siekkinen External sources: • Y. Xiao: Green communications. T-110.5116 lecture. Aalto. 2010.

18 October 2011

Glance at the power consumption (5,2.249)

(10,1.281)

(113,1.494)

(211,2.516)

0.000

0.500

1.000

1.500

2.000

2.500

3.000

1

5

10

15

20

25

30

35

40

45

50

55

60

65

70

75

80

85

90

95

100

10

5

110

11

5

120

12

5

130

13

5

140

14

5

150

15

5

160

16

5

170

17

5

180

18

5

190

19

5

200

20

5

210

21

5

220

22

5

230

23

5

240

24

3

245

24

9

Pow

er(W

att)

Time(second)

WLAN WCDMA

Watching YouTube from N95

Page 13: Green ICT 2011 · T-110.4100 Computer Networks Green ICT 18.10.2011 Matti Siekkinen External sources: • Y. Xiao: Green communications. T-110.5116 lecture. Aalto. 2010.

18 October 2011

Basic questions

q How many Joules are needed for transmitting or receiving one bit? §  Hardware dependent §  Radio technology dependent §  Context/environment dependent §  Protocol dependent

q How many bits do you need to transmit or receive? §  Depends on protocol and service design §  Depends on context/environment

Page 14: Green ICT 2011 · T-110.4100 Computer Networks Green ICT 18.10.2011 Matti Siekkinen External sources: • Y. Xiao: Green communications. T-110.5116 lecture. Aalto. 2010.

18 October 2011

Example: WLAN

q Not a simple On/Off q Multiple operating modes

IDLE

TRANSMIT RECEIVE

SLEEP PS

TRANSMIT PT

IDLE PI

RECEIVE PR

PSM Timeout

Continuously Active Mode (CAM)

Power Saving Mode(PSM)

Page 15: Green ICT 2011 · T-110.4100 Computer Networks Green ICT 18.10.2011 Matti Siekkinen External sources: • Y. Xiao: Green communications. T-110.5116 lecture. Aalto. 2010.

18 October 2011

WLAN

q Power consumption ~ WNI operating mode

WNI operating mode Average Power (W)

Nokia N810 HTC G1 Nokia N95

IDLE 0.884 0.650 1.038

SLEEP 0.042 0.068 0.088

TRANSMIT 1.258 1.097 1.687

RECEIVE 1.181 0.900 1.585

Page 16: Green ICT 2011 · T-110.4100 Computer Networks Green ICT 18.10.2011 Matti Siekkinen External sources: • Y. Xiao: Green communications. T-110.5116 lecture. Aalto. 2010.

18 October 2011

3G

0.000

0.200

0.400

0.600

0.800

1.000

1.200

1 6 11 16 21 26 31 36 41 46 51 56

Pow

er(W

att)

Time(second)

CELL_FACH

CELL_PCH

CELL_DCH

Page 17: Green ICT 2011 · T-110.4100 Computer Networks Green ICT 18.10.2011 Matti Siekkinen External sources: • Y. Xiao: Green communications. T-110.5116 lecture. Aalto. 2010.

18 October 2011

Where does the energy go?

q Hardware consumes the energy

q Amount of energy consumed depends on §  Hardware physical

characteristics §  Hardware operating mode §  Workload generated by

software running on top of hardware

17

Page 18: Green ICT 2011 · T-110.4100 Computer Networks Green ICT 18.10.2011 Matti Siekkinen External sources: • Y. Xiao: Green communications. T-110.5116 lecture. Aalto. 2010.

18 October 2011

Power modeling

q Allows to estimate energy/power consumption even when direct measurement is impossible §  Impractical: external instruments usable only in lab

settings §  Software not available

q Why interesting? §  Understand and improve energy consumption behavior of

existing protocols and services o  Also in setups which aren’t possible in a lab o  Help redesign for better energy efficiency

§  Develop energy-aware protocols and applications o  Run-time estimation of energy consumption o  E.g., choose energy efficient paths, peers, servers

18

Page 19: Green ICT 2011 · T-110.4100 Computer Networks Green ICT 18.10.2011 Matti Siekkinen External sources: • Y. Xiao: Green communications. T-110.5116 lecture. Aalto. 2010.

18 October 2011

Power modeling (cont.)

q Power models describe §  Transmission cost, computational cost, cooling cost, … §  Power consumption of each hardware component or

software component §  Power consumption of a service

q Methodology §  Deterministic modeling §  Statistical modeling

Power measurement is needed for building models.

19

Page 20: Green ICT 2011 · T-110.4100 Computer Networks Green ICT 18.10.2011 Matti Siekkinen External sources: • Y. Xiao: Green communications. T-110.5116 lecture. Aalto. 2010.

18 October 2011

How to save energy? Some examples

q Smart data compression

q Proxy-based traffic shaping for audio streaming

q Computation offloading

Mohammad Hoque, Matti Siekkinen, and Jukka K. Nurminen. On the Energy Efficiency of Proxy-Based Traffic Shaping for

Mobile Audio Streaming. In Proceedings of CCNC 2011.

Yu Xiao, Matti Siekkinen, and Antti Ylä-Jääski. Framework for energy-aware lossless compression in mobile services: the

case of E-mail. In Proceedings of the ICC 2010. May 2010.

Byung-Gon Chun, Sunghwan Ihm, Petros Maniatis, Mayur Naik, Ashwin Patti. CloneCloud: Elastic Execution between Mobile

Device and Cloud. In Proceedings of EuroSys 2011.

Page 21: Green ICT 2011 · T-110.4100 Computer Networks Green ICT 18.10.2011 Matti Siekkinen External sources: • Y. Xiao: Green communications. T-110.5116 lecture. Aalto. 2010.

18 October 2011

Smart data compression q Communication energy consumption ~ Traffic size q Compression can reduce amount of traffic

generated §  But computation costs also energy

q Tradeoff always exists Communications

cost (reduced traffic size)

Computational cost

(compression, decompression)

Page 22: Green ICT 2011 · T-110.4100 Computer Networks Green ICT 18.10.2011 Matti Siekkinen External sources: • Y. Xiao: Green communications. T-110.5116 lecture. Aalto. 2010.

18 October 2011

Compressing E-mail attachments

q 10 – 60% energy savings possible q Depends on compressor, content type, size of

content, network conditions…

22

File Extension/Type

With compression Without Compression ce

Energy (J)

Duration (s)

Energy (J)

Duration (s)

.doc 9.61 7.0 18.31 11.8 6.90

.bmp 5.86 5.4 15.74 9.7 2.67

.pdf 25.55 22.8 28.45 23.0 1.03

.txt 13.80 12.2 18.97 13.0 2.68 Binary data 12.8 11 17.57 11.8 2.68

Page 23: Green ICT 2011 · T-110.4100 Computer Networks Green ICT 18.10.2011 Matti Siekkinen External sources: • Y. Xiao: Green communications. T-110.5116 lecture. Aalto. 2010.

18 October 2011

Proxy-based traffic shaping for audio streaming

q Mobile media streaming drains battery quickly §  Constant bit rate multimedia traffic is not energy friendly

with 802.11 and 3G §  Forces the network interface to be active all the time

q Idea: Shape traffic into bursts so that it is more energy efficient to receive §  Remember the linear relationship with throughput

10/18/11

Data Rate (kBps)

Start-up Time (s)

WLAN 3G

PSM (W)

CAM (W)

48kBps (W)

2Mbps (W)

8 18 0.53 1.06 1.30 1.30 16 10 0.99 1.07 1.30 1.30 24 10 1.04 1.07 1.27 1.35

Mobile Internet Radio power draw

on E-71 (TCP-based streaming)

Page 24: Green ICT 2011 · T-110.4100 Computer Networks Green ICT 18.10.2011 Matti Siekkinen External sources: • Y. Xiao: Green communications. T-110.5116 lecture. Aalto. 2010.

18 October 2011

Traffic Shaping with Proxy

q Client sends request to proxy q Proxy

§  forwards request to radio server §  receives and buffers media stream §  repeatedly sends in a single burst to client

q 802.11: §  PSM is enabled §  WNI wakes up to receive a burst at a time §  Waste only one timeout per burst

q 3G: §  Long enough burst interval (t) -> inactivity timers expire -> switch to lower power state in between

24

Page 25: Green ICT 2011 · T-110.4100 Computer Networks Green ICT 18.10.2011 Matti Siekkinen External sources: • Y. Xiao: Green communications. T-110.5116 lecture. Aalto. 2010.

18 October 2011

How much energy can be saved?

q  Significant savings for audio streaming §  Minimum power buffering period exists, almost 70% reduction §  Due to limited TCP receive buffer at mobile client

q  Video streaming via proxy from YouTube saves less than 20% §  Already transmitted in bursts by server §  Without server shaping, could reduce power almost 50%

25

Page 26: Green ICT 2011 · T-110.4100 Computer Networks Green ICT 18.10.2011 Matti Siekkinen External sources: • Y. Xiao: Green communications. T-110.5116 lecture. Aalto. 2010.

18 October 2011

What about 3G?

q 3G has long inactivity timers §  Operator controls §  No way to modify yourself §  Large wasted tail energy

q Savings vary with §  operator §  mobile device §  subscription rate

q In many cases there are no savings, but §  Fast Dormancy comes soon

o  Optimization in 3G standard o  Will be in use in near future

§  LTE will also have better power mgmt

Page 27: Green ICT 2011 · T-110.4100 Computer Networks Green ICT 18.10.2011 Matti Siekkinen External sources: • Y. Xiao: Green communications. T-110.5116 lecture. Aalto. 2010.

18 October 2011

Computation offloading

27

q Execute parts of program on remote server q Leverage same tradeoff as with previous example

§  Transferring required state to server and back consumes energy

§  But we save computation energy q Dynamical decision making

§  Figure out on the fly which parts of program are worth offloading

§  Need accurate models for communication and computation energy consumption

q Several proposed frameworks exist §  MAUI, CloneCloud §  Research prototypes

Page 28: Green ICT 2011 · T-110.4100 Computer Networks Green ICT 18.10.2011 Matti Siekkinen External sources: • Y. Xiao: Green communications. T-110.5116 lecture. Aalto. 2010.

18 October 2011

CloneCloud q Intel’s CloneCloud offloads Android program code q Works directly on bytecode

§  No need for source code q Modified Dalvik VM q Dynamic thread migration between phone and cloud

10/18/11

Byung-Gon Chun and Petros Maniatis. Augmented Smart Phone Applications Through Clone Cloud Execution. Proceedings of HotOS XII, 2009.

Page 29: Green ICT 2011 · T-110.4100 Computer Networks Green ICT 18.10.2011 Matti Siekkinen External sources: • Y. Xiao: Green communications. T-110.5116 lecture. Aalto. 2010.

18 October 2011

What else could be done? q Data centers

§  Liquid cooling for servers, use the hot water to heat other premises

§  Run servers in (freezing) cold areas §  Renewable energy §  Execute things where energy is cheap

q Mobile devices §  Smarter (cooperative) scheduling to reduce contention §  Leverage alternative low-power radios (e.g. Zi-Fi or Blue-Fi) §  Energy harvesting

o  Kinetic, solar, ambient radiation, …

29

Page 30: Green ICT 2011 · T-110.4100 Computer Networks Green ICT 18.10.2011 Matti Siekkinen External sources: • Y. Xiao: Green communications. T-110.5116 lecture. Aalto. 2010.

18 October 2011

Want to learn more?

q Come to my course: T-110.5111 – Computer Networks 2 §  Lecture with more technical details §  Possibility to take practical assignment on this topic

q Come talk to us about… Doctoral thesis, Master thesis Special assignment Seminar ...

Page 31: Green ICT 2011 · T-110.4100 Computer Networks Green ICT 18.10.2011 Matti Siekkinen External sources: • Y. Xiao: Green communications. T-110.5116 lecture. Aalto. 2010.

18 October 2011

Thanks!

Questions?