IP, ICMP, IP Header
IP, ICMP, IP Header
Throughput refers to the amount of data successfully transmitted from one point to another over a
network in a given period of time. It is typically measured in bits per second (bps) but can also be
represented in higher units like kilobits per second (Kbps), megabits per second (Mbps), or gigabits per
second (Gbps).
Definition: Throughput is the actual rate at which data is successfully transferred over a
network, taking into account the limitations of the network (e.g., bandwidth, congestion, packet
loss, latency).
Formula:
Throughput t= Total data transmitted
Time taken
If, for example, 500 megabits of data are transmitted in 10 seconds, the throughput would
be:
End-to-end delay refers to the total time it takes for a data packet to travel from the source to the
destination across a network. It includes various types of delays encountered along the path from the
sender to the receiver. End-to-end delay is crucial in applications like video conferencing, VoIP, and real-
time gaming, where timely delivery of data is important.
1. If a signal needs to travel 2000 km over a fiber optic cable with a propagation speed of
2×108 m/s the propagation delay would be?
2. Imagine you are involved in a real-time data transmission, where you are streaming a HD
video over a long-distance network. the video is transmitted at the rate of 15mbps, and
its needs to travel over a network link that spans 1500km with a propagation speed of
2×108 m/s.
3. Imagine you are involved in a real-time data transmission scenario where a large file is
being sent over a long-distance network connection. The file s hize is 500 MB, and it
needs to travel over a network link that spans 3000 km with a propagation speed of
2.5×10⁸ m/s. The network link supports a data transmission rate of 20 Mbps.
a. How long will it take for the first bit of the file to reach the destination (propagation delay)?
b. How long will it take to transmit the entire file (transmission time)?
c. What is the total time required to transmit the entire file and for it to be received at the destination
(total delay)?
Network Layer:
Router at network layer:
A router is a network device that forwards data packets between different computer networks. It
acts as a gateway, determining the optimal path for data to travel from the source to its
destination across interconnected networks, such as the internet. Routers are essential for
directing internet traffic, ensuring that data reaches the correct destination by analyzing the IP
addresses of incoming packets.
IPV4 & IPV6:
The main differences between IPv4 (Internet Protocol version 4) and IPv6 (Internet Protocol
version 6) lie in their structure, functionality, and the number of available addresses.
1. Address Length:
IPv4: Uses a 32-bit address format, resulting in around 4.3 billion unique addresses.
o Example: 192.168.0.1
2. Address Representation:
IPv4: Addresses are written in dotted decimal notation, divided into four octets,
separated by periods.
o Example: 172.16.254.1
IPv6: Addresses are written in hexadecimal and divided into eight 16-bit blocks,
separated by colons.
o Example: fe80::1ff:fe23:4567:890a
3. Address Space:
IPv4: Limited address space, leading to the need for techniques like NAT (Network
Address Translation) to share IP addresses.
4. Header Complexity:
IPv4: The header is 20-60 bytes in size and includes fields like checksum, options, and
fragmentation, which can add overhead.
IPv6: The header is fixed at 40 bytes and simplified to improve efficiency. Many
optional features are handled in extension headers.
5. Broadcast vs Multicast:
IPv4: Supports broadcast communication, where a message is sent to all hosts on a
network.
IPv6: Eliminates broadcast and replaces it with more efficient multicast and anycast
communication for targeted message delivery.
6. Security:
IPv4: Security is optional, typically implemented through external protocols like IPsec.
IPv6: IP-sec (Internet Protocol Security) is built-in and mandatory for IPv6, enhancing
security capabilities.
7. Address Types:
IPv4: Three address types — unicast, broadcast, and multicast.
IPv6: Supports unicast, multicast, and anycast addresses (in anycast communication,
data is sent from one sender to the nearest or best receiver out of multiple possible
receivers (one-to-nearest communication). Broadcast is no longer used in IPv6.
8. Routing:
IPv4: Routing tables can grow large, leading to inefficient routing.
IPv6: More hierarchical and efficient routing, reducing the size of routing tables.
9. Compatibility:
IPv4: The current dominant protocol, but the address space is nearly exhausted.
IPv6: Designed as the successor to IPv4, addressing the limitations of IPv4, particularly
the shortage of IP addresses
Flags (3 bits):
Contains control flags for fragmentation:
o Bit 0: Reserved, always set to 0.
o Bit 1: DF (Don't Fragment) – If set, the packet cannot be fragmented.
o Bit 2: MF (More Fragments) – If set, more fragments follow. If not set, this is
the last fragment.
Protocol (8 bits):
Indicates the protocol used in the data portion of the IP packet. Common values include:
o 1: ICMP (Internet Control Message Protocol)