Book Image

Python Network Programming

By : Abhishek Ratan, Eric Chou, Pradeeban Kathiravelu, Dr. M. O. Faruque Sarker
Book Image

Python Network Programming

By: Abhishek Ratan, Eric Chou, Pradeeban Kathiravelu, Dr. M. O. Faruque Sarker

Overview of this book

This Learning Path highlights major aspects of Python network programming such as writing simple networking clients, creating and deploying SDN and NFV systems, and extending your network with Mininet. You’ll also learn how to automate legacy and the latest network devices. As you progress through the chapters, you’ll use Python for DevOps and open source tools to test, secure, and analyze your network. Toward the end, you'll develop client-side applications, such as web API clients, email clients, SSH, and FTP, using socket programming. By the end of this Learning Path, you will have learned how to analyze a network's security vulnerabilities using advanced network packet capture and analysis techniques. This Learning Path includes content from the following Packt products: • Practical Network Automation by Abhishek Ratan • Mastering Python Networking by Eric Chou • Python Network Programming Cookbook, Second Edition by Pradeeban Kathiravelu, Dr. M. O. Faruque Sarker
Table of Contents (30 chapters)
Title Page
Copyright
About Packt
Contributors
Preface
Index

Creating PNDA clusters


PNDA (http://pnda.io/) is a scalable big data analytics platform for networks and services from the Linux Foundation. PNDA requires a cluster to run efficiently. PNDA offers Python scripts (https://github.com/pndaproject/pnda-aws-templates) to deploy it over Amazon EC2.

Getting ready

Create an S3 bucket from https://s3.console.aws.amazon.com/s3/home?region=eu-west-1. We are using EU (Ireland) as our default region for this recipe. PNDA applications will be hosted in this bucket. Replace the pnda-apps with the name of your S3 bucket. Since the bucket names are shared across all the users in the region, you may not be able to use pnda-apps as your Bucket name as it would already have been used by someone:

  # S3 container to use for PNDA application packages  
  PNDA_APPS_CONTAINER: pnda-apps 

Creating an S3 Bucket for PNDA

Create a key from https://console.aws.amazon.com/iam/home?#/security_credential.

 

Don't forget to download the key (rootkey.csv):

Creating Access Key

Open...