Erlang E1 Channel Calculator
This Rust library provides functionality to calculate the number of E1 voice channels required to meet a specific blocking probability using the Erlang B formula. It is commonly used in telecommunications to determine the number of channels needed based on system traffic and user load.
Features
- Erlang B Calculation: Calculate the blocking probability based on traffic (in Erlangs) and the number of available communication channels.
- E1 Channel Calculation: Compute the number of E1 voice channels required to meet a desired blocking probability.
- Helper Functions: Convert high-level user inputs such as the number of users, average call duration, and concurrent calls into Erlangs and perform the channel calculation.
Then import the library into your project:
extern crate erlang_e1;
Usage
Calculating Blocking Probability You can calculate the blocking probability for a given traffic load and number of channels using the Erlang B formula:
use erlang_b;
Calculating Required E1 Channels If you already have the traffic (in Erlangs), you can calculate the number of E1 channels needed for a desired blocking probability:
use calculate_e1_channels;
High-Level Calculation with User Inputs If you have high-level inputs like the number of users and average call duration, you can use the required_e1_channels function to calculate the number of channels:
use required_e1_channels;
Explanation Erlang B Formula: This formula is used to calculate the probability of all channels being occupied (blocking probability) in a system with N channels and a given traffic load in Erlangs. E1 Channels: In telecommunications, an E1 line consists of 30 voice channels. This library helps calculate the number of E1 lines required to satisfy the traffic and blocking probability requirements.