Top Banner
Cloud Computing & NW Traffic Dr.S.Sridhar, Ph.D.(JNUD), RACI(Paris, NICE), RMR(USA), RZFM(Germany) Dean – Cognitive & Central Computing Facility R.V. COLLEGE OF ENGINEERING BANGALORE
39

ccna course 2

Aug 16, 2015

Download

Documents

S Sridhar
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: ccna course 2

Cloud Computing & NW Traffic

Dr.S.Sridhar, Ph.D.(JNUD),RACI(Paris, NICE), RMR(USA),

RZFM(Germany)Dean – Cognitive & Central

Computing FacilityR.V. COLLEGE OF ENGINEERING

BANGALORE

Page 2: ccna course 2
Page 3: ccna course 2

The iSchoolUniversity of Maryland

What is Cloud Computing?

1. Web-scale problems

2. Large data centers

3. Different models of computing

4. Highly-interactive Web applications

Page 4: ccna course 2

The iSchoolUniversity of Maryland

1. Web-Scale Problems Characteristics:

Definitely data-intensive May also be processing intensive

Examples: Crawling, indexing, searching, mining the Web “Post-genomics” life sciences research Other scientific data (physics, astronomers, etc.) Sensor networks Web 2.0 applications …

Page 5: ccna course 2

The iSchoolUniversity of Maryland

How much data traffic? Wayback Machine has 20 TB/month (2006)

Google processes 60TB /Week (2015)

640K ought to be enough for anybody.

Page 6: ccna course 2
Page 7: ccna course 2
Page 8: ccna course 2

The iSchoolUniversity of Maryland

There’s nothing like more data!

s/inspiration/data/g;

Page 9: ccna course 2

The iSchoolUniversity of Maryland

What to do with more data? Answering factoid questions

Pattern matching on the Web Works amazingly well

Learning relations Start with seed instances Search for patterns on the Web Using patterns to find more instances

Who shot Abraham Lincoln? X shot Abraham Lincoln

Birthday-of(Mozart, 1756)Birthday-of(Einstein, 1879)

Wolfgang Amadeus Mozart (1756 - 1791)Einstein was born in 1879

PERSON (DATE –PERSON was born in DATE

Page 10: ccna course 2

The iSchoolUniversity of Maryland

2. Large Data Centers Web-scale problems? Throw more machines at it!

Clear trend: centralization of computing resources in large data centers Necessary ingredients: fiber, juice, and space What do Oregon, Iceland, and abandoned mines have in

common?

Important Issues: Redundancy Efficiency Utilization Management

Page 11: ccna course 2
Page 12: ccna course 2
Page 13: ccna course 2

The iSchoolUniversity of Maryland

Key Technology: Virtualization

Hardware

Operating System

App App App

Traditional Stack

Hardware

OS

App App App

Hypervisor

OS OS

Virtualized Stack

Page 14: ccna course 2

The iSchoolUniversity of Maryland

3. Different Computing Models

Utility computing Why buy machines when you can rent cycles? Examples: Amazon’s EC2, GoGrid, AppNexus

Platform as a Service (PaaS) Give me nice API and take care of the implementation Example: Google App Engine

Software as a Service (SaaS) Just run it for me! Example: Gmail

“Why do it yourself if you can pay someone to do it for you?”

Page 15: ccna course 2

The iSchoolUniversity of Maryland

4. Web Applications A mistake on top of a hack built on sand held together by

duct tape?

What is the nature of software applications? From the desktop to the browser SaaS == Web-based applications Examples: Google Maps, Facebook

How do we deliver highly-interactive Web-based applications? AJAX (asynchronous JavaScript and XML) For better, or for worse…

Page 16: ccna course 2
Page 17: ccna course 2
Page 18: ccna course 2
Page 19: ccna course 2
Page 20: ccna course 2
Page 21: ccna course 2

The iSchoolUniversity of Maryland

Web-Scale Problems? Don’t hold your breath:

Biocomputing Nanocomputing Quantum computing …

It all boils down to… Divide-and-conquer Throwing more hardware at the problem

Simple to understand… a lifetime to master…

Page 22: ccna course 2

The iSchoolUniversity of Maryland

Divide and Conquer

“Work”

w1 w2 w3

r1 r2 r3

“Result”

“worker” “worker” “worker”

Partition

Combine

Page 23: ccna course 2

The iSchoolUniversity of Maryland

Different Workers Different threads in the same core

Different cores in the same CPU

Different CPUs in a multi-processor system

Different machines in a distributed system

Page 24: ccna course 2

The iSchoolUniversity of Maryland

Choices, Choices, Choices Commodity vs. “exotic” hardware

Number of machines vs. processor vs. cores

Bandwidth of memory vs. disk vs. network

Different programming models

Page 25: ccna course 2

The iSchoolUniversity of Maryland

Flynn’s Taxonomy

Instructions

Single (SI) Multiple (MI)

Da

ta

Mu

ltip

le (

MD

)

SISD

Single-threaded process

MISD

Pipeline architecture

SIMD

Vector Processing

MIMD

Multi-threaded Programming

Sin

gle

(S

D)

Page 26: ccna course 2

The iSchoolUniversity of Maryland

SISD

D D D D D D D

Processor

Instructions

Page 27: ccna course 2

The iSchoolUniversity of Maryland

SIMD

D0

Processor

Instructions

D0D0 D0 D0 D0

D1

D2

D3

D4

Dn

D1

D2

D3

D4

Dn

D1

D2

D3

D4

Dn

D1

D2

D3

D4

Dn

D1

D2

D3

D4

Dn

D1

D2

D3

D4

Dn

D1

D2

D3

D4

Dn

D0

Page 28: ccna course 2

The iSchoolUniversity of Maryland

MIMD

D D D D D D D

Processor

Instructions

D D D D D D D

Processor

Instructions

Page 29: ccna course 2

The iSchoolUniversity of Maryland

Memory Typology: Shared

Memory

Processor

Processor Processor

Processor

Page 30: ccna course 2

The iSchoolUniversity of Maryland

Memory Typology: Distributed

MemoryProcessor MemoryProcessor

MemoryProcessor MemoryProcessor

Network

Page 31: ccna course 2

The iSchoolUniversity of Maryland

Memory Typology: Hybrid

MemoryProcessor

Network

Processor

MemoryProcessor

Processor

MemoryProcessor

Processor

MemoryProcessor

Processor

Page 32: ccna course 2

The iSchoolUniversity of Maryland

Parallelization Problems How do we assign work units to workers?

What if we have more work units than workers?

What if workers need to share partial results?

How do we aggregate partial results?

How do we know all the workers have finished?

What if workers die?

What is the common theme of all of these problems?

Page 33: ccna course 2

The iSchoolUniversity of Maryland

General Theme? Parallelization problems arise from:

Communication between workers Access to shared resources (e.g., data)

Thus, we need a synchronization system!

This is tricky: Finding bugs is hard Solving bugs is even harder

Page 34: ccna course 2

The iSchoolUniversity of Maryland

Managing Multiple Workers Difficult because

(Often) don’t know the order in which workers run (Often) don’t know where the workers are running (Often) don’t know when workers interrupt each other

Thus, we need: Semaphores (lock, unlock) Conditional variables (wait, notify, broadcast) Barriers

Still, lots of problems: Deadlock, livelock, race conditions, ...

Moral of the story: be careful! Even trickier if the workers are on different machines

Page 35: ccna course 2

The iSchoolUniversity of Maryland

Patterns for Parallelism Parallel computing has been around for decades

Here are some “design patterns” …

Page 36: ccna course 2

The iSchoolUniversity of Maryland

Master/Slaves

slaves

master

Page 37: ccna course 2

The iSchoolUniversity of Maryland

Producer/Consumer Flow

CP

P

P

C

C

CP

P

P

C

C

Page 38: ccna course 2

The iSchoolUniversity of Maryland

Work Queues

CP

P

P

C

C

shared queue

W W W W W

Page 39: ccna course 2

The iSchoolUniversity of Maryland

Conclusions

For all these traffic ,

Network access has to be smart

NW traffic has to be controlled

Effective security is needed

A lot of research scope is there in the domains of NW access, security algorithms

This area is everlasting !