cisco networking academy chabot college elec 99.05 addressing & routing foundation concepts

33
CISCO NETWORKING ACADEMY CISCO NETWORKING ACADEMY Chabot College Chabot College ELEC 99.05 ELEC 99.05 Addressing & Routing Foundation Concepts Addressing & Routing Foundation Concepts

Upload: madlyn-byrd

Post on 28-Dec-2015

215 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: CISCO NETWORKING ACADEMY Chabot College ELEC 99.05 Addressing & Routing Foundation Concepts

CISCO NETWORKING ACADEMYCISCO NETWORKING ACADEMY

Chabot CollegeChabot College

ELEC 99.05ELEC 99.05Addressing & Routing Foundation ConceptsAddressing & Routing Foundation Concepts

Page 2: CISCO NETWORKING ACADEMY Chabot College ELEC 99.05 Addressing & Routing Foundation Concepts

CISCO NETWORKING ACADEMYCISCO NETWORKING ACADEMY

Switches & Bridges (review)Switches & Bridges (review)

• Layer-2 device

• Reduce large collision domains

• Uses MAC address table to determine whether or not to forward a frame

Page 3: CISCO NETWORKING ACADEMY Chabot College ELEC 99.05 Addressing & Routing Foundation Concepts

CISCO NETWORKING ACADEMYCISCO NETWORKING ACADEMY

Switches & Bridges (review)Switches & Bridges (review)

• Make “low level” decisions

• Flood the network if address unknown

• Always forwards broadcasts– Excess broadcast traffic can result

Page 4: CISCO NETWORKING ACADEMY Chabot College ELEC 99.05 Addressing & Routing Foundation Concepts

CISCO NETWORKING ACADEMYCISCO NETWORKING ACADEMY

Layer 2 Switch LimitationsLayer 2 Switch Limitations

Switches & Bridges:

• Don’t handle device moves well

• Can’t control broadcast traffic

• Lack path determination abilities

• Have limited address capacity

Page 5: CISCO NETWORKING ACADEMY Chabot College ELEC 99.05 Addressing & Routing Foundation Concepts

CISCO NETWORKING ACADEMYCISCO NETWORKING ACADEMY

Layer 2 Switch LimitationsLayer 2 Switch Limitations

• Switch doesn’t handle device moves well.– When a device is moved from one

switch port to another, the switch’s MAC address table will be wrong until it is “flushed” or “ages out”.

Page 6: CISCO NETWORKING ACADEMY Chabot College ELEC 99.05 Addressing & Routing Foundation Concepts

CISCO NETWORKING ACADEMYCISCO NETWORKING ACADEMY

Layer 2 Switch LimitationsLayer 2 Switch Limitations

• Switch can’t control broadcast traffic.– Switches (and bridges) always forward

broadcast traffic, which is essential to LAN operation.

– Broadcasts only stop at the edge of the network.

– Excess broadcast traffic can result.

Page 7: CISCO NETWORKING ACADEMY Chabot College ELEC 99.05 Addressing & Routing Foundation Concepts

CISCO NETWORKING ACADEMYCISCO NETWORKING ACADEMY

Layer 2 Switch LimitationsLayer 2 Switch Limitations

• Path determination abilities– Almost no ability to determine paths when

there are multiple routes from source to destination.

– No ability to change paths when a route becomes unavailable.

Page 8: CISCO NETWORKING ACADEMY Chabot College ELEC 99.05 Addressing & Routing Foundation Concepts

CISCO NETWORKING ACADEMYCISCO NETWORKING ACADEMY

Layer 2 Switch LimitationsLayer 2 Switch Limitations

• Limited address capacity– There are 10’s of millions of MAC addresses

in the world, but the typical switch can store only a few thousand MACs.

– Fine for LANs, but inadequate for internetworks (networks of networks).

– This is the key limitation!

Page 9: CISCO NETWORKING ACADEMY Chabot College ELEC 99.05 Addressing & Routing Foundation Concepts

CISCO NETWORKING ACADEMYCISCO NETWORKING ACADEMY

Layer 3 solves these problems!Layer 3 solves these problems!

• Allows device moves throughlogical addresses.

• Uses routers to control broadcast propagation.

• Provides path determinationthrough routing.

• Uses hierarchical addresses to support world-wide addressing.

3

Page 10: CISCO NETWORKING ACADEMY Chabot College ELEC 99.05 Addressing & Routing Foundation Concepts

CISCO NETWORKING ACADEMYCISCO NETWORKING ACADEMY

Logical OrderLogical Order

In order to impose logical order on a network, a different kind of address needs to be used.

Data Link Layer

Physical Layer

Network Layer

No address

Physical Address (Hardware)

Logical Address (Software)

Page 11: CISCO NETWORKING ACADEMY Chabot College ELEC 99.05 Addressing & Routing Foundation Concepts

CISCO NETWORKING ACADEMYCISCO NETWORKING ACADEMY

Physical v. Logical AddressPhysical v. Logical Address

• Physical Address– Layer 2– aka MAC address, hardware address,

Ethernet address– burned in card– can’t be changed without changing card– flat scheme (like Social Security Numbers)– Analogy: your name

Page 12: CISCO NETWORKING ACADEMY Chabot College ELEC 99.05 Addressing & Routing Foundation Concepts

CISCO NETWORKING ACADEMYCISCO NETWORKING ACADEMY

Physical v. Logical AddressPhysical v. Logical Address

• Logical Address– Layer 3– aka protocol address– set by administrator in software– can be easily changed– hierarchical scheme like Phone Numbers

(area code, prefix) or ZIP codes– Analogy: your mailing address

Page 13: CISCO NETWORKING ACADEMY Chabot College ELEC 99.05 Addressing & Routing Foundation Concepts

CISCO NETWORKING ACADEMYCISCO NETWORKING ACADEMY

Layer 3 addressesLayer 3 addresses

• Logical or Layer 3 addresses come in different flavors, depending on the layer-3 protocol used:– TCP/IP = IP address– Novell IPX = IPX address– AppleTalk = AT address

etc.

Page 14: CISCO NETWORKING ACADEMY Chabot College ELEC 99.05 Addressing & Routing Foundation Concepts

CISCO NETWORKING ACADEMYCISCO NETWORKING ACADEMY

Addresses at LayersAddresses at Layers

Data Link Layer

Physical Layer

Network Layer

Session Layer

Transport Layer

Presentation Layer

Application Layer

TCP/IP or IPX/SPX or AppleTalk

EthernetMAC address

Logical address

Page 15: CISCO NETWORKING ACADEMY Chabot College ELEC 99.05 Addressing & Routing Foundation Concepts

CISCO NETWORKING ACADEMYCISCO NETWORKING ACADEMY

Logical Address CompositionLogical Address Composition

Though the exact length and format of a logical (layer 3) address differs depending on the protocol, all logical addresses share this basic formula:

NETWORK NUMBER

NETWORK NUMBER HOST NUMBERHOST NUMBER

Page 16: CISCO NETWORKING ACADEMY Chabot College ELEC 99.05 Addressing & Routing Foundation Concepts

CISCO NETWORKING ACADEMYCISCO NETWORKING ACADEMY

Logical Addresses ExplainedLogical Addresses Explained

Phone Numbers:

510-723-7464 = Alameda County

510-723-7464 = Hayward Exchange

510-723-7464 = Particular Hayward Phone

Page 17: CISCO NETWORKING ACADEMY Chabot College ELEC 99.05 Addressing & Routing Foundation Concepts

CISCO NETWORKING ACADEMYCISCO NETWORKING ACADEMY

Logical Addresses ExamplesLogical Addresses Examples

• AppleTalk addressnetwork 400, host 22

• IPX (Novell)network 4b39, host 00c0.4f31.03d2

• IP (Internet)network 207.81.104, host 15

400:22400:22

4b39.00c0.4f31.03d24b39.00c0.4f31.03d2

207.81.104.15207.81.104.15

Page 18: CISCO NETWORKING ACADEMY Chabot College ELEC 99.05 Addressing & Routing Foundation Concepts

CISCO NETWORKING ACADEMYCISCO NETWORKING ACADEMY

Logical Addresses ExplainedLogical Addresses Explained

• AppleTalk addressnetwork 400, host 22

• IPX (Novell)network 4b39, host 00c0.4f31.03d2

• IP (Internet)network 207.81.104, host 15

400:22400:22

4b39.00c0.4f31.03d24b39.00c0.4f31.03d2

207.81.104.15207.81.104.15

Page 19: CISCO NETWORKING ACADEMY Chabot College ELEC 99.05 Addressing & Routing Foundation Concepts

CISCO NETWORKING ACADEMYCISCO NETWORKING ACADEMY

Logical Addresses ExplainedLogical Addresses Explained

• AppleTalk addressnetwork 400, host 22

• IPX (Novell)network 4b39, host 00c0.4f31.03d2

• IP (Internet)network 207.81.104, host 15

400:22400:22

4b39.00c0.4f31.03d24b39.00c0.4f31.03d2

207.81.104.15207.81.104.15

Page 20: CISCO NETWORKING ACADEMY Chabot College ELEC 99.05 Addressing & Routing Foundation Concepts

CISCO NETWORKING ACADEMYCISCO NETWORKING ACADEMY

RoutersRouters

• Routers:– internetworking devices that work at Layer 3– understand and use logical addresses– keep tables of information about networks– can make path determinations– don’t normally forward broadcasts– can support multiple layer 3 protocols

(TCP/IP, IPX, AppleTalk) at the same time

Page 21: CISCO NETWORKING ACADEMY Chabot College ELEC 99.05 Addressing & Routing Foundation Concepts

CISCO NETWORKING ACADEMYCISCO NETWORKING ACADEMY

Routers at workRouters at work

RR

R R

A

Z

NETWORK 1 NETWORK 2 NETWORK 3

NE

TW

OR

K 4

NETWORK 5 NETWORK 6 NETWORK 7

Don’t know Z, but I know

net #7.

Node 1.A is sending to Node 7.Z

Page 22: CISCO NETWORKING ACADEMY Chabot College ELEC 99.05 Addressing & Routing Foundation Concepts

CISCO NETWORKING ACADEMYCISCO NETWORKING ACADEMY

The IP AddressThe IP Address

IP addresses are made up of 32 bits:

10101001110001110100010110001001

Page 23: CISCO NETWORKING ACADEMY Chabot College ELEC 99.05 Addressing & Routing Foundation Concepts

CISCO NETWORKING ACADEMYCISCO NETWORKING ACADEMY

Binary IP AddressesBinary IP Addresses

In the binary numbering system, each digit has two possible values:

0 or 1

Page 24: CISCO NETWORKING ACADEMY Chabot College ELEC 99.05 Addressing & Routing Foundation Concepts

CISCO NETWORKING ACADEMYCISCO NETWORKING ACADEMY

Binary IP AddressesBinary IP Addresses

Each value is a binary digit, or bit for short.

01111000

Eight bits together make a unit called a byte. In IP addresses, bytes are called octets (group of eight).

Page 25: CISCO NETWORKING ACADEMY Chabot College ELEC 99.05 Addressing & Routing Foundation Concepts

CISCO NETWORKING ACADEMYCISCO NETWORKING ACADEMY

Binary IP AddressesBinary IP Addresses

An octet that is all zeros has a decimal value of 0:

Binary = 00000000

Decimal = 0

Page 26: CISCO NETWORKING ACADEMY Chabot College ELEC 99.05 Addressing & Routing Foundation Concepts

CISCO NETWORKING ACADEMYCISCO NETWORKING ACADEMY

Binary IP AddressesBinary IP Addresses

An octet that is all ones has a decimal value of 255:

Binary = 11111111

Decimal = 255

Page 27: CISCO NETWORKING ACADEMY Chabot College ELEC 99.05 Addressing & Routing Foundation Concepts

CISCO NETWORKING ACADEMYCISCO NETWORKING ACADEMY

Binary IP AddressesBinary IP Addresses

In decimal, each place value is a power of ten.

We read the number 2342 as two-thousand three-hundred forty-two.

1101001000

2432

100101102103

Page 28: CISCO NETWORKING ACADEMY Chabot College ELEC 99.05 Addressing & Routing Foundation Concepts

CISCO NETWORKING ACADEMYCISCO NETWORKING ACADEMY

Binary IP AddressesBinary IP Addresses

In binary, each place value is a power of two.

The octet 11001111 is equivalent to 207 in decimal.

124

111

81632

100

64128

11

2021222324252627

Page 29: CISCO NETWORKING ACADEMY Chabot College ELEC 99.05 Addressing & Routing Foundation Concepts

CISCO NETWORKING ACADEMYCISCO NETWORKING ACADEMY

Binary IP Addresses Binary IP Addresses

The 32 bits of an IP address are grouped into 4 bytes:

10101001110001110100010110001001

10101001 11000111 01000101 10001001

Page 30: CISCO NETWORKING ACADEMY Chabot College ELEC 99.05 Addressing & Routing Foundation Concepts

CISCO NETWORKING ACADEMYCISCO NETWORKING ACADEMY

IP AddressesIP Addresses

We use dotted notation to represent the value of each byte (octet) of the IP address in decimal.

10101001 11000111 01000101 10001001

169 199 69 137

Page 31: CISCO NETWORKING ACADEMY Chabot College ELEC 99.05 Addressing & Routing Foundation Concepts

CISCO NETWORKING ACADEMYCISCO NETWORKING ACADEMY

IP AddressesIP Addresses

An IP address has two parts:

– network number– host number

Page 32: CISCO NETWORKING ACADEMY Chabot College ELEC 99.05 Addressing & Routing Foundation Concepts

CISCO NETWORKING ACADEMYCISCO NETWORKING ACADEMY

IP AddressesIP Addresses

• Which bits refer to the network number?

• Which bits refer to the host number?

Page 33: CISCO NETWORKING ACADEMY Chabot College ELEC 99.05 Addressing & Routing Foundation Concepts

CISCO NETWORKING ACADEMYCISCO NETWORKING ACADEMY

IP AddressesIP Addresses

• The answers to these questions vary.

• To find out for a specific address, you need to know how to convert decimal numbers to binary numbers (and back again).