0% found this document useful (0 votes)
22 views28 pages

Day 59 Slides - Network Automation

The document discusses network automation, highlighting its benefits such as reduced human error, increased scalability, and improved efficiency. It explains the logical planes of network functions, including data, control, and management planes, and introduces Software-Defined Networking (SDN) as a centralized approach to managing network control functions. Additionally, it covers the use of APIs and data serialization in facilitating network automation.

Uploaded by

Saba Hussien
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views28 pages

Day 59 Slides - Network Automation

The document discusses network automation, highlighting its benefits such as reduced human error, increased scalability, and improved efficiency. It explains the logical planes of network functions, including data, control, and management planes, and introduces Software-Defined Networking (SDN) as a centralized approach to managing network control functions. Additionally, it covers the use of APIs and data serialization in facilitating network automation.

Uploaded by

Saba Hussien
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 28

CCNA Day 59

Network Automation
Things we’ll cover

Why network automation?


Benefits of network automation


Logical ‘planes’ of network functions


Software-defined networking (SDN)


APIs


Data serialization
Network Automation

Previous versions of the CCNA focused on the traditional model of managing/controlling
networks.

The current version focuses on the traditional model as well, but CCNA candidates are
expected to have a basic understanding of various topics related to network automation.

In the traditional model, engineers manage devices one at a time by connecting to their CLI
via SSH. Some downsides of configuring devices one-by-one:
R1#configure terminal
R1(config)#interface loopback0

Typos and other small mistakes are common.
R1(config-if)#ip address 10.1.1.1 255.255.255.255
R1(config-if)#end
R1#write memory

It is time-consuming and very inefficient in large-scale
R1#exit
networks.
R2#configure terminal

It is difficult to ensure that all devices adhere to the
R2(config)#interface loopback0
R2(config-if)#ip address 10.1.1.2 255.255.255.255
R2(config-if)#end
organization’s standard configurations.
R2#write memory
R2#exit

R3#configure terminal
R3(config)#interface loopback0
R3(config-if)#ip address 10.1.1.3 255.255.255.255
R3(config-if)#end
R3#write memory
R3#exit

R4#configure terminal
R4(config)#interface loopback0
R4(config-if)#ip address 10.1.1.4 255.255.255.255
R4(config-if)#end
R4#write memory
R4#exit
Network Automation
Network automation provides many key benefits:

Human error (typos etc.) is reduced.

Networks become much more scalable. New deployments, network-wide changes, and
troubleshooting can be implemented in a fraction of the time.

Network-wide policy compliance can be assured (standard configurations, software versions,
etc).

The improved efficiency of network operations reduces the opex (operating expenses) of the
network. Each task requires fewer man-hours.

There are various tools/methods that can be used to


automate tasks in the network:
Python script -SDN (Software-Defined Networking)
-Ansible
-Puppet
-Python scripts
-etc...
Logical ‘planes’
What does a router do?

It forwards messages between networks by examining information in the Layer 3 header.

It uses a routing protocol like OSPF to share route information with other routers and build a
routing table.

It uses ARP to build an ARP table, mapping IP addresses to MAC addresses.

It uses Syslog to keep logs of events that occur.

It allows a user to connect to it via SSH and manage it.
What does a switch do?

It forwards messages within a LAN by examining information in the Layer 2 header.

It uses STP to ensure there are no Layer 2 loops in the network.

It builds a MAC address table by examining the source MAC address of frames.

It uses Syslog to keep logs of events that occur.

It allows a user to connect to it via SSH and manage it.

The various functions of network devices can be logically divided up (categorized) into planes:

Data plane

Control plane

Management plane
Data Plane

All tasks involved in forwarding user data/traffic from one interface to another are part of the
data plane.

A router receives a message, looks for the most specific matching route in its routing table,
and forwards it out of the appropriate interface to the next hop.
→It also de-encapsulates the original Layer 2 header, and re-encapsulates with a new
header destined for the next hop’s MAC address.

A switch receives a message, looks at the destination MAC address, and forwards it out of
the appropriate interface (or floods it).
→ This includes functions like adding or removing 802.1q VLAN tags.

NAT (changing the src/dst addresses before forwarding) is part of the data plane.

Deciding to forward or discard messages due to ACLs, port security, etc. is part of the data
plane.

The data plane is also called the ‘forwarding plane’.
Data Plane

R1 R2

Packet Data Packet Data Packet

Packet Plane Packet x Plane


Control Plane

How does a device’s data plane make its forwarding decisions?
→ routing table, MAC address table, ARP table, STP, etc.

Functions that build these tables (and other functions that influence the data plane) are part
of the control plane.

The control plane controls what the data plane does, for example by building the router’s
routing table.

The control plane performs overhead work.
→ OSPF itself doesn’t forward user data packets, but it informs the data plane about how
packets should be forwarded.
→ STP itself isn’t directly involved in the process of forwarding frames, but it informs the data
plane about which interfaces should and shouldn’t be used to forward frames.
→ ARP messages aren’t user data, but they are used to build an ARP table which is used in
the process of forwarding data.
Control Plane

R1 R2
Control OSPF Control
Plane Plane

Packet Data Packet Data Packet

Packet Plane Packet x Plane

In traditional networking, the data plane and control plane are both distributed. Each device has
its own data plane and its own control plane. The planes are ‘distributed’ throughout the network.
Management Plane

Like the control plane, the management plane performs overhead work.
→However, the management plane doesn’t directly affect the forwarding of messages in the
data plane.

The management plane consists of protocols that are used to manage devices.
→SSH/Telnet, used to connect to the CLI of a device to configure/manage it.
→Syslog, used to keep logs of events that occur on the device.
→SNMP, used to monitor the operations of the device.
→NTP, used to maintain accurate time on the device.
Management Plane

R1 R2
Management Management
Plane Plane

Configuration Configuration

Control OSPF Control


Plane Plane

Packet Data Packet Data Packet

Packet Plane Packet x Plane

The Data plane is the reason we buy routers and switches (and network infrastructure in general), to forward messages.
However, the Control plane and Management plane are both necessary to enable the data plane to do its job.
Logical Planes

The operations of the Management plane and Control plane are usually
managed by the CPU.

However, this is not desirable for data plane operations because CPU
processing is slow (relatively speaking).

Instead, a specialized hardware ASIC (Application-Specific Integrated
Circuit) is used. ASICs are chips built for specific purposes.

Using a switch as an example:
→When a frame is received, the ASIC (not the CPU) is responsible for
the switching logic.
→The MAC address table is stored in a kind of memory called TCAM https://en.wikipedia.org/wiki/Application-specific_integrated_circuit

(Ternary Content-Addressable Memory).


*Another common name for the MAC address table is CAM table. A simple summary:
→ The ASIC feeds the destination MAC address of the frame into the ●
When a device receives control/
TCAM, which returns the matching MAC address table entry. management traffic (destined for
→ The frame is then forwarded out of the appropriate interface. itself), it will be processed in the CPU.

When a device receives data traffic

Modern routers also use a similar hardware data plane: an ASIC which should pass through the
designed for forwarding logic, and tables stored in TCAM. device, it is processed by the ASIC for
maximum speed.
Software-Defined Networking

Software-Defined Networking (SDN) is an approach to networking that centralizes the control plane
into an application called a controller.
→You are already familiar with this concept from learning about Wireless LAN Controllers.

SDN is also called Software-Defined Architecture (SDA) or Controller-Based Networking.

Traditional control planes use a distributed architecture.
→For example, each router in the network runs OSPF and the routers share routing information and
then calculate their preferred routes to each destination.

An SDN controller centralizes control plane functions like calculating routes.
→That is just an example, and how much of the control plane is centralized varies greatly.

The controller can interact programmatically with the network devices using APIs (Application
Programming Interface).
Software-Defined Networking

R1 R2
Control OSPF Control
Plane Plane

Data Data
Packet Packet Packet
Plane Plane
Software-Defined Networking

Controller

This is your Control Plane This is your


routing table routing table

Southbound Interface
(SBI)

R1 R2

Data Data
Packet Packet Packet
Plane Plane
Southbound Interface (SBI)

The SBI is used for communications between the controller and the network devices it controls.

It typically consists of a communication protocol and API (Application Programming Interface).

APIs facilitate data exchanges between programs.
→Data is exchanged between the controller and the network devices.
→An API on the network devices allows the controller to access information on the devices, control their
data plane tables, etc.

Some examples of SBIs:
→OpenFlow
→Cisco OpFlex
→Cisco onePK (Open Network Environment Platform Kit)
→NETCONF
Northbound Interface (NBI)

Using the SBI, the controller communicates with the
managed devices and gathers information about them:
→The devices in the network
→The topology (how the devices are connected together)
→The available interfaces on each device App
→Their configurations
GET Structured data

The Northbound Interface (NBI) is what allows us to message Northbound Interface
(NBI) (ie. JSON, XML)
interact with the controller, access the data it gathers
about the network, program it, and make changes in the API
network via the SBI.

A REST API is used on the controller as an interface for
apps to interact with it.
→REST = Representational State Transfer

Data is sent in a structured (serialized) format such as
JSON or XML.
→This makes it much easier for programs to use the
data.
Automation in Traditional Networks vs SDN

Networking tasks can be automated in traditional network architectures too:
→Scripts can be written (ie. using Python) to push commands to many devices at once.
→Python with good use of Regular Expressions can parse through show commands to gather information
about the network devices.
Traditional Networks vs SDN
Switch#show interfaces
GigabitEthernet0/0 is up, line protocol is up (connected)
Hardware is iGbE, address is 0cb0.28f6.5500 (bia 0cb0.28f6.5500)
MTU 1500 bytes, BW 1000000 Kbit/sec, DLY 10 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
Unknown, Unknown, link type is auto, media type is unknown media type
output flow-control is unsupported, input flow-control is unsupported
Auto-duplex, Auto-speed, link type is auto, media type is unknown
input flow-control is off, output flow-control is unsupported
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:00, output 00:00:09, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0
Queueing strategy: fifo
Output queue: 0/0 (size/max)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
83 packets input, 8576 bytes, 0 no buffer
Received 82 broadcasts (82 multicasts)
0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 watchdog, 82 multicast, 0 pause input
54 packets output, 7221 bytes, 0 underruns
0 output errors, 0 collisions, 2 interface resets
0 unknown protocol drops
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier, 0 pause output
0 output buffer failures, 0 output buffers swapped out
Automation in Traditional Networks vs SDN

Networking tasks can be automated in traditional networks:
→Scripts can be written (ie. using Python) to push commands to many devices at once.
→Python with good use of Regular Expressions can parse through show commands to gather information
about the network devices.

However, the robust and centralized data collected by SDN controllers greatly facilitates these functions.
→The controller collects information about all devices in the network.
→Northbound APIs allow apps to access information in a format that is easy for programs to understand
(ie. JSON, XML).
→The centralized data facilitates network-wide analytics.

SDN tools can provide the benefits of automation without the requirement of third-party scripts & apps.
→You don’t need expertise in automation to make use of SDN tools.
→However, APIs allow third-party applications to interact with the controller, which can be very powerful.

Although SDN and automation aren’t the same thing, the SDN architecture greatly
facilitates the automation of various tasks in the network via the SDN controller and APIs.
Things we covered

Why network automation?


Benefits of network automation


Logical ‘planes’ of network functions


Software-defined networking (SDN)


APIs (REST)


Data serialization (JSON, XML)
Quiz 1

Which of the following are benefits of network automation? (select two)

a) Reduced human error.

b) Reduced OpEx.

c) Reduced hardware costs.

d) Centralized data plane.


Quiz 2

Which of the following are SBIs? (select two)

a) REST

b) API

c) OpenFlow

d) OpFlex
Quiz 3
Which of the following network functions would you expect to be centralized in SDN?

a) Calculating routes

b) Forwarding packets

c) Translating source IP addresses of packets

d) Denying packets via an ACL


Quiz 4

What is the purpose of the SBI in SDN architecture?

a) To facilitate data exchange between users.


b) To facilitate data exchange between the controller and apps.
c) To facilitate data exchange between the controller and network devices.
d) To facilitate data exchange between controllers.
Quiz 5

Which of the logical planes of networking does NTP’s function fit in?

a) Control plane

b) Management plane

c) Data plane

d) Forwarding plane
Supplementary Materials


Review flash cards
(link in the description)
JCNP-Level Channel Members

*as of November 6th, 2021

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy