SlideShare a Scribd company logo
1 of 19
Download to read offline
Introduction to
Single / Two Rate Three Color Marker
(srTCM / trTCM)
Kentaro Ebisawa / 海老澤 健太郎
Twitter: @ebiken
Preface
• The objective of this document is to provider entry point for people to
understand srTCM and trTCM (single / two rate Tree Color Marker).
• This document will explain algorithm described in below RFCs, and
compare two different algorithm used for trTCM.
• RFC 2697 - A Single Rate Three Color Marker
• https://tools.ietf.org/html/rfc2697
• RFC 2698 - A Two Rate Three Color Marker - IETF Tools
• https://tools.ietf.org/html/rfc2698
• RFC 4115 - A Differentiated Service Two-Rate, Three-Color Marker with
Efficient Handling of in-Profile Traffic
• https://tools.ietf.org/html/rfc4115
2Intro to Single Rate / Two Rate Three Color Marker (srTCM/trTCM) | 2015/02/06 | @ebiken
List of contents
• Intro to metering
• color-blind vs. color-aware modes
• 3 types of meter algorithm using Token Bucket
• RFC 2697 - A Single Rate Three Color Marker
• RFC 2698 - A Two Rate Three Color Marker
• RFC 4115 - A Differentiated Service Two-Rate, Three-Color Marker with
Efficient Handling of in-Profile Traffic
• Comparison between RFC2698 and RFC4115
• Notes
Intro to Single Rate / Two Rate Three Color Marker (srTCM/trTCM) | 2015/02/06 | @ebiken 3
Metering … what is it and where would it be used?
• Meter will be applied to flow of
packets assigned to each meter
by classifier.
• Meter will measure rate of
packet belonging to the meter,
and mark packet for further
processing.
• An implementation can use any
method for accounting rate.
However, token bucket is widely
used due to difficulty of
accounting rate by storing raw
historical stats data of flow.
Intro to Single Rate / Two Rate Three Color Marker (srTCM/trTCM) | 2015/02/06 | @ebiken 4
RFC2475: https://tools.ietf.org/html/rfc2475
Fig. 1 : Logical View of a Packet Classifier and Traffic Conditioner
Packets Classifier
Meter
Marker
Shaper/
Dropper
color-blind vs. color-aware modes
• Both RFC 2698 and RFC 4115 has 2 modes, color-blind and aware mode.
• The following slides only describes algorithm of color-blind mode to keep simplicity.
• If you found needs to differentiate packet marking after reading description below, refer to the original RFCs for details.
• RFC 2698
• color-blind mode
• Packet will be evaluated against remaining tokens and tokens are consumed.
• color-aware mode
• If packet has been pre-colored in then it would be marked with the color without evaluating nor consuming remaining tokens.
• If packet was not pre-colored, it will be treated same as in color-blind mode.
• RFC 4115
• color-blind mode
• The meter assumes that all incoming packets are green.
• The operation of the meter is similar to that in the color-aware operation for green packets.
• color-aware mode
• red packets are always marked red.
• yellow packets could be marked yellow or red as result of evaluation.
• green packets could be marked any color as result of evaluation.
Intro to Single Rate / Two Rate Three Color Marker (srTCM/trTCM) | 2015/02/06 | @ebiken 5
RFC 2697 - A Single Rate Three Color Marker (srTCM)
• Parameters
• Committed Information Rate (CIR) … Bytes per second
• Committed Burst Size (CBS) … Bytes
• Excess Burst Size (EBS) … Bytes
• Descriptions
• CIR defines how fast token will be refilled.
• CBS/EBS defines size of token buckets named Tc and Te whose max size is
CBS/EBS.
• Tc(t) and Te(t) stands for amount of tokens in the buckets at time “t”.
• CBS and/or EBS must be greater than 0 and should be larger than MTU.
Intro to Single Rate / Two Rate Three Color Marker (srTCM/trTCM) | 2015/02/06 | @ebiken 6
RFC 2697 - srTCM algorithm (diagrams in following slides)
• Bucket update algorithm
• Initially both buckets are full.
• Tc(0) = CBS, Te(0) = EBS
• Tc and Te are updated CIR times per second as below.
• If Tc is less than CBS, Tc is incremented by one, else
• if Te is less then EBS, Te is incremented by one, else
• neither Tc nor Te is incremented.
• Marking and Bucket update when Packet arrives.
• Packet size B arrives.
• If Tc(t)-B >= 0, the packet is green and Tc is decremented by B
• if Te(t)-B >= 0, the packets is yellow and Te is decremented by B
• the packet is red and neither Tc nor Te is decremented.
Intro to Single Rate / Two Rate Three Color Marker (srTCM/trTCM) | 2015/02/06 | @ebiken 7
Intro to Single Rate / Two Rate Three Color Marker (srTCM/trTCM) | 2015/02/06 | @ebiken 8
Tc Te
1. Tc += CIR*Δt
Tc(t) < CBS
(not full)
2. Te += CIR*Δt
Te(t) < CBS
(not full)
Loop
Every Δt
do nothing
(both buckets
are full)
1. Fill Token to Tc
(if Tc is not full)
2. Fill Token to Te
(if Tc was full & Te is not full)
EBSCBS
How Tokens are added
(single rate TCM)
• CBS: Committed Burst Size (Bytes)
• EBS: Excess Burst Size (Bytes)
• CIR: Committed Information Rate
(Bytes per sec)
• Updates happens every Δt time
(different from RFC)
srTCM
YES
NO
YES
NO
Intro to Single Rate / Two Rate Three Color Marker (srTCM/trTCM) | 2015/02/06 | @ebiken 9
Tc Te
Tc(t) - B >= 0
Te(t) - B >=0
Packet Arrives
(Size B Bytes)
c. Mark RED
a. Mark GREEN
Tc(t) -= B
b. Mark YELLOW
Te(t) -= B
EBSCBS
How Packets are Colored & Tokens are Consumed
(single rate TCM)
• CBS: Committed Burst Size (Bytes)
• EBS: Excess Burst Size (Bytes)
• CIR: Committed Information Rate
(Bytes per sec)
• Updates happens every Δt time
(different from RFC)
srTCM
a. If Tc has enough token
Consume from Tc
Mark GREEN
b. If Te has enough token
Consume from Te
Mark YELLOW
c. Mark RED
(if no token)
Packet arrives
(B bytes)
YES
NO
YES
NO
RFC 2698 - A Two Rate Three Color Marker (trTCM)
• Parameters
• PIR: Peak Information Rate … Bytes per second
• PBS: Peak Burst Size … Bytes (Burst size of PIR)
• CIR: Committed Information Rate … Bytes per second
• CBS: Committed Burst Size … Bytes (Burst size of CIR)
• Descriptions
• PIR/CIR defines how fast token will be refilled.
• PIR must be equal to or greater than the CIR.
• PBS/CBS defines max size of token buckets named Tp and Tc.
• Tp(t) and Tc(t) stands for amount of tokens in the buckets at time “t”.
• PBS and/or CBS must be greater than 0 and should be larger than MTU.
Intro to Single Rate / Two Rate Three Color Marker (srTCM/trTCM) | 2015/02/06 | @ebiken 11
Intro to Single Rate / Two Rate Three Color Marker (srTCM/trTCM) | 2015/02/06 | @ebiken 12
Tc Tp
2. Fill Token to Tc
(if Tc is not full)
1. Fill Token to Tp
(if Tp is not full)
PBSCBS
1. Tp += PIR*Δt
if Tp(t) < PBS (not full)
Loop
Every Δt
trTCM
RFC2698
2. Tc += CIR*Δt
if Tc(t) < CBS (not full)
How Tokens are added : RFC 2698 (trTCM)
Intro to Single Rate / Two Rate Three Color Marker (srTCM/trTCM) | 2015/02/06 | @ebiken 13
Tc Tp
Tp(t) - B < 0
Tc(t) - B < 0
Packet Arrives
(Size B Bytes)
c. Mark GREEN
Tp(t) -= B
Tc(t) -= B
a. Mark RED
b. Mark YELLOW
Tp(t) -= B
PBS
b. If Tc does NOT has enough token.
Mark YELLOW
Consume from Tp.
a. If Tp does NOT have
enough token.
Mark RED
CBS
c. Mark GREEN
Consume from Tp, Tc Packet arrives (B bytes)
trTCM
RFC2698
YES
NO
YES
NO
How Packets are Colored & Tokens are Consumed :
RFC 2698 (trTCM)
Intro to Single Rate / Two Rate Three Color Marker (srTCM/trTCM) | 2015/02/06 | @ebiken 14
Tc Tp
Tp(t) - B < 0
Tc(t) - B < 0
Packet Arrives
(Size B Bytes)
c. Mark GREEN
Tp(t) -= B
Tc(t) -= B
a. Mark RED
b. Mark YELLOW
Tp(t) -= B
2. Fill Token to Tc
(if Tc is not full)
1. Fill Token to Tp
(if Tp is not full)
PBS
b. If Tc does NOT has enough token.
Mark YELLOW
Consume from Tp.
a. If Tp does NOT have
enough token.
Mark RED
CBS
c. Mark GREEN
Consume from Tp, Tc Packet arrives (B bytes)
trTCM
RFC2698
1. Tp += PIR*Δt
if Tp(t) < PBS (not full)
Loop
Every Δt
2. Tc += CIR*Δt
if Tc(t) < CBS (not full)
YES
NO
YES
NO
Summary of RFC 2698 (trTCM)
RFC 4115 - trTCM with Efficient Handling of in-Profile Traffic
• Parameters
• EIR: Excess Information Rate … bits per second
• EBS: Excess Burst Size … Bytes (Burst size of EIR)
• CIR: Committed Information Rate … bits per second
• CBS: Committed Burst Size … Bytes (Burst size of CIR)
• Descriptions
• EIR/CIR defines how fast token will be refilled. (generated)
• EBS/CBS defines max size of token buckets named Te and Tc.
• Te(t) and Tc(t) stands for amount of tokens in the buckets at time “t”.
• EBS and CBS must be larger than MTU. (max expected length of incoming PDU)
• EIR and CIR can be set independently of each other, or, could be linked together by
defining a burst duration parameter, T, where T=EBS/EIR=CBS/CIR.
Intro to Single Rate / Two Rate Three Color Marker (srTCM/trTCM) | 2015/02/06 | @ebiken 15
Intro to Single Rate / Two Rate Three Color Marker (srTCM/trTCM) | 2015/02/06 | @ebiken 16
Tc Te
1. Fill Token to Tc
(if Tc is not full)
2. Fill Token to Te
(if Te is not full)
EBSCBS
trTCM
RFC4115
1. Tc += CIR*Δt
if Tc(t) < CBS (not full)
Loop
Every Δt
2. Te += EIR*Δt
if Te(t) < EBS (not full)
How Tokens are added : RFC 4115 (trTCM)
Intro to Single Rate / Two Rate Three Color Marker (srTCM/trTCM) | 2015/02/06 | @ebiken 17
Tc Te
B <= Tc(t)
B <= Te(t)
Packet Arrives
(Size B Bytes)
c. Mark RED
a. Mark GREEN
Tc(t) -= B
b. Mark YELLOW
Te(t) -= B
EBS
a. If Tc has enough token.
Mark GREEN
Consume from Tc.
b. If Te has enough token.
Mark YELLOW
Consume from Te
CBS
Packet arrives (B bytes) c. Mark RED
trTCM
RFC4115
YES
NO
YES
NO
How Packets are Colored & Tokens are Consumed :
RFC 4115 (trTCM)
Intro to Single Rate / Two Rate Three Color Marker (srTCM/trTCM) | 2015/02/06 | @ebiken 18
Tc Te
B <= Tc(t)
B <= Te(t)
Packet Arrives
(Size B Bytes)
c. Mark RED
a. Mark GREEN
Tc(t) -= B
b. Mark YELLOW
Te(t) -= B
1. Fill Token to Tc
(if Tc is not full)
2. Fill Token to Te
(if Te is not full)
EBS
a. If Tc has enough token.
Mark GREEN
Consume from Tc.
b. If Te has enough token.
Mark YELLOW
Consume from Te
CBS
Packet arrives (B bytes) c. Mark RED
trTCM
RFC4115
1. Tc += CIR*Δt
if Tc(t) < CBS (not full)
Loop
Every Δt
2. Te += EIR*Δt
if Te(t) < EBS (not full)
YES
NO
YES
NO
Summary of RFC 4115 (trTCM)
Comparison between RFC2698 and RFC4115
• Order of evaluating Buckets
• RFC2698 Tp (Peak) => Tc (Commit)
• RFC4115 Tc (Commit) => Te (Excess)
• GREEN packet will be evaluated only once using RFC4115.
• This will be much efficient if most of traffic fall into GREEN.
• RFC2698 will require GREEN packet to pass two conformance tests.
• This could make yellow traffic starve incoming in-profile green packets.
Intro to Single Rate / Two Rate Three Color Marker (srTCM/trTCM) | 2015/02/06 | @ebiken 19
Notes
• Which part of packet should be considered when calculating rate?
• RFC2697/2698 (srTCM/trTCM) mentions only size of IP packets will be
measured when calculating CIR. (i.e. Link layer headers are ignored.)
• The CIR is measured in bytes of IP packets per second, i.e., it includes the IP header,
but not link specific headers.
• However, some implementation will calculate rate including size of
MPLS/VLAN/Ethernet header.
• RFC4115 implies size of PDU (not necessary IP packet) to be used.
• Page 2: “The CBS and EBS are measured in bytes and must configure to be greater
than the expected maximum length of the incoming PDU.”
Intro to Single Rate / Two Rate Three Color Marker (srTCM/trTCM) | 2015/02/06 | @ebiken 20

More Related Content

What's hot

LTE RADIO PROTOCOLS
LTE RADIO PROTOCOLSLTE RADIO PROTOCOLS
LTE RADIO PROTOCOLSbrkavyashree
 
Real time transport protocol
Real time transport protocolReal time transport protocol
Real time transport protocolSwaroopSorte
 
Integrated and Differentiated services Chapter 17
Integrated and Differentiated services Chapter 17Integrated and Differentiated services Chapter 17
Integrated and Differentiated services Chapter 17daniel ayalew
 
5G New Radio Technology Throughput Calculation
5G New Radio Technology  Throughput Calculation5G New Radio Technology  Throughput Calculation
5G New Radio Technology Throughput CalculationSukhvinder Singh Malik
 
Securing the Onion: 5G Cloud Native Infrastructure
Securing the Onion: 5G Cloud Native InfrastructureSecuring the Onion: 5G Cloud Native Infrastructure
Securing the Onion: 5G Cloud Native InfrastructureMyNOG
 
LinuxCon 2015 Linux Kernel Networking Walkthrough
LinuxCon 2015 Linux Kernel Networking WalkthroughLinuxCon 2015 Linux Kernel Networking Walkthrough
LinuxCon 2015 Linux Kernel Networking WalkthroughThomas Graf
 
06 evpn use-case_reviewv1
06 evpn use-case_reviewv106 evpn use-case_reviewv1
06 evpn use-case_reviewv1ronsito
 
CCNA Advanced Routing Protocols
CCNA Advanced Routing ProtocolsCCNA Advanced Routing Protocols
CCNA Advanced Routing ProtocolsDsunte Wilson
 
Lte rach configuration and capacity
Lte rach configuration and capacityLte rach configuration and capacity
Lte rach configuration and capacityYoung Hwan Kim
 

What's hot (20)

LTE RADIO PROTOCOLS
LTE RADIO PROTOCOLSLTE RADIO PROTOCOLS
LTE RADIO PROTOCOLS
 
RTP
RTPRTP
RTP
 
csma ca
 csma ca csma ca
csma ca
 
Ipv4
Ipv4Ipv4
Ipv4
 
Real time transport protocol
Real time transport protocolReal time transport protocol
Real time transport protocol
 
Sigtran protocol
Sigtran protocolSigtran protocol
Sigtran protocol
 
Epc cups overview
Epc cups overviewEpc cups overview
Epc cups overview
 
Paging in LTE
Paging in LTEPaging in LTE
Paging in LTE
 
Routing information protocol
Routing information protocolRouting information protocol
Routing information protocol
 
Integrated and Differentiated services Chapter 17
Integrated and Differentiated services Chapter 17Integrated and Differentiated services Chapter 17
Integrated and Differentiated services Chapter 17
 
Protocols for IoT
Protocols for IoTProtocols for IoT
Protocols for IoT
 
5G New Radio Technology Throughput Calculation
5G New Radio Technology  Throughput Calculation5G New Radio Technology  Throughput Calculation
5G New Radio Technology Throughput Calculation
 
Securing the Onion: 5G Cloud Native Infrastructure
Securing the Onion: 5G Cloud Native InfrastructureSecuring the Onion: 5G Cloud Native Infrastructure
Securing the Onion: 5G Cloud Native Infrastructure
 
Ospf.ppt
Ospf.pptOspf.ppt
Ospf.ppt
 
LinuxCon 2015 Linux Kernel Networking Walkthrough
LinuxCon 2015 Linux Kernel Networking WalkthroughLinuxCon 2015 Linux Kernel Networking Walkthrough
LinuxCon 2015 Linux Kernel Networking Walkthrough
 
06 evpn use-case_reviewv1
06 evpn use-case_reviewv106 evpn use-case_reviewv1
06 evpn use-case_reviewv1
 
CCNA Advanced Routing Protocols
CCNA Advanced Routing ProtocolsCCNA Advanced Routing Protocols
CCNA Advanced Routing Protocols
 
Lte rach configuration and capacity
Lte rach configuration and capacityLte rach configuration and capacity
Lte rach configuration and capacity
 
Chap05 gtp 03_kh
Chap05 gtp 03_khChap05 gtp 03_kh
Chap05 gtp 03_kh
 
DMVPN Lab WorkBook
DMVPN Lab WorkBookDMVPN Lab WorkBook
DMVPN Lab WorkBook
 

Similar to Intro to Single / Two Rate Three Color Marker (srTCM / trTCM)

error_correction.ppt
error_correction.ppterror_correction.ppt
error_correction.pptSysteDesig
 
A novel marking mechanism for packet video delivery over diff serv networks
A novel marking mechanism for packet video delivery over diff serv networksA novel marking mechanism for packet video delivery over diff serv networks
A novel marking mechanism for packet video delivery over diff serv networksAlpen-Adria-Universität
 
Transport Layer in Computer Networks (TCP / UDP / SCTP)
Transport Layer in Computer Networks (TCP / UDP / SCTP)Transport Layer in Computer Networks (TCP / UDP / SCTP)
Transport Layer in Computer Networks (TCP / UDP / SCTP)Hamidreza Bolhasani
 
Fundamentals of sdh
Fundamentals of sdhFundamentals of sdh
Fundamentals of sdhsreejithkt
 
5 multiplexing dan media transmisi(1)
5 multiplexing dan media transmisi(1)5 multiplexing dan media transmisi(1)
5 multiplexing dan media transmisi(1)ampas03
 
5 multiplexing dan media transmisi
5 multiplexing dan media transmisi5 multiplexing dan media transmisi
5 multiplexing dan media transmisiampas03
 
Multiplier and Accumulator Using Csla
Multiplier and Accumulator Using CslaMultiplier and Accumulator Using Csla
Multiplier and Accumulator Using CslaIOSR Journals
 
Data Communication & Computer Networks: Multi level, multi transition & block...
Data Communication & Computer Networks: Multi level, multi transition & block...Data Communication & Computer Networks: Multi level, multi transition & block...
Data Communication & Computer Networks: Multi level, multi transition & block...Dr Rajiv Srivastava
 
Designing TCP-Friendly Window-based Congestion Control
Designing TCP-Friendly Window-based Congestion ControlDesigning TCP-Friendly Window-based Congestion Control
Designing TCP-Friendly Window-based Congestion Controlsoohyunc
 
Research Inventy: International Journal of Engineering and Science
Research Inventy: International Journal of Engineering and ScienceResearch Inventy: International Journal of Engineering and Science
Research Inventy: International Journal of Engineering and Scienceresearchinventy
 
Research Inventy : International Journal of Engineering and Science is publis...
Research Inventy : International Journal of Engineering and Science is publis...Research Inventy : International Journal of Engineering and Science is publis...
Research Inventy : International Journal of Engineering and Science is publis...researchinventy
 
Transport layer
Transport layer   Transport layer
Transport layer AnusuaBasu
 
Switching and signalling ovt, Winter training .bsnl .swesome knowledge ,tele...
Switching and signalling ovt, Winter training .bsnl .swesome  knowledge ,tele...Switching and signalling ovt, Winter training .bsnl .swesome  knowledge ,tele...
Switching and signalling ovt, Winter training .bsnl .swesome knowledge ,tele...SumanPramanik7
 
Multiplexing : Wave Division Multiplexing
Multiplexing : Wave Division MultiplexingMultiplexing : Wave Division Multiplexing
Multiplexing : Wave Division MultiplexingDr Rajiv Srivastava
 

Similar to Intro to Single / Two Rate Three Color Marker (srTCM / trTCM) (20)

error_correction.ppt
error_correction.ppterror_correction.ppt
error_correction.ppt
 
A novel marking mechanism for packet video delivery over diff serv networks
A novel marking mechanism for packet video delivery over diff serv networksA novel marking mechanism for packet video delivery over diff serv networks
A novel marking mechanism for packet video delivery over diff serv networks
 
Time division
Time divisionTime division
Time division
 
Time division
Time divisionTime division
Time division
 
Transport Layer in Computer Networks (TCP / UDP / SCTP)
Transport Layer in Computer Networks (TCP / UDP / SCTP)Transport Layer in Computer Networks (TCP / UDP / SCTP)
Transport Layer in Computer Networks (TCP / UDP / SCTP)
 
Fundamentals of sdh
Fundamentals of sdhFundamentals of sdh
Fundamentals of sdh
 
5 multiplexing dan media transmisi(1)
5 multiplexing dan media transmisi(1)5 multiplexing dan media transmisi(1)
5 multiplexing dan media transmisi(1)
 
5 multiplexing dan media transmisi
5 multiplexing dan media transmisi5 multiplexing dan media transmisi
5 multiplexing dan media transmisi
 
F010113644
F010113644F010113644
F010113644
 
Multiplier and Accumulator Using Csla
Multiplier and Accumulator Using CslaMultiplier and Accumulator Using Csla
Multiplier and Accumulator Using Csla
 
Data Communication & Computer Networks: Multi level, multi transition & block...
Data Communication & Computer Networks: Multi level, multi transition & block...Data Communication & Computer Networks: Multi level, multi transition & block...
Data Communication & Computer Networks: Multi level, multi transition & block...
 
Designing TCP-Friendly Window-based Congestion Control
Designing TCP-Friendly Window-based Congestion ControlDesigning TCP-Friendly Window-based Congestion Control
Designing TCP-Friendly Window-based Congestion Control
 
Research Inventy: International Journal of Engineering and Science
Research Inventy: International Journal of Engineering and ScienceResearch Inventy: International Journal of Engineering and Science
Research Inventy: International Journal of Engineering and Science
 
Research Inventy : International Journal of Engineering and Science is publis...
Research Inventy : International Journal of Engineering and Science is publis...Research Inventy : International Journal of Engineering and Science is publis...
Research Inventy : International Journal of Engineering and Science is publis...
 
Transport layer
Transport layer   Transport layer
Transport layer
 
E1 To Stm
E1 To Stm E1 To Stm
E1 To Stm
 
Switching and signalling ovt, Winter training .bsnl .swesome knowledge ,tele...
Switching and signalling ovt, Winter training .bsnl .swesome  knowledge ,tele...Switching and signalling ovt, Winter training .bsnl .swesome  knowledge ,tele...
Switching and signalling ovt, Winter training .bsnl .swesome knowledge ,tele...
 
Multi level,multi transition
Multi level,multi transitionMulti level,multi transition
Multi level,multi transition
 
communication networks
communication networkscommunication networks
communication networks
 
Multiplexing : Wave Division Multiplexing
Multiplexing : Wave Division MultiplexingMultiplexing : Wave Division Multiplexing
Multiplexing : Wave Division Multiplexing
 

More from Kentaro Ebisawa

P4 Updates (2020) (Japanese)
P4 Updates (2020) (Japanese)P4 Updates (2020) (Japanese)
P4 Updates (2020) (Japanese)Kentaro Ebisawa
 
Barefoot Faster™ 日本語紹介
Barefoot Faster™ 日本語紹介Barefoot Faster™ 日本語紹介
Barefoot Faster™ 日本語紹介Kentaro Ebisawa
 
IETF106 Hackathon 報告 & P4 based Switch の課題と未来
IETF106 Hackathon 報告 & P4 based Switch の課題と未来IETF106 Hackathon 報告 & P4 based Switch の課題と未来
IETF106 Hackathon 報告 & P4 based Switch の課題と未来Kentaro Ebisawa
 
MPLS Japan 2019 : Data & Control Plane を繋ぐ API
MPLS Japan 2019 : Data & Control Plane を繋ぐ APIMPLS Japan 2019 : Data & Control Plane を繋ぐ API
MPLS Japan 2019 : Data & Control Plane を繋ぐ APIKentaro Ebisawa
 
In Network Computing Prototype Using P4 at KSC/KREONET 2019
In Network Computing Prototype Using P4 at KSC/KREONET 2019In Network Computing Prototype Using P4 at KSC/KREONET 2019
In Network Computing Prototype Using P4 at KSC/KREONET 2019Kentaro Ebisawa
 
Comparison of SRv6 Extensions uSID, SRv6+, C-SRH
Comparison of SRv6 Extensions uSID, SRv6+, C-SRHComparison of SRv6 Extensions uSID, SRv6+, C-SRH
Comparison of SRv6 Extensions uSID, SRv6+, C-SRHKentaro Ebisawa
 
Interop2019 Toyota Netcope P4
Interop2019 Toyota Netcope P4Interop2019 Toyota Netcope P4
Interop2019 Toyota Netcope P4Kentaro Ebisawa
 
IETF 104 Hackathon VPP Prototyping Stateless SRv6/GTP-U Translation
IETF 104 Hackathon VPP Prototyping Stateless SRv6/GTP-U TranslationIETF 104 Hackathon VPP Prototyping Stateless SRv6/GTP-U Translation
IETF 104 Hackathon VPP Prototyping Stateless SRv6/GTP-U TranslationKentaro Ebisawa
 
p4srv6 (P4-16) design document rev1.0
p4srv6 (P4-16) design document rev1.0p4srv6 (P4-16) design document rev1.0
p4srv6 (P4-16) design document rev1.0Kentaro Ebisawa
 
SRv6 Mobile User Plane : Initial POC and Implementation
SRv6 Mobile User Plane : Initial POC and ImplementationSRv6 Mobile User Plane : Initial POC and Implementation
SRv6 Mobile User Plane : Initial POC and ImplementationKentaro Ebisawa
 
JANOG43 Forefront of SRv6, Open Source Implementations
JANOG43 Forefront of SRv6, Open Source ImplementationsJANOG43 Forefront of SRv6, Open Source Implementations
JANOG43 Forefront of SRv6, Open Source ImplementationsKentaro Ebisawa
 
Using GTP on Linux with libgtpnl
Using GTP on Linux with libgtpnlUsing GTP on Linux with libgtpnl
Using GTP on Linux with libgtpnlKentaro Ebisawa
 
"SRv6の現状と展望" ENOG53@上越
"SRv6の現状と展望" ENOG53@上越"SRv6の現状と展望" ENOG53@上越
"SRv6の現状と展望" ENOG53@上越Kentaro Ebisawa
 
SRv6 Mobile User Plane P4 proto-type
SRv6 Mobile User Plane P4 proto-typeSRv6 Mobile User Plane P4 proto-type
SRv6 Mobile User Plane P4 proto-typeKentaro Ebisawa
 
Zebra SRv6 CLI on Linux Dataplane (ENOG#49)
Zebra SRv6 CLI on Linux Dataplane (ENOG#49)Zebra SRv6 CLI on Linux Dataplane (ENOG#49)
Zebra SRv6 CLI on Linux Dataplane (ENOG#49)Kentaro Ebisawa
 
Zebra 2.0 in Hybrid Cloud Era
Zebra 2.0 in Hybrid Cloud EraZebra 2.0 in Hybrid Cloud Era
Zebra 2.0 in Hybrid Cloud EraKentaro Ebisawa
 
p4alu: Arithmetic Logic Unit in P4
p4alu: Arithmetic Logic Unit in P4p4alu: Arithmetic Logic Unit in P4
p4alu: Arithmetic Logic Unit in P4Kentaro Ebisawa
 
zebra & openconfigd Introduction
zebra & openconfigd Introductionzebra & openconfigd Introduction
zebra & openconfigd IntroductionKentaro Ebisawa
 

More from Kentaro Ebisawa (20)

P4 Updates (2020) (Japanese)
P4 Updates (2020) (Japanese)P4 Updates (2020) (Japanese)
P4 Updates (2020) (Japanese)
 
Barefoot Faster™ 日本語紹介
Barefoot Faster™ 日本語紹介Barefoot Faster™ 日本語紹介
Barefoot Faster™ 日本語紹介
 
IETF106 Hackathon 報告 & P4 based Switch の課題と未来
IETF106 Hackathon 報告 & P4 based Switch の課題と未来IETF106 Hackathon 報告 & P4 based Switch の課題と未来
IETF106 Hackathon 報告 & P4 based Switch の課題と未来
 
MPLS Japan 2019 : Data & Control Plane を繋ぐ API
MPLS Japan 2019 : Data & Control Plane を繋ぐ APIMPLS Japan 2019 : Data & Control Plane を繋ぐ API
MPLS Japan 2019 : Data & Control Plane を繋ぐ API
 
Yang Tools Quick Memo
Yang Tools Quick MemoYang Tools Quick Memo
Yang Tools Quick Memo
 
In Network Computing Prototype Using P4 at KSC/KREONET 2019
In Network Computing Prototype Using P4 at KSC/KREONET 2019In Network Computing Prototype Using P4 at KSC/KREONET 2019
In Network Computing Prototype Using P4 at KSC/KREONET 2019
 
Comparison of SRv6 Extensions uSID, SRv6+, C-SRH
Comparison of SRv6 Extensions uSID, SRv6+, C-SRHComparison of SRv6 Extensions uSID, SRv6+, C-SRH
Comparison of SRv6 Extensions uSID, SRv6+, C-SRH
 
Interop2019 Toyota Netcope P4
Interop2019 Toyota Netcope P4Interop2019 Toyota Netcope P4
Interop2019 Toyota Netcope P4
 
IETF 104 Hackathon VPP Prototyping Stateless SRv6/GTP-U Translation
IETF 104 Hackathon VPP Prototyping Stateless SRv6/GTP-U TranslationIETF 104 Hackathon VPP Prototyping Stateless SRv6/GTP-U Translation
IETF 104 Hackathon VPP Prototyping Stateless SRv6/GTP-U Translation
 
p4srv6 (P4-16) design document rev1.0
p4srv6 (P4-16) design document rev1.0p4srv6 (P4-16) design document rev1.0
p4srv6 (P4-16) design document rev1.0
 
SRv6 Mobile User Plane : Initial POC and Implementation
SRv6 Mobile User Plane : Initial POC and ImplementationSRv6 Mobile User Plane : Initial POC and Implementation
SRv6 Mobile User Plane : Initial POC and Implementation
 
JANOG43 Forefront of SRv6, Open Source Implementations
JANOG43 Forefront of SRv6, Open Source ImplementationsJANOG43 Forefront of SRv6, Open Source Implementations
JANOG43 Forefront of SRv6, Open Source Implementations
 
Using GTP on Linux with libgtpnl
Using GTP on Linux with libgtpnlUsing GTP on Linux with libgtpnl
Using GTP on Linux with libgtpnl
 
GTPing, How To
GTPing, How ToGTPing, How To
GTPing, How To
 
"SRv6の現状と展望" ENOG53@上越
"SRv6の現状と展望" ENOG53@上越"SRv6の現状と展望" ENOG53@上越
"SRv6の現状と展望" ENOG53@上越
 
SRv6 Mobile User Plane P4 proto-type
SRv6 Mobile User Plane P4 proto-typeSRv6 Mobile User Plane P4 proto-type
SRv6 Mobile User Plane P4 proto-type
 
Zebra SRv6 CLI on Linux Dataplane (ENOG#49)
Zebra SRv6 CLI on Linux Dataplane (ENOG#49)Zebra SRv6 CLI on Linux Dataplane (ENOG#49)
Zebra SRv6 CLI on Linux Dataplane (ENOG#49)
 
Zebra 2.0 in Hybrid Cloud Era
Zebra 2.0 in Hybrid Cloud EraZebra 2.0 in Hybrid Cloud Era
Zebra 2.0 in Hybrid Cloud Era
 
p4alu: Arithmetic Logic Unit in P4
p4alu: Arithmetic Logic Unit in P4p4alu: Arithmetic Logic Unit in P4
p4alu: Arithmetic Logic Unit in P4
 
zebra & openconfigd Introduction
zebra & openconfigd Introductionzebra & openconfigd Introduction
zebra & openconfigd Introduction
 

Recently uploaded

FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistandanishmna97
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024The Digital Insurer
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...apidays
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfOrbitshub
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native ApplicationsWSO2
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusZilliz
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Angeliki Cooney
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamUiPathCommunity
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfOverkill Security
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 

Recently uploaded (20)

FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdf
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 

Intro to Single / Two Rate Three Color Marker (srTCM / trTCM)

  • 1. Introduction to Single / Two Rate Three Color Marker (srTCM / trTCM) Kentaro Ebisawa / 海老澤 健太郎 Twitter: @ebiken
  • 2. Preface • The objective of this document is to provider entry point for people to understand srTCM and trTCM (single / two rate Tree Color Marker). • This document will explain algorithm described in below RFCs, and compare two different algorithm used for trTCM. • RFC 2697 - A Single Rate Three Color Marker • https://tools.ietf.org/html/rfc2697 • RFC 2698 - A Two Rate Three Color Marker - IETF Tools • https://tools.ietf.org/html/rfc2698 • RFC 4115 - A Differentiated Service Two-Rate, Three-Color Marker with Efficient Handling of in-Profile Traffic • https://tools.ietf.org/html/rfc4115 2Intro to Single Rate / Two Rate Three Color Marker (srTCM/trTCM) | 2015/02/06 | @ebiken
  • 3. List of contents • Intro to metering • color-blind vs. color-aware modes • 3 types of meter algorithm using Token Bucket • RFC 2697 - A Single Rate Three Color Marker • RFC 2698 - A Two Rate Three Color Marker • RFC 4115 - A Differentiated Service Two-Rate, Three-Color Marker with Efficient Handling of in-Profile Traffic • Comparison between RFC2698 and RFC4115 • Notes Intro to Single Rate / Two Rate Three Color Marker (srTCM/trTCM) | 2015/02/06 | @ebiken 3
  • 4. Metering … what is it and where would it be used? • Meter will be applied to flow of packets assigned to each meter by classifier. • Meter will measure rate of packet belonging to the meter, and mark packet for further processing. • An implementation can use any method for accounting rate. However, token bucket is widely used due to difficulty of accounting rate by storing raw historical stats data of flow. Intro to Single Rate / Two Rate Three Color Marker (srTCM/trTCM) | 2015/02/06 | @ebiken 4 RFC2475: https://tools.ietf.org/html/rfc2475 Fig. 1 : Logical View of a Packet Classifier and Traffic Conditioner Packets Classifier Meter Marker Shaper/ Dropper
  • 5. color-blind vs. color-aware modes • Both RFC 2698 and RFC 4115 has 2 modes, color-blind and aware mode. • The following slides only describes algorithm of color-blind mode to keep simplicity. • If you found needs to differentiate packet marking after reading description below, refer to the original RFCs for details. • RFC 2698 • color-blind mode • Packet will be evaluated against remaining tokens and tokens are consumed. • color-aware mode • If packet has been pre-colored in then it would be marked with the color without evaluating nor consuming remaining tokens. • If packet was not pre-colored, it will be treated same as in color-blind mode. • RFC 4115 • color-blind mode • The meter assumes that all incoming packets are green. • The operation of the meter is similar to that in the color-aware operation for green packets. • color-aware mode • red packets are always marked red. • yellow packets could be marked yellow or red as result of evaluation. • green packets could be marked any color as result of evaluation. Intro to Single Rate / Two Rate Three Color Marker (srTCM/trTCM) | 2015/02/06 | @ebiken 5
  • 6. RFC 2697 - A Single Rate Three Color Marker (srTCM) • Parameters • Committed Information Rate (CIR) … Bytes per second • Committed Burst Size (CBS) … Bytes • Excess Burst Size (EBS) … Bytes • Descriptions • CIR defines how fast token will be refilled. • CBS/EBS defines size of token buckets named Tc and Te whose max size is CBS/EBS. • Tc(t) and Te(t) stands for amount of tokens in the buckets at time “t”. • CBS and/or EBS must be greater than 0 and should be larger than MTU. Intro to Single Rate / Two Rate Three Color Marker (srTCM/trTCM) | 2015/02/06 | @ebiken 6
  • 7. RFC 2697 - srTCM algorithm (diagrams in following slides) • Bucket update algorithm • Initially both buckets are full. • Tc(0) = CBS, Te(0) = EBS • Tc and Te are updated CIR times per second as below. • If Tc is less than CBS, Tc is incremented by one, else • if Te is less then EBS, Te is incremented by one, else • neither Tc nor Te is incremented. • Marking and Bucket update when Packet arrives. • Packet size B arrives. • If Tc(t)-B >= 0, the packet is green and Tc is decremented by B • if Te(t)-B >= 0, the packets is yellow and Te is decremented by B • the packet is red and neither Tc nor Te is decremented. Intro to Single Rate / Two Rate Three Color Marker (srTCM/trTCM) | 2015/02/06 | @ebiken 7
  • 8. Intro to Single Rate / Two Rate Three Color Marker (srTCM/trTCM) | 2015/02/06 | @ebiken 8 Tc Te 1. Tc += CIR*Δt Tc(t) < CBS (not full) 2. Te += CIR*Δt Te(t) < CBS (not full) Loop Every Δt do nothing (both buckets are full) 1. Fill Token to Tc (if Tc is not full) 2. Fill Token to Te (if Tc was full & Te is not full) EBSCBS How Tokens are added (single rate TCM) • CBS: Committed Burst Size (Bytes) • EBS: Excess Burst Size (Bytes) • CIR: Committed Information Rate (Bytes per sec) • Updates happens every Δt time (different from RFC) srTCM YES NO YES NO
  • 9. Intro to Single Rate / Two Rate Three Color Marker (srTCM/trTCM) | 2015/02/06 | @ebiken 9 Tc Te Tc(t) - B >= 0 Te(t) - B >=0 Packet Arrives (Size B Bytes) c. Mark RED a. Mark GREEN Tc(t) -= B b. Mark YELLOW Te(t) -= B EBSCBS How Packets are Colored & Tokens are Consumed (single rate TCM) • CBS: Committed Burst Size (Bytes) • EBS: Excess Burst Size (Bytes) • CIR: Committed Information Rate (Bytes per sec) • Updates happens every Δt time (different from RFC) srTCM a. If Tc has enough token Consume from Tc Mark GREEN b. If Te has enough token Consume from Te Mark YELLOW c. Mark RED (if no token) Packet arrives (B bytes) YES NO YES NO
  • 10. RFC 2698 - A Two Rate Three Color Marker (trTCM) • Parameters • PIR: Peak Information Rate … Bytes per second • PBS: Peak Burst Size … Bytes (Burst size of PIR) • CIR: Committed Information Rate … Bytes per second • CBS: Committed Burst Size … Bytes (Burst size of CIR) • Descriptions • PIR/CIR defines how fast token will be refilled. • PIR must be equal to or greater than the CIR. • PBS/CBS defines max size of token buckets named Tp and Tc. • Tp(t) and Tc(t) stands for amount of tokens in the buckets at time “t”. • PBS and/or CBS must be greater than 0 and should be larger than MTU. Intro to Single Rate / Two Rate Three Color Marker (srTCM/trTCM) | 2015/02/06 | @ebiken 11
  • 11. Intro to Single Rate / Two Rate Three Color Marker (srTCM/trTCM) | 2015/02/06 | @ebiken 12 Tc Tp 2. Fill Token to Tc (if Tc is not full) 1. Fill Token to Tp (if Tp is not full) PBSCBS 1. Tp += PIR*Δt if Tp(t) < PBS (not full) Loop Every Δt trTCM RFC2698 2. Tc += CIR*Δt if Tc(t) < CBS (not full) How Tokens are added : RFC 2698 (trTCM)
  • 12. Intro to Single Rate / Two Rate Three Color Marker (srTCM/trTCM) | 2015/02/06 | @ebiken 13 Tc Tp Tp(t) - B < 0 Tc(t) - B < 0 Packet Arrives (Size B Bytes) c. Mark GREEN Tp(t) -= B Tc(t) -= B a. Mark RED b. Mark YELLOW Tp(t) -= B PBS b. If Tc does NOT has enough token. Mark YELLOW Consume from Tp. a. If Tp does NOT have enough token. Mark RED CBS c. Mark GREEN Consume from Tp, Tc Packet arrives (B bytes) trTCM RFC2698 YES NO YES NO How Packets are Colored & Tokens are Consumed : RFC 2698 (trTCM)
  • 13. Intro to Single Rate / Two Rate Three Color Marker (srTCM/trTCM) | 2015/02/06 | @ebiken 14 Tc Tp Tp(t) - B < 0 Tc(t) - B < 0 Packet Arrives (Size B Bytes) c. Mark GREEN Tp(t) -= B Tc(t) -= B a. Mark RED b. Mark YELLOW Tp(t) -= B 2. Fill Token to Tc (if Tc is not full) 1. Fill Token to Tp (if Tp is not full) PBS b. If Tc does NOT has enough token. Mark YELLOW Consume from Tp. a. If Tp does NOT have enough token. Mark RED CBS c. Mark GREEN Consume from Tp, Tc Packet arrives (B bytes) trTCM RFC2698 1. Tp += PIR*Δt if Tp(t) < PBS (not full) Loop Every Δt 2. Tc += CIR*Δt if Tc(t) < CBS (not full) YES NO YES NO Summary of RFC 2698 (trTCM)
  • 14. RFC 4115 - trTCM with Efficient Handling of in-Profile Traffic • Parameters • EIR: Excess Information Rate … bits per second • EBS: Excess Burst Size … Bytes (Burst size of EIR) • CIR: Committed Information Rate … bits per second • CBS: Committed Burst Size … Bytes (Burst size of CIR) • Descriptions • EIR/CIR defines how fast token will be refilled. (generated) • EBS/CBS defines max size of token buckets named Te and Tc. • Te(t) and Tc(t) stands for amount of tokens in the buckets at time “t”. • EBS and CBS must be larger than MTU. (max expected length of incoming PDU) • EIR and CIR can be set independently of each other, or, could be linked together by defining a burst duration parameter, T, where T=EBS/EIR=CBS/CIR. Intro to Single Rate / Two Rate Three Color Marker (srTCM/trTCM) | 2015/02/06 | @ebiken 15
  • 15. Intro to Single Rate / Two Rate Three Color Marker (srTCM/trTCM) | 2015/02/06 | @ebiken 16 Tc Te 1. Fill Token to Tc (if Tc is not full) 2. Fill Token to Te (if Te is not full) EBSCBS trTCM RFC4115 1. Tc += CIR*Δt if Tc(t) < CBS (not full) Loop Every Δt 2. Te += EIR*Δt if Te(t) < EBS (not full) How Tokens are added : RFC 4115 (trTCM)
  • 16. Intro to Single Rate / Two Rate Three Color Marker (srTCM/trTCM) | 2015/02/06 | @ebiken 17 Tc Te B <= Tc(t) B <= Te(t) Packet Arrives (Size B Bytes) c. Mark RED a. Mark GREEN Tc(t) -= B b. Mark YELLOW Te(t) -= B EBS a. If Tc has enough token. Mark GREEN Consume from Tc. b. If Te has enough token. Mark YELLOW Consume from Te CBS Packet arrives (B bytes) c. Mark RED trTCM RFC4115 YES NO YES NO How Packets are Colored & Tokens are Consumed : RFC 4115 (trTCM)
  • 17. Intro to Single Rate / Two Rate Three Color Marker (srTCM/trTCM) | 2015/02/06 | @ebiken 18 Tc Te B <= Tc(t) B <= Te(t) Packet Arrives (Size B Bytes) c. Mark RED a. Mark GREEN Tc(t) -= B b. Mark YELLOW Te(t) -= B 1. Fill Token to Tc (if Tc is not full) 2. Fill Token to Te (if Te is not full) EBS a. If Tc has enough token. Mark GREEN Consume from Tc. b. If Te has enough token. Mark YELLOW Consume from Te CBS Packet arrives (B bytes) c. Mark RED trTCM RFC4115 1. Tc += CIR*Δt if Tc(t) < CBS (not full) Loop Every Δt 2. Te += EIR*Δt if Te(t) < EBS (not full) YES NO YES NO Summary of RFC 4115 (trTCM)
  • 18. Comparison between RFC2698 and RFC4115 • Order of evaluating Buckets • RFC2698 Tp (Peak) => Tc (Commit) • RFC4115 Tc (Commit) => Te (Excess) • GREEN packet will be evaluated only once using RFC4115. • This will be much efficient if most of traffic fall into GREEN. • RFC2698 will require GREEN packet to pass two conformance tests. • This could make yellow traffic starve incoming in-profile green packets. Intro to Single Rate / Two Rate Three Color Marker (srTCM/trTCM) | 2015/02/06 | @ebiken 19
  • 19. Notes • Which part of packet should be considered when calculating rate? • RFC2697/2698 (srTCM/trTCM) mentions only size of IP packets will be measured when calculating CIR. (i.e. Link layer headers are ignored.) • The CIR is measured in bytes of IP packets per second, i.e., it includes the IP header, but not link specific headers. • However, some implementation will calculate rate including size of MPLS/VLAN/Ethernet header. • RFC4115 implies size of PDU (not necessary IP packet) to be used. • Page 2: “The CBS and EBS are measured in bytes and must configure to be greater than the expected maximum length of the incoming PDU.” Intro to Single Rate / Two Rate Three Color Marker (srTCM/trTCM) | 2015/02/06 | @ebiken 20