TCP/IP protocol stack Analysis (2)

Source: Internet
Author: User


This section describes link layer.
In the TCP/IP protocol family, the link layer has three main objectives: (1) sending and receiving IP datagram for the IP module;
(2) send ARP requests to the ARP module and receive ARP responses; (3) Send RARP requests to RARP and receive RARP responses.
Www.2cto.com
1. encapsulation of Ethernet and IEEE 802: the Encapsulation Format is as follows:


2. SLIP-Serial Line IP Address: it is a simple form of encapsulation of IP data packets on a serial line. SLIP is not tested, and the upper layer needs to verify its data.
Www.2cto.com
3. PPP protocol: the control and verification components are added to the SLIP protocol, which is encapsulation of the PPP protocol:

The Protocol control field of PPP can run multiple protocols on a single serial line; CRC Field: Each pillow has a cyclic redundancy check.

4. loopback interface: To enable communication between client programs and server programs on the same host through TCP/IP, most products support loopback interfaces, generally, the system assigns the address 127.0.0.1 to the loopback interface and name it localhost. A datagram sent to the loopback interface cannot appear on any network.
The following describes how the loopback interface processes IP data packets:
Www.2cto.com

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.