SCTP
SCTP
SCTP
IPv4 &IPv6
1. Internet protocol version 4(IPv4)
• 1.1 Foreword
• Internet Protocol Version 4 (IPv4) is the core protocol suite in the
TCP/IP protocol suite. It works at the network layer in the hybrid
protocol stack and this layer corresponds to the network layer in
the Open System Interconnection Reference Model (OSI RM).
• IP has two versions: IPv4 and IPv6 later we will see IPv6. IPv4
packets prevail on the Internet, and the Internet is undergoing
the transition to IPv6.
• IPv4 is the core protocol in the TCP/IP protocol suite. It works at
the network layer in the TCP/IP protocol stack and this layer
corresponds to the network layer in the Open System
Interconnection Reference Model (OSI RM).
1.3.3 Data Encapsulation,is the process of adding a
header and a tail to a datapayload to form a new paket.
continue
• Application data can be transmitted to the destination end over
the network only after being processed at each layer of the
TCP/IP protocol suite. Each layer uses protocol data units
(PDUs) to exchange information with another layer.
The TTL field specifies the number of routers that a packet can
pass through.
Once a packet passes through a router, the TTL is reduced by
1. If the TTL value is reduced to 0, a data packet is discarded.
continue...
continue...
• Time to Live: 8 bits long. It specifies the maximum number of
routers that a packet can pass through on a network.
• When packets are forwarded between network segments,
loops may occur if routes are not properly planned on network
devices. As a result, packets are infinitely looped on the network
and cannot reach the destination. If a loop occurs, all packets
destined for this destination are forwarded cyclically. As the
number of such packets increases, network congestion occurs.
• To prevent network congestion induced by loops, a TTL field is
added to the IP packet header. The TTL value decreases by 1
each time a packet passes through a Layer 3 device. The initial
TTL value is set on the source device.
continue...
It can be used as a destination address and traffic destined for it is sent to all hosts on the network
Limited broadcast address 255.255.255.255
segment to which the address belongs. (Its usage is restricted by a gateway).
Loopback address 127.0.0.0/8 It is used to test the software system of a test device.
2.internet protocol version 6(IPv6)
• 2.1 Foreword
• In the 1980s, the Internet Engineering Task Force (IETF)
released RFC 791 – Internet Protocol, which marks the
standardization of IPv4. In the following decades, IPv4 has
become one of the most popular protocols. Numerous people
have developed various applications based on IPv4 and made
various supplements and enhancements to IPv4, enabling the
Internet to flourish.
• However, with the expansion of the Internet and the
development of new technologies such as 5G and Internet of
Things (IoT), IPv4 faces more and more challenges. It is
imperative to replace IPv4 with IPv6.
2.2 Objectives
• On completion of this course, you will be able to:
• Summarize the advantages of IPv6 over IPv4.
• Describe the basic concepts of IPv6.
• Describe the formats and functions of IPv6 packet headers.
• Describe the IPv6 address format and address types.
Why IPv6?
• Characteristics of IPv4:
• 1.Exhausted public IP addresses
• 2.Improper packet header design
• 3.Large routing table, leading to inefficient table query
• 4.Dependency on ARP causes broadcast storms
• 5.……
continue...
• Characteristics of IPv6:
• 1.Nearly infinite address space
• 2.Hierarchical address allocation
• 3.Plug-and-play
• 4.Simplified packet header
• 5.IPv6 security features
• 6.Integrity of E2E communication
• 7.Support for mobility
• 8.Enhanced QoS features
• 9....
IPv6 Advantages
2.3.4 Basic IPv6 Header
• An IPv6 header consists of a mandatory basic IPv6 header and
optional extension headers.
• The basic header provides basic information for packet
forwarding and is parsed by all devices on a forwarding path.
continue...
continue...
continue...
continue...
• The fields in a basic IPv6 header are described as follows:
• 1.Version: 4 bits long. In IPv6, the value is 6.
• 2.Traffic Class: 8 bits long. This field indicates the class or
priority of an IPv6 packet. It is similar to the TOS field in an IPv4
packet and is mainly used in QoS control.
• 3.Flow Label: 20 bits long. This field was added in IPv6 to
differentiate real-time traffic. A flow label and a source IP address
together can identify a unique data flow. Intermediate network
devices can effectively differentiate data flows based on this
field.
continue
• 4.Payload Length: 16 bits long. This field indicates the length of
the part (namely, extension headers and upper-layer PDU) in an
IPv6 packet following the IPv6 basic header.
• 5.Next Header: 8 bits long. This field defines the type of the first
extension header (if any) following a basic IPv6 header or the
protocol type in an upper-layer PDU (similar to the Protocol field
in IPv4).
• Hop Limit: 8 bits long. This field is similar to the Time to Live field
in an IPv4 packet. It defines the maximum number of hops that
an IP packet can pass through. The value is decreased by 1
each time an IP packet passes through a node. The packet is
discarded if Hop Limit is decreased to zero.
continue...
• 7.Source Address: 128 bits long. This field indicates the address
of the packet sender.
• Destination Address: 128 bits long. This field indicates the
address of the packet receiver.
Pv6 Extension Header
continue...
continue...
• Extension Header Length: 8 bits long. This field indicates the
extension header length excluding the length of the Next Header
field.
• Extension Header Data: variable length. This field indicates the
payload of the extension headers and is a combination of a
series of options and padding fields.
• An IPv4 packet header carries the optional Options field, which
can represent security, timestamp, or record route options. The
Options field extends the IPv4 packet header from 20 bytes to
60 bytes. The Options field needs to be processed by all the
intermediate devices, consuming a large number of resources.
For this reason, this field is seldom used in practice.
continue...
• When more than one extension header is used in the same IPv6
packet, those headers must appear in the following order:
• 1.Hop-by-Hop Options header: carries optional information that
must be examined by every node along a packet's delivery path.
• 2.Destination Options header: carries optional information that
needs to be examined only by a packet's destination node.
• 3.Routing header: used by an IPv6 source to list one or more
intermediate nodes to be "visited" on the way to a packet's
destination.
• 4.Fragment header: used by an IPv6 source to send a packet
longer than the path MTU to its destination.
continue...
• 5.Authentication header (AH): used by IPsec to provide
authentication, data integrity, and replay protection.
• 6.Encapsulating Security Payload (ESP) header: used by IPsec
to provide authentication, data integrity, replay protection, and
confidentiality of IPv6 packets.
IPv6 Packet Processing Mechanism
continue...
• Source router’s behavior : Constructs an IPv6 packet as
required.
• Intermediate router’s behavior: Process the basic header and
Hop-by-Hop Options header.
• Destination router’s behavior: Processes all packet headers.
• The length of the basic packet header is fixed, improving the
forwarding efficiency.
• The extension headers meet special requirements.
• 2.3.9 IPv6 Address Classification
• IPv6 addresses are classified into unicast, multicast, and
anycast addresses according to the IPv6 address prefix.
continue...
continue...
• •Unicast address: identifies an interface. A packet destined for a
unicast address is sent to the interface having that unicast
address. In IPv6, an interface may have multiple IPv6
addresses. In addition to GUAs, ULAs, and LLAs, IPv6 has the
following special unicast addresses:
• 1.Unspecified address: 0:0:0:0:0:0:0:0/128, or ::/128. The
address is used as the source address of some packets, for
example, Neighbor Solicitation (NS) messages sent during DAD
or request packets sent by a client during DHCPv6 initialization.
continue...
• 2.Loopback address: 0:0:0:0:0:0:0:1/128, or ::1/128, which is
used for local loopback (same function as 127.0.0.1 in IPv4).
The data packets sent to ::/1 are actually sent to the local end
and can be used for loopback tests of local protocol stacks.
• •Multicast address: identifies multiple interfaces. A packet
destined for a multicast address is sent to all the interfaces
joining in the corresponding multicast group. Only the interfaces
that join a multicast group listen to the packets destined for the
corresponding multicast address.
continue...
• •Anycast address: identifies a group of network interfaces
(usually on different nodes). A packet sent to an anycast address
is routed to the nearest interface having that address, according
to the router's routing table.
• •IPv6 does not define any broadcast address. On an IPv6
network, all broadcast application scenarios are served by IPv6
multicast.
• Student Name
Samuel Teshale
Samuel Ayalew
Dawit Degu
Tewodros Kassanew