Project

General

Profile

Actions

Task #1729

closed

Add byte counters to FaceCounters

Added by John DeHart almost 10 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Faces
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
1.00 h

Description

Add byte count fields to nfd::FaceCounters structure.

Byte count field reflect number of bytes received or sent on link layer.
Those counters include link layer headers imposed by NFD (NDNLP or LocalControlHeader), but exclude headers of underlying protocol (Ethernet or TCP or UDP).
Each counter is 64-bit, and can wrap around after overflowing.


Related issues 6 (0 open6 closed)

Blocked by ndn-cxx - Task #1765: Extend FaceStatus abstraction to include aggregate byte countClosedJunxiao Shi

Actions
Blocks NFD - Task #1766: Link layer byte count in UnixStreamFace, TcpFace, UdpFace, MulticastUdpFaceClosedJunxiao Shi

Actions
Blocks NFD - Task #1767: Expose link layer byte counts in FaceStatus blockClosedJunxiao Shi

Actions
Blocks NFD - Task #1781: Link layer byte count in WebSocketFaceClosedWentao Shang

Actions
Blocks NFD - Task #1780: Link layer byte count in EthernetFaceClosedDavide Pesavento

Actions
Blocks NFD - Feature #3177: LpFace countersClosedJunxiao Shi

Actions
Actions #1

Updated by Junxiao Shi almost 10 years ago

  • Category set to Faces
  • Start date deleted (07/02/2014)

Accurate byte count for Interest and Data separately is hard to obtain.
Recall that packets transmitted over the network socket can contain link layer header, such as NDNLP-TLV or LocalControlHeader.
Byte count for link layer header is available at link later only, but link layer may not distinguish between Interest and Data - a network layer concept.

Obtaining network layer byte count is easier, but it's less useful for network operation purposes.
For example, NDNLP-TLV delivers a packet to network layer only if all fragments are received.
If a fragment is lost, other fragments are discarded, and they won't be included in network layer byte count.

Actions #2

Updated by Alex Afanasyev almost 10 years ago

The objective here is not to get absolutely accurate information about transmitted packets through socket (this can be taken from the interface stats), but rather byte count for Interest/Data that were transferred through Faces. This is almost the same as packet count that we have now, just expressed in number of bytes, rather than packets.

Actions #3

Updated by Junxiao Shi almost 10 years ago

I think, for network operation purpose, it's more useful to have a byte count at link layer, without distinguishing between Interest and Data.

Actions #4

Updated by Junxiao Shi almost 10 years ago

20140704 conference call decides more clarification is needed.

@John DeHart, please clarity which one is desired:

  • link layer byte count without distinguishing between Interest and Data
  • network layer byte count
    Limitation: with NDNLP-TLV, if a fragment is lost, other fragments are dropped and not counted in, but they still consumed network bandwidth
  • link layer byte count, counting Interest and Data separately
    There is implementation difficulty for this one.
Actions #5

Updated by John DeHart almost 10 years ago

Long term it might be nice to have link layer byte counts for interest and data separately.

For the short term link layer byte count without distinguishing between Interest
and Data would be fine. And it is quite possible that this would be enough for
the long term.

Actions #6

Updated by Alex Afanasyev almost 10 years ago

  • Blocks Task #1765: Extend FaceStatus abstraction to include aggregate byte count added
Actions #7

Updated by Alex Afanasyev almost 10 years ago

  • Related to Task #1766: Link layer byte count in UnixStreamFace, TcpFace, UdpFace, MulticastUdpFace added
Actions #8

Updated by Junxiao Shi almost 10 years ago

  • Blocks deleted (Task #1765: Extend FaceStatus abstraction to include aggregate byte count)
Actions #9

Updated by Junxiao Shi almost 10 years ago

  • Blocked by Task #1765: Extend FaceStatus abstraction to include aggregate byte count added
Actions #10

Updated by Junxiao Shi almost 10 years ago

  • Related to deleted (Task #1766: Link layer byte count in UnixStreamFace, TcpFace, UdpFace, MulticastUdpFace)
Actions #11

Updated by Junxiao Shi almost 10 years ago

  • Blocks Task #1766: Link layer byte count in UnixStreamFace, TcpFace, UdpFace, MulticastUdpFace added
Actions #12

Updated by Junxiao Shi almost 10 years ago

  • Blocks Task #1767: Expose link layer byte counts in FaceStatus block added
Actions #13

Updated by Junxiao Shi almost 10 years ago

  • Subject changed from Add Byte counts to FaceStatus to Add byte counts to FaceStatus
  • Description updated (diff)
  • Status changed from New to In Progress
  • Assignee set to Junxiao Shi
  • Target version set to v0.3
  • Estimated time set to 1.00 h
Actions #14

Updated by Junxiao Shi almost 10 years ago

  • % Done changed from 0 to 50

http://gerrit.named-data.net/1037 adds NInBytes and NOutBytes to FaceCounters class, and reorganizes counters into NetworkLayerCounters and LinkLayerCounters base classes so that link layer counters won't appear in ForwarderCounters.

The next commit of this Task would make the new counter values appear in FaceStatus data structure.
That commit is blocked by #1765.

Actions #15

Updated by Junxiao Shi almost 10 years ago

  • Subject changed from Add byte counts to FaceStatus to Add byte counters to FaceCounters
  • Status changed from In Progress to Code review
  • % Done changed from 50 to 100

Bumping "% Done" because making byte counters appear in FaceStatus block should belong to Task #1767.

Actions #16

Updated by Davide Pesavento almost 10 years ago

What's the rationale for calling these counters "link layer"? And why do you include NDNLP headers but not Ethernet or TCP?

Actions #17

Updated by Junxiao Shi almost 10 years ago

NDN-TLV is at network layer.

NDNLP is a link protocol for NDN, according to its technical report.
The layer for link protocol is called "link layer".

Ethernet or TCP is at a layer lower than NDNLP.
Their overheads are out of scope of this Task.

Actions #18

Updated by Junxiao Shi almost 10 years ago

  • Status changed from Code review to Closed
Actions #19

Updated by Junxiao Shi over 9 years ago

  • Blocks Task #1781: Link layer byte count in WebSocketFace added
Actions #20

Updated by Junxiao Shi over 9 years ago

  • Blocks Task #1780: Link layer byte count in EthernetFace added
Actions #21

Updated by Junxiao Shi over 8 years ago

For the short term link layer byte count without distinguishing between Interest
and Data would be fine. And it is quite possible that this would be enough for
the long term.

On 20151019, John DeHart confirms:

Yes, I think it will be fine to continue for the long term with a combined byte counter.

Actions #22

Updated by Junxiao Shi over 8 years ago

Actions

Also available in: Atom PDF