Internet Protocol Explained

The Internet Protocol (IP) is the network layer communications protocol in the Internet protocol suite for relaying datagrams across network boundaries. Its routing function enables internetworking, and essentially establishes the Internet.

IP has the task of delivering packets from the source host to the destination host solely based on the IP addresses in the packet headers. For this purpose, IP defines packet structures that encapsulate the data to be delivered. It also defines addressing methods that are used to label the datagram with source and destination information.

IP was the connectionless datagram service in the original Transmission Control Program introduced by Vint Cerf and Bob Kahn in 1974, which was complemented by a connection-oriented service that became the basis for the Transmission Control Protocol (TCP). The Internet protocol suite is therefore often referred to as TCP/IP.

The first major version of IP, Internet Protocol version 4 (IPv4), is the dominant protocol of the Internet. Its successor is Internet Protocol version 6 (IPv6), which has been in increasing deployment on the public Internet since around 2006.[1]

Function

The Internet Protocol is responsible for addressing host interfaces, encapsulating data into datagrams (including fragmentation and reassembly) and routing datagrams from a source host interface to a destination host interface across one or more IP networks. For these purposes, the Internet Protocol defines the format of packets and provides an addressing system.

Each datagram has two components: a header and a payload. The IP header includes a source IP address, a destination IP address, and other metadata needed to route and deliver the datagram. The payload is the data that is transported. This method of nesting the data payload in a packet with a header is called encapsulation.

IP addressing entails the assignment of IP addresses and associated parameters to host interfaces. The address space is divided into subnets, involving the designation of network prefixes. IP routing is performed by all hosts, as well as routers, whose main function is to transport packets across network boundaries. Routers communicate with one another via specially designed routing protocols, either interior gateway protocols or exterior gateway protocols, as needed for the topology of the network.[2]

Version history

In May 1974, the Institute of Electrical and Electronics Engineers (IEEE) published a paper entitled "A Protocol for Packet Network Intercommunication".[3] The paper's authors, Vint Cerf and Bob Kahn, described an internetworking protocol for sharing resources using packet switching among network nodes. A central control component of this model was the Transmission Control Program that incorporated both connection-oriented links and datagram services between hosts. The monolithic Transmission Control Program was later divided into a modular architecture consisting of the Transmission Control Protocol and User Datagram Protocol at the transport layer and the Internet Protocol at the internet layer. The model became known as the Department of Defense (DoD) Internet Model and Internet protocol suite, and informally as TCP/IP.

The following Internet Experiment Note (IEN) documents describe the evolution of the Internet Protocol into the modern version of IPv4:[4]

IP versions 1 to 3 were experimental versions, designed between 1973 and 1978.[5] Versions 2 and 3 supported variable-length addresses ranging between 1 and 16 octets (between 8 and 128 bits).[6] An early draft of version 4 supported variable-length addresses of up to 256 octets (up to 2048 bits)[7] but this was later abandoned in favor of a fixed-size 32-bit address in the final version of IPv4. This remains the dominant internetworking protocol in use in the Internet Layer; the number 4 identifies the protocol version, carried in every IP datagram. IPv4 is defined in (1981).

Version number 5 was used by the Internet Stream Protocol, an experimental streaming protocol that was not adopted.[5]

The successor to IPv4 is IPv6. IPv6 was a result of several years of experimentation and dialog during which various protocol models were proposed, such as TP/IX, PIP and TUBA (TCP and UDP with Bigger Addresses,). Its most prominent difference from version 4 is the size of the addresses. While IPv4 uses 32 bits for addressing, yielding c. 4.3 billion addresses, IPv6 uses 128-bit addresses providing c. addresses. Although adoption of IPv6 has been slow,, most countries in the world show significant adoption of IPv6,[8] with over 41% of Google's traffic being carried over IPv6 connections.[9]

The assignment of the new protocol as IPv6 was uncertain until due diligence assured that IPv6 had not been used previously.[10] Other Internet Layer protocols have been assigned version numbers,[11] such as 7 (IP/TX), 8 and 9 (historic). Notably, on April 1, 1994, the IETF published an April Fools' Day joke about IPv9.[12] IPv9 was also used in an alternate proposed address space expansion called TUBA.[13] A 2004 Chinese proposal for an IPv9 protocol appears to be unrelated to all of these, and is not endorsed by the IETF.

Reliability

The design of the Internet protocol suite adheres to the end-to-end principle, a concept adapted from the CYCLADES project. Under the end-to-end principle, the network infrastructure is considered inherently unreliable at any single network element or transmission medium and is dynamic in terms of the availability of links and nodes. No central monitoring or performance measurement facility exists that tracks or maintains the state of the network. For the benefit of reducing network complexity, the intelligence in the network is located in the end nodes.

As a consequence of this design, the Internet Protocol only provides best-effort delivery and its service is characterized as unreliable. In network architectural parlance, it is a connectionless protocol, in contrast to connection-oriented communication. Various fault conditions may occur, such as data corruption, packet loss and duplication. Because routing is dynamic, meaning every packet is treated independently, and because the network maintains no state based on the path of prior packets, different packets may be routed to the same destination via different paths, resulting in out-of-order delivery to the receiver.

All fault conditions in the network must be detected and compensated by the participating end nodes. The upper layer protocols of the Internet protocol suite are responsible for resolving reliability issues. For example, a host may buffer network data to ensure correct ordering before the data is delivered to an application.

IPv4 provides safeguards to ensure that the header of an IP packet is error-free. A routing node discards packets that fail a header checksum test. Although the Internet Control Message Protocol (ICMP) provides notification of errors, a routing node is not required to notify either end node of errors. IPv6, by contrast, operates without header checksums, since current link layer technology is assumed to provide sufficient error detection.[14]

Link capacity and capability

The dynamic nature of the Internet and the diversity of its components provide no guarantee that any particular path is actually capable of, or suitable for, performing the data transmission requested. One of the technical constraints is the size of data packets possible on a given link. Facilities exist to examine the maximum transmission unit (MTU) size of the local link and Path MTU Discovery can be used for the entire intended path to the destination.[15]

The IPv4 internetworking layer automatically fragments a datagram into smaller units for transmission when the link MTU is exceeded. IP provides re-ordering of fragments received out of order.[16] An IPv6 network does not perform fragmentation in network elements, but requires end hosts and higher-layer protocols to avoid exceeding the path MTU.[17]

The Transmission Control Protocol (TCP) is an example of a protocol that adjusts its segment size to be smaller than the MTU. The User Datagram Protocol (UDP) and ICMP disregard MTU size, thereby forcing IP to fragment oversized datagrams.[18]

Security

During the design phase of the ARPANET and the early Internet, the security aspects and needs of a public, international network could not be adequately anticipated. Consequently, many Internet protocols exhibited vulnerabilities highlighted by network attacks and later security assessments. In 2008, a thorough security assessment and proposed mitigation of problems was published. The IETF has been pursuing further studies.[19]

See also

External links

Notes and References

  1. OECD. 2014-11-06. The Economics of Transition to Internet Protocol version 6 (IPv6). OECD Digital Economy Papers. en. 10.1787/5jxt46d07bhc-en. free. 2020-12-04. 2021-03-07. https://web.archive.org/web/20210307213313/https://www.oecd-ilibrary.org/science-and-technology/the-economics-of-transition-to-internet-protocol-version-6-ipv6_5jxt46d07bhc-en. live.
  2. Web site: IP Technologies and Migration — EITC. 2020-12-04. www.eitc.org. 2021-01-05. https://web.archive.org/web/20210105023938/http://www.eitc.org/research-opportunities/future-internet-and-optical-quantum-communications/internet-networks-and-tcp-ip/ip-technologies-and-migration. dead.
  3. Cerf. V.. Kahn. R.. 1974. A Protocol for Packet Network Intercommunication. IEEE Transactions on Communications. 22. 5. 637–648. 10.1109/TCOM.1974.1092259. 1558-0857. The authors wish to thank a number of colleagues for helpful comments during early discussions of international network protocols, especially R. Metcalfe, R. Scantlebury, D. Walden, and H. Zimmerman; D. Davies and L. Pouzin who constructively commented on the fragmentation and accounting issues; and S. Crocker who commented on the creation and destruction of associations.. 2020-04-06. 2017-01-06. https://web.archive.org/web/20170106204542/http://www.cs.princeton.edu/courses/archive/fall06/cos561/papers/cerf74.pdf. live.
  4. Web site: Internet Experiment Note Index . 2024-01-21 . www.rfc-editor.org.
  5. Web site: Stephen Coty . 2011-02-11 . Where is IPv1, 2, 3, and 5? . dead . https://web.archive.org/web/20200802011845/https://blog.alertlogic.com/blog/where-is-ipv1,-2,-3,and-5/ . 2020-08-02 . 2020-03-25.
  6. Postel . Jonathan B. . February 1978 . Draft Internetwork Protocol Specification Version 2 . 28 . no . RFC Editor . 6 October 2022 .
  7. Postel . Jonathan B. . June 1978 . Internetwork Protocol Specification Version 4 . 41 . no . RFC Editor . 11 February 2024 .
  8. Web site: IPv6 Adoption in 2021. Stephen. Strowes. 4 Jun 2021. 2021-09-20. RIPE Labs. en-US. 2021-09-20. https://web.archive.org/web/20210920213008/https://labs.ripe.net/author/stephen_strowes/ipv6-adoption-in-2021/. live.
  9. Web site: IPv6 . 2023-05-19 . Google . 2020-07-14 . https://web.archive.org/web/20200714184705/https://www.google.com/intl/en/ipv6/statistics.html#tab=ipv6-adoption . live .
  10. Web site: Mulligan. Geoff. It was almost IPv7. O'Reilly . 4 July 2015. https://web.archive.org/web/20150705060055/http://archive.oreilly.com/cs/user/view/cs_msg/25036. 5 July 2015. dead.
  11. Web site: IP Version Numbers. Internet Assigned Numbers Authority. 2019-07-25. 2019-01-18. https://web.archive.org/web/20190118144623/https://www.iana.org/assignments/version-numbers/version-numbers.xhtml. live.
  12. A Historical Perspective On The Usage Of IP Version 9. April 1, 1994.

  13. 1347 . TCP and UDP with Bigger Addresses (TUBA), A Simple Proposal for Internet Addressing and Routing . Ross Callon . June 1992.
  14. section 6.2
  15. Book: Rishabh, Anand. Wireless Communication. 2012. S. Chand Publishing. 978-81-219-4055-9. en. 2020-12-11. 2024-06-12. https://web.archive.org/web/20240612133919/https://books.google.com/books?id=XDJlDwAAQBAJ&q=The+dynamic+nature+of+the+Internet+and+the+diversity+of+its+components+provide+no+guarantee+that+any+particular+path+is+actually+capable+of%2C+or+suitable+for%2C+performing+the+data+transmission+requested.+One+of+the+technical+constraints+is+the+size+of+data+packets+possible+on+a+given+link.+Facilities+exist+to+examine+the+maximum+transmission+unit+%28MTU%29+size+of+the+local+link+and+Path+MTU+Discovery+can+be+used+for+the+entire+intended+path+to+the+destination.&pg=PA332#v=snippet&q=The%20dynamic%20nature%20of%20the%20Internet%20and%20the%20diversity%20of%20its%20components%20provide%20no%20guarantee%20that%20any%20particular%20path%20is%20actually%20capable%20of%2C%20or%20suitable%20for%2C%20performing%20the%20data%20transmission%20requested.%20One%20of%20the%20technical%20constraints%20is%20the%20size%20of%20data%20packets%20possible%20on%20a%20given%20link.%20Facilities%20exist%20to%20examine%20the%20maximum%20transmission%20unit%20(MTU)%20size%20of%20the%20local%20link%20and%20Path%20MTU%20Discovery%20can%20be%20used%20for%20the%20entire%20intended%20path%20to%20the%20destination.&f=false. live.
  16. Siyan, Karanjit. Inside TCP/IP, New Riders Publishing, 1997.
  17. Web site: IPv6 Fragmentation . Bill Cerveny . . 2011-07-25 . 2016-09-10 . 2016-09-16 . https://web.archive.org/web/20160916162637/https://www.arbornetworks.com/blog/asert/ipv6-fragmentation/ . live .
  18. Web site: Basic Journey of a Packet. 2 November 2010. 4 May 2014. Symantec. Symantec. Parker. Don. 20 January 2022. https://web.archive.org/web/20220120044011/https://community.broadcom.com/symantecenterprise/communities/community-home/librarydocuments/viewdocument?DocumentKey=03c598ea-e171-47c9-8035-753ccd8bb36e&CommunityKey=1ecf5f55-9545-44d6-b0f4-4e4a7f5f5e68&tab=librarydocuments. live.
  19. 6274 . Security Assessment of the Internet Protocol version 4 . F. Gont . July 2011.