Download Full Rust for Network Programming and Automation Learn to Design and Automate Networks Performance Optimization Brian Anderson PDF All Chapters
Download Full Rust for Network Programming and Automation Learn to Design and Automate Networks Performance Optimization Brian Anderson PDF All Chapters
com
https://ebookmeta.com/product/rust-for-network-programming-
and-automation-learn-to-design-and-automate-networks-
performance-optimization-brian-anderson/
OR CLICK HERE
DOWLOAD NOW
Brian Anderson
Copyright © 2023 GitforGits
All rights reserved.
ISBN: 978-8196228538
Contents
Preface
Chapter 1: Basics of Network Automation
Need of Network Automation
Evolution of Network Management
Necessity and Rise of Network Automation
Opportunities for Today and Future
Types of Network Automation
Configuration Automation
Network Monitoring Automation
Provisioning Automation
Security Automation
Software Defined Networks
Understanding SDN Architecture
Types of SDN
Network Protocols
Role of Network Protocols
Importance of Network Protocols
Types of Network Protocols
Network Automation Tools
Role of Network Automation Tools
Network Automation Tool Categories
Network Automation Architectures
Network Devices
Network Automation Tools
Network Automation Engine
Summary
Chapter 2: Essentials of Linux for Networks
Overview of Network-Related Commands
Purpose of Network Related Commands
Advantages of Network Commands
Examples of Network Commands:
Using ‘ifconfig’
Using ‘iwconfig’
Using ‘dig’
Using ‘traceroute’
Using ‘netstat’
Using ‘nslookup’
Searching Wireless Devices
Using ‘iwlist’
Modifying IPv4 Addresses
Understanding IPv4
Modifying the Addresses (IPv4)
Modifying IPv6 Addresses
Deleting IP Address
Cloning IP Addresses
What is Cloning of IP Address?
Steps to Clone IP
How to Clone the IP Address
Considerations While Cloning IP
Evaluating DNS Server
Need of DNS Evaluation
Steps to Evaluate DNS Server
Modifying DNS Server
Ways to Modify DNS Server
Summary
Chapter 3: Rust Basics for Networks
Overview
Variables
Constants
Functions
Control Flow
If Statements
Loop Statements
While Statements
For Statements
Pattern Matching
Summary
Chapter 4: Core Rust for Networks
Mutability
Overview
Application of Mutability in Network Programming
Sample Program on Mutability
Ownership
Overview
Sample Program on Ownership
Borrowing
Overview
Sample Program on Borrowing
Borrowing for Data Buffers
Structs
Overview
Struct Syntax
Enums & Pattern Matching
Overview
Enum Syntax
Pattern Matching
Use of Enums
Enums for Simple Server
Data Enumeration
Traits
Using Trait Syntax
Sample Program to use Trait in Networks
Error Handling
Overview
Result, Ok and Err
Panic! Macro
Summary
Chapter 5: Rust Commands for Networks
Standard Commands In-Use
Networking Commands
std::net
tokio
hyper
env_logger
reqwest
Summary
Chapter 6: Programming & Designing Networks
LAN
Overview of LAN Setup
Defining Network Topology using Graphviz
Assign IP Address
Configure Network Devices using Netlink
WAN
Overview of WAN Setup
Determine Network Requirements
Choose the WAN Technology
Select a WAN Service Provider
Configure the WAN Routers
Configure the WAN Interfaces
WLAN
Overview of WLAN Setup
End-to-end Setup of a WLAN
Cloud Networks
End-to-end Setup of a Cloud Network
VPN
Stages to Configure a VPN
Rust Program to Setup VPN
Data Center Network
Stages to Setup a Data Center Network
Rust Program to Setup a Data Center Network
Summary
Chapter 7: Establishing & Managing Network Protocols
Establishing TCP/IP
Choose Port Number
Bind to a Socket
Accept Incoming Connections
Process Incoming Data
Handle Errors
Choose Port Number
Allocation of Port Numbers
Application-wise Port Numbers
Selection of Rust Networking Library
Tokio
Mio
Rust-async
Installing and Configuring Tokio
Installing and Configuring Mio
Installing and Configuring Rust-async
Creating TCP Listener/Binding Socket
Understanding Binding Sockets and TCP Listening
Create TCP Listener using Tokio and Mio
Create TCP Listener using Rust-async
Accept Incoming Connections
Overview
Steps to Accept Connections
Accept Incoming Connections using Tokio
Accept Incoming Connections using Mio
Accept Incoming Connections using Rust-async
Processing of Incoming Data
Process Incoming Data with Tokio
Process Incoming Data with Mio
Process Incoming Data with Rust-async
Handle Errors
Handling Errors using Tokio
Handling Errors using Mio
Handling Errors using Rust-async
Summary
Chapter 8: Packet & Network Analysis
Understanding Packets
Packet Manipulation Tools
Overview
pnet
libtin
Create a Packet Capture Loop
Overview
Packet Capture Process
Capturing Packets using pnet
Process the Captured Packets
Overview
Procedure to Process Captured Packets
Processing Captured Packets using pnet
Analyze the Captured Packets
Overview
Packet Analysis Use-cases
Analyzing Packets
Summary
Chapter 9: Network Performance Monitoring
Network and Performance Monitoring
Why Monitoring Networks?
Performance Monitoring Techniques
Network Performance Metrics & Indicators
Understanding Network Performance Metrics
Exploring Network Performance Indicators
Monitoring Network Availability
Setting Up the Project
Implementing Network Monitoring
Setting Up Monitoring Alerts
Putting It All Together
Running the Application
Monitoring Network Utilization
Setting Up the Project
Implementing Network Utilization Monitoring
Setting Up Monitoring Alerts
Putting It All Together
Running the Application
Monitoring Latency, Packet Loss and Jitter
Installing the pingr Crate
Sending Ping Requests
Continuously Monitoring Latency
Summary
Preface
Rust for Network Programming and Automation is a
pragmatic guide that trains you through the Rust to design networks
and begin with automating network administration. The book
introduces you to the powerful libraries and commands of Rust that
are essential for designing, administering and automating networks.
You will learn how to use Rust's networking libraries like tokio, mio
and rust-async to create scalable and efficient network applications.
The book provides a wide range of practical examples and use-
cases, which help to simplify complex coding concepts and ensure
that you understand the material in-depth. You will discover how to
establish network protocols like TCP and IP networks, run packet
and network analysis, measure performance indicators and set up
monitoring alerts and notifications. The book is an excellent resource
for network engineers and administrators who want to gain a deep
understanding of Rust programming for networking.
The author of "Rust for Network Programming and Automation" has
a wealth of experience in network programming and automation
with practical insights. The book is perfect for anyone who wants to
master Rust programming for network automation and gain a
competitive edge in the field. Whether you are a beginner or an
experienced programmer, this book will provide you with the
knowledge and skills you need to excel in network programming and
automation using Rust .
In this book you will learn how to:
Use Rust to automate network configuration, deployment,
and maintenance tasks
Capture and inspect packets, decode protocols, and
analyze network traffic
Set up monitoring alerts, notifications, and manage
network infrastructure
Create scripts and applications that automate repetitive
network tasks
Monitor network performance indicators like latency,
throughput, and packet loss
Understand Rust's syntax, data types, control structures,
and functions
Make use of Rust's networking libraries like Tokio, mio
and rust-async to create networking programs
Establish network connections and handle data
transmission between different devices
GitforGits
Prerequisites
This book assumes you are absolutely new to rust programming and
believes in rust to make some of the great performing applications.
If you know any other programming prior to this book, reading this
book at speed can finish truly in a day.
Rust is a modern, safe and efficient systems programming language
that is widely used in industry and is a good choice for developers
who want to build high-performance, concurrent, and safe systems.
Codes Usage
Are you in need of some helpful code examples to assist you in your
programming and documentation? Look no further! Our book offers
a wealth of supplemental material, including code examples and
exercises.
Not only is this book here to aid you in getting your job done, but
you have our permission to use the example code in your programs
and documentation. However, please note that if you are
reproducing a significant portion of the code, we do require you to
contact us for permission.
But don't worry, using several chunks of code from this book in your
program or answering a question by citing our book and quoting
example code does not require permission. But if you do choose to
give credit, an attribution typically includes the title, author,
publisher, and ISBN. For example, "Rust for Network Programming
and Automation by Brian Anderson".
If you are unsure whether your intended use of the code examples
falls under fair use or the permissions outlined above, please do not
hesitate to reach out to us at kittenpub.kdp@gmail.com .
We are happy to assist and clarify any concerns.
Random documents with unrelated
content Scribd suggests to you:
and perhaps with wages also in proportion to the diminution
of his bodily powers.
Updated editions will replace the previous one—the old editions will
be renamed.
1.D. The copyright laws of the place where you are located also
govern what you can do with this work. Copyright laws in most
countries are in a constant state of change. If you are outside the
United States, check the laws of your country in addition to the
terms of this agreement before downloading, copying, displaying,
performing, distributing or creating derivative works based on this
work or any other Project Gutenberg™ work. The Foundation makes
no representations concerning the copyright status of any work in
any country other than the United States.
1.E.6. You may convert to and distribute this work in any binary,
compressed, marked up, nonproprietary or proprietary form,
including any word processing or hypertext form. However, if you
provide access to or distribute copies of a Project Gutenberg™ work
in a format other than “Plain Vanilla ASCII” or other format used in
the official version posted on the official Project Gutenberg™ website
(www.gutenberg.org), you must, at no additional cost, fee or
expense to the user, provide a copy, a means of exporting a copy, or
a means of obtaining a copy upon request, of the work in its original
“Plain Vanilla ASCII” or other form. Any alternate format must
include the full Project Gutenberg™ License as specified in
paragraph 1.E.1.
• You pay a royalty fee of 20% of the gross profits you derive
from the use of Project Gutenberg™ works calculated using the
method you already use to calculate your applicable taxes. The
fee is owed to the owner of the Project Gutenberg™ trademark,
but he has agreed to donate royalties under this paragraph to
the Project Gutenberg Literary Archive Foundation. Royalty
payments must be paid within 60 days following each date on
which you prepare (or are legally required to prepare) your
periodic tax returns. Royalty payments should be clearly marked
as such and sent to the Project Gutenberg Literary Archive
Foundation at the address specified in Section 4, “Information
about donations to the Project Gutenberg Literary Archive
Foundation.”
• You comply with all other terms of this agreement for free
distribution of Project Gutenberg™ works.
1.F.
1.F.4. Except for the limited right of replacement or refund set forth
in paragraph 1.F.3, this work is provided to you ‘AS-IS’, WITH NO
OTHER WARRANTIES OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO WARRANTIES OF
MERCHANTABILITY OR FITNESS FOR ANY PURPOSE.
Please check the Project Gutenberg web pages for current donation
methods and addresses. Donations are accepted in a number of
other ways including checks, online payments and credit card
donations. To donate, please visit: www.gutenberg.org/donate.
Most people start at our website which has the main PG search
facility: www.gutenberg.org.