Internet Routing I Flashcards
What is the goal of the Internet Protocol
To glue lower level networks together and establish connection between them
What is internet encapsulation??
Refers to the process of placing data packets into a series of protocol headers, including the source and destination IP addresses, to facilitate their transmission across the internet.
Is the internet protocol connectionless?
YES. it is datagram based. And the delivery is best-effort based
What is meant by best-effort delivery?
Packet are lost
They are delivered out of order
duplicate copies of a packet
they can be really delayed
What does these IP headers mean?
vers
hdrlen
DSCP ECN
Identification
Fragments offset
TTL
hdr checksum
Vers (Version): IP protocol version (IPv4 or IPv6).
Hdrlen (Header Length): Length of the IP header.
DSCP (Differentiated Services Code Point): Priority of the packet.
ECN (Explicit Congestion Notification): Indicates network congestion.
Identification: Unique identifier for reassembly.
Fragments Offset: Position of fragment in the original datagram.
TTL (Time to Live): Max hops before discarding.
Header Checksum: For header data integrity.
What is meant by this ?
- fragment necessary when MTU < size of datagram?
refers to a situation in computer networking where the Maximum Transmission Unit (MTU) of a network or link is smaller than the size of the datagram (packet) that needs to be transmitted.
Why do sender want to avoid fragmentation?
Because if a fragment is lost the WHOLE packet must be resent!
Why is the MF bit set in all IP fragments but the last one?
Because it indicates that there are more fragment coming. MF = more fragments
What does it mean when the DF flag is set?
DF = Dont Fragment, means exactly that. If fragmentation is required and DF bit is set then packet is not sent. Maybe target host does not have ability to reassemble.
Also note, if DF is set but MTS < size, the packet will be disregarded.
How does the IP distinguish between MF = 0, meaning last fragment and MF=0 meaning an unfragmented packet?
Last fragment has a non-zero offset field!
what IP address notation is this: 171.67.0.0/16
CIDR
what are the components of an IP adress 171.67.0.0/16 in CIDR notation?
The IP address itself is “171.67.0.0.”
The “/16” indicates the subnet mask. The first 16 bits of the IP address are the network portion and the remaining are for host addresses.
Network Address: 171.67.0.0
Subnet Mask: 255.255.0.0
How do we translate IP to Lower level address? (MAC)
USING ARP bitchhh
In IPv4: each network host has a lookup table (IP->link layer MAC addresses)
In IPv6: above + possible to encode MAC address in host part of IP
What does the Ineternet Control Message Protocol (ICMP) do?
It handles error messages, diagnostics, and control tasks in IP network
Name ICMP replies and explain what they mean/do
-Echo Reply: Indicates reachability.
-Destination Unreachable: Explains why a destination is unreachable.
-Time Exceeded: Notifies of TTL expiration to prevent looping.
-Redirect: Provides a new gateway for the destination.
-Parameter Problem: Reports header errors.
-Echo Request: Used for “Ping” requests to check reachability.
-Checksum Failed: Indicates a failed checksum in an ICMP message.
-Reassembly Failed: Signifies failed IP packet reassembly.
-Cannot Fragment: Informs that a packet cannot be fragmented further.
Define the Dynamic Host Cofiguration Protocol (DHCP)
- DHCP is a network protocol that automatically assigns IP addresses and other network configuration settings to devices in a TCP/IP network.
- It simplifies network management by dynamically allocating and managing IP addresses, subnet masks, gateways, and DNS server addresses.
- DHCP reduces manual IP configuration, making it easier to scale and manage networks efficiently.