+ All Categories
Home > Documents > Beowulf Clusters6. Presentation Data Representation : ASCII 5. Session Starts and Stops the Session...

Beowulf Clusters6. Presentation Data Representation : ASCII 5. Session Starts and Stops the Session...

Date post: 10-Jul-2020
Category:
Upload: others
View: 2 times
Download: 0 times
Share this document with a friend
42
Beowulf Clusters Robert Whitten Jr
Transcript
Page 1: Beowulf Clusters6. Presentation Data Representation : ASCII 5. Session Starts and Stops the Session (Logon / Logoff) 4. Transport TCP – reliable / Handshake Transmission Control

Beowulf Clusters

Robert Whitten Jr

Page 2: Beowulf Clusters6. Presentation Data Representation : ASCII 5. Session Starts and Stops the Session (Logon / Logoff) 4. Transport TCP – reliable / Handshake Transmission Control

2

What is beowulf?

• Mythical Old-English hero who defeats Grendel, the green dragon

• Movie starring a CG-animated Angelina Jolie • Cluster architecture

U. S. Department Of Energy 2

Page 3: Beowulf Clusters6. Presentation Data Representation : ASCII 5. Session Starts and Stops the Session (Logon / Logoff) 4. Transport TCP – reliable / Handshake Transmission Control

3

Beowulf cluster history

• 1993 - Becker & Sterling started Beowulf project • 1994 – Becker & Sterling constructed a 16 node

cluster • 1996 – DOE and NASA demonstrate beowulf

cluster that surpasses 1GFlop/s • 1997 – Caltech demonstrates beowulf cluster that

surpasses 10GFlop/s • Present – beowulf clusters are used at many

universities, industries, and government sites

U. S. Department Of Energy 3

Page 4: Beowulf Clusters6. Presentation Data Representation : ASCII 5. Session Starts and Stops the Session (Logon / Logoff) 4. Transport TCP – reliable / Handshake Transmission Control

4

What is a beowulf cluster?

• Collection of stand-alone computer networked together

• Network equipment to connect computers • Software

– Operating system software –  Application software –  Communication software (MPI, OpenMP)

4

Page 5: Beowulf Clusters6. Presentation Data Representation : ASCII 5. Session Starts and Stops the Session (Logon / Logoff) 4. Transport TCP – reliable / Handshake Transmission Control

5

Hardware

• Any old computer will do –  Laptops –  Desktops –  Playstation 3s ??

• Network –  Switches / hubs –  Cable –  Ethernet adapters (most computer already have this,

including the PS3)

U. S. Department Of Energy 5

Page 6: Beowulf Clusters6. Presentation Data Representation : ASCII 5. Session Starts and Stops the Session (Logon / Logoff) 4. Transport TCP – reliable / Handshake Transmission Control

6

TOPOLOGY

Network Topologies

BUS STAR EXTENDED STAR

Wireless RING MESH

Reference: www.teach-ict.com/, uva.ulb.ac.be/

Page 7: Beowulf Clusters6. Presentation Data Representation : ASCII 5. Session Starts and Stops the Session (Logon / Logoff) 4. Transport TCP – reliable / Handshake Transmission Control

7

Star Topology

•  Ethernet •  IEEE 802.3 •  CSMA / CD •  Switch vs. Hub •  Broadcast vs. Cut-Through

•  Cable: CAT V, UTP, RJ45

Page 8: Beowulf Clusters6. Presentation Data Representation : ASCII 5. Session Starts and Stops the Session (Logon / Logoff) 4. Transport TCP – reliable / Handshake Transmission Control

8

Model for Networking

OSI Model – Developed by ISO

O Open I International S System S Standards

I Interconnect O Organization

Page 9: Beowulf Clusters6. Presentation Data Representation : ASCII 5. Session Starts and Stops the Session (Logon / Logoff) 4. Transport TCP – reliable / Handshake Transmission Control

9

OSI Model

Layer Name Mnemonic

7 Application All

6 Presentation People

5 Session Seem

4 Transport To

3 Network Need

2 Data-Link Data

1 Physical Processing

Page 10: Beowulf Clusters6. Presentation Data Representation : ASCII 5. Session Starts and Stops the Session (Logon / Logoff) 4. Transport TCP – reliable / Handshake Transmission Control

10

Data Flow

Reference: http://catalyst.washington.edu/help/computing_fundamentals/networking/img/osi_model.jpg

Page 11: Beowulf Clusters6. Presentation Data Representation : ASCII 5. Session Starts and Stops the Session (Logon / Logoff) 4. Transport TCP – reliable / Handshake Transmission Control

11

The Model - Examples

Layer Description

7. Application HTTP, FTP, SMTP, POP3, HTTPS

6. Presentation Data Representation : ASCII

5. Session Starts and Stops the Session (Logon / Logoff)

4. Transport TCP – reliable / Handshake Transmission Control Protocol

UDP – unreliable (streaming data – mp3) User Datagram Protocol

3. Network IP – Internet Protocol , Router, Best Path Selection

2. Data-Link MAC (Media Access Control) Sub layer – Ethernet Switch

LLC (Logical Link Control) Sub layer

1.  Physical Wire , Cable, The bits going across the wire, The NIC

Page 12: Beowulf Clusters6. Presentation Data Representation : ASCII 5. Session Starts and Stops the Session (Logon / Logoff) 4. Transport TCP – reliable / Handshake Transmission Control

12

Basic Network Diagram

Page 13: Beowulf Clusters6. Presentation Data Representation : ASCII 5. Session Starts and Stops the Session (Logon / Logoff) 4. Transport TCP – reliable / Handshake Transmission Control

13

TCP/IP: Addressing Scheme

IP = Internet Protocol Protocol is What? Set of Rules

1. Dotted Decimal Notation 2. No Decimal Number can be >255 3. Must Have Subnet Mask 4. Broken Down into Classes based on High

order of bits in the first octet.

Page 14: Beowulf Clusters6. Presentation Data Representation : ASCII 5. Session Starts and Stops the Session (Logon / Logoff) 4. Transport TCP – reliable / Handshake Transmission Control

14

Dotted Decimal Notation

Example of IP address: 192.16.32.5 255.255.255.0 IP SM Dotted . Decimal . Notation . Rule Remember – 4 Octets , a Decimal number that

represents the value of an 8 bit Binary number

Page 15: Beowulf Clusters6. Presentation Data Representation : ASCII 5. Session Starts and Stops the Session (Logon / Logoff) 4. Transport TCP – reliable / Handshake Transmission Control

15

No Number can be 255 Sample IP Address:

192.16.32.5 255.255.255.0 IP SM

27

128 +

26

64 +

25

0 +

24

0 +

23

0 +

22

0 +

21

0 +

20

0 =

192

1 1 0 0 0 0 0 0

27

128 +

26

64 +

25

32 +

24

16 +

23

8 +

22

4 +

21

2 +

20

1 =

255

1 1 1 1 1 1 1 1

The first Octets = 192 & 255 What is 192 in Binary? What is 255 in Binary?

Page 16: Beowulf Clusters6. Presentation Data Representation : ASCII 5. Session Starts and Stops the Session (Logon / Logoff) 4. Transport TCP – reliable / Handshake Transmission Control

16

IP Address Classes Class 1st Octet High Order

Of Bits

Number Bits Used for Network

Default Subnet Mask

Class A

1-126 00000001 01111110

8 255.0.0.0

Class B 128 - 191 10000000 10111111

16 255.255.0.0

Class C 192 -223 11000000 11011111

24 255.255.255.0

Class D 224 - 239 11100000 11101111

Reserved

Page 17: Beowulf Clusters6. Presentation Data Representation : ASCII 5. Session Starts and Stops the Session (Logon / Logoff) 4. Transport TCP – reliable / Handshake Transmission Control

17

SAMPLE IP Address: Sample IP Address:

192.16.32.5 255.255.255.0 N H

By Performing a Binary AND Function IP Address AND Subnet Mask

11000000.00010000.00100000.00000101 11111111.11111111.11111111.00000000

11000000.00010000.00100000.00000000 192 . 16. 32. 0

Page 18: Beowulf Clusters6. Presentation Data Representation : ASCII 5. Session Starts and Stops the Session (Logon / Logoff) 4. Transport TCP – reliable / Handshake Transmission Control

18

Sample IP Address:

11000000.00010000.00100000.00000101 11111111.11111111.11111111.00000000

11000000.00010000.00100000.00000000 192 . 16. 32. 0 192.16.32.0 = Network ID 192.16.32.255 = Broadcast ID 192.16.32. 1 – 254 = Host Addresses

Page 19: Beowulf Clusters6. Presentation Data Representation : ASCII 5. Session Starts and Stops the Session (Logon / Logoff) 4. Transport TCP – reliable / Handshake Transmission Control

19

MAC Mini Network

Page 20: Beowulf Clusters6. Presentation Data Representation : ASCII 5. Session Starts and Stops the Session (Logon / Logoff) 4. Transport TCP – reliable / Handshake Transmission Control

20

MAC Mini Network

Keyboard Mouse Monitor

Ethernet

Power

Page 21: Beowulf Clusters6. Presentation Data Representation : ASCII 5. Session Starts and Stops the Session (Logon / Logoff) 4. Transport TCP – reliable / Handshake Transmission Control

21

MAC Mini Network

Page 22: Beowulf Clusters6. Presentation Data Representation : ASCII 5. Session Starts and Stops the Session (Logon / Logoff) 4. Transport TCP – reliable / Handshake Transmission Control

22

Steps to Configuring the MAC Mini’s

1) Create Accounts a. Name Machine

b. User Name c. Password 3) Configure IP Address

2) System Preferences a. File Sharing b. Remote Sharing

c. Energy Saver off d. Firewall off

Page 23: Beowulf Clusters6. Presentation Data Representation : ASCII 5. Session Starts and Stops the Session (Logon / Logoff) 4. Transport TCP – reliable / Handshake Transmission Control

23

Configure System – Set hostname

Click on Sharing Name: ARC1, ARC2, etc

Page 24: Beowulf Clusters6. Presentation Data Representation : ASCII 5. Session Starts and Stops the Session (Logon / Logoff) 4. Transport TCP – reliable / Handshake Transmission Control

24

Configure System – Add user

Click on Accounts Click on lock to unlock Click on +

Page 25: Beowulf Clusters6. Presentation Data Representation : ASCII 5. Session Starts and Stops the Session (Logon / Logoff) 4. Transport TCP – reliable / Handshake Transmission Control

25

Configure IP Address

Click on Network Click on Ethernet

Page 26: Beowulf Clusters6. Presentation Data Representation : ASCII 5. Session Starts and Stops the Session (Logon / Logoff) 4. Transport TCP – reliable / Handshake Transmission Control

26

Configure IP Address Machine   IP  Address   Subnet  Mask  

ARC1   172.30.220.1   255.255.255.0  

ARC2   172.30.220.2   255.255.255.0  

ARC3   172.30.220.3   255.255.255.0  

ARC4   172.30.220.4   255.255.255.0  

ARC5   172.30.220.5   255.255.255.0  

ARC6   172.30.220.6   255.255.255.0  

Page 27: Beowulf Clusters6. Presentation Data Representation : ASCII 5. Session Starts and Stops the Session (Logon / Logoff) 4. Transport TCP – reliable / Handshake Transmission Control

27

Server vs. Nodes

In the next steps, we will first setup the Server (ARC1) . Then to setup the nodes all we need to do is a secure copy to the

nodes.

Page 28: Beowulf Clusters6. Presentation Data Representation : ASCII 5. Session Starts and Stops the Session (Logon / Logoff) 4. Transport TCP – reliable / Handshake Transmission Control

28

Configure a node

1.  Setup Host Files 2.  Setup SSH 3.  Install & Configure GCC 4.  Install & Configure

MPICH 5.  Configure MPI to work

with SSH 6.  Test SSH, GCC and MPI

Page 29: Beowulf Clusters6. Presentation Data Representation : ASCII 5. Session Starts and Stops the Session (Logon / Logoff) 4. Transport TCP – reliable / Handshake Transmission Control

29

Setup Host Files

cd to root (cd /) Type: sudo pico /etc/hosts

Page 30: Beowulf Clusters6. Presentation Data Representation : ASCII 5. Session Starts and Stops the Session (Logon / Logoff) 4. Transport TCP – reliable / Handshake Transmission Control

30

Setup Host Files

Add the following at the bottom of the file: 172.30.220.1 ARC1 172.30.220.2 ARC2 172.30.220.3 ARC3 172.30.220.4 ARC4 172.30.220.5 ARC5 172.30.220.6 ARC6

Page 31: Beowulf Clusters6. Presentation Data Representation : ASCII 5. Session Starts and Stops the Session (Logon / Logoff) 4. Transport TCP – reliable / Handshake Transmission Control

31

Setting up SSH

What is SSH? Why do we Need it?

SSH Encryrption Port 22

Page 32: Beowulf Clusters6. Presentation Data Representation : ASCII 5. Session Starts and Stops the Session (Logon / Logoff) 4. Transport TCP – reliable / Handshake Transmission Control

32

Setting up SSH

We will be modifying 3 files: 1.  /etc/ssh_config

2.  /etc/sshd_config

3.  /etc/hosts.equiv

Page 33: Beowulf Clusters6. Presentation Data Representation : ASCII 5. Session Starts and Stops the Session (Logon / Logoff) 4. Transport TCP – reliable / Handshake Transmission Control

33

Setting up SSH Type: sudo pico /etc/

ssh_config host *

HostbasedAuthentication yes

EnableSSHKeysign

yes

Page 34: Beowulf Clusters6. Presentation Data Representation : ASCII 5. Session Starts and Stops the Session (Logon / Logoff) 4. Transport TCP – reliable / Handshake Transmission Control

34

Setting up SSH

Type: sudo pico /etc/sshd_config HostbasedAuthentication yes

Page 35: Beowulf Clusters6. Presentation Data Representation : ASCII 5. Session Starts and Stops the Session (Logon / Logoff) 4. Transport TCP – reliable / Handshake Transmission Control

35

Setting up SSH

Type: sudo pico /etc/hosts.equiv Add the following hostnames: ARC1 ARC2 ARC3 ARC4 ARC5 ARC6

Page 36: Beowulf Clusters6. Presentation Data Representation : ASCII 5. Session Starts and Stops the Session (Logon / Logoff) 4. Transport TCP – reliable / Handshake Transmission Control

36

Install and Configure MPICH

What is MPICH? Why do we Need MPICH?

Reference: http://en.wikipedia.org/wiki/MPICH

Page 37: Beowulf Clusters6. Presentation Data Representation : ASCII 5. Session Starts and Stops the Session (Logon / Logoff) 4. Transport TCP – reliable / Handshake Transmission Control

37

Download MPICH

http://www.mcs.anl.gov/research/projects/mpich2/downloads/index.php?s=downloads

Page 38: Beowulf Clusters6. Presentation Data Representation : ASCII 5. Session Starts and Stops the Session (Logon / Logoff) 4. Transport TCP – reliable / Handshake Transmission Control

38

Install MPICH Type: cd /arc_share/mpich1.2.7p1

./configure - -with-device=ch_p4 – prefix=/usr/local/mpich-1.2.5/ch_p4 -rsh=ssh

Page 39: Beowulf Clusters6. Presentation Data Representation : ASCII 5. Session Starts and Stops the Session (Logon / Logoff) 4. Transport TCP – reliable / Handshake Transmission Control

39

Page 40: Beowulf Clusters6. Presentation Data Representation : ASCII 5. Session Starts and Stops the Session (Logon / Logoff) 4. Transport TCP – reliable / Handshake Transmission Control

40

Building the Cluster

Modify the file that contains our hosts: cd /arc_share/mpich-1.2.7p1/util/machines/ sudo pico machines.freebsd_ppc Change the list to ARC1 through ARC6 and remove

the .local Ctrl o to write Ctrl x to exit

Page 41: Beowulf Clusters6. Presentation Data Representation : ASCII 5. Session Starts and Stops the Session (Logon / Logoff) 4. Transport TCP – reliable / Handshake Transmission Control

41

Machines File

Page 42: Beowulf Clusters6. Presentation Data Representation : ASCII 5. Session Starts and Stops the Session (Logon / Logoff) 4. Transport TCP – reliable / Handshake Transmission Control

42

Questions?

U. S. Department Of Energy 42

http://www.nccs.gov

U. S. Department Of Energy 42 Oak Ridge National Laboratory


Recommended