The layer responsible for routing packets to their destination is the Network layer, which is the third layer in the OSI model. It manages the delivery of packets across multiple networks by determining the best path for data to travel from the source to the destination. Protocols such as internet Protocol (IP) operate at this layer, facilitating logical addressing and routing decisions.
The Destination Address (Layer 2 or Layer 3)
Router is a Layer 3 (Network Layer)device that checks packet's IP Address at input interface & routes them to interface connected to destination network if available.
Network - Always identifies the final destination of a packet
A network layer packet is commonly referred to as a "packet" or specifically an "IP packet" when discussing Internet Protocol (IP). At this layer, data is encapsulated into packets for routing across different networks. The network layer is responsible for addressing and forwarding these packets to their destination.
Because ICMP is on the network layer
--> If the destination network is directly connected, the router forwards the packet to the destination host. --> If no route exists for the destination network and a default route is present, the packet is forwarded to the next-hop router. --> If the originating host has a default gateway configured, the packet for a remote network can be forwarded using that route.
SLOT 0
here in data link the actual physical mean of coneection will takes place between source and destination hosts......once packet from network layer enter into data link layer the trailer is gonna add to packet also the MAC(media access control) address of destination host will be determined............once source host get the information of MAC.......its gonna add to packet along with packet then it will be called by name frame....switch will work in this layer and the protocol used are ARP and RARP........
To determine the source and destination IP addresses of a packet, you need to analyze the packet's header information. The source IP address is the address from which the packet originated, while the destination IP address is the address to which the packet is being sent. This information is typically found in the IP header of the packet, which is part of the data encapsulated in the network layer of the OSI model. You can examine this using network analysis tools like Wireshark or tcpdump.
Josef ylanan was here
A hub is a layer 1 (physical) device because it does not use any part of the packet header to direct the packet to the right destination, it just broadcasts to all connected computers.
Before sending a packet, IPv4 establishes contact with the destination by using the Address Resolution Protocol (ARP) to map the destination IP address to a MAC (Media Access Control) address on the local network. If the destination is on a different network, IPv4 sends the packet to the default gateway, which is determined by the subnet mask. The packet includes the destination IP address, and the network layer handles routing it through the appropriate paths until it reaches the destination.