Week 2 - The Network Layer Flashcards
How do nodes on a LAN communicate with each other?
MAC addresses
How long are IP addresses? How is each number represented?
32 bits long (4 octets long)
Represented by decimal numbers 0-255
How are IP addresses assigned and distributed?
distributed in large sections to organizations and companies
Do IP addresses belong to the networks or the devices attached?
The networks
Would your IP address change if you were at your house and if you were at a cafe?
Yes, IP address changes depending on network connected to
What is a dotted decimal notation?
When the IP address has numbers larger than what could be represented by 8 bits
example, would need 9-10 bits for the numbers 456 or 789
What does DHCP stand for? What does it do?
Dynamic Host Configuration Protocol
It assigns an IP address to a new connected device automatically
What is a static IP address? What is it usually assigned to?
An IP address that must be assigned manually
Usually assigned to servers and network devices
What is a dynamic IP address? What is it usually assigned to?
assigned automatically by the DHCP
usually to a client
What is a data packet at the Network layer called?
an IP datagram
What is a fragmented datagram called?
a packet
Define what an IP datagram is?
a highly structured series of fields that are strictly defined
What are the 2 primary sections of an IP datagram?
- header
- payload
How many total bytes is an IP datagram header?
32 bytes (includes the 0)
What are the first 3 fields in an IP datagram? Explain them.
- Version - 4 bits. What version of internet protocol is being used (IPv4 is common)
- Header Length - Almost always 20 bits long in IPv4. Declares how long the entire header is.
- Service type - 8 bits. Specifies QoS
What’s the minimum size for a header?
20 bytes
Define what is QoS?
Quality of Service
service that allows routers to make decisions about which IP datagram is more important
What are fields 4 and 5 in an IP datagram?
- Total Length - 16 bits. Indicates total length of IP datagram.
- Identification - 16 bits. Used to group messages together.
What is the max size for an IP datagram?
65,535 bits
What field is used when data is split up? How does that field help?
The identification field is used so receiving end understands that every packet with the same value in that field is part of the same transmission
What are fields 6, 7, and 8?
- Flags - indicates whether datagram is allowed to be fragmented or already fragmented
- Fragmentation - process of taking a single datagram and splitting it up into smaller datagrams
- TTL (time to live) - 8 bits. How many router hops the datagram can make before it’s thrown away.
How does the receiving end put back fragmented packets in the correct order?
It takes values from the fragmentation offset field and uses the identification field
Why would you need to fragment a datagram?
When a network that allows a larger datagram size crosses into a network that allows a smaller datagram size
What is the main purpose of the TTL field?
when an endless loop happens due to misconfiguration, the datagram isn’t continuously bounced between routers forever