|
Bugzilla – Full Text Bug Listing |
| Summary: | Application packet Rx size larger than Tx size | ||
|---|---|---|---|
| Product: | ns-3 | Reporter: | Jonah Ho <ho.jonah> |
| Component: | applications | Assignee: | ns-bugs <ns-bugs> |
| Status: | RESOLVED INVALID | ||
| Severity: | normal | CC: | tommaso.pecorella |
| Priority: | P3 | ||
| Version: | ns-3.28 | ||
| Hardware: | Mac Intel | ||
| OS: | Mac OS | ||
| Attachments: |
Lena-dual-stripe for reproduction
BulkSendApplication for reproduction PacketSink for reproduction |
||
|
Description
Jonah Ho
2018-07-15 17:26:00 UTC
One more setting to configure. useUdp = false Created attachment 3139 [details]
Lena-dual-stripe for reproduction
Created attachment 3140 [details]
BulkSendApplication for reproduction
Created attachment 3141 [details]
PacketSink for reproduction
It's normal. TCP does not preserve the packet boundaries, because it's a stream-oriented protocol (unlike UDP).
The TCP packet size is fixed by the TCP Segment Size. You can change it in TcpSocket's Attribute named SegmentSize:
.AddAttribute ("SegmentSize",
"TCP maximum segment size in bytes (may be adjusted based on MTU discovery)",
UintegerValue (536),
MakeUintegerAccessor (&TcpSocket::GetSegSize,
&TcpSocket::SetSegSize),
MakeUintegerChecker<uint32_t> ())
|