Jump to ratings and reviews
Rate this book

Python Network Programming Cookbook - Second Edition: Practical solutions to overcome real-world networking challenges

Rate this book
Discover practical solutions for a wide range of real-world network programming tasks About This Book - Solve real-world tasks in the area of network programming, system/networking administration, network monitoring, and more. - Familiarize yourself with the fundamentals and functionalities of SDN - Improve your skills to become the next-gen network engineer by learning the various facets of Python programming Who This Book Is For This book is for network engineers, system/network administrators, network programmers, and even web application developers who want to solve everyday network-related problems. If you are a novice, you will develop an understanding of the concepts as you progress with this book. What You Will Learn - Develop TCP/IP networking client/server applications - Administer local machines' IPv4/IPv6 network interfaces - Write multi-purpose efficient web clients for HTTP and HTTPS protocols - Perform remote system administration tasks over Telnet and SSH connections - Interact with popular websites via web services such as XML-RPC, SOAP, and REST APIs - Monitor and analyze major common network security vulnerabilities - Develop Software-Defined Networks with Ryu, OpenDaylight, Floodlight, ONOS, and POX Controllers - Emulate simple and complex networks with Mininet and its extensions for network and systems emulations - Learn to configure and build network systems and Virtual Network Functions (VNF) in heterogeneous deployment environments - Explore various Python modules to program the Internet In Detail Python Network Programming Cookbook - Second Edition highlights the major aspects of network programming in Python, starting from writing simple networking clients to developing and deploying complex Software-Defined Networking (SDN) and Network Functions Virtualization (NFV) systems. It creates the building blocks for many practical web and networking applications that rely on various networking protocols. It presents the power and beauty of Python to solve numerous real-world tasks in the area of network programming, network and system administration, network monitoring, and web-application development. In this edition, you will also be introduced to network modelling to build your own cloud network. You will learn about the concepts and fundamentals of SDN and then extend your network with Mininet. Next, you'll find recipes on Authentication, Authorization, and Accounting (AAA) and open and proprietary SDN approaches and frameworks. You will also learn to configure the Linux Foundation networking ecosystem and deploy and automate your networks with Python in the cloud and the Internet scale. By the end of this book, you will be able to analyze your network security vulnerabilities using advanced network packet capture and analysis techniques. Style and approach This book follows a practical approach and covers major aspects of network programming in Python. It provides hands-on recipes combined with short and concise explanations on code snippets. This book will serve as a supplementary material to develop hands-on skills in any academic course on network programming. This book further elaborates network softwarization, including Software-Defined Networking (SDN), Network Functions Virtualization (NFV), and orchestration. We learn to configure and deploy enterprise network platforms, develop applications on top of them with Python.

450 pages, Paperback

First published January 1, 2014

6 people are currently reading
41 people want to read

About the author

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
3 (14%)
4 stars
6 (28%)
3 stars
7 (33%)
2 stars
4 (19%)
1 star
1 (4%)
Displaying 1 - 4 of 4 reviews
Profile Image for Abhinav Singh.
Author 37 books6 followers
November 9, 2014
The book has quick recipes and follows a good format of solving problems in a cookbook style. The initial chapters are well written and easy to follow.
Pros:
Quick tips
Quality coding (following OOP)

Cons:
The recipes of later chapters like Programming with HTTP, Screen-scraping have very specific recipes which might not be useful in real life. Author could have made those recipes more generic by generalizing the scripts.
Profile Image for Strong Extraordinary Dreams.
592 reviews30 followers
June 5, 2017
a collection of 'recipes'. Good to get those tasks (network) tasks up and running quickly. Not good as a general reference: poor and few explanations beyond what the author(s) feel(s) like talking about at the time
1 review
June 24, 2014
Python Network Programming Cookbook – review.

Reviewing books can be a tedious task in it self, and my expectations for reviewing Dr. M. O. Faruque Sarker's Python Network Programming Cookbook, was beyond the exhaustion level even before I had turned the first page. After all - it is a book about network programming, sockets, Client/Server Programming and a lot more – which usually not belongs to the horror literature, but merely is a literal sleeping pill.

It took me only a few minutes of reading to see, that this time my expectations would not be fulfilled. With a rarely seen clarity, Dr. M. O. Faruque Sarker describes the task, presents the solution and explains the functionality of each problem in plain words, so everybody can understand what the code actually do. I am virtually on the edge to state, that even without previous knowledge of Python, you can benefit from the examples, but it does help to know at least the basics.

The book is a cookbook in the best sense. You can easily read selected chapters without prior knowledge of previous chapters and, each chapter clarify which modules are needed before presenting the examples. This is absolutely a great plus and combined with an easy to read concept, this book is one of the best I have seen in years. Dr. M. O. Faruque Sarker's way of explaining each example can be compared to the concept: Hit and run. You hit the problem, see the solution and runs for the nearest laptop to derive even more sophisticated solutions, with you newly acquired knowledge.

This book is a must for Python programmers that want to explore the versatility of Python and take another step forward in the Python world.

However, before adding this book to your library a little warning, which also was missing on the books cover: According to the standard Python cookbook, some of the content I the book can be extremely addictive.


Claus Holm Larsen

CEO and founder of Holmes WebDesign.
Founder of the Python Programming Society on Facebook.
12 reviews1 follower
June 25, 2014
Python Network Cookbook provides you with the samples related to the range of networking topics. Whether you will benefit from it depends heavily on your tasks. The point here is that the range of samples is really huge. Starting with data manipulation required for network based transfer, through socket based networking, interfaces related samples, IPv6, to topics covering HTTP, IMAP, and web services.

Now, don’t get me wrong, but the percentage of the book you will benefit from heavily depends on your day to day work. If you deal with http stuff all the time, you will find half of the book entertaining. On the other hand, if you do some low level development and you want to design your own means of transportation based on sockets, first half of the book will be of your interest.

What I have found particularly useful for me were the http related samples, web service handling, and port forwarding. But these are things that I can benefit from directly.

For sure, this book will be really interesting for the students who have to deal with networking related lectures. You will be able to jump directly into virtually any network related topic.

The book has one drawback. Some of the samples are Linux based. I am pretty sure you can use them anyway by using MacPorts or Cygwin, but still, it might be slightly frustrating for Windows and Mac users that some samples are marked as “Linux only”.

Before you buy the book, make a simple calculation how much you can benefit from it. If you decide that more than half of the book is useful for you – go ahead.
Displaying 1 - 4 of 4 reviews

Can't find what you're looking for?

Get help and learn more about the design.