Re: UDP ok but TCP delayed

2007-01-11 Thread bobmc
Hi Ian:

(I post to the list because your's bounced? The Postfix program
[EMAIL PROTECTED]: host gaia.nimnet.asn.au[203.41.52.131] said: 
550 Access denied (in reply to MAIL FROM command)


Thanks for your reply. Compared to Linux tcpdump, FreeBSD is issuing 
extra packets, those  you mentioned.  I have a Netopia modem 
with RJ45 to a router or optical modem in the condo basement. From 
there is an optical link to my ISP about 10km away who provides nothing 
but email forwarding, a DHCP lease, and an internet connect.

I have included dumps from Linux and FreeBSD but I have not yet 
finished all the tests you suggested.  IPv6 is not enabled according to 
the /etc/defaults. I tinkered with various options without making a 
difference.

Thank you,
-Bob-

whois fcibroadband.com
   Domain Name: FCIBROADBAND.COM
   Registrar: NETWORK SOLUTIONS, LLC.
   Whois Server: whois.networksolutions.com
   Referral URL: http://www.networksolutions.com
   Name Server: DNS-01.FUTUREWAY.COM
   Name Server: DNS-03.FUTUREWAY.COM
   Status: clientTransferProhibited

 Domain servers in listed order:

   DNS-01.FUTUREWAY.COM 64.119.104.2
   DNS-03.FUTUREWAY.COM 64.119.104.130

+++ Linux tcpdump 
uname -a
Linux buffy 2.6.15-26-386 #1 PREEMPT Wed Jul 19 12:14:26 EDT 2006 i686
GNU/Linux

[EMAIL PROTECTED] tcpdump -v
tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 96
bytes

21:44:49.547037 IP (tos 0x0, ttl  64, id 13665, offset 0, flags [DF],
proto: UDP (17), length: 61)
192.168.1.100.1032  192.168.1.254.domain:  44611+ A? www.freebsd.org. (33)

21:44:49.567857 IP (tos 0x0, ttl  64, id 13670, offset 0, flags [DF],
proto: UDP (17), length: 72)
192.168.1.100.1033  192.168.1.254.domain:  16632+ PTR?
254.1.168.192.in-addr.arpa. (44)

21:44:49.633987 IP (tos 0x0, ttl 255, id 240, offset 0, flags [none],
proto: UDP (17), length: 173)
192.168.1.254.domain  192.168.1.100.1032:  44611 1/4/0 www.freebsd.org.
A www.freebsd.org (145)

21:44:49.644775 IP (tos 0x0, ttl  64, id 31888, offset 0, flags [DF],
proto: TCP (6), length: 52)
192.168.1.100.3587  www.freebsd.org.www:
S, cksum 0xc114 (correct), 3828632041:3828632041(0)
win 5840 mss 1460,nop,nop,sackOK,nop,wscale 2

21:44:49.726336 IP (tos 0x0, ttl  56, id 27781, offset 0, flags [DF],
proto:
TCP (6), length: 48)
www.freebsd.org.www  192.168.1.100.3587:
S, cksum 0x7cc5 (correct), 3180712628:3180712628(0) ack 3828632042
win 57344 mss 1408,nop,wscale 0

21:44:49.726416 IP (tos 0x0, ttl  64, id 31889, offset 0, flags [DF],
proto: TCP (6), length: 40)
192.168.1.100.3587  www.freebsd.org.www: .,
cksum 0x82a2 (correct), ack 1 win 1460

21:44:49.726516 IP (tos 0x0, ttl  64, id 31890, offset 0, flags [DF],
proto: TCP (6), length: 578)
192.168.1.100.3587  www.freebsd.org.www: P 1:539(538) ack 1 win 1460

...etc

--- FreeBSD version 
$ uname -a
FreeBSD buffy.feline.cat 6.1-RELEASE FreeBSD 6.1-RELEASE #0:
Sun May  7 04:32:43 UTC 2006
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386

$ ifconfig -a
vr0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500
   inet6 fe80::240:63ff:fee6:41ba%vr0 prefixlen 64 scopeid 0x1
   inet 192.168.1.102 netmask 0xff00
   broadcast 255.255.255.255
   ether 00:40:63:e6:41:ba
   media: Ethernet autoselect (100baseTX full-duplex)
   status: active
plip0: flags=108810POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT mtu 1500
lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 16384
   inet6 ::1 prefixlen 128
   inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
   inet 127.0.0.1 netmask 0xff00

lease {
 interface vr0;
 fixed-address 192.168.1.102;
 option subnet-mask 255.255.255.0;
 option routers 192.168.1.254;
 option domain-name-servers 192.168.1.254;
 option broadcast-address 255.255.255.255;
 option dhcp-lease-time 3600;
 option dhcp-message-type 5;
 option dhcp-server-identifier 192.168.1.254;
 option dhcp-renewal-time 1800;
 option dhcp-rebinding-time 3150;
 renew 4 2007/1/11 04:57:09;
 rebind 4 2007/1/11 05:19:39;
 expire 4 2007/1/11 05:27:09;
}

buffy# tcpdump -vv
tcpdump: listening on vr0, link-type EN10MB (Ethernet), capture size 96
bytes
22:29:06.250801 IP (tos 0x0, ttl  64, id 81, offset 0, flags [none],
proto: UDP (17), length: 61)
192.168.1.102.50460  192.168.1.254.domain:
[udp sum ok]  53280+ A? www.freebsd.org. (33)

22:29:06.257223 IP (tos 0x0, ttl 255, id 761, offset 0,
flags [none], proto: UDP (17), length: 205)
192.168.1.254.domain  192.168.1.102.50460:  53280
q: A? www.freebsd.org. 1/4/2 www.freebsd.org.
A www.freebsd.org ns: freebsd.org.[|domain]

22:29:06.260101 IP (tos 0x0, ttl  64, id 82, offset 0,
flags [none], proto: UDP (17), length: 61)
192.168.1.102.55466  192.168.1.254.domain:
[udp sum ok]  53281+ ? www.freebsd.org. (33)

22:29:07.086122 IP (tos 0x0, ttl  64, id 83, offset 0,
flags [none], proto: UDP (17), length: 72)
192.168.1.102.62917  

Re: UDP ok but TCP delayed

2007-01-10 Thread Ian Smith
Re: freebsd-questions Digest, Vol 160, Issue 13
  Message: 29
  Date: Thu, 11 Jan 2007 00:24:03 -0500
  From: Bob McIsaac [EMAIL PROTECTED]

  Got helpful replies before but still have a mystery 10 second delay
  on a TCP connection. Slashdot takes with all it's links takes about
  30 seconds to load in any browser.  One tiny email displays a 10sec
  progress bar.  Yet ping, FTP,  or pkg_add seems normal.  I get the
  same result on 2 different computers. Both work fine with Linux.
  
  My interest in FreeBSD is as an alternative for embedded projects
  where Linux would typically be an automatic choice.
  
  I confirmed with tcpdump that my ISP nameserver replies with
  an IP address and nothing happens for 10 seconds until my
  browser makes the connection.

I responded in some detail before re your tcpdump.  It clearly showed
that the nameserver you were using at 192.168.1.254 was *failing* to
respond to 1)  queries and 2) queries for its own reverse address.

  tcp_keepalive=NO

The default is YES .. any particular reason for using NO?

  ifconfig_vr0=DHCP
  hostname=buffy.feline.cat

  # -- /etc/resolv.conf ---
  nameserver 192.168.1.254
  
  # --- /etc/hosts ---
  ::1   localhost.home.com localhost
  127.0.0.1  localhost.home.com localhost
  127.0.0.1  buffy.feline.cat buffy

Hmm.  Maybe remove the IPv6 entry, you said you weren't using IPv6 but
the tcpdump did show your box amaking  queries.

I'm still curious as to where 192.168.1.254 lives?  In most cases this
would be your local ADSL router, say.  It doesn't *look* like it'd be
the address of your upstream provider's DNS, but then there are some
funny ISPs out there I guess.

Is 192.168.1.254 also your defaultrouter?  It's not in your rc.conf, but
perhaps that's being assigned by DHCP?  So should be, perhaps, upstream
DNS server address/es?  If 192.168.1.254 is local, it's misconfigured.

I *still* must suggest putting the address/es of known good upstream
nameservers in /etc/resolv.conf to see if that doesn't deal with your
delay, which seems almost certainly a DNS issue from everything you've
posted so far.

If that doesn't help, show us 'netstat -finet -ra' and 'ifconfig'?

Cheers, Ian

(please cc me; getting the next digest can take up to half a day)

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]