Ipv4 Packet Header: Lecture No6
Ipv4 Packet Header: Lecture No6
The two most commonly referenced fields are the source and destination IP
addresses. These fields identify where the packet is coming from and where it is
going. Typically, these addresses do not change while travelling from the source
to the destination The Internet Header Length (IHL), Total Length, and Header
Checksum fields are used to identify and validate the packet.
Limitations of IPv4
Through the years, IPv4 has been updated to address new challenges. However, even
with changes, IPv4 still has three major issues:
- IP address depletion - IPv4 has a limited number of unique public IPv4
addresses available. Although there are approximately 4 billion IPv4
addresses, the increasing number of new IP-enabled devices, always-on
connections, and the potential growth of less-developed regions have
increased the need for more addresses.
- Internet routing table expansion - A routing table is used by routers to make
best path determinations. As the number of servers connected to the Internet
Lecture No6 Computer Networks Asst.Lec. Tareq Imad Ali
increases, so too does the number of network routes. These IPv4 routes
consume a great deal of memory and processor resources on Internet routers.
- Lack of end-to-end connectivity - Network Address Translation (NAT) is a
technology commonly implemented within IPv4 networks. NAT provides a
way for multiple devices to share a single public IPv4 address. However,
because the public IPv4 address is shared, the IPv4 address of an internal
network host is hidden. This can be problematic for technologies that require
end-to-end connectivity.
IPv4 Message Communication
We actually have three different methods of sending IPv4 messages over
computer networks as shown in the figure (32). Those methods are unicast,
multicast and broadcast.
- Unicast Message: - When using unicast method, one device will send the
message to exactly one destination device. If some device needs to send a
message to multiple devices, it will have to send multiple unicast messages,
each message addressed to a specific device. So, the sender has to send a
separate message to each destination device, and to do that it has to know the
exact IP address of each destination device. Remember that in unicasting, each
packet is destined for only one device.
- Broadcast Message: - The second method of sending messages is called the
broadcasting. Broadcast is a packet that’s sent to all devices on specific
network. The destination address in the packet is the special broadcast
address. If the packet has a broadcast address, all devices that receive that
message will process it. So, all devices on the same network segment will see
the same message. Another thing to remember is that routers don’t forward
broadcast messages. The router will receive the broadcast traffic, but it will
not forward it through the router.
- Multicast Message - :Multicasting identifies logical groups of computers. A
single message can then be sent to the group. Multicasting uses the Internet
Group Management Protocol (IGMP) to identify groups and group members.
Routers will also use IGMP to send messages to subnets that have group
members. Each host on the network can belong to multiple multicast groups.
Hosts can join or leave groups at any time. Multicast groups are identified by
Lecture No6 Computer Networks Asst.Lec. Tareq Imad Ali
to the destination device directly. Of course, in most situations we want our devices
to be able to connect outside the local
Network segment, such as out to other homes, businesses, and the Internet. Devices
that are outside the local network segment are known as remote hosts. When a source
device sends a packet to a remote destination device, then the help of routers and
routing is needed. Routing is the process of identifying the best path to a
destination. The router connected to the local network segment is referred to as the
default gateway. Figure (33) show the types of destinations.
Default Gateway
The default gateway is the network device that can route traffic to other networks. It
is the router that can route traffic out of the local network. If you use the analogy
that a network is like a room, then the default gateway is like a doorway. If you want
to get to another room or network you need to find the doorway. Alternatively, a PC
or computer that does not know the IP address of the default gateway is like a person,
in a room, that does not know where the doorway is. They can talk to other people
in the room or network, but if they do not know the default gateway address, or there
is no default gateway, then there is no way out. So, the functions of the default
gateway are: -
Lecture No6 Computer Networks Asst.Lec. Tareq Imad Ali