Skip to main content

A Matlab Toolkit for the Analysis of Two-Level Processor Sharing Queues

  • Conference paper
  • First Online:
Quantitative Evaluation of Systems (QEST 2020)

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 12289))

Included in the following conference series:

  • 471 Accesses


This paper presents a Matlab toolkit for the numerical analysis of the two-level processor sharing queue (2LPS). The job sizes are expressed in terms of acyclic phase type distributions which can approximate any distribution arbitrary well while arrivals occur according to a homogeneous Poisson process. The toolkit provides a simple yet efficient way to find the optimal parametrization of the 2LPS queueing disciplines given the job size distributions and the intensity of the workload. In practice, the tool can be used to configure the 2LPS scheduler for TCP flows. The time complexity of the solution depends on the cube of the number of phases of the distribution describing the flow sizes.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Similar content being viewed by others


  1. 1.


  1. Aalto, S., Ayesta, U.: Mean delay analysis of multi level processor sharing disciplines. In: Proceedings of the IEEE of the 25th Annual Joint Conference of the IEEE Computer and Communications Society (INFOCOM) (2006)

    Google Scholar 

  2. Bansal, N.: Analysis of the M/G/1 processor-sharing queue with bulk arrivals. Oper. Res. Lett. 31(3), 401–405 (2003)

    Article  MathSciNet  Google Scholar 

  3. Horváth, A., Telek, M.: PhFit: a general phase-type fitting tool. In: Field, T., Harrison, P.G., Bradley, J., Harder, U. (eds.) TOOLS 2002. LNCS, vol. 2324, pp. 82–91. Springer, Heidelberg (2002).

    Chapter  Google Scholar 

  4. Kleinrock, L.: Queueing Systems, volume II: Computer Applications. Wiley, Hoboken (1976)

    Google Scholar 

  5. Marin, A., Rossi, S., Sottana, M., Zen, C.: Theoretical and experimental evaluation of the two-level processor sharing discipline for TCP flows. In: 27th IEEE International Symposium on Modeling, Analysis, and Simulation of Computer and Telecommunication Systems, MASCOTS 2019, pp. 94–106 (2019)

    Google Scholar 

  6. Righter, R., Shanthikumar, J.: Scheduling multiclass single server queueing systems to stochastically maximize the number of successful departures. Probab. Eng. Inf. Sci. 3, 323–333 (1989)

    Article  Google Scholar 

  7. Van Houdt, B., Van Velthoven, J., Blondia, C.: QBD Markov chains on binomial-like trees and its application to multilevel feedback queues. Ann. Oper. Res. 160(1), 3–18 (2008).

    Article  MathSciNet  MATH  Google Scholar 

Download references

Author information

Authors and Affiliations


Corresponding author

Correspondence to Andrea Marin .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2020 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Marin, A., Rossi, S., Zen, C. (2020). A Matlab Toolkit for the Analysis of Two-Level Processor Sharing Queues. In: Gribaudo, M., Jansen, D.N., Remke, A. (eds) Quantitative Evaluation of Systems. QEST 2020. Lecture Notes in Computer Science(), vol 12289. Springer, Cham.

Download citation

  • DOI:

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-030-59853-2

  • Online ISBN: 978-3-030-59854-9

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics