logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

ip-tcp_metrics.8 (3470B)


  1. .TH "IP\-TCP_METRICS" 8 "23 Aug 2012" "iproute2" "Linux"
  2. .SH "NAME"
  3. ip-tcp_metrics \- management for TCP Metrics
  4. .SH "SYNOPSIS"
  5. .sp
  6. .ad l
  7. .in +8
  8. .ti -8
  9. .B ip
  10. .RI "[ " OPTIONS " ]"
  11. .B tcp_metrics
  12. .RI "{ " COMMAND " | "
  13. .BR help " }"
  14. .sp
  15. .ti -8
  16. .BR "ip tcp_metrics" " { " show " | " flush " }
  17. .IR SELECTOR
  18. .ti -8
  19. .BR "ip tcp_metrics delete " [ " address " ]
  20. .IR ADDRESS
  21. .ti -8
  22. .IR SELECTOR " := "
  23. .RB "[ [ " address " ] "
  24. .IR PREFIX " ]"
  25. .SH "DESCRIPTION"
  26. .B ip tcp_metrics
  27. is used to manipulate entries in the kernel that keep TCP information
  28. for IPv4 and IPv6 destinations. The entries are created when
  29. TCP sockets want to share information for destinations and are
  30. stored in a cache keyed by the destination address. The saved
  31. information may include values for metrics (initially obtained from
  32. routes), recent TSVAL for TIME-WAIT recycling purposes, state for the
  33. Fast Open feature, etc.
  34. For performance reasons the cache can not grow above configured limit
  35. and the older entries are replaced with fresh information, sometimes
  36. reclaimed and used for new destinations. The kernel never removes
  37. entries, they can be flushed only with this tool.
  38. .SS ip tcp_metrics show - show cached entries
  39. .TP
  40. .BI address " PREFIX " (default)
  41. IPv4/IPv6 prefix or address. If no prefix is provided all entries are shown.
  42. .LP
  43. The output may contain the following information:
  44. .BI age " <S.MMM>" sec
  45. - time after the entry was created, reset or updated with metrics
  46. from sockets. The entry is reset and refreshed on use with metrics from
  47. route if the metrics are not updated in last hour. Not all cached values
  48. reset the age on update.
  49. .BI cwnd " <N>"
  50. - CWND metric value
  51. .BI fo_cookie " <HEX-STRING>"
  52. - Cookie value received in SYN-ACK to be used by Fast Open for next SYNs
  53. .BI fo_mss " <N>"
  54. - MSS value received in SYN-ACK to be used by Fast Open for next SYNs
  55. .BI fo_syn_drops " <N>/<S.MMM>" "sec ago"
  56. - Number of drops of initial outgoing Fast Open SYNs with data
  57. detected by monitoring the received SYN-ACK after SYN retransmission.
  58. The seconds show the time after last SYN drop and together with
  59. the drop count can be used to disable Fast Open for some time.
  60. .BI reordering " <N>"
  61. - Reordering metric value
  62. .BI rtt " <N>" us
  63. - RTT metric value
  64. .BI rttvar " <N>" us
  65. - RTTVAR metric value
  66. .BI ssthresh " <SSTHRESH>"
  67. - SSTHRESH metric value
  68. .BI tw_ts " <TSVAL>/<SEC>" "sec ago"
  69. - recent TSVAL and the seconds after saving it into TIME-WAIT socket
  70. .SS ip tcp_metrics delete - delete single entry
  71. .TP
  72. .BI address " ADDRESS " (default)
  73. IPv4/IPv6 address. The address is a required argument.
  74. .SS ip tcp_metrics flush - flush entries
  75. This command flushes the entries selected by some criteria.
  76. .PP
  77. This command has the same arguments as
  78. .B show.
  79. .SH "EXAMPLES"
  80. .PP
  81. ip tcp_metrics show address 192.168.0.0/24
  82. .RS 4
  83. Shows the entries for destinations from subnet
  84. .RE
  85. .PP
  86. ip tcp_metrics show 192.168.0.0/24
  87. .RS 4
  88. The same but address keyword is optional
  89. .RE
  90. .PP
  91. ip tcp_metrics
  92. .RS 4
  93. Show all is the default action
  94. .RE
  95. .PP
  96. ip tcp_metrics delete 192.168.0.1
  97. .RS 4
  98. Removes the entry for 192.168.0.1 from cache.
  99. .RE
  100. .PP
  101. ip tcp_metrics flush 192.168.0.0/24
  102. .RS 4
  103. Removes entries for destinations from subnet
  104. .RE
  105. .PP
  106. ip tcp_metrics flush all
  107. .RS 4
  108. Removes all entries from cache
  109. .RE
  110. .PP
  111. ip -6 tcp_metrics flush all
  112. .RS 4
  113. Removes all IPv6 entries from cache keeping the IPv4 entries.
  114. .RE
  115. .SH SEE ALSO
  116. .br
  117. .BR ip (8)
  118. .SH AUTHOR
  119. Original Manpage by Julian Anastasov <ja@ssi.bg>