similato87 / erlang-calculator

Erlang calculator for wireless networks: computes Erlang B and C values with user-friendly CLI.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Erlang Calculator

Description

This project provides a simple Erlang B and C calculator. It's designed to calculate the blocking and delay probabilities in telecommunications traffic.

Features

  • Calculation of Erlang B (Blocking Probability).
  • Calculation of Erlang C (Delay Probability).

Mathematical Formulas

Erlang B Formula

Erlang B formula (Blocking Probability, ( B )):

$$ B = \frac{1}{\sum_{k=0}^{N} \frac{N!}{k!(N-k)!} \left( \frac{A}{N} \right)^k} $$

Where:

  • ( A ) is the offered traffic in Erlangs.
  • ( N ) is the number of servers.

Result

When the traffic load is 5 Erlangs and there is 2 servers: Erlang B

Erlang C Formula

Erlang C formula (Delay Probability, ( C )):

$$ C = \frac{P \times \frac{A}{N - A + A \times P}}{1 - P \times \left(1 - \frac{A}{N}\right)} $$

Where:

  • ( P ) is the probability of delay (obtained from Erlang B formula).
  • ( A ) is the offered traffic in Erlangs.
  • ( N ) is the number of servers.

Result

When the traffic load is 5 Erlangs and there is 2 servers: Erlang C

Installation

Ensure you have Python and Matplotlib installed. Install Matplotlib using pip:

pip install matplotlib

About

Erlang calculator for wireless networks: computes Erlang B and C values with user-friendly CLI.


Languages

Language:Python 100.0%