home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 February / CHIP_2_98.iso / software / pelne / optionp / iis4_06.cab / iicalc.asp < prev    next >
Text File  |  1997-10-23  |  5KB  |  128 lines

  1. <%@ Language=VBScript %>
  2. <% Page = 42: Allow = 5 : ConnSpeed = 31680  : Conn = "Dedicated PPP / SLIP 28.8" %>
  3.  
  4. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
  5. <html><head><title>Calculating Connection Performance</title>
  6.  
  7. <SCRIPT LANGUAGE="JavaScript">
  8.     TempString = navigator.appVersion
  9.     if (navigator.appName == "Microsoft Internet Explorer"){    
  10. // Check to see if browser is Microsoft
  11.         if (TempString.indexOf ("4.") >= 0){
  12. // Check to see if it is IE 4
  13.             document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/coua.css">');
  14.         }
  15.         else {
  16.             document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/cocss.css">');
  17.         }
  18.     }
  19.     else if (navigator.appName == "Netscape") {                        
  20. // Check to see if browser is Netscape
  21.         document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/coua.css">');
  22.     }
  23.     else
  24.         document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/cocss.css">');
  25. </script> 
  26.  
  27. <META NAME="DESCRIPTION" CONTENT="This utility calculates the approximate kilobytes per second transferred, pages per second, and number of hits per day for the specified connection."></head>
  28.  
  29. <body bgcolor="#FFFFFF" text="#000000"><font face="Verdana,Arial,Helvetica">
  30.  
  31. <% If Request("First") = 1 Then
  32.     Page = Request.Form("PageSize")
  33.     Allow = Request.Form("AllowTime")
  34.     ConnSpeed = Request.Form("ConnType")
  35.     Select Case ConnSpeed
  36.         Case 31680 Conn = "Dedicated PPP / SLIP 28.8"
  37.         Case 37478 Conn = "Dedicated PPP / SLIP 36.6"
  38.         Case 57024 Conn = "56K (Frame relay)"
  39.         Case 128000 Conn = "ISDN Dual Channel"
  40.         Case 1500000 Conn = "T1"
  41.         Case 44985600 Conn = "T3"
  42.         Case 150000 Conn = "DS1"
  43.         Case 44640000 Conn = "DS3"
  44.         Case 150000000 Conn = "OC3"
  45.         Case 622000000 Conn = "OC12"
  46.         Case 2400000000 Conn = "OC48"
  47.         Case 10000000000 Conn = "OC192"
  48.     End select
  49.     End if %>
  50.  
  51. <h1><a name="calcform">Calculating Connection Performance</a></h1>
  52.  
  53. <p>You can use this form to calculate expected connection performances. Simple choose the connection type from the list, input an estimated average page size, enter the maximum amount of time that is acceptable to download the page, and click the <strong>Calculate</strong> button.</p>
  54.  
  55. <p><strong>Note</strong>   These figures are only approximates and reflect only expected performance values based upon information available at time of product release.</p>
  56.     
  57. <form name="Gimme"  method=POST  action="iicalc.asp">
  58.  
  59. <table border=0>
  60. <tr>
  61. <td><strong> Please Enter: </strong></td>
  62. </tr>
  63. <tr>
  64. <td> Connection Type </td>
  65. <td><select name="ConnType">
  66.         <option value=31680> Dedicated PPP / SLIP 28.8
  67.         <option value=37478> Dedicated PPP / SLIP 36.6
  68.         <option value=57024> 56K (Frame relay)
  69.         <option value=128000> ISDN Dual Channel
  70.         <option value=1500000> T1
  71.         <option value=44985600> T3
  72.         <option value=150000> DS1
  73.         <option value=44640000> DS3
  74.         <option value=150000000> OC3
  75.         <option value=622000000> OC12
  76.         <option value=2400000000> OC48
  77.         <option value=10000000000> OC192
  78.         </select></td>
  79. </tr>
  80. <tr>
  81. <td> Page size in Kilobytes </td>
  82. <td><input type="TEXT" name="PageSize" size="6" value="<%= Page %>"></td>
  83. </tr>
  84. <tr>
  85. <td> Allowable page load time in seconds </td>
  86. <td><input type="TEXT" name="AllowTime" size="6" Value="<%= Allow %>"></td>
  87. </tr>
  88. <input type="hidden" name="First" value="1">
  89. <tr>
  90. <td align="Center"><input type="SUBMIT" name="Calc" value="Calculate"></td>
  91. </tr>
  92. <tr>
  93. <td><strong>Results</strong></td>
  94. </tr>
  95. <tr>
  96. <td bgcolor="#C0C0C0"> Connection Type </td>
  97. <td><% Response.Write(Conn) %></td>
  98. </tr>
  99. <tr>
  100. <td bgcolor="#C0C0C0"> Connection speed in Kilobytes per second </td>
  101. <td><% ConnSpeedVal = int(ConnSpeed / 12288) %>
  102.     <% Response.Write(ConnSpeedVal) %></td>
  103. </tr>
  104. <tr>
  105. <td bgcolor="#C0C0C0" width=250> Pages per second </td>
  106. <td><% PageSecVal =( int((ConnSpeed / Page) / 1536)) +1%>
  107.     <% Response.Write (PageSecVal) %></td>
  108. </tr>
  109. <tr>
  110. <td bgcolor="#C0C0C0"> Number of possible simultaneous users </td>
  111. <td><% SimultUsersVal = (int(ConnSpeed / ((Page * 1536) / Allow))) +1%>
  112.     <% Response.Write (SimultUsersVal) %></td>
  113. </tr>
  114. <tr>
  115. <td bgcolor="#C0C0C0"> "Hits" per day </td>
  116. <td><% HitsDayVal = int((ConnSpeedVal * 86400) / Page)%>
  117.     <% Response.Write (HitsDayVal) %></td>
  118. </tr>
  119. </table>
  120. </form>
  121.  
  122.  
  123. <hr class="iis" size="1">
  124. <p align="center"><em><a href="../../../common/colegal.htm">© 1997 by Microsoft Corporation. All rights reserved.</a></em></p>
  125.  
  126. </font>
  127. </body>
  128. </html>