Skip to content

The code repository accompanying article "Charting Censorship Resilience & Global Internet Reachability: A Quantitative Approach"

License

Notifications You must be signed in to change notification settings

IvanovicM/charting-censorship

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

The code repository accompanying our preprint: Charting Censorship Resilience & Global Internet Reachability: A Quantitative Approach.

Citation

@article{ivanovic2024charting,
  title = {Charting Censorship Resilience & Global Internet Reachability: A Quantitative Approach},
  author = {Ivanović, Marina and Wirz, François and Subirà Nieto, Jordi and Perrig, Adrian},
  year = {2024},
  eprint={2403.09447},
  archivePrefix={arXiv},
  primaryClass={cs.NI}
}

Setup

conda create -n cens python=3.10.4
conda activate cens
pip install -r requirements.txt

Data analysis

Country Network Stats

python -m source.report.report_country_net_stats --dataset CAIDA_HYBRID

Visualize country network

COUNTRY='CH' # Choose 2-letter country code
python -m source.data.country_topo_stats --vis --dataset CAIDA_HYBRID --country $COUNTRY

Simulation

Censorship Resilience Potential

source ./scripts/bgp_cens.sh
source ./scripts/vpn_cens.sh

Global reachability

source ./scripts/global_reach.sh

SCION topo

source ./scripts/scion_topo.sh

Obtaining results

Censorship Resilience Potential

# Report results in a table
python -m source.report_crp_results --vpnmethod MaxMind-AnonG --dataset CAIDA_HYBRID --report
python -m source.report_crp_results --vpnmethod MaxMind-AnonG --dataset CAIDA_HYBRID --no-report --save

# Reports results as a graph
ARCH='BGP' # arch options: BGP, VPN, SCION, all
python -m source.report.plot_crp_results --dataset CAIDA_HYBRID --arch ${ARCH}

Global Reachability Potential

# Report results in a table
python -m source.report_grp_results --dataset CAIDA_HYBRID

Results

Results presented in the paper, extended and more comprehensive, are presented in the directory results.

About

The code repository accompanying article "Charting Censorship Resilience & Global Internet Reachability: A Quantitative Approach"

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published