• Learning Map
  • Unix Quiz Center
  • Unix Professional Network
  • Just-Unix-No-Noise FB Group

unixadminschool.com

  • Home
  • Announcements
    • Feed
    • MISC
  • Beginners zone
    • Beginners Lessons
    • Career Guidance
  • Experts Zone
    • Cloud Computing
    • Configuration Solutions
    • Migrations
    • Network Design
    • Scripting
    • Server Security
    • SUN CLUSTERS
    • SUN LDOMS
    • Tools & Applications
    • Veritas Cluster Services ( VCS ) Learning
  • Intermediate Zone
    • Linux Learning
      • Linux Booting
      • Linux Disk Management
      • Linux LVM
      • Linux Networking
      • Linux Performance
      • Linux Troubleshooting
      • Linux YUM/RPM
      • Performance Analysis
      • Redhat Linux Kernel
      • RHEL 6
        • RHEL LDAP
        • Rhel6 Storage
      • Web Servers
    • Solaris Admin
      • Blog for Unix Admin
        • Storage Administration – SAN
      • Oracle Hardware
      • Reference Docs
      • Solaris 10 Zones & LDOMs
      • Solaris 11
      • Solaris Access Control
      • Solaris Best Practices
      • Solaris Booting
      • Solaris Disk Management
      • Solaris DNS
      • Solaris How-to
      • Solaris Installation
      • Solaris Kernel
      • Solaris Networking
      • Solaris NFS
      • Solaris NIS
      • Solaris Packages & Patching
      • Solaris Performance
      • Solaris Tips
      • Solaris Troubleshooting
      • Solaris User Authentication
      • solaris X86
      • Solaris ZFS and Boot Environment
      • Storage Configurations
      • SUN Hardware
      • Troubleshooting Flow charts
    • Veritas Admin
      • Veritas Netbackup
      • VxVM Learning
      • VxVM Troubleshooting
  • QUIZ Center
  • Vlabs

Subscribe

Solaris Troubleshooting : Calculate TCP retransmission rate using netstat

This post explains you the information on the TCP retransmission measurement using netstat -s for Solaris. A system with a high retransmission rate indicates network congestion and can cause network oriented applications (like web servers) to operate slowly.

Procedure to Calculate TCP retransmission rate:

TCP expects acknowledgments from the destination system when it successfully receives segments from the sender. If it does not receive the acknowledgment within a certain time, it will retransmit the segment.


To implement this scheme of retransmission, TCP starts a timer  for each packet transmitted.  Unless the acknowledgment is received before this timer expires, TCP will assume that the packet is lost and will retransmit the packet.  The rate at which packets are retransmitted is called the ”retransmission rate”, and is an indicator of network health.

To calculate the retransmission rate, use the output of the ‘netstat -s -P tcp‘ command. We need the values for the counters

  • tcpOutDataBytes
  • tcpRetransBytes
  • tcpOutDataSegs
  • tcpRetransSegs.

The retranmission rate is given either in terms of bytes or segments. To calculate the byte retransmission rate:

%retrans = ( tcpRetransBytes / tcpOutDataBytes )  * 100

To calculate the segments retransmission rate:

%retrans = ( tcpRetransSegs / tcpOutDataSegs )  * 100

As a rule of thumb, retransmission  rates over 10% can indicate degraded  network performance on a LAN.  The internet may vary between 10 and 20 percent depending upon traffic conditions.  In some environments, delaying the retransmission to accommodate slower networks may be needed.


General Retransmission Rules:

moderate retransmissions < 10%

warning > 15% ( > 2/sec )

excessive retransmissions > 25%

action required > 40%

High rates (greater than 30%) may be relieved by adjusting the tcp_rexmit_interval* timers in Solaris. Some of the reasons for a high retransmission rate are:

  • Congested network, packets dropped. This is the most common cause.
  • Bad network hardware. Check ‘netstat -i‘ output for collisions or errors, also check the various network components involved.
  • Missing or out of date TCP or IP patches.
  • Incorrectly tuned TCP parameters (tcp_rexmit_interval_min,tcp_rexmit_interval_max, tcp_rexmit_interval_initial, tcp_ip_abort_interval).
  • Clients accessing server have slow or error-prone connections.

Notes: Be aware that these counters are 32 bits, and on a system with a high network load. They can experience an overflow and result in rates over 100%. In those cases, monitoring the system (with the command ‘netstat -s’) at periodical intervals or after the next downtime would be the recommended action to differentiate between a system with a high network load and a real retransmission problem.

The most acurate way to get the correct rate is by taking the values twice and using the deltas of each counter.








You might be interested to read below :


  • SAN Storage Migration – Solaris with VxVM

  • Solaris host level SAN migration from Clariion to VMAX – Hands on Lab

  • Hands on Lab – Replacing Failed Disks from ZFS Pools ( RaidZ2 / RaidZ3 ) – Part2

  • Enabling SVM in Failsafe and password recovery in Solaris.

  • Hands on Lab – Replacing Failed Disks from ZFS Pools ( Simple / Mirrored / RaidZ )

  • Oracle Server Hardware Reference ( 3D View)
  • Email
  • More
  • Print
  • Digg
Posted by Ramdev
2 Comments
Tagged with: [ network troubleshooting, Solaris Troubleshooting, TCP retransmission ]
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

2 Comments on “Solaris Troubleshooting : Calculate TCP retransmission rate using netstat”

  • Thomas
    8 March, 2013, 3:53

    Can you explain this logic a bit more: 

    Notes: Be aware that these counters are 32 bits, and on a system with a high network load. They can experience an overflow and result in rates over 100%

Trackbacks

  1. cctv cameras middle

Leave a Comment

Join to our Professional Network (of 1400+ unixadmins ) to receive Unix Administration and Job Updates -

Pages1

Don't Miss Updates

 

Beginners Zone

 

Unixadmin Careers

Server Hardware

Beginners Lessons

Troubleshooting-Flowchart

 

Intermediate Zone

 

Solaris Booting

Solaris Volume Manager

Storage Configurations

Solaris Networking

Solaris X86

Solaris ZFS

Solaris NFS

Solaris NIS

Solaris Patching

Solaris Booting

Solaris Kernel

Veritas Volume Manager

Solaris NIS

Logical Volume Manager

Linux Networking

Linux Disk Management

Linux Troubleshooting

 

Experts Zone 

 

Solutions

Scripting and Automation

Server Security

Veritas Cluster Services

Sun Cluster Services

Cloud Computing

SUN LDOMS

Copyright © 2009 unixadminschool.com. All rights reserved.
loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.