Telecommunication Networks 15B11EC611: Dr. Bhagirath Sahu Assistant Professor, JIIT, Noida
Telecommunication Networks 15B11EC611: Dr. Bhagirath Sahu Assistant Professor, JIIT, Noida
Telecommunication Networks 15B11EC611: Dr. Bhagirath Sahu Assistant Professor, JIIT, Noida
15B11EC611
INTERNETWORKING
The physical and data link layers of a network operate locally. These two layers are jointly
responsible for data delivery on the network from one node to the next
There is a big problem here. When data arrive at interface f1 of R1 (Router1 or switch1), how does R1
know that interface f3 is the outgoing interface? There is no provision in the data link (or physical)
layer to help R1 make the right decision. The frame does not carry any routing information either.
Need for Network Layer
To solve the problem of delivery through several links, the network layer was designed. The network
layer is responsible for host-to-host delivery and for routing the packets through the routers or
switches.
IPv4 is also a connectionless protocol for a packet-switching network that uses the datagram
approach. This means that each datagram is handled independently, and each datagram can
follow a different route to the destination.
IPv4 Datagram Format
Packets in the IPv4 layer are called datagrams.
IPv4 Datagram Format
A datagram is a variable-length packet consisting of two parts: header and data. The
header is 20 to 60 bytes in length and contains information essential to routing and
delivery.
Header length (HLEN). total length of the datagram header in 4-byte words. This field
is needed because the length of the header is variable (between 20 and 60 bytes).
When there are no options, the header length is 20 bytes, and the value of this field
is 5 (5 x 4 = 20). When the option field is at its maximum size, the value of this field is
15 (15 x 4 = 60).
The first six bits are called Differentiated Service Code Point (DSCP).
- The last two bits are reserved. These are used for explicit congestion notification (ECN).
IPv4 Datagram Format
Total length. This is a 16-bit field that defines the total length (header plus data) of the
IPv4 datagram in bytes.
Since the field length is 16 bits, the total length of the IPv4 datagram is limited to
65,535 (216 - 1) bytes, of which 20 to 60 bytes are the header and the rest is data from
the upper layer.
• Identification
• Flags These fields are used in fragmentation
• Fragmentation offset
Fragmentation
• Divide the datagram to make it possible to pass through the networks
• Protocols: Hyperchannel (65,535), Ethernet (1500), PPP (296)
Fragmentation
• When a datagram is fragmented, each fragment has its own header with most of the
fields repeated, but with some changed.
• Datagram can be fragmented several times before it reaches the final destination.
• When a datagram is fragmented, required parts of the header must be copied by all
fragments.
Identification:
• This 16-bit field identifies a datagram originating from the source host.
• All fragments have the same identification number, the same as the original
datagram.
• The identification number helps the destination in reassembling the datagram.
• It knows that all fragments having the same identification value must be
assembled into one datagram.
Fragmentation
Flags: This is a 3-bit field. DF MF
1st bit Reserved
2nd bit DF = 1 (Do not fragment bit)
3rd bit MF = 1 (More fragment), 0 (Last fragment)
Fragmentation offset
This 13-bit field shows the relative position of this fragment with respect to the
whole datagram.
It is the offset of the data in the original datagram measured in units of 8 bytes.
Figure 20.11 shows a datagram with a data size of 4000 bytes fragmented into three
fragments.
Fragmentation
Figure 20.12 shows an expanded view of the fragments in Figure 20.11.
2. Network security
• Network should provide secure transfer of data. IPv4 supports security feature
as an implementation option. Security option may not implemented by an ISP.
• Security is integral part of IPv6 implementation. Its usage is optional.
3. Flow identification
• IP packet flows need to be identified for implementing quality of service (QOS).
• E.g. IP flow containing voice packets can be given priority and reserved
bandwidth.
• A flow is identified in IPv4 by 5 fields. Packets with same values in these fields
belong to one flow.
Source address (IP Header)
Destination address (IP Header)
Protocol (IP Header)
Source port number (TCP/UDP header)
Destination port number (TCP/UDP header)
• Flow identification affects performance of an IPv4 router.
• In IPv6, additional flow identifier field is provided.
Limitations of IPv4
4. Header design
• IPv4 header design impacts router performance. Header has variable length.
Each router must
o calculate header size,
o check it for errors,
before it can retrieve information for packet forwarding.
Error check is unnecessary for today’s optical fibre based technology.
• IPv6 has fixed header size and does not have error check bits.
Advantages:
The IPv6 also known as Ipng (IP next-generation) has some advantages over IPv4:
1. Larger address space
2. Better header format
3. New options IPv6 has new options to allow for additional functionalities.
4. Allowance for extension IPv6 is designed to allow the extension of the protocol if
required by new technologies or applications.
5. Support for resource allocation A mechanism (called flow label) has been added to
enable the source to request special handling of the packet. This mechanism can be
used to support traffic such as real-time audio and video.
6. Support for more security The encryption and authentication options in IPv6
provide confidentiality and integrity of the packet.
IPv6 – Packet Format
40 octets Up to 65,535 octets
Base header Payload
4 8 20
Version Traffic class Flow label
Payload length Next header Hop limit
Base header Source address (SA)
(16 octets)
Destination address (DA)
(16 octets)
Pay load (Extension headers + Data from upper layer)
To determine which version to use when sending a packet to a destination, the source
host queries the DNS.
If the DNS returns an IPv4 address, the source host sends an IPv4 packet.
If the DNS returns an IPv6 address, the source host sends an IPv6 packet.
Domain Name System (DNS) is a hierarchical and decentralized naming system for computers,
services, or other resources connected to the Internet or a private network.
Tunneling
1. Tunneling is a strategy used when two computers using IPv6 want to communicate
with each other and the packet must pass through a region that uses IPv4.
2. To pass through this region, the packet must have an IPv4 address.
3. So the IPv6 packet is encapsulated in an IPv4 packet when it enters the region, and it
leaves its capsule when it exits the region.
4. It seems as if the IPv6 packet goes through a tunnel at one end and emerges at the
other end.
Header Translation
Header translation is necessary when the majority of the Internet has moved to IPv6 but
some systems still use IPv4.
Tunneling does not work in this situation because the packet must be in the IPv4 format to
be understood by the receiver.
In this case, the header format must be totally changed through header translation.
Header translation uses the mapped address to translate an IPv6 address to an IPv4
address.
THANK YOU