The Network Layer Flashcards
Define the network layer
The network layer, or OSI Layer 3, provides services to allow end devices to exchange data across networks
What are the four basic operations performed by the network layer?
1) Addressing end devices
2) Encapsulation
3) Routing
4) De-encapsulation
Talk about addressing end devices
End devices must be configured with a unique IP address for identification on the network.
Talk about encapsulation
The network layer encapsulates the protocol data unit (PDU) from the transport layer into a packet. The encapsulation process adds IP header information (source and destination IP address)
The encapsulation process is performed by the source of the IP packet.
Talk about routing
The network layer provides services to direct the packets to a destination host on another network. To travel to other networks, the packet must be processed by a router. The role of the router is to select the best path and direct packets toward the destination host in a process known as routing. A packet may cross many routers before reaching the destination host. Each router a packet crosses to reach the destination host is called a hop.
Talk about De-encapsulation
When the packet arrives at the network layer of the destination host, the host checks the IP header of the packet. If the destination IP address within the header matches its own IP address, the IP header is removed from the packet. After the packet is de-encapsulated by the network layer, the resulting Layer 4 PDU is passed up to the appropriate service at the transport layer. The de-encapsulation process is performed by the destination host of the IP packet.
What’s the function of network layer communication protocols?
IPv4 and IPv6 specify the packet structure and processing used to carry the data from one host to another host. Operating without regard to the data carried in each packet allows the network layer to carry packets for multiple types of communications between multiple hosts.
What’s the PDU form for each layer?
Application/Session/Presentation: Data
Transport Layer: Segment
Network Layer: Packet
Data link Layer: Frame
Physical Layer: Bits
Talk about IP Encapsulation
IP encapsulates the transport layer segment or other data by adding an IP header. The IP header is used to deliver the packet to the destination host.
The process of encapsulating data layer by layer enables the services at the different layers to develop and scale without affecting the other layers.
The IP header is examined by Layer 3 devices as it travels across a network to its destination. It is important to note, that the IP addressing information remains the same from the time the packet leaves the source host until it arrives at the destination host
What are the characteristics of IP?
1) Connection-less
2) Best Effort
3) Media Independent
Note: IP was not designed to track and manage the flow of packets.
What do we mean when we say IP is connection-less?
No dedicated end-to-end connection is created by IP before data is sent.
IP requires no initial exchange of control information to establish an end-to-end connection before packets are forwarded.
What do we mean when we say IP is best effort?
IP is inherently unreliable because packet delivery is not guaranteed. (Unreliable means that IP does not have the capability to manage and recover from undelivered or corrupt packets. This is because while IP packets are sent with information about the location of delivery, they do not contain information that can be processed to inform the sender whether the delivery was successful).
What’s the function of the IPv4 packet?
Used to ensure that this packet is delivered to its next stop on the way to its destination end device. It consists of fields containing important information about the packet. These fields contain binary numbers which are examined by the Layer 3 process.
What are the significant fields in the IPv4 packet header?
1) Version
2) Differentiated service (DS)
3) Time to Live (TTL)
4) Protocol
5) Header Checksum
6) Source IPv4 address
7) Destination IPv4 address
The whole header is 20 bytes
Talk about Version
Contains a 4-bit binary value that identifies this as an IPv4 packet