Podcast
Questions and Answers
What is the primary responsibility of the network layer in the TCP/IP protocol suite?
What is the primary responsibility of the network layer in the TCP/IP protocol suite?
What happens to a packet at the source host in the network layer?
What happens to a packet at the source host in the network layer?
What is required for successful communication between two devices at a communication layer?
What is required for successful communication between two devices at a communication layer?
What is the role of a router in the network layer?
What is the role of a router in the network layer?
Signup and view all the answers
At the destination host, what happens to a datagram in the network layer?
At the destination host, what happens to a datagram in the network layer?
Signup and view all the answers
What is shown in Figure (1) of the network layer?
What is shown in Figure (1) of the network layer?
Signup and view all the answers
What is the primary duty of the network layer?
What is the primary duty of the network layer?
Signup and view all the answers
What happens to the packet header when a packet is fragmented?
What happens to the packet header when a packet is fragmented?
Signup and view all the answers
What is the responsibility of the routers in the path?
What is the responsibility of the routers in the path?
Signup and view all the answers
What is the term for the process of delivering packets from the source to the destination without changing them?
What is the term for the process of delivering packets from the source to the destination without changing them?
Signup and view all the answers
What is the purpose of the routing protocols?
What is the purpose of the routing protocols?
Signup and view all the answers
What is the forwarding table used for?
What is the forwarding table used for?
Signup and view all the answers
What is the result of the routing process?
What is the result of the routing process?
Signup and view all the answers
What is the purpose of the error control mechanism?
What is the purpose of the error control mechanism?
Signup and view all the answers
What is the key difference between unicast and multicast routing?
What is the key difference between unicast and multicast routing?
Signup and view all the answers
What is the role of the network layer in packet delivery?
What is the role of the network layer in packet delivery?
Signup and view all the answers
What is the primary function of the network layer in the Internet?
What is the primary function of the network layer in the Internet?
Signup and view all the answers
Why is error control not implemented in the network layer of the Internet?
Why is error control not implemented in the network layer of the Internet?
Signup and view all the answers
What is the role of ICMP in the Internet?
What is the role of ICMP in the Internet?
Signup and view all the answers
What is the difference between a switch and a router?
What is the difference between a switch and a router?
Signup and view all the answers
What is the primary advantage of packet switching over circuit switching?
What is the primary advantage of packet switching over circuit switching?
Signup and view all the answers
What is the primary difference between the datagram approach and the virtual circuit approach?
What is the primary difference between the datagram approach and the virtual circuit approach?
Signup and view all the answers
What is the role of the flow label in a connection-oriented packet-switched network?
What is the role of the flow label in a connection-oriented packet-switched network?
Signup and view all the answers
What is the primary reason for using packet switching in the Internet?
What is the primary reason for using packet switching in the Internet?
Signup and view all the answers
What is the primary difference between the original design of the network layer and its recent development?
What is the primary difference between the original design of the network layer and its recent development?
Signup and view all the answers
What is the primary function of a router in a packet-switched network?
What is the primary function of a router in a packet-switched network?
Signup and view all the answers
What is the purpose of the setup phase in a connection-oriented packet switched network?
What is the purpose of the setup phase in a connection-oriented packet switched network?
Signup and view all the answers
What is the function of the acknowledgment packet?
What is the function of the acknowledgment packet?
Signup and view all the answers
What is latency in a network?
What is latency in a network?
Signup and view all the answers
What is throughput in a network?
What is throughput in a network?
Signup and view all the answers
What is the unit of measurement for latency?
What is the unit of measurement for latency?
Signup and view all the answers
What is the effect of high latency on a network?
What is the effect of high latency on a network?
Signup and view all the answers
What is the difference between bandwidth and throughput?
What is the difference between bandwidth and throughput?
Signup and view all the answers
What is the effect of packet loss on the Internet network layer?
What is the effect of packet loss on the Internet network layer?
Signup and view all the answers
What is the purpose of the request packet?
What is the purpose of the request packet?
Signup and view all the answers
What is the term for network connections where small delays occur?
What is the term for network connections where small delays occur?
Signup and view all the answers
What is the purpose of subnetting?
What is the purpose of subnetting?
Signup and view all the answers
What is the total number of addresses used by the protocol?
What is the total number of addresses used by the protocol?
Signup and view all the answers
What are the factors that affect throughput?
What are the factors that affect throughput?
Signup and view all the answers
What is the reason for the obsolescence of classful addressing?
What is the reason for the obsolescence of classful addressing?
Signup and view all the answers
What is the purpose of supernetting?
What is the purpose of supernetting?
Signup and view all the answers
What is the size of the IPv4 address?
What is the size of the IPv4 address?
Signup and view all the answers
What is the maximum number of devices that can be connected to the Internet using IPv4 addresses?
What is the maximum number of devices that can be connected to the Internet using IPv4 addresses?
Signup and view all the answers
What is the effect of congestion on the throughput?
What is the effect of congestion on the throughput?
Signup and view all the answers
What is the purpose of the input buffer in a router?
What is the purpose of the input buffer in a router?
Signup and view all the answers
What is the prefix length in an IPv4 address?
What is the prefix length in an IPv4 address?
Signup and view all the answers
What is the main reason that classful addressing has become obsolete?
What is the main reason that classful addressing has become obsolete?
Signup and view all the answers
What happens in subnetting?
What happens in subnetting?
Signup and view all the answers
What is the advantage of classful addressing?
What is the advantage of classful addressing?
Signup and view all the answers
What is the purpose of supernetting?
What is the purpose of supernetting?
Signup and view all the answers
What is the characteristic of the prefix length in classless addressing?
What is the characteristic of the prefix length in classless addressing?
Signup and view all the answers
What is the purpose of the slash notation in classless addressing?
What is the purpose of the slash notation in classless addressing?
Signup and view all the answers
How do you find the first address in a block in classless addressing?
How do you find the first address in a block in classless addressing?
Signup and view all the answers
What is the main difference between classful and classless addressing?
What is the main difference between classful and classless addressing?
Signup and view all the answers
What is the result of dividing a range of addresses into several subranges and assigning each subrange to a subnetwork?
What is the result of dividing a range of addresses into several subranges and assigning each subrange to a subnetwork?
Signup and view all the answers
What is the main concept behind classless addressing?
What is the main concept behind classless addressing?
Signup and view all the answers
What is the formula to find the prefix length for each subnetwork?
What is the formula to find the prefix length for each subnetwork?
Signup and view all the answers
What is the purpose of the slash notation?
What is the purpose of the slash notation?
Signup and view all the answers
What is the relationship between the size of a network and its prefix length?
What is the relationship between the size of a network and its prefix length?
Signup and view all the answers
What is the advantage of classless addressing?
What is the advantage of classless addressing?
Signup and view all the answers
What is the formula to find the number of addresses in a block?
What is the formula to find the number of addresses in a block?
Signup and view all the answers
What is the first step in designing subnets?
What is the first step in designing subnets?
Signup and view all the answers
What is the purpose of subnetting?
What is the purpose of subnetting?
Signup and view all the answers
What is the relationship between the number of addresses in each subnetwork and the prefix length?
What is the relationship between the number of addresses in each subnetwork and the prefix length?
Signup and view all the answers
What is the benefit of using classless addressing?
What is the benefit of using classless addressing?
Signup and view all the answers
What is the primary function of DHCP in a network?
What is the primary function of DHCP in a network?
Signup and view all the answers
What is the device that allocates and manages IP addresses and other configuration parameters in a network?
What is the device that allocates and manages IP addresses and other configuration parameters in a network?
Signup and view all the answers
What is the term for the temporary assignment of IP addresses and other configuration parameters to DHCP clients?
What is the term for the temporary assignment of IP addresses and other configuration parameters to DHCP clients?
Signup and view all the answers
What is the purpose of the DHCP Discover message?
What is the purpose of the DHCP Discover message?
Signup and view all the answers
What is the technology that allows a site to use private addresses for internal communication and global Internet addresses for communication with the rest of the world?
What is the technology that allows a site to use private addresses for internal communication and global Internet addresses for communication with the rest of the world?
Signup and view all the answers
What type of NAT maps a private IP address to a specific public IP address?
What type of NAT maps a private IP address to a specific public IP address?
Signup and view all the answers
What is the term for delivering packets from the source to the destination without changing them?
What is the term for delivering packets from the source to the destination without changing them?
Signup and view all the answers
When is a DHCP client required to renew its lease?
When is a DHCP client required to renew its lease?
Signup and view all the answers
What is the purpose of the DHCP Request message?
What is the purpose of the DHCP Request message?
Signup and view all the answers
What is the term for the process of assigning IP addresses and other network configuration parameters to devices on a network?
What is the term for the process of assigning IP addresses and other network configuration parameters to devices on a network?
Signup and view all the answers
What happens to a packet at the destination host in the network layer?
What happens to a packet at the destination host in the network layer?
Signup and view all the answers
What is the key point to remember when communicating at each communication layer?
What is the key point to remember when communicating at each communication layer?
Signup and view all the answers
How many data-link layers and physical layers does a router in the path normally have?
How many data-link layers and physical layers does a router in the path normally have?
Signup and view all the answers
What is the role of the network layer at the source host?
What is the role of the network layer at the source host?
Signup and view all the answers
What happens to a packet at the source host after it is encapsulated in a datagram?
What happens to a packet at the source host after it is encapsulated in a datagram?
Signup and view all the answers
What is the purpose of the network layer in the TCP/IP protocol suite?
What is the purpose of the network layer in the TCP/IP protocol suite?
Signup and view all the answers
Why was error control not implemented in the network layer of the Internet?
Why was error control not implemented in the network layer of the Internet?
Signup and view all the answers
What is the primary function of a router in a packet-switched network?
What is the primary function of a router in a packet-switched network?
Signup and view all the answers
What is the primary function of the network layer in packet delivery?
What is the primary function of the network layer in packet delivery?
Signup and view all the answers
What is the main difference between circuit switching and packet switching?
What is the main difference between circuit switching and packet switching?
Signup and view all the answers
What is the key difference between unicast and multicast routing?
What is the key difference between unicast and multicast routing?
Signup and view all the answers
What is the role of the forwarding table in a router?
What is the role of the forwarding table in a router?
Signup and view all the answers
What is the function of the flow label in a connection-oriented packet-switched network?
What is the function of the flow label in a connection-oriented packet-switched network?
Signup and view all the answers
What happens to the packet header when a packet is fragmented?
What happens to the packet header when a packet is fragmented?
Signup and view all the answers
What is the main difference between the datagram approach and the virtual circuit approach?
What is the main difference between the datagram approach and the virtual circuit approach?
Signup and view all the answers
What is the purpose of routing protocols?
What is the purpose of routing protocols?
Signup and view all the answers
What is the purpose of ICMP in the Internet?
What is the purpose of ICMP in the Internet?
Signup and view all the answers
Why is packet switching preferred over circuit switching in the Internet?
Why is packet switching preferred over circuit switching in the Internet?
Signup and view all the answers
What is the responsibility of the routers in the path?
What is the responsibility of the routers in the path?
Signup and view all the answers
What is the purpose of error control mechanisms?
What is the purpose of error control mechanisms?
Signup and view all the answers
What happens to the packets in a packet-switched network?
What happens to the packets in a packet-switched network?
Signup and view all the answers
What is the primary responsibility of the network layer in the Internet?
What is the primary responsibility of the network layer in the Internet?
Signup and view all the answers
What is the role of the network layer in packet delivery?
What is the role of the network layer in packet delivery?
Signup and view all the answers
What is the term for the process of forwarding packets to their destination?
What is the term for the process of forwarding packets to their destination?
Signup and view all the answers
What is the term for delivering packets from the source to the destination without changing them?
What is the term for delivering packets from the source to the destination without changing them?
Signup and view all the answers
What is the primary function of the network layer?
What is the primary function of the network layer?
Signup and view all the answers
What is the purpose of the setup phase in a connection-oriented packet-switched network?
What is the purpose of the setup phase in a connection-oriented packet-switched network?
Signup and view all the answers
What is latency in a network?
What is latency in a network?
Signup and view all the answers
What is the difference between bandwidth and throughput?
What is the difference between bandwidth and throughput?
Signup and view all the answers
What is the effect of high latency on a network?
What is the effect of high latency on a network?
Signup and view all the answers
What is the purpose of the acknowledgment packet?
What is the purpose of the acknowledgment packet?
Signup and view all the answers
What is the unit of measurement for latency?
What is the unit of measurement for latency?
Signup and view all the answers
What is the term for network connections where small delays occur?
What is the term for network connections where small delays occur?
Signup and view all the answers
What is the purpose of the request packet?
What is the purpose of the request packet?
Signup and view all the answers
What is the formula for latency?
What is the formula for latency?
Signup and view all the answers
What is throughput in a network?
What is throughput in a network?
Signup and view all the answers
What is the maximum achievable throughput that can be affected by numerous protocol expenses?
What is the maximum achievable throughput that can be affected by numerous protocol expenses?
Signup and view all the answers
What happens to a packet when a router receives it while processing another packet?
What happens to a packet when a router receives it while processing another packet?
Signup and view all the answers
What is the total number of addresses used by the IPv4 protocol?
What is the total number of addresses used by the IPv4 protocol?
Signup and view all the answers
What is the main reason that classful addressing has become obsolete?
What is the main reason that classful addressing has become obsolete?
Signup and view all the answers
What is the purpose of subnetting in IPv4?
What is the purpose of subnetting in IPv4?
Signup and view all the answers
What happens to the packet that needs to be dropped when the input buffer is full?
What happens to the packet that needs to be dropped when the input buffer is full?
Signup and view all the answers
What is the effect of packet loss on the Internet network layer?
What is the effect of packet loss on the Internet network layer?
Signup and view all the answers
What is the size of the IPv4 address?
What is the size of the IPv4 address?
Signup and view all the answers
What is the advantage of classful addressing?
What is the advantage of classful addressing?
Signup and view all the answers
What is the effect of congestion on the throughput?
What is the effect of congestion on the throughput?
Signup and view all the answers
What is the main reason classful addressing has become obsolete?
What is the main reason classful addressing has become obsolete?
Signup and view all the answers
What is the purpose of subnetting?
What is the purpose of subnetting?
Signup and view all the answers
What is the advantage of classful addressing?
What is the advantage of classful addressing?
Signup and view all the answers
In classless addressing, what determines the block (network) and the node (device)?
In classless addressing, what determines the block (network) and the node (device)?
Signup and view all the answers
What is the notation informally referred to as slash notation?
What is the notation informally referred to as slash notation?
Signup and view all the answers
What can be found using the prefix length, n?
What can be found using the prefix length, n?
Signup and view all the answers
Why did class B addresses remain unused?
Why did class B addresses remain unused?
Signup and view all the answers
What was the problem with Class C addresses?
What was the problem with Class C addresses?
Signup and view all the answers
What is the idea behind supernetting?
What is the idea behind supernetting?
Signup and view all the answers
In classless addressing, what is the relationship between the size of the network and the length of the prefix?
In classless addressing, what is the relationship between the size of the network and the length of the prefix?
Signup and view all the answers
What is the main function of the DHCP server?
What is the main function of the DHCP server?
Signup and view all the answers
What happens when a DHCP client's lease expires?
What happens when a DHCP client's lease expires?
Signup and view all the answers
What is the purpose of Network Address Translation (NAT)?
What is the purpose of Network Address Translation (NAT)?
Signup and view all the answers
What is the term for the process of delivering packets from the source to the destination without changing them?
What is the term for the process of delivering packets from the source to the destination without changing them?
Signup and view all the answers
What is the difference between static NAT and dynamic NAT?
What is the difference between static NAT and dynamic NAT?
Signup and view all the answers
What is the purpose of the DHCP Discover message?
What is the purpose of the DHCP Discover message?
Signup and view all the answers
What is the term for the temporary assignment of IP addresses and other configuration parameters to DHCP clients?
What is the term for the temporary assignment of IP addresses and other configuration parameters to DHCP clients?
Signup and view all the answers
What is the purpose of the DHCP Offer message?
What is the purpose of the DHCP Offer message?
Signup and view all the answers
What is the purpose of the DHCP Acknowledgment message?
What is the purpose of the DHCP Acknowledgment message?
Signup and view all the answers
What happens when a DHCP client needs to renew its lease?
What happens when a DHCP client needs to renew its lease?
Signup and view all the answers
What is the total number of addresses granted to an organization assumed to be?
What is the total number of addresses granted to an organization assumed to be?
Signup and view all the answers
What is the formula to find the prefix length for each subnetwork?
What is the formula to find the prefix length for each subnetwork?
Signup and view all the answers
What is the main difference between classless addressing and classful addressing?
What is the main difference between classless addressing and classful addressing?
Signup and view all the answers
How do you find the number of addresses in a block?
How do you find the number of addresses in a block?
Signup and view all the answers
What is the purpose of subnetting?
What is the purpose of subnetting?
Signup and view all the answers
What is the notation used to represent the prefix length in an address?
What is the notation used to represent the prefix length in an address?
Signup and view all the answers
How do you find the first address in a block?
How do you find the first address in a block?
Signup and view all the answers
What is the size of the network inversely proportional to?
What is the size of the network inversely proportional to?
Signup and view all the answers
What is the advantage of dividing a subnetwork into several sub-subnetworks?
What is the advantage of dividing a subnetwork into several sub-subnetworks?
Signup and view all the answers
What is the result of a subnetwork being divided into several sub-subnetworks?
What is the result of a subnetwork being divided into several sub-subnetworks?
Signup and view all the answers
Study Notes
Network Layer Services
- The network layer is responsible for host-to-host delivery of datagrams.
- It provides services to the transport layer and receives services from the data-link layer.
- The network layer is involved at the source host, destination host, and all routers in the path.
Packetizing
- The network layer's first duty is packetizing, which is encapsulating the payload (data received from the upper layer) in a network-layer packet at the source and decapsulating the payload from the network-layer packet at the destination.
- The network layer is responsible for carrying a payload from the source to the destination without changing it or using it.
Routing
- The network layer is responsible for routing the packet from its source to the destination.
- The network layer needs to have some specific strategies for defining the best route.
- Routing protocols are used to help the routers coordinate their knowledge about the neighborhood and to come up with consistent tables to be used when a packet arrives.
Forwarding
- Forwarding is the action applied by each router when a packet arrives at one of its interfaces.
- The decision-making table used by a router is called the forwarding table or routing table.
- When a router receives a packet from one of its attached networks, it needs to forward the packet to another attached network (in unicast routing) or to some attached networks (in multicast routing).
Error Control
- Error control means including a mechanism for detecting corrupted, lost, or duplicate datagrams.
- Error control also includes a mechanism for correcting errors after they have been detected.
- The Internet does not directly provide error control at the network layer, but uses an auxiliary protocol, ICMP, which provides some kind of error control.
Switching
- Switching is the process of selecting one of the output ports through which the packet needs to be sent out.
- The two types of switching are:
- Circuit switching: a physical circuit (or channel) is established between the source and destination of the message before the delivery of the message.
- Packet switching: the message is divided into manageable packets at the source before being transmitted, and the packets are assembled at the destination.
Packet Switching at Network Layer
- The network layer is designed as a packet-switched network.
- The packet-switched network layer of the Internet was originally designed as a Connectionless service, but recently there is a tendency to change this to a Connection-oriented service.
- The two approaches to packet switching are:
- Datagram approach: each packet is routed independently, and the packets in a message may or may not travel the same path to their destination.
- Virtual-circuit approach: a virtual connection is set up to define the path for the datagrams, and the datagrams follow the same path.
Network Layer Performance
- The performance of a network pertains to the measure of service quality of a network as perceived by the user.
- The performance of a network can be measured in terms of:
- Routing efficiency: latency (delay) and throughput
- Packet loss: the number of packets lost during transmission
Latency
- Latency is defined as the total time taken for a complete message to arrive at the destination, starting with the time when the first bit of the message is sent out from the source and ending with the time when the last bit of the message is delivered at the destination.
- Latency is measured in milliseconds (ms).
Throughput
- Throughput is the number of messages successfully transmitted per unit time.
- Throughput is controlled by available bandwidth, the available signal-to-noise ratio, and hardware limitations.
- Throughput is measured in terms of bits per second (bps), bytes per second (Bps), kilobytes per second (KBps), megabytes per second (MBps), and gigabytes per second (Gbps).
Packet Loss
- Packet loss is the number of packets lost during transmission.
- Packet loss can be caused by congestion in the network, and can lead to overflow and cause more packet loss.
IPv4 Address
- An IPv4 address is a 32-bit address that uniquely and universally defines the connection of a host or a router to the Internet.
- IPv4 addresses are hierarchical, with a prefix that defines the network and a suffix that defines the node (connection of a device to the Internet).
- The address space of IPv4 is 2^32, or 4,294,967,296.
Classful Addressing
- Classful addressing is a system of addressing that divides the address space into five classes (A, B, C, D, and E).
- Each class has a fixed prefix length, which determines the number of nodes that can be connected to the Internet.
- Classful addressing has become obsolete due to address depletion.
Subnetting and Supernetting
- Subnetting is a technique of dividing a class A or class B block into several subnets.
- Supernetting is a technique of combining several class C blocks into a larger block.
- Both subnetting and supernetting were devised to conserve addresses and make routing more efficient.
Classless Addressing
- Classless addressing is a system of addressing that uses variable-length blocks.
- In classless addressing, the whole address space is divided into variable-length blocks.
- The prefix length in classless addressing is variable, and can range from 0 to 32.
- Classless addressing is more flexible and efficient than classful addressing.### Classless Addressing
- An address in class A, B, C can be thought of as a classless address with a prefix length of 8, 16, and 24 respectively.
- Classful addressing is a special case of classless addressing.
Prefix Length and Slash Notation
- The prefix length, n, is added to the address, separated by a slash (/).
- This notation is informally referred to as slash notation and formally as Classless Interdomain Routing (CIDR).
Extracting Information from an Address
- Three pieces of information can be extracted from an address:
- The number of addresses in the block: N = 2^(32-n)
- The first address in the block: keep the n leftmost bits and set the (32 - n) rightmost bits to 0s
- The last address in the block: keep the n leftmost bits and set the (32 - n) rightmost bits to 1s
Subnetting
- An organization can divide a range of addresses into several subranges and assign each subrange to a subnetwork (subnet).
- A subnet can be divided into several sub-subnets, and so on.
- Designing subnets requires careful planning to guarantee proper operation.
Designing Subnets
- The number of addresses in each subnetwork should be a power of 2.
- The prefix length for each subnetwork should be found using the formula: nsub = 32 - log2Nsub.
- The starting address in each subnetwork should be divisible by the number of addresses in that subnetwork.
DHCP (Dynamic Host Configuration Protocol)
- DHCP is a network management protocol used to dynamically assign IP addresses and other network configuration parameters to devices on a network.
- DHCP operates on the client-server model, where a DHCP server manages and allocates IP addresses to DHCP clients.
DHCP Server and Client
- The DHCP server is responsible for allocating and managing IP addresses and other configuration parameters.
- The DHCP client requests and obtains network configuration information from a DHCP server.
DHCP Leases
- DHCP leases are temporary assignments of IP addresses and other configuration parameters to DHCP clients.
- Leases have a duration, known as the lease time, after which the client must renew its lease.
DHCP Messages
- DHCP Discover: The DHCP client broadcasts a message to discover available DHCP servers on the network.
- DHCP Offer: DHCP servers respond to DHCP Discover messages with DHCP Offer messages.
- DHCP Request: The DHCP client selects an offered IP address and sends a DHCP Request message to the chosen DHCP server.
- DHCP Acknowledgment: The DHCP server sends a DHCP Acknowledgment message to confirm the assignment of the IP address and provide the client with the configuration parameters.
NAT (Network Address Translation)
- NAT is a technology that provides the mapping between private and universal addresses and supports virtual private networks.
- NAT types: Static NAT, Dynamic NAT, and NAT Overload (PAT - Port Address Translation).
Forwarding of IP Packets
- Forwarding means to deliver the packet to the next hop, which can be the final destination or an intermediate connecting device.
- Forwarding can be based on the destination address of the IP datagram or the label attached to an IP datagram.
- A forwarding table is used to find the next hop to deliver the packet to.
Network Layer Services
- The network layer is responsible for host-to-host delivery of datagrams.
- It provides services to the transport layer and receives services from the data-link layer.
- The network layer is involved at the source host, destination host, and all routers in the path.
Packetizing
- The network layer's first duty is packetizing, which is encapsulating the payload (data received from the upper layer) in a network-layer packet at the source and decapsulating the payload from the network-layer packet at the destination.
- The network layer is responsible for carrying a payload from the source to the destination without changing it or using it.
Routing
- The network layer is responsible for routing the packet from its source to the destination.
- The network layer needs to have some specific strategies for defining the best route.
- Routing protocols are used to help the routers coordinate their knowledge about the neighborhood and to come up with consistent tables to be used when a packet arrives.
Forwarding
- Forwarding is the action applied by each router when a packet arrives at one of its interfaces.
- The decision-making table used by a router is called the forwarding table or routing table.
- When a router receives a packet from one of its attached networks, it needs to forward the packet to another attached network (in unicast routing) or to some attached networks (in multicast routing).
Error Control
- Error control means including a mechanism for detecting corrupted, lost, or duplicate datagrams.
- Error control also includes a mechanism for correcting errors after they have been detected.
- The Internet does not directly provide error control at the network layer, but uses an auxiliary protocol, ICMP, which provides some kind of error control.
Switching
- Switching is the process of selecting one of the output ports through which the packet needs to be sent out.
- The two types of switching are:
- Circuit switching: a physical circuit (or channel) is established between the source and destination of the message before the delivery of the message.
- Packet switching: the message is divided into manageable packets at the source before being transmitted, and the packets are assembled at the destination.
Packet Switching at Network Layer
- The network layer is designed as a packet-switched network.
- The packet-switched network layer of the Internet was originally designed as a Connectionless service, but recently there is a tendency to change this to a Connection-oriented service.
- The two approaches to packet switching are:
- Datagram approach: each packet is routed independently, and the packets in a message may or may not travel the same path to their destination.
- Virtual-circuit approach: a virtual connection is set up to define the path for the datagrams, and the datagrams follow the same path.
Network Layer Performance
- The performance of a network pertains to the measure of service quality of a network as perceived by the user.
- The performance of a network can be measured in terms of:
- Routing efficiency: latency (delay) and throughput
- Packet loss: the number of packets lost during transmission
Latency
- Latency is defined as the total time taken for a complete message to arrive at the destination, starting with the time when the first bit of the message is sent out from the source and ending with the time when the last bit of the message is delivered at the destination.
- Latency is measured in milliseconds (ms).
Throughput
- Throughput is the number of messages successfully transmitted per unit time.
- Throughput is controlled by available bandwidth, the available signal-to-noise ratio, and hardware limitations.
- Throughput is measured in terms of bits per second (bps), bytes per second (Bps), kilobytes per second (KBps), megabytes per second (MBps), and gigabytes per second (Gbps).
Packet Loss
- Packet loss is the number of packets lost during transmission.
- Packet loss can be caused by congestion in the network, and can lead to overflow and cause more packet loss.
IPv4 Address
- An IPv4 address is a 32-bit address that uniquely and universally defines the connection of a host or a router to the Internet.
- IPv4 addresses are hierarchical, with a prefix that defines the network and a suffix that defines the node (connection of a device to the Internet).
- The address space of IPv4 is 2^32, or 4,294,967,296.
Classful Addressing
- Classful addressing is a system of addressing that divides the address space into five classes (A, B, C, D, and E).
- Each class has a fixed prefix length, which determines the number of nodes that can be connected to the Internet.
- Classful addressing has become obsolete due to address depletion.
Subnetting and Supernetting
- Subnetting is a technique of dividing a class A or class B block into several subnets.
- Supernetting is a technique of combining several class C blocks into a larger block.
- Both subnetting and supernetting were devised to conserve addresses and make routing more efficient.
Classless Addressing
- Classless addressing is a system of addressing that uses variable-length blocks.
- In classless addressing, the whole address space is divided into variable-length blocks.
- The prefix length in classless addressing is variable, and can range from 0 to 32.
- Classless addressing is more flexible and efficient than classful addressing.### Classless Addressing
- An address in class A, B, C can be thought of as a classless address with a prefix length of 8, 16, and 24 respectively.
- Classful addressing is a special case of classless addressing.
Prefix Length and Slash Notation
- The prefix length, n, is added to the address, separated by a slash (/).
- This notation is informally referred to as slash notation and formally as Classless Interdomain Routing (CIDR).
Extracting Information from an Address
- Three pieces of information can be extracted from an address:
- The number of addresses in the block: N = 2^(32-n)
- The first address in the block: keep the n leftmost bits and set the (32 - n) rightmost bits to 0s
- The last address in the block: keep the n leftmost bits and set the (32 - n) rightmost bits to 1s
Subnetting
- An organization can divide a range of addresses into several subranges and assign each subrange to a subnetwork (subnet).
- A subnet can be divided into several sub-subnets, and so on.
- Designing subnets requires careful planning to guarantee proper operation.
Designing Subnets
- The number of addresses in each subnetwork should be a power of 2.
- The prefix length for each subnetwork should be found using the formula: nsub = 32 - log2Nsub.
- The starting address in each subnetwork should be divisible by the number of addresses in that subnetwork.
DHCP (Dynamic Host Configuration Protocol)
- DHCP is a network management protocol used to dynamically assign IP addresses and other network configuration parameters to devices on a network.
- DHCP operates on the client-server model, where a DHCP server manages and allocates IP addresses to DHCP clients.
DHCP Server and Client
- The DHCP server is responsible for allocating and managing IP addresses and other configuration parameters.
- The DHCP client requests and obtains network configuration information from a DHCP server.
DHCP Leases
- DHCP leases are temporary assignments of IP addresses and other configuration parameters to DHCP clients.
- Leases have a duration, known as the lease time, after which the client must renew its lease.
DHCP Messages
- DHCP Discover: The DHCP client broadcasts a message to discover available DHCP servers on the network.
- DHCP Offer: DHCP servers respond to DHCP Discover messages with DHCP Offer messages.
- DHCP Request: The DHCP client selects an offered IP address and sends a DHCP Request message to the chosen DHCP server.
- DHCP Acknowledgment: The DHCP server sends a DHCP Acknowledgment message to confirm the assignment of the IP address and provide the client with the configuration parameters.
NAT (Network Address Translation)
- NAT is a technology that provides the mapping between private and universal addresses and supports virtual private networks.
- NAT types: Static NAT, Dynamic NAT, and NAT Overload (PAT - Port Address Translation).
Forwarding of IP Packets
- Forwarding means to deliver the packet to the next hop, which can be the final destination or an intermediate connecting device.
- Forwarding can be based on the destination address of the IP datagram or the label attached to an IP datagram.
- A forwarding table is used to find the next hop to deliver the packet to.
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.
Description
This quiz covers the basics of the network layer in the TCP/IP protocol suite, including its services and communication process. It explains how the network layer enables host-to-host delivery of datagrams and interacts with the transport and data-link layers.