Вы находитесь на странице: 1из 28

QoS (Quality of Service)

QoS?
:

QoS
IP/Ethernet
-

-
.

, QoS:

Video-on-Demand (VOD), VOIP,

,
, . ,
, .
1G
1G

1G

1G


1G


1 G + 1G = 2 G

:
1.
2.

100 M


QoS.

LACP

1G

IEEE 802.1p

802.1p ( , CoS)
6B

6B

2B

46~1500B

4B

DA

SA

L/T

Data

FCS

6B

6B

4B

2B

DA

SA

Tag

L/T

46~1500B

4B

Data

FCS

2B

2B

TPID

TCI

(Tag Protocol Identifier)

(Tag Control Information)

3 bits

1 bit

12 bits

CFI

VID

TPID : Tag Protocol Identifier, 802.1Q TPID = 0x8100


CFI : Canonical Format Indicator, 0 Ethernet
VID : VLAN ID, 4096 VLAN 802.1Q VLAN
802.1Q TCI, 3- CoS
CoS - 0 ( ) 7 ( ).
CoS

QoS MAN
MAN :
1. VoIP
2. IPTV
3. Data

- QoS 5
- QoS 4

a. Management - QoS 7
- QoS 3
b. Internet
- QoS 0
c. Intranet
(Local)
:
QoS-
,
.
5

oS MAN

CoS Priority

Typical Application

111 (7)

(
)

110 (6)

(
)

101 (5)

100 (4)

011 (3)

(SIP)

010 (2)

001 (1)

000 (0)

IEEE 802.1p
, 802.1p/1q
.
0.
DES-3200-26:4# show 802.1p default_priority
Command: show 802.1p default_priority
Port Priority
------ ------------1
0
2
0
3
0


config 802.1p default_priority <ports> <priority>

CoS Mapping

CoS Mapping QoS (IEEE 802.1p) CoS


( )

CoS Mapping

802.1p
.
,
, 1p.
DGS-3627G:4# show 802.1p
user_priority
COS Class of Traffic
Priority-0 -> <Class-2>
Priority-1 -> <Class-0>
Priority-2 -> <Class-1>
Priority-3 -> <Class-3>
Priority-4 -> <Class-4>
Priority-5 -> <Class-5>
Priority-6 -> <Class-6>
Priority-7 -> <Class-6>

DES-3200-26:4# show 802.1p


user_priority
COS Class of Traffic
Priority-0 -> <Class-1>
Priority-1 -> <Class-0>
Priority-2 -> <Class-0>
Priority-3 -> <Class-1>
Priority-4 -> <Class-2>
Priority-5 -> <Class-2>
Priority-6 -> <Class-3>
Priority-7 -> <Class-3>

config 802.1p user_priority <priority 0-7> <class_id 0-6>


, :
- FIFO
- Priority queuing ( )
- Weighted round robin (WRR) ( )
- Custom queuing (, )
- Shared Round Robin (SSR) (
1

2
N
N-1

!!

10

FIFO

FIFO ,

FIFO
B
FIFO

HW

,
. .

11


(Strict Priority)

, .
,
. , ,
.


,
.
.

1
2

(Realtime service)

1
4
2
5
6
3

13


(Weighted Round-Robin)
,
(WRR)
,
, ..,
, .
.
,
.
,
, .
(Class of Service (CoS)) 8-
.
config scheduling
(WRR), 8
. , max_packets
0. max_packet
, ().
CoS,
. 0 15
14
.

(WRR)

WRR

WRR System
B

1 (40%)

Tail-Drop
WRED

Class 2

Tail-Drop
WRED

Class 3

Tail-Drop
WRED

3 (20%)

....

....
Class 8

2 (30%)

Tail-Drop
WRED

8 (10%)

WRR
Weight Round Robin

Class 1

HW

15

(WRR)
(40)

(30)

x
x

x
(20)

x x
x

x
x

1
2

12 11 10

16 15 14 13

3
4
5
6
7
9
10
13

16

Port-Based QoS
B
VoIP

A
U

DES3526_
A

T
T

U
C

DES3526_
B

U
D
VoIP

B D VoIP,
(QoS)
.

17

Port-Based QoS
DES-3526_A
1.

, Des-3526_1 2 untagged tagged


, 1p
.
config vlan default delete 1
config vlan default add tagged 1

2.

23,
VoIP, 0 7.
config 802.1p default_priority ports 23 7

3.

DES-3526_B
1.

, Des-3526_1 2 untagged tagged


, 1p .
config vlan default delete 1
config vlan default add tagged 1

2.

24,
VoIP, 0 7.
config 802.1p default_priority ports 24 7

18

QoS

- - .
- FIFO .

- QoS
-
- IntServ Resource Reservation Protocol (RSVP)
, .


QoS

type of Service (ToS) IP
L2 CoS (Class of service) L3 DSCP (Differentiated service code points)
QoS 7 L2 64 L3

19

3: IP ToS
Ethernet

3
version

IHL

802.1q CoS

15

version

Payload

19

Type of Service

31

Total length
Flags

Identification
Time to Live

IP header:
ToS (IP Precedence)
/ DSCP

Protocol

Fragment Offset
Header Checksum

Source Address
Destination Address
Options + Padding
Data



.
20

Layer 3: IP ToS
Version
Length

ToS
Byte

Len

ID

IP Precedence
DiffServ (DSCP)

Offset

TTL

Proto

FCS

IP SA

IP DA

Data


Flow Ctrl

IPV4
DiffServ

IP Precedence
IP Precedence 3 0 7.
.
.

DiffServ (DSCP)
DSCP IETF DiffServ. 6
ToS 64 ( 0 63).
DSCP 3- IP Precedence
IP-.

21

802.1p ( ,
CoS)
L2

6B

6B

2B

46~1500B

4B

DA

SA

L/T

Data

FCS

6B
L2 802.1Q

DA

46~1500B

6B

4B

2B

SA

Tag

L/T

4B

Data

FCS

3 , QoS
L3 IPv4
Version
Length

ToS
Byte

Len

ID

Offset

TTL

Proto

FCS

IP SA

IP DA

Data

IP Precedence DSCP (1 )
IP Precedence: 3 Most Significant Bits (MSBs) ToS
DSCP: 6 MSBs ToS

22

Type of Service (ToS)


Precedence

TOS

MBZ

7
MBZ:

IP Precedence

IP Precedence

TOS:

111 (7)

Network control

1000

110 (6)

Internetwork control

0100

101 (5)

Critical

0010

100 (4)

Flash Override

0001

011 (3)

Flash

0000

010 (2)

Immediate

001 (1)

Priority

000 (0)

Routine

23

ToS type 2 DiffServ Code Point (DSCP)


DSCP

0
6

CU

1
7

EF/AF

Drop Precedence

Class

unused

Ex: 001010 001


01
0

Class 1

Class 2

Class 3

Class 4

001010
(DSCP 10)
AF 11

0100010
(DSCP 18)
AF 21

011010
(DSCP 26)
AF 31

100010
(DSCP 34)
AF 41

001100
(DSCP 34)
AF 12

010100
(DSCP 34)
AF 22

011100
(DSCP 34)
AF 32

100100
(DSCP 34)
AF 42

001110
(DSCP 34)
AF 13

010110
(DSCP 34)
AF 23

011110
(DSCP 34)
AF 33

100110
(DSCP 34)
AF 43

24



QoS,
802.1,
IP- DSCP ToS..

:
DSCP 46,
,
DSCP 46

DSCP: 48 / CoS:6
DSCP: 36 / CoS:4
DSCP: 16 / CoS:2
DSCP: 0 / CoS:0

7 Application

Presentatio
n
5 Session
6

Transport

Network

Data Link

Physical

DiffServ QoS

802.1p CoS

OSl

25

QoS (DSCP, CoS, IP Precedence)


.


. :

:
40 DSCP,
.
L2 CoS , R1 CoS Precedence DSCP .
L3 DSCP/IP Precedence .

R2

Port 1

Marking
Port 10

R1

R3

L2 : CoS
L3 : DSCP ,

26

IP Precedence and DSCP Values

CoS DSCP
CoS
0
1

DSCP

16

24

32

40

48

56

IP Precedence DSCP
IP
Precedence

DSCP

16

24

32

40

48

56

27

Оценить