networking for the cloud dba - proligence · 2018-04-24 · networking for the cloud dba arup nanda...

38
Networking for the Cloud DBA Arup Nanda Longtime Oracle DBA And Explorer of New Things

Upload: others

Post on 01-Apr-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Networking for the Cloud DBA - Proligence · 2018-04-24 · Networking for the Cloud DBA Arup Nanda Longtime Oracle DBA And Explorer of New Things

Networking for the Cloud DBA

Arup Nanda

Longtime Oracle DBAAnd

Explorer of New Things

Page 2: Networking for the Cloud DBA - Proligence · 2018-04-24 · Networking for the Cloud DBA Arup Nanda Longtime Oracle DBA And Explorer of New Things

Docker Demystified for Beginners2

Most Important Skill for a Cloud DBA

Page 3: Networking for the Cloud DBA - Proligence · 2018-04-24 · Networking for the Cloud DBA Arup Nanda Longtime Oracle DBA And Explorer of New Things

Docker Demystified for Beginners3

Netmask

Page 4: Networking for the Cloud DBA - Proligence · 2018-04-24 · Networking for the Cloud DBA Arup Nanda Longtime Oracle DBA And Explorer of New Things

Docker Demystified for Beginners4

Broadcast Address

Page 5: Networking for the Cloud DBA - Proligence · 2018-04-24 · Networking for the Cloud DBA Arup Nanda Longtime Oracle DBA And Explorer of New Things

Docker Demystified for Beginners5

Network ID IP Address≠

Page 6: Networking for the Cloud DBA - Proligence · 2018-04-24 · Networking for the Cloud DBA Arup Nanda Longtime Oracle DBA And Explorer of New Things

Docker Demystified for Beginners6

Most Important Skill for a Cloud DBA isNetworking

Page 7: Networking for the Cloud DBA - Proligence · 2018-04-24 · Networking for the Cloud DBA Arup Nanda Longtime Oracle DBA And Explorer of New Things

Docker Demystified for Beginners7

Why Networking?

What’s Different in Cloud

How are IP Addresses Used

What is Subnetting?

What is NetMask

How to apply Network Concepts in the Cloud.

Page 8: Networking for the Cloud DBA - Proligence · 2018-04-24 · Networking for the Cloud DBA Arup Nanda Longtime Oracle DBA And Explorer of New Things

What is a Network?

• IP Address

• Network address

• How many IP

Docker Demystified for Beginners8

Page 9: Networking for the Cloud DBA - Proligence · 2018-04-24 · Networking for the Cloud DBA Arup Nanda Longtime Oracle DBA And Explorer of New Things

Docker Demystified for Beginners9

6Grenier Dr Danbury CT USA

Page 10: Networking for the Cloud DBA - Proligence · 2018-04-24 · Networking for the Cloud DBA Arup Nanda Longtime Oracle DBA And Explorer of New Things

Docker Demystified for Beginners10

6 Grenier Dr Danbury CT USA

Page 11: Networking for the Cloud DBA - Proligence · 2018-04-24 · Networking for the Cloud DBA Arup Nanda Longtime Oracle DBA And Explorer of New Things

Docker Demystified for Beginners11

6Grenier Dr

DanburyCT

USA

Page 12: Networking for the Cloud DBA - Proligence · 2018-04-24 · Networking for the Cloud DBA Arup Nanda Longtime Oracle DBA And Explorer of New Things

Docker Demystified for Beginners12

6Grenier Dr

DanburyCT

USA

192 168 1 101. . .

Page 13: Networking for the Cloud DBA - Proligence · 2018-04-24 · Networking for the Cloud DBA Arup Nanda Longtime Oracle DBA And Explorer of New Things

Docker Demystified for Beginners13

192.168.111.101

192.168.111.101

192.168.111.101

Page 14: Networking for the Cloud DBA - Proligence · 2018-04-24 · Networking for the Cloud DBA Arup Nanda Longtime Oracle DBA And Explorer of New Things

Docker Demystified for Beginners14

192.168.111.101

Network ID

192.168.111.100

192.168.111.99

Page 15: Networking for the Cloud DBA - Proligence · 2018-04-24 · Networking for the Cloud DBA Arup Nanda Longtime Oracle DBA And Explorer of New Things

Docker Demystified for Beginners15

192.168.111. 0

Network Identifier

Host Identifier

Network Address

192.168.111.101

192.168. 0. 0

Page 16: Networking for the Cloud DBA - Proligence · 2018-04-24 · Networking for the Cloud DBA Arup Nanda Longtime Oracle DBA And Explorer of New Things

Docker Demystified for Beginners16

192.168.111.101

Does not tell you the network address

How do you know where to “cut”?

Page 17: Networking for the Cloud DBA - Proligence · 2018-04-24 · Networking for the Cloud DBA Arup Nanda Longtime Oracle DBA And Explorer of New Things

Docker Demystified for Beginners17

11111111.11111111.11111111.00000000

82

4 2 1 0

16 8 4 2 13264128

163264

1 1 1 1 1111

= 256

Page 18: Networking for the Cloud DBA - Proligence · 2018-04-24 · Networking for the Cloud DBA Arup Nanda Longtime Oracle DBA And Explorer of New Things

Docker Demystified for Beginners18

192.168.111.101

255.255.255. 0

255.255. 0. 0

Subnet MaskOr Netmask

Page 19: Networking for the Cloud DBA - Proligence · 2018-04-24 · Networking for the Cloud DBA Arup Nanda Longtime Oracle DBA And Explorer of New Things

Docker Demystified for Beginners19

192.168.111.101

255.255.255. 0

11111111.11111111.11111111.00000000

8 bits 8 bits 8 bits 0 bits

= 24 bits192.168.111.101/24

Page 20: Networking for the Cloud DBA - Proligence · 2018-04-24 · Networking for the Cloud DBA Arup Nanda Longtime Oracle DBA And Explorer of New Things

Class of Networks

Docker Demystified for Beginners20

Class A 1.0.0.1 – 126.255.255.254 16 million hosts

Class B 128.1.0.1 – 126.255.255.254 16,000 networks65,000 hosts each

Class C 192.0.1.1 – 223.255.254.254 2 million networks254 hosts each

Class D 224.0.0.0 – 239.255.255.255 Reserved for multicast

Class E 240.0.0.0 – 254.255.255.254 Reserved for research

What about 127.x.x.x?

127.x.x.x is loopback 254.254.254.254 is general broadcast

Page 21: Networking for the Cloud DBA - Proligence · 2018-04-24 · Networking for the Cloud DBA Arup Nanda Longtime Oracle DBA And Explorer of New Things

Typical Routing

Docker Demystified for Beginners21

166.70.10.0

166.70.10.0

Network Address

We need twonetworks

166.70.11.0

Page 22: Networking for the Cloud DBA - Proligence · 2018-04-24 · Networking for the Cloud DBA Arup Nanda Longtime Oracle DBA And Explorer of New Things

Docker Demystified for Beginners22

192.168.111.101/24

Classless Inter-Domain Routing

CIDR

192.168.111.101

Mask: 255.255.255.0

Page 23: Networking for the Cloud DBA - Proligence · 2018-04-24 · Networking for the Cloud DBA Arup Nanda Longtime Oracle DBA And Explorer of New Things

Docker Demystified for Beginners23

255.255.255.128

16 8 4 2 132641280 0 0 0 0001

= 128

8 + 8 + 8 + 1 = 25 bits

255.255.255.0

166.70.10.101 166.70.10.101/25

Page 24: Networking for the Cloud DBA - Proligence · 2018-04-24 · Networking for the Cloud DBA Arup Nanda Longtime Oracle DBA And Explorer of New Things

CIDR Splitting

Docker Demystified for Beginners24

166.70.10.0

Network Address

Network Address 166.70.10.0Subnet 1

Subnet Mask 255.255.255.128

Or in CIDR 166.70.10.0/25

Network Address 166.70.10.128Subnet 2

Subnet Mask 255.255.255.128

Or in CIDR 166.70.10.128/25

We need twonetworks

Page 25: Networking for the Cloud DBA - Proligence · 2018-04-24 · Networking for the Cloud DBA Arup Nanda Longtime Oracle DBA And Explorer of New Things

Docker Demystified for Beginners25

10100110.01000110.00001010.00010111

166.70.10.23/27

166.70.10.12/27

10100110.01000110.00001010.00001200

166.70.10.84/27

IP

Binary

IP

Binary

IP

10100110.01000110.00001010.01010100Binary

Page 26: Networking for the Cloud DBA - Proligence · 2018-04-24 · Networking for the Cloud DBA Arup Nanda Longtime Oracle DBA And Explorer of New Things

Docker Demystified for Beginners26

Our assigned network address is 166.70.10.0

Objective

3 Subnets

1st Subnet = 50 hosts

2nd Subnet = 15 hosts

3rd Subnet = 15 hosts.

Class C Network will

give 254 hosts; but

not 3 subnets.

We have to carve

this up into 3

subnets. CIDR

Page 27: Networking for the Cloud DBA - Proligence · 2018-04-24 · Networking for the Cloud DBA Arup Nanda Longtime Oracle DBA And Explorer of New Things

Docker Demystified for Beginners27

1st Subnet with 50 hosts 166.70.10.0

3 Subnets

1st Subnet = 50 hosts

2nd Subnet = 15 hosts

3rd Subnet = 15 hosts

Page 28: Networking for the Cloud DBA - Proligence · 2018-04-24 · Networking for the Cloud DBA Arup Nanda Longtime Oracle DBA And Explorer of New Things

Docker Demystified for Beginners28

16 8 4 2 13264128

= 192

255.255.255.0

255.255.255.192 Mask

0 0 0 0 0011

2 bits

2888 CIDR

= 63

= 26

Page 29: Networking for the Cloud DBA - Proligence · 2018-04-24 · Networking for the Cloud DBA Arup Nanda Longtime Oracle DBA And Explorer of New Things

Docker Demystified for Beginners29

1st Subnet with 50 hosts 166.70.10.0/26

255.255.255.192Mask

2nd Subnet with 15 hosts 166.70.10.64

166.70.10.63Broadcast

3 Subnets

1st Subnet = 50 hosts

2nd Subnet = 15 hosts

3rd Subnet = 15 hosts

Page 30: Networking for the Cloud DBA - Proligence · 2018-04-24 · Networking for the Cloud DBA Arup Nanda Longtime Oracle DBA And Explorer of New Things

Docker Demystified for Beginners30

16 8 4 2 13264128= 15= 240

255.255.255.240 Mask

1 0 0 0 0111

4 bits

4888 CIDR= 28

Page 31: Networking for the Cloud DBA - Proligence · 2018-04-24 · Networking for the Cloud DBA Arup Nanda Longtime Oracle DBA And Explorer of New Things

Docker Demystified for Beginners31

1st Subnet with 50 hosts 166.70.10.0/26

255.255.255.192Mask

2nd Subnet with 15 hosts 166.70.10.64/28

166.70.10.63Broadcast

Mask

166.70.10.79Broadcast

255.255.255.240

3 Subnets

1st Subnet = 50 hosts

2nd Subnet = 15 hosts

3rd Subnet = 15 hosts

Page 32: Networking for the Cloud DBA - Proligence · 2018-04-24 · Networking for the Cloud DBA Arup Nanda Longtime Oracle DBA And Explorer of New Things

Docker Demystified for Beginners32

2nd Subnet with 15 hosts 166.70.10.64/28

1st Subnet with 50 hosts 166.70.10.0/26

255.255.255.192Mask 166.70.10.63Broadcast

Mask

166.70.10.79Broadcast

255.255.255.240

3rd Subnet with 15 hosts 166.70.10.80/28

Mask

166.70.10.95Broadcast

255.255.255.240

3 Subnets

1st Subnet = 50 hosts

2nd Subnet = 15 hosts

3rd Subnet = 15 hosts

Page 33: Networking for the Cloud DBA - Proligence · 2018-04-24 · Networking for the Cloud DBA Arup Nanda Longtime Oracle DBA And Explorer of New Things

Docker Demystified for Beginners33

1st Subnet with 50 hosts 166.70.10.0/26

255.255.255.192Mask

166.70.10.63Broadcast

2nd Subnet with 15 hosts 166.70.10.64/28

255.255.255.240Mask

166.70.10.79Broadcast

3rd Subnet with 15 hosts 166.70.10.80/28

255.255.255.240Mask

166.70.10.95Broadcast

Our assigned network address is 166.70.10.0

Range: 166.70.10.1-62 Range: 166.70.10.64-78

Range: 166.70.10.80-94

Page 34: Networking for the Cloud DBA - Proligence · 2018-04-24 · Networking for the Cloud DBA Arup Nanda Longtime Oracle DBA And Explorer of New Things

Docker Demystified for Beginners34

host1

host2

host3 host1

host2

Virtual Private Cloud

Page 35: Networking for the Cloud DBA - Proligence · 2018-04-24 · Networking for the Cloud DBA Arup Nanda Longtime Oracle DBA And Explorer of New Things

Docker Demystified for Beginners35

host1

host2

host3 host1

host2

VPC 2VPC 1

Page 36: Networking for the Cloud DBA - Proligence · 2018-04-24 · Networking for the Cloud DBA Arup Nanda Longtime Oracle DBA And Explorer of New Things

Docker Demystified for Beginners36

host1

host2

host3 host1

host2

Elastic IP

Page 37: Networking for the Cloud DBA - Proligence · 2018-04-24 · Networking for the Cloud DBA Arup Nanda Longtime Oracle DBA And Explorer of New Things

What you learned today

• IP Addressing

• Class of Networks

• Subnetting

• Subnet Masking

• CIDR Notation

• Virtual Private Cloud

• Elastic IP

Docker Demystified for Beginners37

Page 38: Networking for the Cloud DBA - Proligence · 2018-04-24 · Networking for the Cloud DBA Arup Nanda Longtime Oracle DBA And Explorer of New Things

Thank You!

Blog: arup.blogspot.comTweeter: @ArupNandaFacebook.com/ArupKNandaGoogle Plus: +ArupNanda

38Docker Demystified for Beginners