Network traffic modeler API written in Python 3
Project description
pyNTM: network_traffic_modeler_py3
This is a network traffic modeler written in python 3. This library allows users to define a layer 3 network topology, define a traffic matrix, and then run a simulation to determine how the traffic will traverse the topology, traverse a modified topology, and fail over. If you've used Cariden MATE or WANDL, this code solves for some of the same basic use cases those do. This package is in no way related to those, or any, commercial products. IGP and RSVP auto-bandwidth routing is supported.
In pyNTM, the Model objects house the network topology objects: layer 3 Nodes, Circuits, Shared Risk Link Groups (SRLGs), Interfaces, etc.
There are two subclasses of Model objects: the PerformanceModel object and the newer FlexModel object (introduced in version 1.6).
Starting in version 1.7, what used to be called the Model class is now the PerformanceModel Class. The former Parallel_Link_Model
class is now known as the FlexModel class.
There are two main differences between the two types of objects:
- The PerformanceModel object only allows a single Circuit between two layer 3 Nodes; while the FlexModel allows multiple Circuits between the same two Nodes.
- The Performance Model will have better performance (measured in time to converge) than the FlexModel. This is because the FlexModel has additional checks to account for potential multiple Circuits between Nodes and other topology features.
The legacy Model and Parallel_Link_Model should still work as they have been made subclasses of the PerformanceModel and FlexModel classes, respectively.
The PerformanceModel class is good to use for the following topology criteria:
- There is only one link (Circuit) between each layer 3 Node
- IGP-only routing and/or RSVP LSP routing with no IGP shortcuts (traffic source and destination matches LSP source and destination)
In some cases, it's completely valid to model multiple Circuits between Nodes as a single Circuit. For example: in the case where there are multiple Circuits between Nodes but each Interface has the same metric and the use case is to model capacity between Nodes, it's often valid to combine the Circuit capacities and model as a single Circuit. In this case, the FlexModel object is recommended as it will give better performance. If it is important to keep each Circuit modeled separately because the parallel Interfaces have different metrics and/or differences in their capabilities to route RSVP, the FlexModel is the better choice.
There are two main areas where we are looking to optimize:
- Performance - converging the model to produce a simulation, especially in a model with RSVP LSPs, is intensive. Improving the time it takes to converge the simulation results in better productivity and improved user experience. Possible Cython implementation or PyPy interpreter could add value here.
- Data retrieval - the simulation produces an extraordinary amount of data. Currently, the model is only retaining a fraction of the data generated during the model convergence. It's our goal to introduce something like an sqlite database in the model objects to hold all this information. This will improve user experience and allow SQL queries against the model object.
Install
Install via pip:
pip3 install pyNTM
For upgrade:
pip3 install --upgrade pyNTM
Training
See the training modules at https://github.com/tim-fiola/TRAINING---network_traffic_modeler_py3-pyNTM-
Documentation
See the documentation on Read the Docs.
Examples
See the example directory.
License
Copyright 2019 Tim Fiola
Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pyNTM-2.1.tar.gz
.
File metadata
- Download URL: pyNTM-2.1.tar.gz
- Upload date:
- Size: 68.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.15.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.5.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2c18fad27fc2158f93eecc661d100e9750a9f1aa6db4cff01dbe962276fad24 |
|
MD5 | d9f74306450e6b08040e2d517871d30e |
|
BLAKE2b-256 | 5e7762c5eca9369110174bb42fcaff366c984d6da8b72a63f6f6c8f5e4a650d0 |
File details
Details for the file pyNTM-2.1-py3-none-any.whl
.
File metadata
- Download URL: pyNTM-2.1-py3-none-any.whl
- Upload date:
- Size: 91.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e27e34b6e066954ee56cb94eb5c2ed585a3d38484c1cf2b41df62316cd5ce581 |
|
MD5 | 86e720cb9138ff654f7cf7983a09bbaa |
|
BLAKE2b-256 | a76c322ff6e19d84cb8844a857fb74a5fa7bae2dda20f09a84df6b622ebeb7da |