delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/12/12/07:54:48

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Sun, 12 Dec 2010 13:54:21 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Bug? UDP packet transmitted via sendto() intermitently not being transmitted to network
Message-ID: <20101212125421.GC11357@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <4483E11778CA964F9644B68621E1CA4646FAD19D AT CRPMBOXPRD02 DOT polycom DOT com>
MIME-Version: 1.0
In-Reply-To: <4483E11778CA964F9644B68621E1CA4646FAD19D@CRPMBOXPRD02.polycom.com>
User-Agent: Mutt/1.5.20 (2009-06-14)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Dec 10 14:37, Estabrook, Edward wrote:
> Generally I am seeking information regarding:
> 1) Where can I download and install an older version of Cygwin (say
> 1.5 era) to test if the problem is newly introduced?

What for?  If it doesn't work on 1.5 you're exactly at the same spot as
now.  If it works on 1.5, we know it works on 1.5 but we still don't
know why it doesn't work on 1.7, which means, you're still exactly at
the same spot as now.  So that's not really an option.  The best option
is either to debug the (slim) layer in Cygwin which provides send/recv,
or at least to send an as-simple-as-possible, self-sufficient testcase,
preferredly in plain C, which allows to reproduce the problem.

> 2) What tools are available to measure potential packet loss within
> cygwin itself? (the Windows stack is not reporting dropped UDP
> packets, and the packets are not even making it into a locally running
> instance of wireshark).  Is there a way to dump / access / sniff the
> inputs and outputs to the cygwin IP stack?  Traffic volume is low so
> verbosity would not pose a problem.

You can add debug output to Cygwin's send and receive functions and use
strace.

> 3) Is there additional documentation regarding the cygwin IP
> translation layer?

The sources, basically here:
http://cygwin.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/fhandler_socket.cc?cvsroot=src
and here:
http://cygwin.com/cgi-bin/cvsweb.cgi/src/winsup/cygwin/net.cc?cvsroot=src


>   I see in the release notes that various
> enhancements have been made recently, and I cannot help but worry that
> perhaps an obscure issue in this aggregation of packets for delivery
> to Windows is introducing a problem.  Is it possible to shut this off
> and simply force each packet to be delivered without additional
> buffering?

There is no additional buffering, except for the system socket buffers.

> Unfortunately the only steps to reproduce (that I am yet aware of) is
> a 50-step sequence of SIP signaling which would be difficult to detail
> sufficiently here.  I will cover some pertinent details below.

Apart from actual debugging it yourself, a testcase, as outlined above,
might be helpful.  The details describe *what* happens, but unfortunately
don't even allow to guess *why* it happens.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019