Ipv4 and Ipv6
Ipv4 and Ipv6
U.S. Department of Defense and has been used ever since. It uses 32-
bit addresses, and these addresses are divided into three parts:
Network Address
A network address contains an octet number and a broadcast address.
10.0.1.128.
address that tells all hosts on a given network whether or not a packet
Subnet Mask
A subnet mask defines how many of the first 8 bits of each IP address
are actually used, and the remaining 24 bits are set to zero. Subnets
usually include similar hardware and software. For instance, if you live
in a small town, you probably want to join a group with other people
When you send a packet from one computer to another, the source
computer calculates the destination address and sends the packet out
through the network. At this point, the packet is sent to the router. The
address, then the router forwards the packet to the correct interface.
If the router doesn’t know where to forward the packet, it will try to
find the next hop. To do this, it checks the router table. The router
table lists known routers that connect to the current router. When the
router finds a match, it updates the entry in the table so that future
If the router cannot route the packet, it will attempt to find a default
The final step is to update the forwarding tables on the router. The
subsequent packets.
What Is IPv6?
IPv6 is an extension of the existing IPv4 protocol. It provides greater
Switching (MPLS).
2001:0DB8:0000:C000::1/64
IPv6 has two parts: the network layer and the transport layer.
Network Layer
To transmit the file, the sender needs to know what port the receiver is
listening on. Port numbers are assigned by IANA, which stands for
Transport Layer
The transport layer handles all the details involved in transmitting
data. One of the main functions of the transport layer is to ensure that
where to send the packet. The header also includes the destination
response. The router waits for the other end to acknowledge receipt of
the packet. When the acknowledgement arrives, the router knows that