Recent from talks
Contribute something
Nothing was collected or created yet.
Internet layer
View on Wikipedia
| Internet protocol suite |
|---|
| Application layer |
| Transport layer |
| Internet layer |
| Link layer |
The internet layer is a group of internetworking methods, protocols, and specifications in the Internet protocol suite that are used to transport network packets from the originating host across network boundaries; if necessary, to the destination host specified by an IP address. The internet layer derives its name from its function facilitating internetworking, which is the concept of connecting multiple networks with each other through gateways.
The internet layer does not include the protocols that fulfill the purpose of maintaining link states between the local nodes and that usually use protocols that are based on the framing of packets specific to the link types. Such protocols belong to the link layer. Internet-layer protocols use IP-based packets.
A common design aspect in the internet layer is the robustness principle: "Be liberal in what you accept, and conservative in what you send"[1] as a misbehaving host can deny Internet service to many other users.
Purpose
[edit]The internet layer has three basic functions:
- For outgoing packets, select the next-hop host (gateway) and transmit the packet to this host by passing it to the appropriate link layer implementation;
- For incoming packets, capture packets and pass the packet payload up to the appropriate transport layer protocol, if appropriate.
- Provide error detection and diagnostic capability.
In Version 4 of the Internet Protocol (IPv4), during both transmit and receive operations, IP is capable of automatic or intentional fragmentation or defragmentation of packets, based, for example, on the maximum transmission unit (MTU) of link elements. However, this feature has been dropped in IPv6, as the communication endpoints, the hosts, now have to perform path MTU discovery and ensure that end-to-end transmissions don't exceed the maximum discovered.
In its operation, the internet layer is not responsible for reliable transmission. It provides only an unreliable service, and best effort delivery. This means that the network makes no guarantees about the proper arrival of packets. This in accordance with the end-to-end principle and a change from the previous protocols used on the early ARPANET. Since packet delivery across diverse networks is an inherently unreliable and failure-prone operation, the burden of providing reliability was placed with the endpoints of a communication path, i.e., the hosts, rather than on the network. This is one of the reasons of the resiliency of the Internet against individual link failures and its proven scalability. The function of providing reliability of service is the duty of higher-level protocols, such as the Transmission Control Protocol (TCP) in the transport layer.
In IPv4, a checksum is used to protect the header of each datagram. The checksum ensures that the information in a received header is accurate, however, IPv4 does not attempt to detect errors that may have occurred to the data in each packet. IPv6 does not include this header checksum, instead relying on the link layer to assure data integrity for the entire packet including the checksum.
Core protocols
[edit]The primary protocols in the internet layer are the Internet Protocol (IP). It is implemented in two versions, IPv4 and IPv6. The Internet Control Message Protocol (ICMP) is primarily used for error and diagnostic functions. Different implementations exist for IPv4 and IPv6. The Internet Group Management Protocol (IGMP) is used by IPv4 hosts and adjacent IP multicast routers to establish multicast group memberships.
Security
[edit]Internet Protocol Security (IPsec) is a suite of protocols for securing IP communications by authenticating and encrypting each IP packet in a data stream. IPsec also includes protocols for key exchange. IPsec was originally designed as a base specification in IPv6 in 1995,[2][3] and later adapted to IPv4, with which it has found widespread use in securing virtual private networks.
Relation to OSI model
[edit]Because the internet layer of the TCP/IP model is easily compared directly with the network layer (layer 3) in the Open Systems Interconnection (OSI) protocol stack,[4][5][6] the internet layer is often improperly called network layer.[1][7]
IETF standards
[edit]- J. Postel, ed. (September 1981). INTERNET PROTOCOL - DARPA INTERNET PROGRAM PROTOCOL SPECIFICATION. IETF. doi:10.17487/RFC0791. STD 5. RFC 791. IEN 128, 123, 111, 80, 54, 44, 41, 28, 26. Internet Standard 5.
- J. Postel (September 1981). INTERNET CONTROL MESSAGE PROTOCOL - DARPA INTERNET PROGRAM PROTOCOL SPECIFICATION. Network Working Group. doi:10.17487/RFC0792. STD 5. RFC 792. Internet Standard 5.
- David D. Clark (July 1982). IP DATAGRAM REASSEMBLY ALGORITHMS. Internet Engineering Task Force. doi:10.17487/RFC0815. RFC 815. Status Unknown.
- David D. Clark (July 1982). FAULT ISOLATION AND RECOVERY. Internet Engineering Task Force. doi:10.17487/RFC0816. RFC 816. Historic.
- J. Postel (November 1983). The TCP Maximum Segment Size and Related Topics. Network Working Group. doi:10.17487/RFC0879. RFC 879. Obsolete.
- J. Mogul; J. Postel (August 1985). Internet Standard Subnetting Procedure. Network Working Group. doi:10.17487/RFC0950. STD 5. RFC 950. Internet Standard 5.
- S. Kent (November 1991). U.S. Department of Defense - Security Options for the Internet Protocol. Network Working Group. doi:10.17487/RFC1108. RFC 1108. Historic.
- S. Deering (August 1989). Host Extensions for IP Multicasting. Network Working Group. doi:10.17487/RFC1112. STD 5. RFC 1112. Internet Standard 5.
- R. Braden, ed. (October 1989). Requirements for Internet Hosts -- Communication Layers. Network Working Group. doi:10.17487/RFC1122. STD 3. RFC 1122. Internet Standard 3.
- R. Braden, ed. (October 1989). Requirements for Internet Hosts -- Application and Support. Network Working Group. doi:10.17487/RFC1123. STD 3. RFC 1123. Internet Standard 3.
- R. Bush; D. Meyer (December 2002). Some Internet Architectural Guidelines and Philosophy. Network Working Group. doi:10.17487/RFC3439. RFC 3439. Informational.
See also
[edit]References
[edit]- ^ a b R. Braden, ed. (October 1989). Requirements for Internet Hosts -- Communication Layers. Network Working Group. doi:10.17487/RFC1122. STD 3. RFC 1122. Internet Standard 3. Updated by RFC 1349, 4379, 5884, 6093, 6298, 6633, 6864, 8029 and 9293.
- ^ R. Atkinson (August 1995). Security Architecture for the Internet Protocol. Network Working Group. doi:10.17487/RFC1825. RFC 1825. Obsolete. Obsoleted by RFC 2401.
- ^ P. Karn; P. Metzger; W. Simpson (August 1995). The ESP DES-CBC Transform. Network Working Group. doi:10.17487/RFC1829. RFC 1829. Proposed Standard.
- ^ "What's The Difference Between The OSI Seven-Layer Network Model And TCP/IP?". Electronic Design. 2 October 2013.
- ^ "Four Layers of TCP/IP model, Comparison and Difference between TCP/IP and OSI models". www.omnisecu.com.
- ^ "Network Basics: TCP/IP and OSI Network Model Comparisons".
- ^ R. Braden, ed. (October 1989). Requirements for Internet Hosts -- Application and Support. Network Working Group. doi:10.17487/RFC1123. STD 3. RFC 1123. Internet Standard 3. Updated by RFC 1349, 2181, 5321, 5966 and 7766.
External links
[edit]Internet layer
View on GrokipediaIntroduction
Definition and Role
The Internet layer, also known as the network layer in the TCP/IP model, is the third layer responsible for logical addressing, routing, and end-to-end packet delivery across interconnected networks.[8] It operates by encapsulating data from the transport layer into datagrams, assigning source and destination addresses, and forwarding them toward their final destination without establishing connections.[9] In its core roles, the Internet layer selects the next-hop router for outgoing packets based on routing tables and forwards incoming packets to the transport layer upon arrival.[10] It provides best-effort, unreliable delivery, meaning packets may be lost, duplicated, or delivered out of order, with no guarantees of reliability or ordering; these functions are deferred to higher layers in accordance with the end-to-end principle, which posits that complex functions like error recovery should occur at the endpoints rather than in the network core to enhance robustness and flexibility.[11][12] The layer includes error detection capabilities, such as the mandatory 16-bit header checksum in IPv4, which verifies header integrity during transmission and silently discards invalid datagrams, though it does not cover the payload.[13] Unlike connection-oriented layers above it, the Internet layer emphasizes datagram-based operation, treating each packet as an independent unit without maintaining session state, which enables efficient, scalable routing across diverse networks.[11] A key distinction exists between IPv4 and IPv6 implementations at this layer: while IPv4 allows fragmentation by both source and intermediate routers, IPv6 restricts fragmentation to the source node only, relying instead on path MTU discovery to avoid it and ensure packets fit the network path.[14]Historical Development
The development of the Internet layer traces its origins to the late 1960s, when the U.S. Department of Defense's Advanced Research Projects Agency (DARPA) initiated the ARPANET project to create a robust, packet-switched network for connecting research computers across geographically dispersed sites. This effort, motivated by the need for resilient communication during the Cold War, laid the foundational concepts for internetworking, with the first successful host-to-host connection occurring on October 29, 1969, between UCLA and the Stanford Research Institute.[15][16] A pivotal milestone came in May 1974, when Vinton Cerf and Robert Kahn published their seminal paper, "A Protocol for Packet Network Intercommunication," introducing the Transmission Control Protocol (TCP) as a uniform mechanism for reliable data transmission across heterogeneous packet-switched networks. The protocol incorporated addressing and routing functions that were later separated into the Internet Protocol (IP). This design enabled the interconnection of diverse networks without a central authority, a core principle of the modern Internet. By 1981, IP was formalized as the DoD Internet Protocol standard in RFC 791, separating it from TCP to allow more flexible transport options while establishing it as the universal network layer protocol. The transition to TCP/IP occurred on January 1, 1983—known as "flag day"—when ARPANET decommissioned the older Network Control Protocol (NCP) in favor of TCP/IP, marking the birth of the operational Internet and solidifying IP's role at its core.[17][18][19] Throughout the 1980s and 1990s, IPv4 dominated as the Internet layer protocol, supported by DARPA's continued funding for protocol refinements and the National Science Foundation's (NSF) investments in expanding access via networks like CSNET (1981) and NSFNET (1985), which adopted TCP/IP to connect supercomputing centers and universities. The formation of the Internet Engineering Task Force (IETF) in January 1986 provided a collaborative forum for protocol evolution, fostering standards that propelled the Internet's growth. However, by the early 1990s, concerns over IPv4's 32-bit address space exhaustion emerged amid explosive commercialization, including the NSF's decommissioning of its backbone in 1995 to enable private sector involvement and the rise of commercial Internet service providers. The Internet Assigned Numbers Authority (IANA) fully exhausted its free pool of IPv4 addresses on February 3, 2011.[20][21][22][23] These pressures led to the development of IPv6, with initial specifications outlined in RFC 1883 in December 1995 to provide a 128-bit address space supporting vastly more devices and improved efficiency. The protocol was refined and standardized in RFC 2460 in December 1998, addressing limitations like address scarcity while maintaining compatibility with IPv4 infrastructure, though adoption has faced ongoing challenges due to entrenched IPv4 deployment. As of November 2025, approximately 45% of global users accessing Google services use IPv6.[24][25][3]Core Protocols
Internet Protocol (IP)
The Internet Protocol (IP) serves as the principal communication protocol within the Internet layer of the TCP/IP model, functioning as a connectionless mechanism for delivering datagrams across diverse interconnected networks using logical addressing.[1] It operates without establishing end-to-end connections prior to transmission, treating each datagram independently to enable best-effort delivery, where packets may arrive out of order, be duplicated, or lost, with reliability handled by higher-layer protocols.[1] This design facilitates scalability and robustness in heterogeneous environments, routing datagrams hop-by-hop based on source and destination addresses embedded in the protocol header.[1] IPv4, the fourth version of the protocol standardized in 1981, employs 32-bit logical addresses to uniquely identify network interfaces, structured as four octets typically represented in dotted decimal notation (e.g., 192.0.2.1).[1] The IPv4 header is variable in length, ranging from 20 to 60 bytes, comprising a minimum of five 32-bit words plus optional fields, with key components including a 4-bit Version field set to 4, a 4-bit Internet Header Length (IHL) indicating the header size in 32-bit words, an 8-bit Type of Service (TOS) for quality-of-service hints, a 16-bit Total Length covering the entire datagram, an 8-bit Time to Live (TTL) to prevent indefinite looping by decrementing at each hop, an 8-bit Protocol field specifying the upper-layer protocol (e.g., TCP or UDP), and a 16-bit Header Checksum computed via one's complement sum of the header words for error detection, which is recalculated at each router.[1] The header also includes 16-bit Identification, Flags, and Fragment Offset fields to manage fragmentation, along with 32-bit Source and Destination Address fields.[1]| Field Name | Size (bits) | Purpose |
|---|---|---|
| Version | 4 | Specifies IP version (4 for IPv4). |
| IHL | 4 | Header length in 32-bit words (5-15). |
| Type of Service | 8 | Precedence and TOS for packet handling. |
| Total Length | 16 | Total datagram size in bytes. |
| Identification | 16 | Unique ID for fragment reassembly. |
| Flags | 3 | Controls fragmentation (e.g., Don't Fragment bit). |
| Fragment Offset | 13 | Position of fragment in original datagram. |
| Time to Live (TTL) | 8 | Hop limit, decremented per router. |
| Protocol | 8 | Identifies next-layer protocol (e.g., 6 for TCP). |
| Header Checksum | 16 | One's complement checksum of header. |
| Source Address | 32 | Sender's IP address. |
| Destination Address | 32 | Receiver's IP address. |
| Options (variable) | 0-40 | Optional features like source routing. |
| Padding | Variable | Ensures 32-bit alignment. |
