qspiders - variable length-subnet-masks

59
Variable- Variable- Length Length Subnet Masks Subnet Masks © 2001, Cisco Systems, Inc. 3-1 3-1

Upload: qspiders-software-testing-training-institute

Post on 08-Jan-2017

60 views

Category:

Education


1 download

TRANSCRIPT

Page 1: QSpiders - Variable Length-Subnet-Masks

Variable-Variable-Length Length Subnet Subnet MasksMasks

© 2001, Cisco Systems, Inc. 3-13-1

Page 2: QSpiders - Variable Length-Subnet-Masks

What Is a Variable-Length Subnet Mask?

HQ 172.16.0.0/16

Page 3: QSpiders - Variable Length-Subnet-Masks

HQ

172.16.1.0/24

172.16.2.0/24

HQ 172.16.0.0/16

What Is a Variable-Length Subnet Mask? (cont.)

Page 4: QSpiders - Variable Length-Subnet-Masks

172.16.14.32/27

172.16.14. 64/27

172.16.14.96/27C

B

A

–Subnet 172.16.14.0/24 is divided into smaller subnets:• Subnet with one mask at first (/27)

HQ

172.16.1.0/24

172.16.2.0/24

HQ 172.16.0.0/16

What Is a Variable-Length Subnet Mask? (cont.)

Page 5: QSpiders - Variable Length-Subnet-Masks

172.16.14.32/27

172.16.14. 64/27

172.16.14.96/27

• Subnet 172.16.14.0/24 is divided into smaller subnets:• Subnet with one mask at first (/27)• Then further subnet one of the unused /27 subnets into

multiple /30 subnets

C

B

A

HQ

172.16.1.0/24

172.16.2.0/24

HQ 172.16.0.0/16172.16.14.136/30

172.16.14.132/30

172.16.14.140/30

What Is a Variable-Length Subnet Mask? (cont.)

Page 6: QSpiders - Variable Length-Subnet-Masks

Calculating VLSMs

Subnetted Address: 172.16.32.0/20In Binary 10101100. 00010000.00100000.00000000

Page 7: QSpiders - Variable Length-Subnet-Masks

Calculating VLSMs (cont.)

VLSM Address: 172.16.32.0/26In Binary 10101100. 00010000.00100000.00000000

Subnetted Address: 172.16.32.0/20In Binary 10101100. 00010000.00100000.00000000

Page 8: QSpiders - Variable Length-Subnet-Masks

Network Subnet VLSM subnet

Host

10101100 . 00010000 .0010 0000.00 000000=172.16.32.0/261st subnet:

VLSM Address: 172.16.32.0/26In Binary 10101100. 00010000.00100000.00000000

Subnetted Address: 172.16.32.0/20In Binary 10101100. 00010000.00100000.00000000

Calculating VLSMs (cont.)

Page 9: QSpiders - Variable Length-Subnet-Masks

Subnetted Address: 172.16.32.0/20In Binary 10101100. 00010000.00100000.00000000

VLSM Address: 172.16.32.0/26In Binary 10101100. 00010000.00100000.00000000

1st subnet: 10101100 . 00010000 .0010 0000.00 000000=172.16.32.0/26172 . 16 .0010 0000.01 000000=172.16.32.64/26172 . 16 .0010 0000.10 000000=172.16.32.128/26172 . 16 .0010 0000. 1 000000=172.16.32.192/26172 . 16 .0010 0001.00 000000=172.16.33.0/26

Network Subnet VLSM Subnet

Host

1

2nd subnet:3rd subnet:4th subnet:5th subnet:

Calculating VLSMs (cont.)

Page 10: QSpiders - Variable Length-Subnet-Masks

A Working VLSM Example

Derived from the 172.16.32.0/20 Subnet

Page 11: QSpiders - Variable Length-Subnet-Masks

A Working VLSM Example (cont.)

172.16.32.0/26

172.16.32.64/26

172.16.32.128/26

172.16.32.192/26

26 bit mask(62 hosts)

Derived from the 172.16.32.0/20 Subnet

Page 12: QSpiders - Variable Length-Subnet-Masks

Derived from the 172.16.33.0/26 Subnet

30 bit mask(2 hosts)

172.16.32.0/26

172.16.32.64/26

172.16.32.128/26

172.16.32.192/26

26 bit mask(62 hosts)

Derived from the 172.16.32.0/20 Subnet

A Working VLSM Example (cont.)

Page 13: QSpiders - Variable Length-Subnet-Masks

172.16.33.0/30

172.16.33.4/30

172.16.33.8/30

172.16.33.12/30

Derived from the 172.16.33.0/26 Subnet

30-Bit Mask(2 Hosts)

172.16.32.0/26

172.16.32.64/26

172.16.32.128/26

172.16.32.192/26

26-Bit Mask(62 Hosts)

Derived from the 172.16.32.0/20 Subnet

A Working VLSM Example (cont.)

Page 14: QSpiders - Variable Length-Subnet-Masks

Route Summarization

© 2001, Cisco Systems, Inc. 3-14

Page 15: QSpiders - Variable Length-Subnet-Masks

What Is Route Summarization?

Routing table172.16.25.0/24172.16.26.0/24172.16.27.0/24

172.16.27.0/24

172.16.26.0/24

172.16.25.0/24

A

Page 16: QSpiders - Variable Length-Subnet-Masks

What Is Route Summarization? (cont.)

• Routing protocols can summarize addresses of several networks into one address

I can route to the 172.16.0.0/16 network.

Routing Table172.16.0.0/16

B

Routing Table172.16.25.0/24172.16.26.0/24172.16.27.0/24

172.16.27.0/24

172.16.26.0/24

172.16.25.0/24

A

Page 17: QSpiders - Variable Length-Subnet-Masks

Summarizing Within an Octet

172.16.168.0/24 = 10101100 . 00010000 . 10101 000 . 00000000

Number of Common Bits = 21Summary: 172.16.168.0/21

Noncommon Bits = 11

172.16.169.0/24 = 172 . 16 . 10101 001 . 0

172.16.170.0/24 = 172 . 16 . 10101 010 . 0

172.16.171.0/24 = 172 . 16 . 10101 011 . 0

172.16.172.0/24 = 172 . 16 . 10101 100 . 0

172.16.173.0/24 = 172 . 16 . 10101 101 . 0

172.16.174.0/24 = 172 . 16 . 10101 110 . 0

172.16.175.0/24 = 172 . 16 . 10101 111 . 0

Page 18: QSpiders - Variable Length-Subnet-Masks

Summarizing Addresses in a VLSM-Designed Network

CorporateNetwork

172.16.0.0/16

172.16.64.0/20

172.16.128.0/20

172.16.32.64/26172.16.32.0/24

172.16.128.0/20

172.16.32.128/26

A

B

C

D172.16.64.0/20

Page 19: QSpiders - Variable Length-Subnet-Masks

ClasslessInterdomain

Routing© 2001, Cisco Systems, Inc. 3-19

Page 20: QSpiders - Variable Length-Subnet-Masks

Classless Interdomain Routing

• Mechanism developed to alleviate exhaustion of addresses and reduce routing table size• Blocks of Class C addresses assigned

to ISPs—ISPs assign subsets of address space to organizations• Blocks are summarized in routing tables

Page 21: QSpiders - Variable Length-Subnet-Masks

CIDR Example

ISP

H

B

192.168.8.0/24

192.168.9.0/24

192.168.15.0/24

• Networks 192.168.8.0/24 through 192.168.15.0/24 are summarized by the ISP in one advertisement 192.168.8.0/21

A

192.168.8.0/21

192.168.15.0/24

192.168.8.0/24

192.168.9.0/24

Page 22: QSpiders - Variable Length-Subnet-Masks

WAN Basics

Page 23: QSpiders - Variable Length-Subnet-Masks

• A network that serves users across a broad geographic area• Often uses transmission devices provided by public carriers (Pacific Bell, AT&T, etc.) • This service is commonly referred to as

“plain old telephone service” (POTS)•WANs function at the lower three layers of the OSI reference model• Physical layer, data link layer, and network

layer

What Is a WAN?

Page 24: QSpiders - Variable Length-Subnet-Masks

WAN Overview

Service Provider

• WANs connect sites• Connection requirements vary depending

on user requirements and cost

Page 25: QSpiders - Variable Length-Subnet-Masks

What is a WAN?

A WAN is a data communications network that covers a relatively broad geographic area and often uses transmission facilities provided by common carriers, such as telephone companies. WAN technologies function at the lower three layers of the OSI reference model: the physical layer, the data link layer, and the network layer.

Page 26: QSpiders - Variable Length-Subnet-Masks

WAN connection types

• Point-to-Point Links or Leased Lines• Circuit Switching• Packet Switching

Page 27: QSpiders - Variable Length-Subnet-Masks

Point-to-Point Links or Leased Lines

• A point-to-point link is also known as a leased line because its established path is permanent and fixed for each remote network reached through the carrier facilities.

Page 28: QSpiders - Variable Length-Subnet-Masks

Leased Line

• One connection per physical interface• Bandwidth: depends on interface type• Cost effective at 4–6 hours daily usage• Dedicated connections with predictable throughput• Permanent• Cost varies by distance

Page 29: QSpiders - Variable Length-Subnet-Masks

• Dedicated physical circuit established, maintained, and terminated through a carrier network for each communication session• Datagram and data stream transmissions• Operates like a normal telephone call• Example: ISDN

WANModem Modem

Circuit Switching

Page 30: QSpiders - Variable Length-Subnet-Masks

•Sets up line like a phone call. No data can transfer before the end-to-end connection is established.

•Uses dial-up modems and ISDN. It is used for low-bandwidth data transfers.

Circuit Switching

Page 31: QSpiders - Variable Length-Subnet-Masks

POTS Using Modem Dialup

• Widely available• Easy to set up• Dial on demand• Asynchronous transmission• Low cost, usage-based• Lower bandwidth access requirements

Telecommuters

Mobile Users

ModemCorporate Network

ServerModem

Access Router

Basic Telephone

Service

Page 32: QSpiders - Variable Length-Subnet-Masks

Integrated Services Digital Network (ISDN)

• High bandwidth•Up to 128 Kbps per basic rate interface • Dial on demand•Multiple channels• Fast connection time•Monthly rate plus cost-effective,

usage-based billing• Strictly digital

LAN Server

Company Network

Telecommuter/After-Hours, Work-at-Home

BRI2B+D

BRI/PRI23B+D

30B+D (Europe)

ISDN

Page 33: QSpiders - Variable Length-Subnet-Masks

• Network devices share a point-to-point link to transport packets from a source to a destination across a carrier network• Statistical multiplexing is used to enable devices to share

these circuits• Examples: ATM, Frame Relay, X.25

WANModem Modem

Multiplexing Demultiplexing

Packet Switching

Page 34: QSpiders - Variable Length-Subnet-Masks

•WAN switching method that allows you to sharebandwidth with other companies to save money.

•Think of packet switching networks as a party line. As long as you are not constantly transmit-ting data and are instead using bursty data transfers, packet switching can save you a lot of money. However, if you have constant data transfers,then you will need to get a leased line.

• Frame Relay and X.25 are packet-switching technologies. Speeds can range from 56Kbps to 2.048Mbps.

Packet Switching

Page 35: QSpiders - Variable Length-Subnet-Masks

Frame Relay

• Permanent, not dialup• Multiple connections per

physical interface (permanent virtual circuits)

• Efficient handling of bursty (peak performance period) data

• Guaranteed bandwidth (typical speeds are 56/64 Kbps, 256 Kbps, and 1.544 Mbps)—committed information rate (CIR)

• Cost varies greatly by region

Permanent Virtual Circuit (PVC)

Page 36: QSpiders - Variable Length-Subnet-Masks

X.25

• Very robust protocol for low-quality lines• Packet-switched• Bandwidth: 9.6 kbps–64 kbps• Well-established technology;

large installed base• Worldwide availability

X.25DCE

DTE DTEDCE

Page 37: QSpiders - Variable Length-Subnet-Masks

Asynchronous Transfer Mode (ATM)

• Technology capable of transferring voice, video, and data through private and public networks

• Uses VLSI technology to segment data, at high speeds, into units called cells• 5 bytes of header information• 48 bytes of payload• 53 bytes total

• Cells contain identifiers that specify the data stream to which they belong

• Primarily used in enterprise backbones or WAN links

DataDataHeaderHeader

55 4848

Page 38: QSpiders - Variable Length-Subnet-Masks

Cabling the WAN

Core_Server

core_sw_a

ISDN Cloud

LegendFastEthernet/EthernetISDNDedicated

core_sw_b core_sw_b

ISL

Leased Line/Frame Relay

Page 39: QSpiders - Variable Length-Subnet-Masks

WAN Physical Layer Implementations

• Physical layer implementations vary• Cable specifications define speed of link

PPP

Fram

e R

elay

EIA/TIA-232EIA/TIA-449

X.21 V.24 V.35HSSI

ISDN BRI (with PPP)

RJ-45NOTE: Pinouts are different than RJ-45

used in campus

HD

LC

Page 40: QSpiders - Variable Length-Subnet-Masks

Differentiating Between WAN Serial Connectors

Router connections

Network connections at the CSU/DSUEIA/TIA-232 EIA/TIA-449 EIA-530V.35 X.21

CSU/DSU

End user device

DTE

DCE

Service provider

Page 41: QSpiders - Variable Length-Subnet-Masks

Data Terminal EquipmentEnd of the user’s deviceon the WAN link

Data Communications Equipment• End of the WAN provider’s

side of the communication facility• DCE is responsible for clocking

DCEDTE

ModemCSU/DSU

S S

SSS S

DTE DTEDCE DCE

Serial Implementation ofDTE versus DCE

Page 42: QSpiders - Variable Length-Subnet-Masks

WAN Terminating Equipment

Modem

Data Terminal EquipmentDTE

Data Circuit-Terminating Equipment

The Service Providers The Service Providers EquipmentEquipment

DCE

EIA/TIA-232V.35X.21HSSI

To Corporate Network

The Customer’s The Customer’s EquipmentEquipment

WAN Provider(Carrier) Network

Physical Cable Types

Usually on the Customer’sPremises

Router

Page 43: QSpiders - Variable Length-Subnet-Masks

LAN/WAN Devices

© 1999, Cisco Systems, Inc. www.cisco.com

Page 44: QSpiders - Variable Length-Subnet-Masks

• Hubs

• Bridges

• Switches

• Routers

LAN/WAN Devices

Page 45: QSpiders - Variable Length-Subnet-Masks

Hub

• Device that serves as the center of a star Device that serves as the center of a star topology network, sometimes referred to topology network, sometimes referred to as a as a multiport repeatermultiport repeater, , no forwarding no forwarding intelligenceintelligence

Page 46: QSpiders - Variable Length-Subnet-Masks

Hubs123123

124124

125125

126126

127127

128128

Hub

DataData DataData

• Amplifies signals• Propagates signals through the network• Does not filter data packets based on destination• No path determination or switching• Used as network concentration point

Page 47: QSpiders - Variable Length-Subnet-Masks

Hubs Operate at Physical layer

A B C D

Physical

• All devices in the same collision domain• All devices in the same broadcast domain• Devices share the same bandwidth

Page 48: QSpiders - Variable Length-Subnet-Masks

Hubs: One Collision Domain

• More end stations means more collisions• CSMA/CD is used

Page 49: QSpiders - Variable Length-Subnet-Masks

Bridge

• Device that connects and passes packets Device that connects and passes packets between two network segments.between two network segments.

• More intelligent than hub—analyzes More intelligent than hub—analyzes incoming packets and forwards (or filters) incoming packets and forwards (or filters) them based on addressing information. them based on addressing information.

Page 50: QSpiders - Variable Length-Subnet-Masks

Bridge

Segment 1 Segment 2

123123

124124

125125

126126

127127

128128Corporate Intranet

Hub Hub

• More intelligent than a hub—can analyze incoming packets and forward (or filter) them based on addressing information• Collects and passes packets between two network segments • Maintains address tables

Bridge Example

Page 51: QSpiders - Variable Length-Subnet-Masks

Switches

• Use Use bridging technologybridging technology to to forward traffic between ports. forward traffic between ports.

• Provide full Provide full dedicateddedicated data transmission data transmission rate between two stations that are directly rate between two stations that are directly connected to the switch ports.connected to the switch ports.

• Build and maintain Build and maintain address address tablestables called content-addressable memory called content-addressable memory (CAM).(CAM).

Page 52: QSpiders - Variable Length-Subnet-Masks

10-MbpsUTP Cable

“Dedicated”

Workstation

3131

Switch

Corporate Intranet

3232

33 3636100 Mbps 100 Mbps

• Uses bridging technology to forward traffic (i.e. maintains address tables, and can filter)

• Provides full dedicated transmission rate between stations that are connected to switch ports

• Used in both local-area and in wide-area networking• All types available—Ethernet, Token Ring, ATM

Switching—“Dedicated” Media

3535

3434

Page 53: QSpiders - Variable Length-Subnet-Masks

• Each segment has its own collision domain• All segments are in the same broadcast domain

Data Link

Switches and Bridges Operate at Data Link Layer

OR1 2 3 1 24

Page 54: QSpiders - Variable Length-Subnet-Masks

Switches

• Each segment has its own collision domain• Broadcasts are

forwarded to all segments

Memory

Switch

Page 55: QSpiders - Variable Length-Subnet-Masks

Routers• Interconnect LANs and WANsInterconnect LANs and WANs• Provide path determination using metricsProvide path determination using metrics• Forward packets from one network to Forward packets from one network to

anotheranother• Control broadcasts to the networkControl broadcasts to the network

Page 56: QSpiders - Variable Length-Subnet-Masks

Routing TableNET INT Metric

124

S0S0E0

100

1.0 4.0

1.3E0

4.3S0

2.2

E0

2.1

S0

4.1

4.2

1.1

1.2

Routing TableNET INT Metric

124

E0S0S0

001

• Logical addressing allows for hierarchical network• Configuration required• Uses configured information to identify paths to networks

Network Layer Functions (cont.)

Page 57: QSpiders - Variable Length-Subnet-Masks

Routers: Operate at the Network Layer

• Broadcast control

• Multicast control

• Optimal path determination

• Traffic management

• Logical addressing

• Connects to WAN services

Page 58: QSpiders - Variable Length-Subnet-Masks

Using Routers to Provide Remote Access

Internet

Telecommuter

Branch Office

Modem or ISDN TA

Mobile User

Main Office

Page 59: QSpiders - Variable Length-Subnet-Masks

Network Device Domains

Hub Bridge Switch Router

Collision Domains:1 4 4 4

Broadcast Domains:1 1 1 4