Contents
1: Review of TCP/IP Protocol Suite and Python Language
b'Chapter 1: Review of TCP/IP Protocol Suite and Python
Language'
b'The internet overview'
b'The OSI model'
b'Client server models'
b'Network protocol suites'
b'Python language overview'
2: Low-Level Network Device Interactions
b'Chapter 2: Low-Level Network Device Interactions'
b'The challenges of CLI'
b'Constructing a virtual lab\xc3\x82\xc2\xa0'
b'Python Pexpect Library'
b'The Python Paramiko library'
b'Looking ahead'
b'Summary'
3: API and Intent-Driven Networking
b'Chapter 3: API and Intent-Driven Networking'
b'Infrastructure as the Python code'
b'The Cisco API and ACI'
b'The Python API for Juniper networks'
b'The Arista Python API'
b'Vendor neutral libraries'
b'Summary'
4: The Python Automation Framework - Ansible Basics
b'Chapter 4: The Python Automation Framework - Ansible Basics'
b'A quick Ansible example'
b'The advantages of Ansible'
b'The Ansible architecture'
b'Ansible networking modules'
b'The Ansible Cisco example'
b'The Ansible Juniper example'
b'The Ansible Arista example'
b'Summary'
5: The Python Automation Framework - Ansible Advance Topics
b'Chapter 5: The Python Automation Framework - Ansible
Advance Topics'
b'Ansible conditionals'
b'Ansible loops'
b'Templates'
b'Group and host variables'
b'The Ansible vault'
b'The Ansible include and roles'
b'Writing your own custom module'
b'Summary'
6: Network Security with Python
b'Chapter 6: Network Security with Python'
b'The lab setup'
b'Python Scapy\xc3\x82\xc2\xa0'
b'Access lists'
b'The syslog search'
b'Other tools\xc3\x82\xc2\xa0'
b'Summary'
7: Network Monitoring with Python - Part 1
b'Chapter 7: Network Monitoring with Python - Part 1'
b'Lab setup'
b'SNMP'
b'Python visualization'
b'Python for Cacti'
b'Summary'
8: Network Monitoring with Python - Part 2
b'Chapter 8: Network Monitoring with Python - Part 2'
b'Graphviz'
b'Flow-based monitoring'
b'Elasticsearch (ELK stack)'
b'Summary'
9: Building Network Web Services with Python
b'Chapter 9: Building Network Web Services with Python'
b'Comparing Python web frameworks\xc3\x82\xc2\xa0'
b'Flask and lab setup'
b'Introduction to Flask'
b'Network static content API'
b'Network dynamic operations'
b'Security'
b'Additional resources'
b'Summary'
10: OpenFlow Basics
b'Chapter 10: OpenFlow Basics'
b'Lab setup'
b'Introducing OpenFlow'
b'Mininet'
b'The Ryu controller with Python'
b'Layer 2 OpenFlow switch'
b'The POX controller'
b'Summary'
11: Advanced OpenFlow Topics
b'Chapter 11: Advanced OpenFlow Topics'
b'Setup'
b'OpenFlow operations\xc3\x82\xc2\xa0with Ryu'
b'Packet inspection'
b'Static router'
b'Router with API'
b'BGP router with OpenFlow'
b'Firewall with OpenFlow'
b'Summary'
12: OpenStack, OpenDaylight, and NFV
b'Chapter 12: OpenStack, OpenDaylight, and NFV'
b'OpenStack\xc3\x82\xc2\xa0'
b'OpenDaylight'
b'Summary'
13: Hybrid SDN
b'Chapter 13: Hybrid SDN'
b'Preparing the network\xc3\x82\xc2\xa0'
b'Greenfield deployment'
b'Controller redundancy'
b'BGP migration example'
b'More BGP example'
b'Monitoring integration'
b'Secure TLS connection'
b'Physical switch selection'
b'Summary'
Chapter 1. Review of TCP/IP Protocol Suite
and Python Language
This book assumes that you have the basic understandings of networking
protocols and the Python language. In my experience, a typical system,
network engineer, or developer might not remember the exact TCP state
machine on a daily basis (I know I don't), but he/she would be familiar with
the basics of the OSI model, the TCP and UDP operations, IP headers, and
more such.
This chapter will do a very quick revision on the relevant networking topics.
In the same view, we will also do a high-level review on the Python
language, just enough so that readers who do not code in Python on a daily
basis can have a ground to walk on for the rest of the book.Â
Specifically, we will cover the following topics:
The internet overview
The OSI and client-server Model
TCP, UDP, IP protocol Suites
Python syntax, types, operators, and loops
Extending Python with functions, classes, and packages
Worry not if you feel you need further information, as by no means do I think
the information presented in this chapter is exhaustive. Do check out the
reference section for this chapter to read more on your topic of interest.Â
- 1
- 2
前往页