 IP is the primary protocol in the Internet Layer of the Internet Protocol Suite and has the task of delivering datagrams from the source host to the destination host solely based on their addresses.For this purpose, IP defines addressing methods and structures for datagram encapsulation.It is a connectionless protocol and relies on the transmission of packets.