5. Network Layer Flashcards
What is the purpose of the network layer?
- Provide services to allow end devices to exchange data
List out the 2 types of pricinple network layer communcation protocols
- IPv4
- IPv6
List out the 4 basic operations
- Addressing End Devices
- Encapsulation
- Routing
- De-encapsulation
What does IP encapsulates ( Which Layer )?
- Transport Layer Segment
IP can use what packet and not impact the layer 4 ( Transport Layer ) segmant? ( 2 )
- IPv4
- IPV6
What is a dual stack network?
- A network that is using both IPv4 and IPv6
What layer will examine IP packet as it traverses the network?
- Layer 3 devices
Will IP addressing change from source to destination?
- No
What can change addressing?
- NAT
What is the characteristics of IP? ( 3 )
- Connections
- Best Effort
- Media Independent
Why IP is connectionless? ( 4 )
- Doesn’t establish a connection with the destination before sending the packet
- There is no control information needed ( synchronizations, acknowledgements )
- The destination will receive the packet when it arrives, but no pre-notifications are sent by IP
- If there is a need for connection-oriented traffic, then another protocol wil handle this
- TCP will handle it
Why IP is best effort? ( 4 )
- IP will not guarantee deliery of the packet
- IP has reduced overhead since there is no mechanism to resend data that is not received
- IP does not expect acknowledgements
- IP does not know if the other devive is operational or it recived the packet
- Overhead - The information must be sent with the payload
- Payload - Actual Data
Why IP is media independent?
- IP does not concern itself with the type of frame required at the data link layer or the media type at the physical layer
- IP can be sent over any media type ( copper, fiber or wireless )
Why IP is unreliable?
- It cannot be manage or fix undelivered or corrupt packets
- IP cannot retransmit after an error
- IP cannot realign out of sequence packets.
- IP must rely on other protocols ( TCP ) for these functions
What will network layer establish?
- Maximum Transmission Unit ( MTU )
- At Transport Layer Slides
- 1500 bytes
What is the step of network layer when establishing MTU ( Maximum Transmission Unit ) ?
- Network layer receives this from control information sent by the data link layer
- The network then established the MTU size
What is fragmentation in layer 3?
- Splits the IPv4 packet into smaller units
Will fragmenting causes latency?
- Yes
- IPv6 does not fragment packets
What is the purpose of network header ? ( 3 )
- It ensures the packet is sent in the correct direction ( to the destination )
- It contains information for network layer processing in various fields.
- The information in the header is used by all layer 3 devices that handle the packet
List out the IPv4 network header characteristics
- It is in binary
- Contains several fields of information
- Diagram is read from left to right, 4 bytes per line
- The 2 most important fields are the source and destination
List out the 3 major limitations of IPv4
- IPv4 address depletion
- Basically run out of IPv4 addressing
- Lack of end-to-end connectivity
- Increased network complexity
- NAT creates issues on the network as a side effect of manipulating the network headers addressing
- NAT causes latency and troubleshooting issues
How to let IPv4 survive? ( 2 )
- Private Addressing
- NAT
What ended when private addressing and NAT were created?
- Direct communications with public addressing
What is NAT meant for? What is the side effects
- Tempory solution for IPV4 to create issues on the network as a side effect of manipulating the network headers addressing
- NAT causes latency and troubleshooting issues.
Who developed IPv6?
- IETF ( Internet Engineering Task Force )
- IPv6 overcomes the limitations of IPv4
List out the improvements that IPv6 provides ( 3 )
- Increased address space
- Based on 128 bit address, not 32 bits
- Improved packet handling
- Simplified header with fewer fields
- Eliminates the need for NAT
- Since there is a huge amount of addressing, there is no need to use private addressing internally and be mapped to a shared public address
What is the fixed bytes of the header in IPv6?
- Fixed at 40 bytes or octets long
- It is simplified, but not smaller
What is removed to improve performance?
- Several IPv4 fields
What things in IPv4 fields were removed to improve performance? ( 3 )
- Flag
- Fragment Offset
- Header Checksum
IPv6 packet may also contain what?
- Extension Headers ( EH )
What is the Extension Headers ( EH ) characteristics? ( 4 )
- Provide optional network layer information
- Are optional
- Are placed between IPv6 header and the payload
- May be used for fragmentation, security, mobility support
Will IPv6 packets be fragmented?
- No
What are always created at the source?
- Packets
- Each host device creates their own routing table
What does a packets contain when a host send it?
- Its own IP address ( IPv4 or IPv6 )
- Local Hosts ( Destination on the same LAN )
- Remote Hosts ( Devices are not on the same LAN )
What device will determine whether the destination is local or remove?
- The source device
Show the determination method of how the source device determines the destination is local or remove ( 2 )
- IPv4
- Source uses its own IP address and Subnet mask, along with the destination IP
- IPv6
- Source uses the network address and prefix advertised by the local router
What will happen when the destination is remote ?
- Local traffic is dumped out the host interface to be handled by an intermediary device
- Uses default gateway ( routers ) on the LAN to send the data
Which can be a default gateway? ( 2 )
- A router
- Layer 3 Switch
List out the features of default gateway ( 3 )
- It must have an IP address in the same range as the rest of the LAN
- It can accept data from the LAN and is capable of forwarding traffic off the LAN.
- It can route to other networks
What will happen if a device has no default gateway or a bad default gateway?
- Its traffic will not be able to leave the LAN
How does the host know the default gateway ( DGW ) ? ( 2 )
- Statically
- Through DHCP in IPv4
How does devices know the default gateway by using IPv6?( 2 )
- Configured Manually
- Router Solicitation ( RS )
What will the default gateway be configured when there is no more route in the routing table?
- Is a static route which will be a lost resort route in the routing table
What will be needed if the device intend to send traffic remotely?
- Default gateway for all the device on the LAN
How can we print the routing table on our computer?
- netstat -r
What will the netstat -r show ? ( 3 )
- Interface Unit
- All pottential interfaces
- MAC addressing
- IPv4 Routing Table
- IPv6 Routing Table
What happens when the router receives the frame from the host device? ( 5 )
- Packet arrives on the Gigabit Ethernet 0/0/0 interface of router R1.
- R1 de-encapsulates the Layer 2 Ethernet header and trailer
- Router R1 examines the destination IPv4 address of the packet and searches for the best match in its IPv4 routing table
- The route entry indicates that this packet is to be forwarded to router R2
- Router R1 encapsulates the packet into a new Ethernet header and forwards the packet to the next hop router R2
List out the 3 types of router in a router’s routing table
- Directly Connected
- These routes are automatically added by the router
- Provided interface isactive and has addressing
- Remote
- These are the router that doesn’t have direct connection
- Manually , with a static route
- Dynamically , using a routing protocol to have the routers share their information with each other
- Default Route
- Forwards all traffic to a specific direction when there is not a match in the routing table
What is the characteristics of static routing? ( 4 )
- Must be configured manually
- Must be adjusted manually by the administrator when there is a change in the topology
- Good for small non-redundant networks
- Often used in conjuction with a dynamic routing protocol for configuring a default route
What is the characteristics dynamic routes ? ( 4 )
- Discover remote networks
- Maintain up-to-date information
- Choose the best path to the destination
- Find new best paths when there is a topology change
Can dynamic routing share static default routes with other routers?
- Yes
How to let switch shows IPv4 routing table ?
- show ip route
List out the route sources ( 5 )
- L - Directly connected local interface IP address
- C - Directly connected network
- S - Static route was manually configured by an administrator
- O - OSPF
- D - EIGRP
What does the show ip route shows? ( 3 )
- Directly connected - C and L
- Remote routes - O, D, etc.
- Default routes - S*