Additional data (trailer data) and functions of the link layer in TCP/IP

Source: Internet
Author: User
What is the additional data for the link layer in the 1.TCP/IP?

When the message is opened with Wireshark, the trailer data displayed by the link layer is the additional data,

2. How to Generate

1. For example, Ethernet automatically fills messages that are less than 64 bytes in size (not experimentally).

2. When writing data using link-layer sockets, the actual data size > (IP header message size + link layer header)

3. Life cycle

4. Role

Suppose there are 2 devices A and B under Layer two switches

1. Added an additional channel for the operating system to communicate with the outside world

Imagine, how to get the system time of B device from device A when the protocol is not supported?

When the B device sends data to a device (any protocol), writes its own system time to the additional data, and a uses a link-layer socket (such as a socket used by tcpdump) to obtain the link-layer data to

Additional data to do the parsing.

2. Controlling the behavior of upper-level applications

The behavior of the application is affected by the received message, and the approximate flow of the application ticker is as follows:

Network card received message--Kernel processing->TCP/IP protocol stack processing--upper application

Visible kernel processing can tamper with the message (for example, Iptables's mangle) to "spoof" the application.

For example, upper-level applications only serve specific IPs, such as 1.1.1.1, if a request from 2.2.2.2 is rejected, the upper application is not changed

Behavior, the message can be modified at the kernel to change the 2.2.2.2 to 1.1.1.1 (and of course, the kernel also changes the 1.1.1.1 to 2.2.2.2 when the application contracts)

The role of additional data is to provide a strategy or basis for such message modification.

Additional data (trailer data) and functions of the link layer in TCP/IP

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.