217 Final Prep Flashcards
What are the 2 ways of creating extended ACLs?
Lecture 7b
Numbered Extended ACLs - Created using the access-list command
Named Extended ACLs - Created using the ip access-list extended command
What are the 4 most popular protocols filtered through extended ACLs?
Lecture 7b
ICMP, IP, TCP, and UDP.
What are some popular TCP port filtering options for Extended ACLs?
Lecture 7b
domain - DNS (Port 53)
ftp - File Transfer Protocol (port 21)
ftp-data - FTP Data connections (port 20)
pop3 - Post Office Protocol v3 (110)
smtp - Simple MAil Transport Protocol (25)
telnet - Telnet (23)
www - World Wide Web (HTTP, 80)
I don’t see Kevin testing us on anything other than the www (port 80), but I put the rest here just in case
Describe the Basic syntax of the Extended ACL command(s)
Lecture 7b
access-list access-list-number [deny, permit, remark] protocol source source wildcard destination destination wildcard** eq** [operator /port]
for more info see, see slide 8
What is the number range for extended ACLs?
Lecture 7b
100 to 199
What is the purpose of NAT?
Lecture 9
NAT (Network Address Translation) is used to translate private IP addresses into public IP addresses
thanks to NAT, one public IPv4 address can be used for thousands of devices with private IP addresses.
NAT was put in place to prevent the exhaustion of IPv4 addresses. Without it, we would have run out of IPv4 before the year 2000.
Where does NAT typically operate?
Lecture 9
NAT typically operates at the border of a stub network.
When a device inside of a stub wants to communicate with a device outside, the packet is forwarded to the border router which performs the NAT process.
Define inside and outside NAT networks.
Lecture 9
the INSIDE network is the group of networks that is subject to translation. Any device inside of this specific network is considered an inside device.
The OUTSIDE network refers to all other networks. Any device outside of the network boundary is considered an outside device.
What are the 4 types of NAT addresses?
Lecture 9
- Inside Local Addresses
- Inside Global Addresses
- Outside Local Addresses
- Outside Global Addresses
Describe Inside Global and Inside Local NAT addresses.
Lecture 9
Inside Local Addresses are the SOURCE address from INSIDE the NAT network. (this would usualy be shown as a host PC inside of the network.)
Inside Global Addresses are teh source as seen from OUTSIDE the network. This is usually the INSIDE interface of the router on the Stub network.
Describe Outside Global and Outside Local NAT addresses.
Lecture 9
Outside Global Addresses are the destination as seen from inside the network. This is usually the outside routers interface. This interface is the one that the Inside Local Host is trying to connect to.
The Outside Local Address is the destination as seen from outside the network. We will never actually know the outside local address.
Name the 3 types of NAT.
Lecture 9
Static Network Address Translation (Static NAT). This is One-To-One address maping between logical and global addresses.
Dynamic Network Address Translation (dynamic NAT). Many-To-Many address mapping between local and global addresses.
Port Address Translation (PAT) Many-to-One Address mapping between local and global addresses. Also known as NAT Overload, this method utilizes port numbers to achieve address translation.
What is the most common form of NAT?
Lecture 9
PAT or NAT Overload
Compare and contrast NAT and PAT
Lecture 9
List the advantages of NAT
Lecture 9
- Conserves the legally registered addressing scheme by allowing the privitization of intranets
- Conserves addresses through application port level multiplexing
- Increases flexibility of connections to the public network
- Allows the existing private IPv4 Address scheme to remain while allowing for easy transition to a new public addressing scheme
- Hides the IPv4 addresses for users and devices
List the drawbacks of NAT
Lecture 9
- Increases forwarding delays
- End-to-end addressing is lost, and applications that require end to end addressing can’t be used with NAT
- End-to-End IPv4 traceability is lost, which can increase the difficulty of troubleshooting
- Complicates the use of tunneling protocols
- Can disrupt services that require the initiations of TCP connections or stateless protocols.
What is NAT64?
Lecture 9
NAT64 is the process of providing protocol translation between IPv4 addresses and IPv6 addresses.
What is the purpose of NAT64?
Lecture 9
Used to transparently provide access between IPv6 only networks and IPv4 only networks.
Can interconnect the 2 types of networks, but is not used as a form of private to globlal IPv6 translation.
Good as a temporary mechanism to assist with migrating a network from IPv4 to IPv6.
Where can you find automation?
Lecture 10
Everywhere. From self-serve checkouts and automatic building environment controls, to autonomous vehicles, we encounter it everywhere.
I could see a Kevin question based off of this, so I included it.
List some benefits of automation.
Lecture 10
- Machines don’t need breaks like humans do.
- Machines can provide a more uniform product with less human error
- Allows vast ammounts of data to be collected and analyzed to provide information to help guide events and processes.
- Using robots instead of humans in dangerous conditions such as mining, firefighting, and cleaning up industrial accidents can save human lives.
- Smart devices can alter their own behaviour to reduce energy usage.
What is a smart device?
Lecture 10
Smart devices are devices that take a course of action based on an outside piece of information.
These devices incorporate smart technology to help govern their behavior. This can be a simple as a smart fridge, to as advanced as a self driving car.
Smart devices need to be programmed using network automation tools to be able to operate.
What are data formats?
Lecture 10
Data formats are a way to store and exchange data in a structured format.
While many systems allow you to chose your own data format, and are compatable with multiple, some require specific data formats to be followed.
Name some common data formats.
Lecture 10
- JSON (JavaScript Object Notation)
- eXtensible Markup Language (XML)
- YAML Ain’t Markup Language (YAML)
HTML is the starndard markup language for structuring web pages.
What are the 3 specific characteristics that can help you identify data formats?
Lecture 10
- Syntax - Includes characteristics like which bracket types are used ([], {}, ()), indentation and white space rules, quotes, commas, etc.
- Object representation - How the language treats characters, strings, lists, and arrays
- Key/Value Pair Representation - Usually the key is on the left side identifiying or describing data. The value is on the right side and contains the data itself. This data can be a character, string, number, list, or any other type of data.
Describe the JSON data format.
Lecture 10
JSON is a human readable dta format used by applications for storing, transfering and reading data.
Extremely popular, it used by many web services and APIs for providing public data.
Works well with most modern programming languages including Python.
List the syntax rules for JSON.
Lecture 10
- Uses a hierarchical structure and contains nested values
- Uses {} to hold objects and [] to hold arrays.
- Written as key/value pairs.
- Keys MUST be strings contained inside “ “ marks.
- Values must be a valid JSON data type (string, number, array, Boolean, null, or another object)
- Key / value pairs are seperated by a colon.
- Multiple key/value pairs are seperated by commas.
- White space does not matter.
Describe the YAML data format
Lecture 10
YAML is a human readable data format used by applications for storing, transferring and reading data.
* Minimalist format making it easy to both read and write
* Uses indentation to define its structure
* Can also use [] for lists and {} for maps
* Considered a superset of JSON
* A YAML parser can parse JSON - JSON Files are valid YAML files
Describe the XML Data format
Lecture 10
Also a human readable data format.
* Is alike to HTML, which is the standardized markup language for creating web pages and web applications
* It is self-descriptive. It encloses data within a related set of tags <tag>data</tag>
* Unlike HTML, XML doesn’t use predefined tags or document structure
* XML Objects are one or more key/value pairs, with the beginning tag used as the name of the key (example <key>value</key>)
Describe the XML Data format
Lecture 10
Also a human readable data format.
* Is alike to HTML, which is the standardized markup language for creating web pages and web applications
* It is self-descriptive. It encloses data within a related set of tags <tag>data</tag>
* Unlike HTML, XML doesn’t use predefined tags or document structure
* XML Objects are one or more key/value pairs, with the beginning tag used as the name of the key (example <key>value</key>)
Different data formats for reference
Lecture 10
What are APIs?
Lecture 10
APIs (Application Programming Interfaces) are software that allows other applications to access its data and services.
APIs act as a set of rules describing how one application can interact with another, and teh instructions to allow the interaction to occur.
An API is similar to a waiter in a resturant. The user (patron) makes an API request, the water then goes to the Applications (kitchen) and retrieves food (data) to return to the customer.
Describe Open, Internal, and Partner APIs.
Lecture 10
Open (or public) APIs - Publicly available and able to be used without restrictions. Many API providers require the user to get a free token or key prior to use due to their public nature. This helps prevent overload from unnessecary requests.
Internal / Private APIs - Used by an organization or company to access data and services for internal use only. Example: Allowing only authorized sales staff to access internal sales data on their mobile devices.
Partner APIs - Used between a company and it’s business partners to facilitate business between them. The partner must have a license or another form of permission to use the API .
What are the 4 types of web service APIs?
Lecture 10
- Simple Object Access Protocol (SOAP)
- Representational State Transfer (REST)
- eXtensible Markup Language - Remote Procedure Call (XML-RPC)
- JavaScript Object Notation - Remote Procedure Call (JSON-RPC)
Describe the characterists of different web service APIs.
Lecture 10 .
What is a REST API?
Lecture 10
A REST API is an API that works on top of the HTTP protocol.
REST APIs define a set of functions developers can use to perform requests and receive responses via HTTP protocols such as GET and POST.
Describe the features of a RESTful API.
Lecture 10
- Client-Server - The client handles the front end and teh server handles the back end. Either can be swapped out independently of the other.
- Stateless - No client data is stored on the server between requests. The session state is stored on the client.
- Cacheable - Clients can cache responses to improve performance.
What are the 4 defined aspects of a RESTful web service?
Lecture 10
- The base Uinform Resource Identifier (URI) for the web service.
- The data format supported by the web service (Often JSON, YAML, or XML but could be any data format)
- The Set of operations supported by the web service using HTTP methods
- The API must be hypertext driven.