i only remember one loopback device under block device. can u tell me where i can find another one?
at least this one has no relationship with networking. it is used to let a file act as a block device. for example, mount an iso file
i can not find this net loopback device(可能是这个名字,就在loopback device下面
no, that is nbd. it is a way to use a remote nbd server to export a file as a block device. then u local nbd driver can use that block device and export it to u. then u can write/read asif it is a local device. its source code is a good example to learn kernel level socket programming, and block device driver programming.
more info can be found from http://www.xss.co.at/linux/NBD/
i think loopback can test network protocols, not network devices (nic), the ip traffic to lookback will not arrive nic. the network throughput via looback is much higher than a nic can do, even without wire cost.
i check the drivers/net/loopback.c. so my knowledge is confirmed again that loopback can be used to check whether network protocol code is ok or not. nothing to do with certain NIC.