networks part 1: naming nyu-poly: hswp - 2014 instructor: mandy galante

19
Networks Part 1: Naming NYU-Poly: HSWP - 2014 Instructor: Mandy Galante

Upload: maude-bradley

Post on 18-Jan-2016

214 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Networks Part 1: Naming NYU-Poly: HSWP - 2014 Instructor: Mandy Galante

NetworksPart 1: Naming

NYU-Poly: HSWP - 2014Instructor: Mandy Galante

Page 2: Networks Part 1: Naming NYU-Poly: HSWP - 2014 Instructor: Mandy Galante

Networking = Sharing Info

Humans communicate using 2 basic methodsSpeaking - in person, in a group, on the phoneWriting - letter, email, text message, notes on the board

The methods have rules to make it work smoothlySpeaking: Take turns, raise your hand, no yellingWriting: Addressing, salutation, punctuation.

Network communications have rules tooRules for finding devices on the networkRules for making connectionsRules for each type of info being shared

M. Galante_CSAW HSWP 2014

Page 3: Networks Part 1: Naming NYU-Poly: HSWP - 2014 Instructor: Mandy Galante

Harry wants to send a message to Sally but they are not the only users of the cable.

Harry SallyFrank

Joan Tom

? ?

? ?

Finding Devices in a Network

What are the chances Harry’s

message will actually get

to Sally?

M. Galante_CSAW HSWP 2014

Page 4: Networks Part 1: Naming NYU-Poly: HSWP - 2014 Instructor: Mandy Galante

Finding Devices in a Network

Rule #1 – your device must be unique

Devices can have more than one NIC . . . BUT each one must be unique

MAC Address

• There must be an addressing system, a way of uniquely identifying computers and interfaces.

VOCAB – An “interface” on a device is a component that acts as a door for connections. Examples: - a VGA port is an interface to the monitor- a USB port can be an interface to the printer- a NIC is a Network Interface Card

M. Galante_CSAW HSWP 2014

Page 5: Networks Part 1: Naming NYU-Poly: HSWP - 2014 Instructor: Mandy Galante

MAC address

Media Access Control Address = unique identifier for each networking device

also known as the physical address of a device

represented as 12 hexadecimal digits

00:24:E8:83:68:96 OR 00-C0-CA-52-38-8C

A MAC address is like a SS #

- not changeable, unique to you

M. Galante_CSAW HSWP 2014

Page 6: Networks Part 1: Naming NYU-Poly: HSWP - 2014 Instructor: Mandy Galante

0 0 C 0 C A 2 3 8 8 C5

The first 6 digits of the MAC address represent the device manufacturer and is known as the OUI

The manufacturer is responsible for uniquely assigning the last 6 digits to the device

Organizational Unique Identifier (OUI)

We can use the MAC address to look up who makes a device

Example: 00-C0-CA = Alfa & 00:24:E8 = Dell

M. Galante_CSAW HSWP 2014

Page 7: Networks Part 1: Naming NYU-Poly: HSWP - 2014 Instructor: Mandy Galante

With MAC addresses, we can uniquely identify each device or interface on the network.

Finding Devices in a Network

Alert – Mac

Address

can be

spoofed!

M. Galante_CSAW HSWP 2014

Page 8: Networks Part 1: Naming NYU-Poly: HSWP - 2014 Instructor: Mandy Galante

Finding Devices in a Network

Rule #2 – you must “belong” to a network

Joining a network provides you with lots of cool stuff:Access to shared filesAccess to devices like printers or scannersAccess to Internet Service Providers

When you join a network you become connected

Great! How do I join?! Get an IP Address

IP Address

M. Galante_CSAW HSWP 2014

Page 9: Networks Part 1: Naming NYU-Poly: HSWP - 2014 Instructor: Mandy Galante

IP address

Internet Protocol Address = TEMPORARY identifier for each interface

Must be unique among the connected devices on that network

also known as the logical address of a device

An IP address is like an ID card - changeable

- can belong to many organizations

- unique within that organization

M. Galante_CSAW HSWP 2014

Page 10: Networks Part 1: Naming NYU-Poly: HSWP - 2014 Instructor: Mandy Galante

IP AddressThere are two types of IP addressesIPv4 –the old kind, but it is still the most commonly used.

The IPV4 format is 32 bits represented in 4 sections separated by dots. (Dotted decimal notation). Each section is called an octet and can hold a decimal number from 0 to 255.

Example: 192.168.55.32

IPv6 –the new kind, world is trying to convert slowly to this.

The IPV6 format is 128 bits represented in 8 sections separated by colons. Each section can hold a hexadecimal number from 0000 to FFFF.

Ex: 2001:0DB8:0000:0000:0008:8000:0000:417A

M. Galante_CSAW HSWP 2014

Page 11: Networks Part 1: Naming NYU-Poly: HSWP - 2014 Instructor: Mandy Galante

PrivateAn address series that can

be used in many orgs

Address can begin with:10 or 172.16 – 172.31 or 192.168

Must ‘piggyback’ on a public address to get to the Internet this is called NAT (Network Address Translation)

PublicThe addresses are unique

in the entire world

Must be used to go on the Internet

There aren’tany more IPv4public addresses

IPv4 AddressCan be Public or Private

M. Galante_CSAW HSWP 2014

Page 12: Networks Part 1: Naming NYU-Poly: HSWP - 2014 Instructor: Mandy Galante

Getting an IP addressYou can get an IP address statically

- add the IP address yourself to your deviceOR

You can get an IP address dynamically - let a network server assign you an IP address - this is called DHCP (Dynamic Host Configuration Protocol)

Every time your device joins a new network, it will get a new IP address.Home network - could be 192.168.1.54School network - could be 10.0.1.37Starbucks network - could be 192.168.0.11

IMPORTANT! IP and MAC addresses work together

M. Galante_CSAW HSWP 2014

Page 13: Networks Part 1: Naming NYU-Poly: HSWP - 2014 Instructor: Mandy Galante

Find a device = ARP

To send data a device must know BOTH the IP and the MAC address of the receiving device.

ARP (Address Resolution Protocol) is a tool used by devices on the same network to find the MAC address associated with an IP address

One device broadcasts an ARP request to all the devices on the network. It’s sort of like yelling to see if you can find someone.

The device with the IP address responds with its MAC address. Let’s see an example:

M. Galante_CSAW HSWP 2014

Page 14: Networks Part 1: Naming NYU-Poly: HSWP - 2014 Instructor: Mandy Galante

Sally

Bob

10.0.0.3C0:43:1E:00:57:D3

Hey, everybodyWho is

10.0.0.1?

I am!!!

A1:FF:32:5A:EC:AA

Ok – I’ll put that in my ARP table

Internet address Physical address

10.0.0.1 A1:FF:32:5A:EC:AA

How ARP works

Page 15: Networks Part 1: Naming NYU-Poly: HSWP - 2014 Instructor: Mandy Galante

Finding Devices in a Network

There is one naming method for computers that is “human readable”

FQDN = Fully Qualified Domain Nameformat = host.yourdomain.top-leveldomain

Top-level domain = .com .net .edu .gov .org (etc)

Examplesisis.poly.edu help.ubuntu.comwww.yahoo.com kanuga.rbrdomain.local

A data packet is delivered by mapping a FQDN to it’s IP address and then to it’s MAC address.

FQDN

M. Galante_CSAW HSWP 2014

Page 16: Networks Part 1: Naming NYU-Poly: HSWP - 2014 Instructor: Mandy Galante

M. Galante_CSAW Boot Camp 2013

Activity #1

Finding your computer names

Page 17: Networks Part 1: Naming NYU-Poly: HSWP - 2014 Instructor: Mandy Galante

M. Galante_CSAW Boot Camp 2013

Using the Terminal

To open the terminal in WindowsStart | cmd Enter

To open the terminal in MACSpotlight | terminal Enter

Page 18: Networks Part 1: Naming NYU-Poly: HSWP - 2014 Instructor: Mandy Galante

TCP/IP tools

Use handout to find out info about your own laptop

Take a paper tag and use a pencil to fill in the info

You will be using these terminal commands:

Command What info it provides

ipconfig /all MAC address IP addressComputer name + Primary DNS Suffix = FQDN

ping Can I successfully connect to a certain device?

arp -a What is the MAC address of devices I previously have connected to?

Nslookup IP address of a FQDN

M. Galante_CSAW HSWP 2014

Page 19: Networks Part 1: Naming NYU-Poly: HSWP - 2014 Instructor: Mandy Galante

Use of these materials is free with attribution.

Questions or comments: [email protected]

M. Galante_CSAW HSWP 2014