p3?? Flashcards

1
Q

What is special about private Ipv4 addresses?

A

Cannot be routed over the internet, used within an organization or site to allow devices to communicate locally.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do you allow a device with a private Ipv4 address to access resources outside the local network?

A

The address must be translated into a public address. NAT

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is NAT? Why do we have NAT?

A

NAT allows networks to use private Ipv4 addresses internally and translate them to public addresses when needed.
A device wants to communicate with a device outside of its network.
The packet gets forwarded to the border router which performs the NAT process .
Translating the internal private address of the device to a public, outside, routable address.

The primary use of NAT is to conserve public Ipv4 addresses. (running out)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is an Inside address?

A

The address of the device that is being translated by NAT.

Typically private Ipv4 address.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is an Outside address?

A

The address of the destination device.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a local address? What does it mean that they can Inside or outside?

A

A local address is any address that appears on the inside portion of the network.

Inside: Address of the source as seen from inside the network.

Outside: The address of the destination as seen from the inside network.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a Global address? What does it mean that it can be either inside or outside?

A

A global address is any address that appears on the outside portion of the network.

Inside: Address of source as seen from the outside network.

Outside: The address of the destination as seen from the outside network.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is static NAT? In what areas is it useful?

A

Static NAT uses a one-to-one mapping of local and global addresses configured by the network admin that remain constant.

Useful for web servers or devices that must have a consistent address and devices that must be accessible by authorized personnel when offsite, but not my general public.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is Dynamic NAT? Where is it useful?

A

Dynamic NAT uses a pool of public addresses and assigns them on a first-come, first-served basis.

When an inside device requests access to an outside network, dynamic NAT assigns an available public Ipv4 address from the pool.

The other addresses in the pool are still available for use.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is Port Address Translation (NAT) NAT overload?

A

Maps multiple private IPv4 addresses to a single public Ipv4 address or a few addresses.

When the NAT router receives a packet from the client, it uses the source port number to uniquely identify the specific NAT translation.

PAT ensures that devices use a different TCP port number for each session with a server on the internet.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is special about PAT and original source ports?

A

PAT tries to preserver the original source port. If it is already used, PAT assigns the first available port number.
When there are no more ports available and there is more than one external address in the address pool, PAT moves to the next address to try to allocate the original source port.

Process continues until there are no more available ports or external Ipv4 addresses in the address pool.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Benefits with NAT

A

Increases flexibility
Provides consistency
Allows the private Ipv4 address scheme to remain while allowing for easy change to a new public addressing scheme
NAT hides the Ipv4 addresses of users and other devices.
Conservers the legally registered addressing scheme by allowing privatization of intranets.
Conservers addresses through application port-lever multiplexing.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Drawbacks with NAT

A

Increases forwarding delays(translation)
End to end addressing is lost
End to end Ipv4 traceability is lost
NAT complicates the use of tunneling protocols IPsec
Services that require the initiation of TCP connections from the otuside network, or stateless protocols, such as those using UDP can be disrupted.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are the two router functions?

A

Determine the best path using a router table(prefix(net address), prefix length)
Packet forwarding

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How can routes be considered a match? And what is the longest match?

A

There must be at least the number of matching bits indicated by the subnet mask of the route.

Longest match is a route in the table with the greatest number of far-left matching bits with packet’s dst IP address.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is directly connected nets?

A

Nets added to the table when a local interface is assigned Ip address/netmask and is active(up)

16
Q

Remote nets?

A

Routers learn about remote nets in two ways:

Static routes: Manually added to the routing table

Dynamic routing protocols: Routing protocol dynamically learns about remote nets

17
Q

How does packet forwarding work?

A

Data link frame with encap IP packet on ingress interface.

Router examines dst Ip address in pakcet header and checks routing table

Router finds the longest matching prefix in routing table

Router re-encapsulates the packet in data link frame and forwards to the egress interface, ARP or ICMPv6 ND is used to determine MAC address.

If no match, and no default route, packet is dropped.

18
Q

What is an IP routing table?

A

List of routes to the known networks derived from

Directly connected nets¨
Static routes
Dynamic routing protocols

19
Q

What is process switching?

A

An old Packet forwarding mechanism.

Forwards arriving pkt to control plane where CPU matches the dst addr to an entry in RT, determines the egress interface and forwards the pkt.

20
Q

What is fast switching?

A

Packet forwarding method. Used fast-switching cache to store next-hop info. CPU in control plane searches for match in the cache. If no match, uses Process swtiching. THe information flow then is stored in the cache. Another pkt with same dst will use the cache info without CPU intervention.

21
Q

What is Cisco Express Forwarding (CEF)

A

Most recent Cisco IOS packet forwarding mechanism. Builds a forwarding information base FIB and an adjacenct table. Table entries are change triggered instead of packet triggered (in fast switching) when something changes in the topology. When network has converged, FIB and adjacency table contain all info that a router needs.

22
Q

RT principles

A

a) Every router makes itw own decisions (based on RT info)
b) Info in RT of one touret is not necessarily identical to another router’s
c) Path routing info doesn’t provide “return” routing info.

23
Q

What is route source?

A

How route was learnt

24
Q

What is Dst net(prefix and length)

A

Remote net addr: prefix length identifies the min number of far-left bits that must match between pkt Ip addr and dst net for this route to be used.

25
Q

Administrative distance?

A

Lower values indicate preferred route source, reliability of router proto

26
Q

Metric?

A

Values assigned to reach the remote net. Preffered lower values

27
Q

Next-hop

A

Ip address of next hop(router)

28
Q

Router timestamps?

A

Time since route was learnt

29
Q

Exit interface

A

Egress interface to reach the destination

30
Q

Dynamic routing protocols, what do they do?

A

Automatically share info about reachability and status of remote nets. Perform several functions including network discovery and maintaining routing tables.

31
Q

Static routing

A

Used for smaller nets with only one path to an outside net; they provide security in larger nets for certain traffic types or links to other nets that need more control.

32
Q

Dynamic routing

A

Protos in any type of nets with more than a few routers! Scalable and adaptable to the change in topology (by finding better routes)

33
Q

IGP

A

Used for exchanging routing info withing a routing domain administrated by a single organization (autonomous system)

34
Q

EGP

A

Used for inter-domain routing, only one protocol (BGP) used for exchanging routing info between different organization (ASes) used by ISP to route packets over the internet.

35
Q

What is a routing protocol?

A

Set of processes algos, and messages, used to exchange routing info and populate routing table with the best path.

Discovery of remote nets

Maintaining up-to-date routing info

Choosing the best path to destination nets

Ability to find new best path when current path is no longer available.

36
Q

What are main components of routing protocol?

A

Data structures: Tables and databases kept in RAM

Routing Protocols and messages: Various kinds of messages to discover neighbour routers, exchange routing info, and other tasks to learn about network

Algorithms : Finite list of steps to determine the best path/route

37
Q

What is best path?

A

Selected based on metric to determine distance : best path=lowest metric different metrics used by each routing protocol.

38
Q

Load balancing

A

When there are two or more paths with equal costs metrics, both path can be used equally (equal cost lod balancing) Improves performance. ELB implemented automaitcally by dynamic routing protos; also enabled with static routes when multiple routes to the same net with different next-hop