• Tidak ada hasil yang ditemukan

Chapter 10: Queuing and Compression

N/A
N/A
Protected

Academic year: 2023

Membagikan "Chapter 10: Queuing and Compression"

Copied!
21
0
0

Teks penuh

(1)

13-1 Copyright © 1999, Cisco Systems, Inc.

Chapter 10:

Queuing and Compression

* Revised: HoonJae Lee

Upon completion of this chapter, you will be able to perform the following tasks:

Determine why queuing is enabled, identify alternative queuing protocols, and determine the best queuing method

Configure weighted fair, priority, and custom queuing on your network interfaces

Verify proper queuing configuration and troubleshoot an incorrect configuration

Enable data compression

Objectives

(2)

13-3—BCRAN—Managing Network Performance with Queuing and Compression Copyright © 1999, Cisco Systems, Inc.

Chapter Activities

Windows 95 PC Modem

Branch office ISDN/analog

Small office

Central site

Frame Relay

Frame Relay service PRI

BRI

BRI

Frame Relay

Async

AAA server

Async AppleTalk

IP IPX

Queue Compression Packet

Prioritizes traffic through router

Cisco IOS software offers weighted fair queuing, priority queuing, and custom queuing

Queuing Overview

IPX IP SNA

SNA IP

IPX

(3)

13-5—BCRAN—Managing Network Performance with Queuing and Compression Copyright © 1999, Cisco Systems, Inc.

Delay-sensitive applications may require higher priority than others

The Need for Traffic Prioritization

Interactive traffic

File transfer

Prioritization is most effective on bursty WAN links (T1/E1 or below) that experience temporary congestion

S0

T1/E1

AppleTalk IP

IPX

Effective Use of Traffic

Prioritization

(4)

13-7—BCRAN—Managing Network Performance with Queuing and Compression Copyright © 1999, Cisco Systems, Inc.

Determines which packets get through first

Helps provide acceptable service levels and control WAN costs

Establishing a Queuing Policy

Bottleneck AppleTalk

IP IPX

S0 Traffic queue

WAN WAN congested ? congested ?

No No need for

queuing

Use weighted fair queuing

No Yes Strict Strict

control control needed?

needed?

Determine traffic priorities Yes

Queuing Queuing policy?

policy?

No

Use priority queuing Yes

Delay OK?

Delay OK?

Step 1 Step 2 Step 3 Step 4

No Yes

Custom queuing

Choosing a Cisco IOS Queuing

Option

(5)

13-9—BCRAN—Managing Network Performance with Queuing and Compression Copyright © 1999, Cisco Systems, Inc.

Data Stream Classification

FIFO queuing

High-volume traffic

Low-volume traffic

High-volume traffic

Low-volume traffic

5

Messages are sorted into conversations Packets in order of arrival

6 4 1

2

3

Fair Queuing Operation

(6)

13-11—BCRAN—Managing Network Performance with Queuing and Compression Copyright © 1999, Cisco Systems, Inc.

Fair Queuing Operation (cont.)

Conversations are assigned a channel

Sorts the queue by order of the last bit crossing its channel

Packets fair queued

3 1 2 4 5 6 Fair queue

6 4 1

5 2

3

Messages are transmitted in a fair order

High-volume conversations share the link

Fair Queuing Operation (cont.)

Fair queuing order

3 5

1

2

4

6

(7)

13-13—BCRAN—Managing Network Performance with Queuing and Compression Copyright © 1999, Cisco Systems, Inc.

Enables weighted fair queuing

Configuring Weighted Fair Queuing

Router(config-if)#fair-queue {congestive-discard-threshold}

Weighted Fair Queue Example

S1

Frame Relay network

Appears in output only if congestive discard threshold is modified.

Router(config)#interface Serial 1

Router(config-if)#encapsulation frame-relay Router(config-if)#fair-queue 128

Router(config-if)#bandwidth 56

(8)

13-15—BCRAN—Managing Network Performance with Queuing and Compression Copyright © 1999, Cisco Systems, Inc.

Priority Queuing Overview

Selects one of these LOW MEDIUM NORMAL HIGH Priority list for S0

S0 Packet arrives

Queue selection Queue service

To WAN Incoming

packet

Select queue

Place in queue Yes

No Queue

full?

Yes

Yes

Yes Yes No

No

No

No

Dispatch packet HIGH

packet?

MEDIUM packet?

NORMAL packet?

LOW packet?

More?

Priority Queuing Operation

(9)

13-17—BCRAN—Managing Network Performance with Queuing and Compression Copyright © 1999, Cisco Systems, Inc.

1. Create a priority list based on protocol or interface 2. Assign a default queue 3. Specify the queue sizes

(optional)

4. Assign the priority list to an interface

To configure priority queuing, perform the following tasks:

LOW MEDIUM NORMAL HIGH TCP

IPX/

AppleTalk IP Default Priority list

for S0

S0

Priority Queuing Configuration Tasks

Router(config)#priority-list list-number protocol protocol-name {high | medium | normal | low}

queue-keyword keyword-value

Sets queue priority by protocol type

Router(config)#priority-list list-number interface interface-type interface-number

{high | medium | normal | low}

Configuring Priority Queuing—Step 1

Sets priority by incoming interface type

(10)

13-19—BCRAN—Managing Network Performance with Queuing and Compression Copyright © 1999, Cisco Systems, Inc.

Assigns a default queue

Router(config)#priority-list list-number default {high | medium | normal | low}

Router(config)#priority-list list-number queue-limit high-limit medium-limit normal-limit low-limit

Step 3 (Optional) Step 2

Router(config-if)#priority-group list Step 4

Configuring Priority Queuing—

Steps 2 to 4

Links the priority list to an interface

Specifies the queue sizes

Priority Queuing Example 1

LOW MEDIUM

NORMAL HIGH Router(config)#priority-list 1 protocol ip high tcp 23

Router(config)#priority-list 1 protocol appletalk medium Router(config)#priority-list 1 protocol ipx medium Router(config)#priority-list 1 protocol ip normal Router(config)#priority-list 1 default low

!

Router(config)#interface serial 0 Router(config-if)#priority-group 1

S0 E0

E1

(11)

13-21—BCRAN—Managing Network Performance with Queuing and Compression Copyright © 1999, Cisco Systems, Inc.

Priority Queuing Example 2

LOW MEDIUM NORMAL HIGH

S0 E0

Router(config)#priority-list 2 protocol ip high tcp 23 Router(config)#priority-list 2 ip high list 1

Router(config)#priority-list 2 interface ethernet 0 medium Router(config)#priority-list 2 protocol ip normal

Router(config)#priority-list 2 default low

Router(config)#priority-list 2 queue-limit 15 20 20 30

!

Router(config)#access-list 1 permit 10.1.1.0 0.0.0.255

!

Router(config)#interface serial 0 Router(config-if)#priority-group 2

E1

Custom Queuing

Queues handled in round-robin fashion

16 S0

1 2 3

14 15

0 (System)

Deliver x number of bytes per cycle 20 entries

Custom queue list for S0

High priority (keepalives)

Default

(12)

13-23—BCRAN—Managing Network Performance with Queuing and Compression Copyright © 1999, Cisco Systems, Inc.

Queued message forwarding

Custom queue list for S0

S0

Traffic filtering

Yes No

Dispatch packet Current

queue Next queue

Over service threshold?

Queue empty?

16 1 2 3 14 15

To WAN No

Yes

Custom Queuing Operation

1

. .

5

16 15

. .

4 3 2

9

1. Set custom queuing filtering for protocols or interfaces 2. Assign a default queue

3. Change queue capacity (optional) 4. Configure the service threshold per queue 5. Assign the custom queue-list to an

interface

To configure custom queuing, perform the following tasks:

Default queue

S0

14

Custom Queuing Configuration

Tasks

(13)

13-25—BCRAN—Managing Network Performance with Queuing and Compression Copyright © 1999, Cisco Systems, Inc.

Sets priority by interface type

Router(config)#queue-list list-number protocol

protocol-name queue-number queue-keyword keyword-value

Router(config)#queue-list list-number interface interface-type interface-number queue-number

Configuring Custom Queuing—Step 1

Sets queue priority by protocol type

Assigns a priority queue for packets that do not match any other rule in the queue list

Step 2

Router(config)#queue-list list-number default queue-number

Step 3

Router(config)# queue-list list-number queue queue-number limit limit-number

Configuring Custom Queuing—

Steps 2 to 3

Changes the capacity of a queue

(14)

13-27—BCRAN—Managing Network Performance with Queuing and Compression Copyright © 1999, Cisco Systems, Inc.

Configuring Custom Queuing—

Steps 4 to 5

Step 4

Router(config)#queue-list list-number queue queue-number byte-count byte-count-number

Assigns a queue list to an interface

Step 5

Router(config-if)#custom-queue-list list

Assigns a threshold byte count per queue per transfer

Custom Queuing Example 1

1 2 3 4 5

Router(config)#queue-list 1 interface E0 1 Router(config)#queue-list 1 protocol ip 2 Router(config)#queue-list 1 protocol ipx 3 Router(config)#queue-list 1 protocol appletalk 4 Router(config)#queue-list 1 default 5

!

Router(config)#interface serial 0 Router(config-if)#custom-queue-list 1

S0

Default queue E0

E1 SNA

network

Multiprotocol

network

(15)

13-29—BCRAN—Managing Network Performance with Queuing and Compression Copyright © 1999, Cisco Systems, Inc.

Router(config)#queue-list 1 protocol ip 1 tcp 20 Router(config)#queue-list 1 protocol ip 2

Router(config)#queue-list 1 protocol ipx 3 Router(config)#queue-list 1 protocol appletalk 4 Router(config)#queue-list 1 default 5

Router(config)#queue-list 1 queue 1 byte-count 4500

!

Router(config)#interface serial 0 Router(config-if)#custom-queue-list 1

Custom Queuing Example 2

S0

3 datagrams

per cycle

1 datagram per cycle

1 2 3 4 5

Default queue

Verifying Queuing Operation

Displays queuing status on all interfaces

Router#show queueing int S0

Interface Serial0 queueing strategy: fair

Input queue: 0/75/0 (size/max/drops); Total output drops: 0 Queueing strategy: weighted fair

Output queue: 0/1000/64/0 (size/max total/threshold/drops)

Conversations 0/1/256 (active/max active/max total)

Reserved Conversations 0/0 (allocated/max allocated)

(16)

13-31—BCRAN—Managing Network Performance with Queuing and Compression Copyright © 1999, Cisco Systems, Inc.

Verifying Queuing Operation (cont.)

Router#show queueing custom

Current custom queue configuration:

List Queue Args 3 5 default

3 1 interface Serial 3 3 3 protocol ip

3 3 byte-count 1518

Displays information for custom queue list 3

Queuing Comparison Summary

Weighted Fair Queuing Priority Queuing Custom Queuing No queue lists

Low volume given priority Conversation

dispatching Interactive traffic

gets priority File transfer gets balanced access Enabled by default

4 queues High queue serviced

first Packet dispatching

Critical traffic gets through Designed for low-bandwidth links

16 queues Round-robin service Threshold dispatching

Allocation of available bandwidth Designed for higher-speed,

low-bandwidth links

Must configure Must configure

(17)

13-33—BCRAN—Managing Network Performance with Queuing and Compression Copyright © 1999, Cisco Systems, Inc.

Implementing Compression Overview

PPP, HDLC, X.25, Frame Relay, or ATM

header

IP/TCP header Payload

Compression allows more efficient use of bandwidth

Payload compression

Header compression

Link compression

Implementing Link Compression over a Point-to-Point Connection

Compress Decompress

PPP, HDLC

Header Payload

(18)

13-35—BCRAN—Managing Network Performance with Queuing and Compression Copyright © 1999, Cisco Systems, Inc.

Compress Decompress

X.25, Frame Relay, ATM, or SMDS network

Header Payload

Implementing Payload Compression

PPP, HDLC, X.25, Frame Relay, or ATM

header

IP/TCP header Payload

PPP, HDLC, X.25, Frame Relay, or ATM

header

IP/TCP

header Payload

Using TCP IP Header

Compression

(19)

13-37—BCRAN—Managing Network Performance with Queuing and Compression Copyright © 1999, Cisco Systems, Inc.

Compress Decompress

ISDN or dialup service Microsoft host

LAPB, PPP, MPPC

Implementing MPPC

Other Compression Considerations

Modem compression

Encrypted data

CPU cycles versus memory

(20)

13-39—BCRAN—Managing Network Performance with Queuing and Compression Copyright © 1999, Cisco Systems, Inc.

Configuring Compression

Configures software compression for LAPB, PPP, and HDLC for a link

Router(config-if)#ip tcp header compression [ passive ] Router(config-if)#compress [ predictor | stac | mppc ]

Router(config-if)#frame-relay payload-compress

Enables payload compression on a specified interface or subinterface

Specifies that headers for TCP traffic will be compressed

Laboratory Exercise: Visual Objective

Branch office

Cisco 3640

Cisco 1600

Central site

Frame Relay

Frame Relay service Frame Relay

Custom queue 1

3 2

4

FTP 4500 bytes Telnet 3000 bytes IP 1500 bytes Default 1500 bytes

S3/1

Configure a custom queue to manage traffic

flow on the interface

(21)

13-41—BCRAN—Managing Network Performance with Queuing and Compression Copyright © 1999, Cisco Systems, Inc.

Summary

After completing this chapter, you

should be able to perform the following tasks:

Determine why queuing is enabled, identify alternative queuing protocols, and determine the best queuing method

Configure weighted fair, priority, and custom queuing on your network interfaces

Verify proper queuing configuration and troubleshoot an incorrect configuration

Enable data compression

Review Questions

When would you use weighted fair queuing, custom queuing, and priority queuing?

When is it best to use payload compression

versus link compression?

Referensi

Dokumen terkait

Hieul,∗ aLaboratory of Magnetism and Magnetic Materials, Advanced Institute of Materials Science, Ton Duc Thang University, Ho Chi Minh City, Viet Nam bFaculty of Applied Sciences,

Interpret the simulation and queuing models, also give suggestions based on the analysis Content Queuing simulation: arrival rate, service rate, queuing models Monte-Carlo