Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(22)

Issue 110125: Ipv4L3Protocol tracing enhancements, for FlowMonitor

Can't Edit
Can't Publish+Mail
Start Review
Created:
5 months, 1 week ago by gjcarneiro
Modified:
5 months, 1 week ago
Reviewers:
Mathieu Lacage
CC:
ns-3-reviews_googlegroups.com
SVN Base:
Visibility:
Public.

Patch Set 1

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats Patch
M src/internet-stack/ipv4-l3-protocol.cc View 16 chunks 182 lines 3 comments Download
M src/internet-stack/ipv4-l3-protocol.h View 2 chunks 37 lines 0 comments Download

Messages

Total messages: 2
Mathieu Lacage
The idea of adding more trace sources to the existing models is a great idea ...
5 months, 1 week ago
gjcarneiro
5 months, 1 week ago
For the 3 new trace sources I introduced, as well as modifications to the Drop
trace source, I have consistently chosen to offer the packet without IP header
plus the IP header separately as a parameter.  I have not made any attempt at
consistency with Tx/Rx trace sources.

One could argue whether it is better to offer packets with or without IP header
already serialized.  However, in my FlowMonitor use case it quickly became clear
that I would always be needing the IP header, and for that reason it is simpler
and more efficient to receive the IP header separately.  In fact, the flow
monitor only needs to query some IP header fields, plus the GetSize method of
Packet.  Adding a Deserialize method call to this would likely increase the
monitoring overhead.

The difference between Tx/Rx and SendOutgoing/LocalDeliver/UnicastForward is
that the latter ones are higher level.  For each SendOutgoing, you are going to
see one Tx.  For each LocalDeliver you will have a matching Rx.  For each
UnicastForward you'll see one Rx followed by one Tx.  So, you see, by looking
only at Rx it is not clear whether this is a local delivery operation or a
forwarding one.  Likewise, if you see a Tx it can either be the result of a
locally generated packet or a packet simply being forwarded in a router.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld r511