Home > Software engineering >  TCP/IP protocol on how to handle the loopback interface and the destination address for the machine
TCP/IP protocol on how to handle the loopback interface and the destination address for the machine

Time:09-23

We all know that if the packet destination address for the loopback interface or the machine IP address, then the data will be sent to the machine, then in the TCP/IP protocol stack is how to deal with? Where is a hierarchical data was ring back to the machine?

CodePudding user response:

"TCP - IP, volume 2: implement"

CodePudding user response:

In theory, once the transport layer to detect the loopback address is destination end address, should can omit all parts of the transport layer and network layer of the logical operation, but most of the products is still with the all process of the transport layer and network layer, but when? I P a datagram left the network layer to return it to himself, the Linux kernel is such,

CodePudding user response:

I look at the Linux network stack source code, is still to be found for the loopback interface arp address mapping, returns the MAC address of the unit at this time, that is to say, at least in the link layer to send data to the loopback interface has not been returned to the machine, so the adapter is responsible for the return to the native? But it said the loopback interface of the data is not sent to the Internet, it's a paradox, just what is truth?

CodePudding user response:

Don't superstitious books, examination questions, teachers, reply;
CPU to superstitions, compiler, debugger, run results,
And please combine "the blind man touched the sun" and "boat out to sea must carry only a compass," try to understand,
Any theory, authority, according to legend, the truth, and the standard, explain, imagination, knowledge... Is not in my eyes!
  • Related