Modules 8-10 Communicating Between Networks Flashcards
What is the network layer? What are its basic operations?
The network layer is the 3rd layer in the OSI model. It is
about communication between source and destination.
Why was NAT made? Positives and negatives?
Because there is not much left from the Ipv4 address space Nat was created to extend the IPv4 address space at the cost of losing direct communication and public IP addressing.
This resulted in increased network complexity because NAT was originally meant as a temporary solution, but it now it creates issues with header manipulation and causing additional latency.
What is the Ipv4 packet header? What are its limitations?
It tells us the most import info about the packet (e.g src/dst IP address) in binary.
Ipv4 address depletion: not much left from Ipv4 address space
Lack of end-to-end connectivity: Private addressing & NAT was created to extend the IPv4 address space at the cost of losing direct communication and public IP addressing.
What is classful addressing?
Old addresses came in blocks of fixed size (A,B,C)
Carries size as part of the address; inflexible!
E.g class B allocated address has 65K hosts even though new might have 2K hosts only.
What is sub-netting
Splits up IP prefix to help with management of network - known to local routers but looks like a single prefix from outside.
What is classless InterDomain Routing (CIDR)?
It is a more efficient use of Ipv4 address space than classful method, this is because the network portion can be of arbitrrary length; within the allocated portion of ISP’s address space.
The usual method we use today to split up IP addresses and route them.
What is Network Address Translation (NAT), and what are its characteristics?
NAT allows an organization to use a smaller number of public IP addresses with the use of private IP addresses.
Uses TCP/UDP port to tell connections apart
Violates layering: very common in homes
With special config, servers cannot be behind a NAT since clients don’t know the server’s local address to establish a connection
-
What is Ipv6 and why was it made?
Ipv6 is a better version of Ipv4, it was made to overcome the limitations of Ipv4.
It has:
Increased address space: Ipv4 has 4 billion, Ipv6 has 340 trillion.
Improved packet handling: Simpler headers with fewer field! 40 bytes long.
Eliminates the need of NAT’s , everyone gets Ipv6 address.
What does the Ipv6 packet header do?
It may contain extension headers (EH)
Provide optional network layer info
Placed between Ipv6 header and payload
May be used for fragmentation, security, mobility support, etc
Where can a host send packets to?
A host can send packets to
Own 127.0.0.1 Ipv4 ::1 Ipv6
Local: dst on the same LAN
Remote dst on a different LAN
What determines if a host is local or remote?
The source
Ipv4: Source uses its own ip address and subnet mask, along with the destination IP address.
IPv6: Source uses network address and prefix advertised by the local router.
What is the default gateway (DGW)? What is it properties?
A default gateway is the node in a computer network that serves as the forwarding host to other networks when no other route specification matches the destination IP address of a packet.
Same ip address as the rest of the LAN
Can route to other networks
Either set statically by the host or determined through DHCP protocol in IPv4
Ipv6 uses either router solicitation (RS) or manual config
What are the three routing types we have?
Directly Connected
Remote
Default route
What is Directly connected routing?
Automatically added by the router, an active interface with an address.
what is Remote routing?
Router does no have a direct connection and may be learned in 2 ways
Manually: with a static route,
- Must be adjusted manually by net admin when there’s a change in topo
- Good for small networks.
Dynamically: Using a routing protocol