Hi Tommaso!
I'm gald to recevie you reply and sorry to replay you so late. But I think I find the answer after seeing the source codes of p2p and csma.
The key is the delay of CsmaChannel. Because of the character of csma link, there is one packet at most in one csma channel at any moment(CsmaNetDeive is only to transmit a packet when channel is idle). So if the number of packets that received by a CsmaNetDevice at a delay+PacketSize/datarate time is more than the length of queue(default is 100), it will occur traffic congestion and drop packets at last. And I also write a simple simulation to verify it.
In my simulation, although the DataRate is enough, the delay is seems to be a little too big. It's my fault. What's more, the p2p link is different from the csma link, so the loss always happens in the joint of csma link and p2p link.
Now, I write these to give some advice to people who meet similar problem. And Thanks Tommaso again!
在 2016年9月14日星期三 UTC+8下午9:32:38,Tommaso Pecorella写道: