home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / vmsnet / internal / 1713 < prev    next >
Encoding:
Internet Message Format  |  1992-12-22  |  5.5 KB

  1. Path: sparky!uunet!stanford.edu!agate!spool.mu.edu!uwm.edu!zaphod.mps.ohio-state.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!nntp-server.caltech.edu!SOL1.GPS.CALTECH.EDU!CARL
  2. From: carl@SOL1.GPS.CALTECH.EDU (Carl J Lydick)
  3. Newsgroups: vmsnet.internals
  4. Subject: Re: Received Bytes Accounting
  5. Date: 23 Dec 1992 00:11:28 GMT
  6. Organization: HST Wide Field/Planetary Camera
  7. Lines: 91
  8. Distribution: world
  9. Message-ID: <1h8argINNn7h@gap.caltech.edu>
  10. References: <01GSFKS4THCYAFTSR3@accuwx.com> <1gutvmINNlv7@gap.caltech.edu>,<1992Dec22.122330.12171@vms.eurokom.ie>
  11. Reply-To: carl@SOL1.GPS.CALTECH.EDU
  12. NNTP-Posting-Host: sol1.gps.caltech.edu
  13.  
  14. In article <1992Dec22.122330.12171@vms.eurokom.ie>, t_wade@vms.eurokom.ie writes:
  15. >If the service you provide is information, then this is a pretty good model.
  16. >For example, consider a service that provides various bulletin board type
  17. >services (News, conferencing etc).
  18.  
  19. Then you could put the accounting in the application software and have it write
  20. user data to the accounting file.  An advantage of doing it this way is that
  21. you can then charge different amounts for different types of information (e.g., 
  22. if you're providing NEWS access, then you could charge one rate for most news,
  23. and a higher rate for the (proprietary) clari. heirarchy.
  24.  
  25. >A reasonable approximation is charging by elapsed time.  The problem here is
  26. >that one user will get his information interactively, and another will do the
  27. >equivalent of EXTRACT/UNSEEN/ALL to a file, and download it with Kermit.  He
  28. >will be charged a fraction of the first person's charge, but he gets the same
  29. >`service' (the same information).
  30.  
  31. Also, there's the fact that not all people read at the same speed.  By and
  32. large, the lower your reading rate, the lower your comprehension, so the person
  33. who reads more slowly (and hence uses more connect time) is likely to be
  34. getting less out of what he's reading.
  35.  
  36. And again, not all information is of equal value, so a simple byte count
  37. doesn't give us much information of the value of the session.
  38.  
  39. >Of course, you could argue that by using the machine longer,
  40. >the first user is consuming more resources and should pay more, but this
  41. >might be easier on your machine than a short CPU and I/O intensive session.
  42.  
  43. And, of course the CPU overhead is not a simple function of the number of bytes
  44. transferred:  Transferring lots of short records incurs more CPU usage (via I/O
  45. pre- and post- processing) than transferring the same number of bytes of data
  46. via fewer long records.
  47.  
  48. >You might wish to charge for the amount of data received, irrespective of
  49. >whether it is TYPEd, FTP'ed, MAILed or Kermited.
  50.  
  51. >The counterexample of the physicist with the 8 hour batch job that produces
  52. >1 line of output is valid, but not relevent *if you don't provide this type
  53. >of service*.
  54.  
  55. >It is possible to use combined CPU, elapsed time and I/O count to approximate
  56. >this, but my point is that there are scenarios where charging by volume of
  57. >data (irrespective of how it is downloaded) is a good charging model.  The
  58. >original query was perfectly reasonable.
  59.  
  60. In the case of a BBS, this would imply that, e.g., someone who's browsing
  61. through a long list of articles looking for one particular piece of information
  62. actually gets more benefit than someone who finds what he's looking for in the
  63. first article.  Seems rather strange to me.
  64.  
  65. >As a first cut, what about replacing the Start I/O routine with your own, which
  66. >notes the byte count and PID from the IRP, adds the count to a field that
  67. >ACCOUNTING will save, and invokes the original Start I/O ?  Anyone care to
  68. >pinpoint the flaws/pitfalls in this approach ?
  69.  
  70. Well, for starters, this means either:
  71.     1)  You're going to write an accounting record for every I/O operation;
  72. or    2)  You're going to have to hack either LOGINOUT.EXE or the image
  73.         rundown code to look for this field and write an accounting record.
  74. The former can be extremely resource intensive and the latter would require
  75. lots of modifications to the system (e.g., what happens if a process is STOPped
  76. instead of logged out?  What happens if the process is simply deleted when the
  77. user types MCR DCL?).
  78.  
  79. All in all, if you want to charge based on number of bytes transferred, it
  80. seems to me that the place to do that accounting is in the application, not in
  81. the device drivers.
  82.  
  83. >Incidentally, the code to do this is already written.  Login sessions using
  84. >VAX PSI (over X25 networks) are logged to the PSIACCOUNTING file including
  85. >the volume of data sent and received.  This is presumably because most public
  86. >X25 networks charge by volume.
  87.  
  88. Sorry, but the code to do that isn't anything at all like the code that would
  89. be required to do the same thing for an actual terminal line.  If I recall
  90. correctly, it's the X29 ACP (or equivalent thereof) that keeps track of the
  91. accounting information, and it handles the entire session, and operates in its
  92. own context.
  93.  
  94. I suppose you could modify the terminal driver to keep track of the number of
  95. bytes transferred, then signal for this to be written to an accounting file
  96. whenever it detects a terminal hangup.    
  97. --------------------------------------------------------------------------------
  98. Carl J Lydick | INTERnet: CARL@SOL1.GPS.CALTECH.EDU | NSI/HEPnet: SOL1::CARL
  99.  
  100. Disclaimer:  Hey, I understand VAXen and VMS.  That's what I get paid for.  My
  101. understanding of astronomy is purely at the amateur level (or below).  So
  102. unless what I'm saying is directly related to VAX/VMS, don't hold me or my
  103. organization responsible for it.  If it IS related to VAX/VMS, you can try to
  104. hold me responsible for it, but my organization had nothing to do with it.
  105.