Skip to main content

Main teletraffic functions

Project description

teletraffic

Python library for calculating performance measures of queueing systems using analytical formulas and simulation methods.


Installation

pip install teletraffic

Supported models and functions

E — Erlang B formula

Description: Erlang B loss probability formula.

Arguments:

  • z — offered traffic from a group of users, [Erl]
  • v — number of servers

Result:

  • p — call loss probability

Hi — Palm–Jacobaeus formula

Arguments:

  • z — offered traffic from a group of users, [Erl]
  • v — number of servers
  • d — number of busy servers

Result:

  • p — call loss probability

PalmTable — Palm loss table

Arguments:

  • z — offered traffic from a group of users, [Erl]
  • v — number of servers

Result:

  • p — call loss probability

M_M_V_L_an — Analytical M/M/V/L model (Kendall–Basharin notation)

Arguments:

  • z — offered traffic from a group of users, [Erl]
  • v — number of servers

Properties:

  • loss — call loss probability
  • serv — carried traffic, [Erl]

Methods:

  • show() — display QoS characteristics of the analytical M/M/V/L model

M_M_V_L_im — Simulation M/M/V/L model (Kendall–Basharin notation)

Arguments:

  • z — offered traffic from a group of users, [Erl]
  • v — number of servers
  • nz — number of simulated calls
  • seed — random seed (default: 0)

Properties:

  • loss — call loss probability
  • serv — carried traffic, [Erl]

Methods:

  • show() — display QoS characteristics of the simulation M/M/V/L model

EngsetTable — Engset loss table

Arguments:

  • z — offered traffic per user, [Erl]
  • n — number of users
  • v — number of servers

Result:

  • p — call loss probability

Mi_M_V_L_an — Analytical Mi/M/V/L model

Arguments:

  • z — offered traffic per user, [Erl]
  • n — number of users
  • v — number of servers

Properties:

  • loss — call loss probability
  • serv — carried traffic, [Erl]

Methods:

  • show() — display QoS characteristics of the analytical Mi/M/V/L model

VM_M_V_L_PRA_an — Analytical VM/M/V/L/PRA model

Arguments:

  • vz — vector of offered traffic intensities by service class, [Erl]
  • v — number of servers

Properties:

  • vloss — vector of call loss probabilities by service class
  • serv — carried traffic, [Erl]

Methods:

  • show() — display QoS characteristics of the analytical VM/M/V/L/PRA model

M_G_V_L_an — Analytical M/G/V/L model

Arguments:

  • ts — mean service time
  • tbr — mean time to failure of a server
  • trec — mean recovery time of a server
  • lmb — arrival rate
  • v — number of servers

Properties:

  • loss — call loss probability
  • serv — carried traffic, [Erl]

Methods:

  • show() — display QoS characteristics of the analytical M/G/V/L model

ErlangFormula2 — Erlang second formula

Arguments:

  • z — offered traffic from a group of users, [Erl]
  • v — number of servers

Result:

  • p — call loss probability

M_M_V_W_FF_R_an — Analytical M/M/V/W/FF/R model

Arguments:

  • z — offered traffic from a group of users, [Erl]
  • v — number of servers
  • ta — admissible waiting time
  • ts — mean service time

Properties:

  • wait — waiting probability
  • over_wait — probability of waiting longer than admissible time
  • avr_time — average waiting time
  • avr_time_wait — average waiting time for waiting calls
  • queue — probability of a non-empty queue

Methods:

  • show() — display QoS characteristics of the analytical M/M/V/W/FF/R model

M_M_V_W_FF_R_im — Simulation M/M/V/W/FF/R model

Arguments:

  • z — offered traffic from a group of users, [Erl]
  • v — number of servers
  • nz — number of simulated calls
  • ta — admissible waiting time (default: 0)
  • seed — random seed (default: 0)

Properties:

  • wait — waiting probability
  • over_wait — probability of waiting longer than admissible time
  • avr_time — average waiting time
  • avr_time_wait — average waiting time for waiting calls
  • queue — probability of a non-empty queue

Methods:

  • show() — display QoS characteristics of the simulation M/M/V/W/FF/R model

VM_VMl_V_L_an — Analytical multiservice VM/VMl/V/L model (full accessibility)

Arguments:

  • vz — vector of offered traffic intensities, [Erl]
  • vb — vector of bandwidth requirements per service class, [CRU]
  • kc — number of traffic groups
  • f — capacity of a traffic group, [CRU]

Properties:

  • vloss — vector of call loss probabilities by service class
  • serv — carried traffic, [Erl]

Methods:

  • show() — display QoS characteristics of the analytical VM/VMl/V/L model

VM_VMl_VDg_L_an — Analytical multiservice VM/VMl/VDg/L model (limited accessibility)

Arguments:

  • vz — vector of offered traffic intensities, [Erl]
  • vb — vector of bandwidth requirements per service class, [CRU]
  • kc — number of traffic groups
  • f — capacity of a traffic group, [CRU]
  • kd — number of traffic groups accessible to each service class

Properties:

  • vloss — vector of call loss probabilities by service class
  • serv — carried traffic, [Erl]

Methods:

  • show() — display QoS characteristics of the analytical VM/VMl/VDg/L model

VM_VMl_VDg_L_im — Simulation multiservice VM/VMl/VDg/L model (limited accessibility)

Arguments:

  • vz — vector of offered traffic intensities, [Erl]
  • vb — vector of bandwidth requirements per service class, [CRU]
  • kc — number of traffic groups
  • f — capacity of a traffic group, [CRU]
  • kd — number of traffic groups accessible to each service class
  • nz — number of simulated calls
  • strategy — channel allocation strategy ("МаксСвоб", "МинСвоб", "ПервСвоб")

Properties:

  • vloss — vector of call loss probabilities by service class
  • serv — carried traffic, [Erl]

Methods:

  • show() — display QoS characteristics of the simulation VM/VMl/VDg/L model

Quick start

import teletraffic as ttt

print(ttt.E(9, 5))
print(ttt.Hi(9, 5, 3))
print(ttt.PalmTable(9, 5))

A = ttt.M_M_V_L_an(9, 5)
B = ttt.M_M_V_L_im(9, 5, 1_000_000)
B = ttt.M_M_V_L_im(9, 5, 1_000_000, 0)

print(ttt.EngsetTable(0.4, 10, 5))

C = ttt.Mi_M_V_L_an(0.4, 10, 5)
D = ttt.VM_M_V_L_PRA_an([2, 0.4], 3)
E = ttt.M_G_V_L_an(0.2, 34, 2, 44, 10)

print(ttt.ErlangFormula2(1, 3))

F = ttt.M_M_V_W_FF_R_an(1, 2, 0.05, 0.2)
J = ttt.M_M_V_W_FF_R_im(0.7, 2, 1_000_000)
H = ttt.M_M_V_W_FF_R_im(0.7, 2, 1_000_000, 0)
K = ttt.M_M_V_W_FF_R_im(0.7, 2, 1_000_000, 0, 0)

L = ttt.VM_VMl_V_L_an([10, 12], [1, 5], 3, 20)
M = ttt.VM_VMl_VDg_L_an([10, 12], [1, 5], 3, 20, 2)
N = ttt.VM_VMl_VDg_L_im([10, 12], [1, 5], 3, 20, 2, 100_000, "ПервСвоб")

Analytical vs simulation methods

Functions ending with _an use analytical formulas. Functions ending with _im use simulation methods.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

teletraffic-1.0.0.tar.gz (127.4 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

teletraffic-1.0.0-cp311-cp311-win_amd64.whl (129.5 kB view details)

Uploaded CPython 3.11Windows x86-64

teletraffic-1.0.0-cp311-cp311-manylinux_2_17_x86_64.whl (125.6 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

File details

Details for the file teletraffic-1.0.0.tar.gz.

File metadata

  • Download URL: teletraffic-1.0.0.tar.gz
  • Upload date:
  • Size: 127.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for teletraffic-1.0.0.tar.gz
Algorithm Hash digest
SHA256 c2b3a4f896c90fe1fc3c5b07820580ea6c00718522c30939d12e76392d56b79d
MD5 b1768bd73ca61b4f2777c519a794561a
BLAKE2b-256 1e85b8b7589ccd498d980d2e9e288fb83801f63e1516a6a9de6b6ba254752568

See more details on using hashes here.

File details

Details for the file teletraffic-1.0.0-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for teletraffic-1.0.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 2b4a59899e8938c0f4e6830cb00dccafa201b22b097df1be41302f2004c39eda
MD5 11db55a4849e5fcda6de37704c392e13
BLAKE2b-256 b6402e108c7ffcf9beee9262e139541dd7edf6748ab7762afd6c82189fb08e42

See more details on using hashes here.

File details

Details for the file teletraffic-1.0.0-cp311-cp311-manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for teletraffic-1.0.0-cp311-cp311-manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 058c116f310cbcb0fad8975e0413e594a027e6ba86cd42d55fba463d857a0291
MD5 e67393438c336a6db39bf9a32d392431
BLAKE2b-256 42a26de16a3effe847e5c6dcdc78609a4920a27e8aec27a98cca58684a7b9096

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page