行動與雲端運算應用 - wkb.idv.t · 雲端運算三層服務...

59
行動與雲端運算應用 Location: 中山醫學大學應資系 Speaker: 麥毅廷 Date:2010/10/01 Contact Info.: [email protected]

Upload: others

Post on 18-Oct-2019

6 views

Category:

Documents


0 download

TRANSCRIPT

行動與雲端運算應用

Location: 中山醫學大學應資系

Speaker: 麥毅廷

Date:2010/10/01Contact Info.: [email protected]

2

Outline

何謂雲端運算 ??雲端運算的起源

雲端架構

雲端未來的發展

雲端研究議題

結論

3

何謂雲端

免費、虛擬化 !! ( 家中電話線有幾條 ?)

雲深不知處 !!

學術網路的便利性 !!

老子曰:「無為而治」

4

網路虛擬化及多連通性

六度分隔理論 (six degrees of separation) ,此理論是假設世界任何角落的兩

個陌生人,只要透過六個人當中介,就可以和彼此拉上關係。這套理論最早是在一九六○年代由兩位學者進行小規模測試,但當時的結果並不夠全面。後來陸續有人以電子郵件對此進行測試,但還是無法全面證實這個理論。

5

網路的開放特性

加拿大金礦公司 (gold corp. inc.) 多倫多子公司 CEO羅伯.麥克伊文 (Rob McEwen)

Idea from MIT online courses $10,000,000 USD award

開放的 idea 造成新的經濟獲益

6

何謂雲端運算

雲端運算是一種具備『大量』且『可擴充』的 IT 相關能力的運算方式,透過『網際網路』技術,並以『服務』的方式提供給外部使用者。

一堆電腦

在幫 YOUYOU 做事

7

何謂雲端運算 (Cont.)

雲端運算不是技術,它是一種概念。

代表的是利用網路使電腦能夠彼此合作或使服務更無遠弗屆。

但是,本身並不代表任何一項資訊科技的技術,它是一種電腦運算的概念,而一種概念就會有許多不同的方式去實踐,這個時候才會有不同的技術衍伸出來。

?

?

8http://www.kavistechnology.com/

何謂雲端運算 (Cont.)

9

Web Email線上掃毒

YouTube線上文件

部落格

etc.

什麼是雲端服務

http://trac.nchc.org.tw/grid/raw-attachment/wiki/YM_Course_2009/Part-14.pdf

10

雲端運算的演化Super

Computer

11

雲端運算的演化

叢集運算Cluster

Computing 通過一組鬆散集成的計算機軟體和 / 或硬體連接起來,緊密地協作完成計算工作

PVM 、 MPI1960~相對於超級電腦有高的性價比

Super Computer

12

雲端運算的演化

分散式運算

把需要進行大量計算的工程數

據分割成小塊,由多台計算機

分別計算,在上傳運算結果後

,將結果統一合併得出數據結

論的科學。

Remote procedure calls SETI@Home, Einstein@Home

ClusterComputing

Distributed Computing

Super Computer

13

雲端運算的演化

格網運算大量異構計算機(通常為桌面)的未用資源( CPU週期和磁盤存儲),將其作為嵌入在分佈式電信基礎設施中的一個虛擬的計算機集群,為解決大規模的計算問題提供了一個模型。

全球計畫 (Globus Project)1990~

GridComputing

ClusterComputing

Distributed Computing

Super Computer

14

公用運算

雲端運算的演化

主要提倡一種理想的企業資訊架構,讓 IT 服務模仿公用服務的方式進行,如供應水、電力、瓦斯。「用多少付多少」以及「隨需即用」

From IBM Grid

Computing

UtilityComputing

ClusterComputing

Distributed Computing

http://www.zdnet.com.tw/enterprise/feature/0,2000085762,20086535-2,00.htm

Super Computer

15

雲端運算的演化

雲端運算

GridComputing

UtilityComputing

Cloud Computing

ClusterComputing

Distributed Computing

透過網路將龐大的運算處理程序自動分拆成無數個較小的子程序,再交由多部伺服器所組成的龐大系統經搜尋、運算分析之後將處理結果回傳給用戶

雲≅網路

Google : MapReduce, GFS 及BigTable

Super Computer

16

雲端運算特色

http://baike.baidu.com/view/1316082.htm

超大規模

虛擬化

高可靠度

高通用性 高擴充性

使用者付費

成本低

17

現有的雲端運算服務者Windows GoogleAmazon Yahooetc.

18

Amazon : Web Service

AWS虛擬化的技術: Amazon EC2Small (Default) $0.10 per hour $0.125 per hourAll Data Transfer $0.10 per GB儲存服務: Amazon S3$0.150 per GB – first 50 TB / month of storage used $0.100 per GB – all data transfer in$0.01 per 1,000 PUT, COPY, POST, or LIST requests觀念: Paying for What You Use

http://eblog.cisanet.org.tw/post/Cloud-Computing.aspx

19

Google : App Engine

網路平台,讓開發者可自行建立網路應用程式於google平台中

提供:

500MB of storageup to 5 million page views a month10 applications per developer account Limit :Language: Python, Javaweb applications

http://www.google.com/support/a/bin/answer.py?hl=b5&answer=175747

20

Windows : Azure

Windows Azure 是一套雲端服務作業系統。作為 Azure 服務平台的開發、服務代管及服務管理環境

.Net servicesSQL servicesLive services

http://tech.cipper.com/index.php/archives/332

21

Yahoo : Hadoop

Apache推出此項目, Yahoo 資助、開發與運用

2006 年開始參與開源的雲端運算框架 Hadoop ,並將其使用在內部服務中。

2008 年:

目前最大的 Hadoop 應用

2千臺伺服器

執行超過 1萬個 Hadoop 虛擬機器

5 Petabytes 的網頁內容

分析 1兆個網路連結

http://mypaper.pchome.com.tw/chris0426/post/1310587013

22

IaaSInfrastructure as a Service

PaaSPlatform as a Service

SaaSSoftware as a Service

雲端運算實體分層

http://www.spoutingshite.com/wp-content/uploads/2008/12/saas_and_cloud_computing.ppt

23

雲端運算實體 (Cloud Computing Ontology)

L. Youseff, M. Butrico, & D.D. Silva, Toward a Unified Ontology of Cloud Computing, Grid Computing Environments Workshop at GCE 2008, Austin, Texas, pp. 1–10.

Amazon Web Service (AWS)

Amazon EC2

Amazon S3

Google AppEngine/Hadoop

Microsoft CSF

Hypervisor

SalesForce.comCRM/ Google Apps

24

虛擬機器架構

25

One Server

Cloud Servers

http://trac.nchc.org.tw/grid/raw-attachment/wiki/jazz/10-05-28/vm.pdf

26

虛擬化架構特性

http://opm.twnic.net.tw/cloud/doc/5.pdf

27

雲端運算三層服務

將基礎架構視為服務 (Infrastructure as a Service, IaaS)企業可租用虛擬的作業環境

例如 server, storage, OS也可依 CPU/Hr, GB等使用量計費

可簡化 IT管理

將平台視為服務 (Platform as a service, PaaS)提供整合設計、開發、測試、部署等功能的「平台」

亦可與電信業者為合作,依使用量進行拆帳

將軟體視為服務 (software as a service, SaaS)透過網路,直接使用線上軟體 ,為 network-centric service 可依訂閱 (subscription) 或計次付費 (pay per use) 方式收費

http://opm.twnic.net.tw/cloud/doc/5.pdf

28

雲端架構

雲端計算其最根本的原則就是「 所有東西都可以是服務 (Everything is Service) 」,而任何服務都能透過網際網路來取得 。

29

雲端架構

使用者為主的需求模式

User is the everything!!

30

雲端的未來發展 !?

31

雲端架構的優點

雲端計算基礎架構提供較大的擴充能力、完整的災難復原,以及驚人的正常運作時間數字

其優點為 :不需安裝任何軟體和硬體

部署時速度更快、風險更低

支援深入自訂項目

自動升級不影響 IT 資源

32

Web 2.0 的特性

透過 web 介面上,以共通且簡易傳輸方式

(如: RSS) ,傳送網頁、影音檔等基本資訊 (如:標題、作者、摘要、關鍵字、網址等 )

這些基本資訊具開放性,能以網友 ( 而非原始網站 ) 為中心來使用

這些基本資訊能夠自由拼貼、改裝,在其他網站或電腦上重新組合 (甚至重新輸出重組過的新資訊 )

33

Web 2.0 的應用實例

維基百科網站 - 提供了一個開放性的知識平台。

部落格網站

例如 : 無名小站

社群網站

例如 : YouTuBe, Revver, MetaCafe, Facebook, etc.

拍賣網站

34

Web1.0, Web2.0, Web3.0主要有哪些區別 ?

Web1.0 : 以靜態、單向閱讀為主

Web2.0 : 以分享為特徵的實時網路

Web3.0 : 提供更多人工智慧服務。

http://www.sr-webs.com/bbs.cgi?no=4791&page=5

35

Web 3.0 的應用實例

紐約時報的商務應用而非技術的角度來看— 規劃一個旅遊計畫: 想去溫暖的地方渡假 預算是美金 3000 有 11歲小孩同行

Web 2.0 的概念:需瀏覽很多的網站

Web 3.0 的概念:提供整體解決方案的套裝行 程計畫

36

使用者端的設備型態

http://mikechen.com/

37

38

雲端運算應用 - Botnet

http://www.botnet.tw/content/confs/BoT2009.PPTs/A6.pdf

39

雲端運算應用 - Botnet (cont.)

Most members of Botnet. Taipei City!! 台北市屬於彊屍電腦約 34萬台 ( 全球 8%)

http://www.botnet.tw/content/confs/BoT2009.PPTs/A1.pdf

40

雲端的隱憂 -stable issue

將服務集中在雲端上便有「將雞蛋放在同一欄」的風險,把網路當電腦使用,將所有動作都在雲端上執行。

例如:雲端上提供了一個類似「辦公室Office 」的應用程式,若我們把儲存修改…等等的動作都在雲端上運作而沒有做另外的備份動作,那一旦此程式停止提供服務了,則資料也就跟著全部消失。

41

雲端的隱憂 -stable issue

若我是利用雲端服務商提供的文字處理程式,一旦該供應商暫停服務,我能做的就只剩下潛心祈求我的檔案有被妥善保存並向客服人員抱怨。

傳統使用狀況

比方說,用個人電腦上的 Office程式寫文章的過程中,假設 Office突然無法執行,只要將文件檔案複製到其他裝有 Office 的電腦上就可以繼續完成文章。

4242

雲端的隱憂 -security issue

Load balancing (scheduling/VM placement)

Security and Fault tolerance

43

Cloud Security Alliance (CSA) Guidelines

http://www.cloudsecurityalliance.org/

Storage Server

Networks Clients

44

How to Explore Information Leakage in Compute Clouds: An Example of Cross-VM Attack

T. Ristenpart et al., “Hey, You, Get Off of My Cloud: Exploring Information Leakage in Third-Party Compute Clouds,” Proceedings of the 16th ACM conference on Computer and communications security (CCS’09), Nov. 2009, pp. 199-212.

45

Motivation

Cloud infrastructures can introduce non-obvious threats from other customers due to the fact that physical resources can be transparently shared between VMs.the adversary may penetrate the isolation between VMs (e.g., via side-channels between VMs) and violate customer confidentiality.

46

Attack Strategy

placement: the adversary arranging to place their malicious VM on the same physical machine as that of a target customer.extraction: extract confidential information (e.g. cached data) using side-channels.

47

Using Amazon EC2 As a Case Study

Can one determine where in the cloud infrastructure an instance is located? Can one easily determine if two instances are co-resident on the same physical machine? Can an adversary launch instances that will be co-resident with other user’s instances? Can an adversary exploit cross-VM information leakage once co-resident?

Yes

Yes

Yes

Yes

48

The EC2 Service

Two regions and each region contains three availability zones.5 Linux instance types:m1.small, c1.medium, m1.large, m1.xlarge, and c1.xlargeEach instance is given Internet connectivity via bothan external IPv4 address and domain name &an internal RFC 1918 private address and domain name.

49

Networking Probing

Utilize nmap, hping,and wget to performnetwork probes to determine liveness ofEC2 instances.Use nmap to perform TCP connect probes (a 3-way hand-shake between a source and target). Use hping to perform TCP SYN traceroutesUse wget to retrieve web pages.

50

Different availability zones use different IP regions

51

Finding: same instance type within the same zone= similar IP regions

Reverse engineered mapping decision heuristic:A /24 inherits any included sampled instance type.A /24 containing a Dom0 IP address only contains Dom0 IP address.All /24’s between two consecutive Dom0 /24’s inherit the former’s associated type.

52

Instance density averages for runs of 20 victim instances and then 20 probe instances, over 10 iterations. The ‘count’ columns specify (respectively) the number of victims which were found by (co-resident with) a probe or missed by the probes. The ‘mean’ columns report the average number of other instances running on the victim instances’ physical machines (before the probes were launched).

53

Inhibiting Side-channel Attacks

Blind techniques to minimize the information that can be leakedcache wiping, random delay insertion, adjusting each machine’s perception of timeCountermeasures for the cache side channelsmay not be really working

Resort to avoiding co-residence

54

Cloud is useful ?

Monitoring and alerting on necessary information.

Understand cloud provider security policies and SLAs (Service level agreements).

http://big5.wallcoo.com/animal/LowellHerrero_farm_cow/images/0LHerrero_ChangeofSeason-iej.jpghttp://www.philsu.tw/index.php/visual-design/244-milk-pakage-design

?

55

Cloud Computing Ontology

http://opm.twnic.net.tw/cloud/doc/5.pdf

56

雲端服務的分類及產業價值鏈

雲端資料中心 ( 上游 ) Infrastructure as a Service, IaaS Cloud datacenter, server, storage, and cloud OS

雲端應用開發平台 ( 中游 ) Platform as a Service, PaaS Development platform, browser OS

雲端服務 (下游 ) Software as a Service, SaaS Gmail, Google doc, ERP/CRM, government cloud, surveillance cloud

雲端用戶

雲端裝置 (rich client, thin client) http://opm.twnic.net.tw/cloud/doc/3.pdf

57

實務議題

http://opm.twnic.net.tw/cloud/doc/5.pdf

58

Research issues

Security and reliabilityLoad balancing

Job schedulingVM placement

Power managementNetwork transmissionVirtualizationMobile Cloud

59

結論

趨勢科技董事長張明正所說:「下一個 20 年,資安業會怎麼走我不知道,但未來的 3 、5 年,「雲端運算」勢必是重點技術!」

個人化服務將是雲端發展的重要概念

行動雲端 => 平民商機