Skip to content
View SFCSim's full-sized avatar
  • BUPT
  • No.10 Xitucheng Road, Haidian District, Beijing, China

Block or report SFCSim

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don't include any personal information such as legal names or email addresses. Markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
SFCSim/README.md

SFCSim

A general network function virtualization resource allocation simulation platform in Python language.

Dir

\- sfcsim/                                          main packet  
\         __init__.py  
\         classes/   
\                 __init__.py  
\                 vnf.py  
\                 ...  
\                 scheduler.py    
\         algorithms/  
\                    __init_\.py  
\                   common.py  
\                   ...  
\                   shortset_path_scheduler.py    
\         layout/  
\                __init_\.py    
\                cellular_layout.py  
\                cernnet2_layout.py  
\                nsfnet_layout.py  
\         networks/  
\                  __init__.py  
\                  cernnet2.py  
\                  nsfnet.py  
\  examples/                                        example codes  
\           classes/  
\                   vnf_type.py  
\                   sfc.py   
\                   network.py  
\                   ...  
\                   scheduler.py  
\           algorithms/  
\                      SA_scheduler.py   
\                      TS_scheduler.py  
\                      PSO_scheduler.py  
\                      shortest_path_scheduler.py  
\  doc/                                             Documentation  
\      SFCSim base class design.pdf  
\      algorithms/   
\                 SA_scheduler.pdf   
\                 TS_scheduler.pdf  
\                 PSO_scheduler.pdf  
\                 shortest_path_scheduler.pdf 

Install

Install the latest version of SFCSim:

$ pip install sfcsim

Simple example

## For more examples, see the examplez folder ##
>>> from sfcsim import *
>>> cernnet=cernnet2()          #实例化
>>> scheduler=shortest_path_scheduler()
>>> scheduler.deploy_sfcs(cernnet,cernnet.vnf_types,cernnet.sfcs,sort=True)  
>>> scheduler.show()
>>> print(len(scheduler.get_records()))
>>> cernnet.draw_dynamic(path='D:/result.png')

Bugs

Please send email to [email protected]

License

Released under the Apache License (see LICENSE.txt):

Popular repositories Loading

  1. SFCSim SFCSim Public

    a general network function virtualization resource allocation simulation platform

    Python 25 6

  2. NS3-Minstrel-SNN NS3-Minstrel-SNN Public

    Forked from BIGBVO/NS3-Minstrel-SNN