TCP guru: SMC Tulip 0.5 under 1.2.8 vs Apple net printer (dump encl)

TCP guru: SMC Tulip 0.5 under 1.2.8 vs Apple net printer (dump encl)

Post by Mike Colem » Thu, 13 Jul 1995 04:00:00



I have a 1.2.8 (Slackware 2.3) Linux box with a SMC Etherpower card using the
0.5 Tulip driver, and it seems to work fine except with our Apple network
printer (which speaks lpd protocol via its own TCP/IP).  Connections to the
printer get hung up in short order, eventually resulting in a reset (see
tcpdump output below).

The dump: In short what seems to be happening is that all proceeds okay until
about 10-20k has been sent, at which time the printer refuses to see further
data, repeatedly 'ack'ing only the previous stuff.  This send/ack cycle
repeats a number of times, and (interestingly) at the end appears to be
demonstrating some kind of exponential backoff (each host doubles its previous
wait before speaking).  At the point when this delay reaches 1-2 minutes, a
reset is initiated by the printer, and then the cycle repeats (resulting in
the beginning part of the print job being printed many times).

Details: Networking code is Swansea NET 3.019.  The behavior seems to be the
same using the de4x5 driver, though I haven't verified with tcpdump that
exactly the same events are occurring.  Another 1.2.8 Linux box with a Linksys
PCMCIA card, NET 3.019 and a de650 driver speaks to the printer without
problems.

Thanks in advance for any suggestions about how to proceed from here.  

--Mike

==============================================================================
        17:44:23.045310 arp who-has ctrprinter tell chez-gnu.cstp.umkc.edu
        17:44:23.057629 arp reply ctrprinter is-at 8:0:7:4:7f:e0
        17:44:23.059365 chez-gnu.cstp.umkc.edu.1023 > ctrprinter.printer: S 3033454634:3033454634(0) win 512 <mss 1436>
        17:44:23.064883 ctrprinter.printer > chez-gnu.cstp.umkc.edu.1023: S 267825153:267825153(0) ack 3033454635 win 4380 <mss 1460> (DF)
        17:44:23.066932 chez-gnu.cstp.umkc.edu.1023 > ctrprinter.printer: . ack 1 win 14259
?       17:44:23.067990 ctrprinter.printer > chez-gnu.cstp.umkc.edu.1023: . ack 1 win 4380 (DF)
        17:44:23.081939 chez-gnu.cstp.umkc.edu.1023 > ctrprinter.printer: P 1:6(5) ack 1 win 14335
        17:44:23.086846 ctrprinter.printer > chez-gnu.cstp.umkc.edu.1023: . ack 6 win 4375 (DF)
        17:44:23.095752 ctrprinter.printer > chez-gnu.cstp.umkc.edu.1023: P 1:2(1) ack 6 win 4380 (DF)
        17:44:23.096944 chez-gnu.cstp.umkc.edu.1023 > ctrprinter.printer: . ack 2 win 14334
?       17:44:23.105437 ctrprinter.printer > chez-gnu.cstp.umkc.edu.1023: . ack 6 win 4380 (DF)
        17:44:23.301724 chez-gnu.cstp.umkc.edu.1023 > ctrprinter.printer: P 6:27(21) ack 2 win 14335
        17:44:23.307855 ctrprinter.printer > chez-gnu.cstp.umkc.edu.1023: . ack 27 win 4359 (DF)
        17:44:23.323160 ctrprinter.printer > chez-gnu.cstp.umkc.edu.1023: P 2:3(1) ack 27 win 4380 (DF)
        17:44:23.324354 chez-gnu.cstp.umkc.edu.1023 > ctrprinter.printer: . ack 3 win 14334
        17:44:23.325554 chez-gnu.cstp.umkc.edu.1023 > ctrprinter.printer: P 27:1051(1024) ack 3 win 14335
        17:44:23.326977 chez-gnu.cstp.umkc.edu.1023 > ctrprinter.printer: P 1051:2487(1436) ack 3 win 14335
        17:44:23.341111 ctrprinter.printer > chez-gnu.cstp.umkc.edu.1023: . ack 2487 win 1920 (DF)
        17:44:23.342533 chez-gnu.cstp.umkc.edu.1023 > ctrprinter.printer: P 2487:3923(1436) ack 3 win 14335
        17:44:23.351912 ctrprinter.printer > chez-gnu.cstp.umkc.edu.1023: . ack 3923 win 484 (DF)
?       17:44:23.558597 chez-gnu.cstp.umkc.edu.1023 > ctrprinter.printer: . ack 3 win 14335
?       17:44:23.563773 ctrprinter.printer > chez-gnu.cstp.umkc.edu.1023: . ack 3923 win 484 (DF)
?       17:44:23.894873 ctrprinter.printer > chez-gnu.cstp.umkc.edu.1023: . ack 3923 win 484 (DF)
?       17:44:24.298682 chez-gnu.cstp.umkc.edu.1023 > ctrprinter.printer: . ack 3 win 14335
?       17:44:24.303710 ctrprinter.printer > chez-gnu.cstp.umkc.edu.1023: . ack 3923 win 484 (DF)
?       17:44:24.887097 ctrprinter.printer > chez-gnu.cstp.umkc.edu.1023: . ack 3923 win 484 (DF)
        17:44:25.392991 ctrprinter.printer > chez-gnu.cstp.umkc.edu.1023: . ack 3923 win 3404 (DF)
        17:44:25.394409 chez-gnu.cstp.umkc.edu.1023 > ctrprinter.printer: P 3923:5359(1436) ack 3 win 14335
        17:44:25.395854 chez-gnu.cstp.umkc.edu.1023 > ctrprinter.printer: P 5359:6795(1436) ack 3 win 14335
        17:44:25.404549 ctrprinter.printer > chez-gnu.cstp.umkc.edu.1023: . ack 5359 win 1968 (DF)
        17:44:25.416252 ctrprinter.printer > chez-gnu.cstp.umkc.edu.1023: . ack 5359 win 3428 (DF)
        17:44:25.417685 chez-gnu.cstp.umkc.edu.1023 > ctrprinter.printer: P 6795:8231(1436) ack 3 win 14335
?!      17:44:25.621118 chez-gnu.cstp.umkc.edu.1023 > ctrprinter.printer: P 5359:6795(1436) ack 3 win 14335
        17:44:25.630460 ctrprinter.printer > chez-gnu.cstp.umkc.edu.1023: . ack 6795 win 1992 (DF)
        17:44:25.632788 chez-gnu.cstp.umkc.edu.1023 > ctrprinter.printer: P 6795:8231(1436) ack 3 win 14335
        17:44:25.643880 ctrprinter.printer > chez-gnu.cstp.umkc.edu.1023: . ack 8231 win 2016 (DF)
        17:44:25.646034 chez-gnu.cstp.umkc.edu.1023 > ctrprinter.printer: P 8231:9667(1436) ack 3 win 14335
        17:44:25.654136 ctrprinter.printer > chez-gnu.cstp.umkc.edu.1023: . ack 8231 win 3476 (DF)
        17:44:25.655571 chez-gnu.cstp.umkc.edu.1023 > ctrprinter.printer: P 9667:11103(1436) ack 3 win 14335
        17:44:25.666528 ctrprinter.printer > chez-gnu.cstp.umkc.edu.1023: . ack 8231 win 2040 (DF)
        17:44:26.061150 chez-gnu.cstp.umkc.edu.1023 > ctrprinter.printer: P 8231:9667(1436) ack 3 win 14335
?!!     17:44:26.810340 ctrprinter.printer > chez-gnu.cstp.umkc.edu.1023: . ack 8231 win 2040 (DF)
        17:44:26.871224 chez-gnu.cstp.umkc.edu.1023 > ctrprinter.printer: P 8231:9667(1436) ack 3 win 14335
??      17:44:28.481324 chez-gnu.cstp.umkc.edu.1023 > ctrprinter.printer: P 8231:9667(1436) ack 3 win 14335
?!!!    17:44:29.066728 ctrprinter.printer > chez-gnu.cstp.umkc.edu.1023: . ack 8231 win 2040 (DF)
        17:44:31.691555 chez-gnu.cstp.umkc.edu.1023 > ctrprinter.printer: P 8231:9667(1436) ack 3 win 14335
        17:44:33.520498 ctrprinter.printer > chez-gnu.cstp.umkc.edu.1023: . ack 8231 win 2040 (DF)
        17:44:38.102031 chez-gnu.cstp.umkc.edu.1023 > ctrprinter.printer: P 8231:9667(1436) ack 3 win 14335
        17:44:42.378766 ctrprinter.printer > chez-gnu.cstp.umkc.edu.1023: . ack 8231 win 2040 (DF)
        17:44:50.913005 chez-gnu.cstp.umkc.edu.1023 > ctrprinter.printer: P 8231:9667(1436) ack 3 win 14335
        17:45:00.030735 ctrprinter.printer > chez-gnu.cstp.umkc.edu.1023: . ack 8231 win 2040 (DF)
        17:45:16.524887 chez-gnu.cstp.umkc.edu.1023 > ctrprinter.printer: P 8231:9667(1436) ack 3 win 14335
        17:45:35.286818 ctrprinter.printer > chez-gnu.cstp.umkc.edu.1023: . ack 8231 win 2040 (DF)
        17:46:07.738686 chez-gnu.cstp.umkc.edu.1023 > ctrprinter.printer: P 8231:9667(1436) ack 3 win 14335
        17:46:45.742159 ctrprinter.printer > chez-gnu.cstp.umkc.edu.1023: . ack 8231 win 2040 (DF)
        17:47:50.156299 chez-gnu.cstp.umkc.edu.1023 > ctrprinter.printer: P 8231:9667(1436) ack 3 win 14335
        17:47:56.212140 ctrprinter.printer > chez-gnu.cstp.umkc.edu.1023: . ack 8231 win 2040 (DF)
        17:49:06.669511 ctrprinter.printer > chez-gnu.cstp.umkc.edu.1023: . ack 8231 win 2040 (DF)
        17:49:50.175235 chez-gnu.cstp.umkc.edu.1023 > ctrprinter.printer: P 8231:9667(1436) ack 3 win 14335
        17:49:50.180661 arp who-has chez-gnu.cstp.umkc.edu (Broadcast) tell ctrprinter
        17:49:50.181561 arp reply chez-gnu.cstp.umkc.edu is-at 0:0:c0:6f:ff:e
        17:49:50.184146 ctrprinter.printer > chez-gnu.cstp.umkc.edu.1023: R 267825156:267825156(0) win 0
        17:49:50.191498 chez-gnu.cstp.umkc.edu.1022 > ctrprinter.printer: S 3360582081:3360582081(0) win 512 <mss 1436>
        17:49:50.199780 ctrprinter.printer > chez-gnu.cstp.umkc.edu.1022: S 27045889:27045889(0) ack 3360582082 win 4380 <mss 1460> (DF)
[and so on]
==============================================================================
--
Mike Coleman * cole...@cstp.umkc.edu * http://ctr.cstp.umkc.edu/~coleman (PGP)
**** Center for TeleComputing Research, CSTP, U. of Missouri--Kansas City ****
When you say 'I wrote a program that crashed Windows', people just stare at
you blankly and say 'Hey, I got those with the system, *for free*'.--L.Torvalds

 
 
 

1. gcc vs. c++ vs. QT-3.0.5

Hi,

I went to purchase an old edition of "Programming with QT", published by
OREILLY, and am trying to learn on how to program with QT library on my
SuSE 8.1 Pro machine using gcc-3.2 and qt-3.0.5. Also, being a lazy ass, I
went to http://examples.oreilly.com/prowqt/ to download and extracted the
examples.tar1.gz package to give it a try. I went ahead with the example in
qtscribble1 directory. The compilation using "make -f Makefile.linux"
(default to gcc compiler) went fine and produce an executable qtscribble1
with a size of 140926 bytes. I change the compiler in the Makefile.linux to
use c++, and the compilation produces qtscribble1 with a size of 140926
bytes (same as with gcc). Then, I tried to manually compile qtscribble1.cpp
using both gcc and c++ (with the same FLAGS as in Makefile.linux file) as
follows:

        gcc -Wall -W -O2 -fno-strength-reduce -I$QTDIR/include \
                -L$QTDIR/lib -lqt qtscribble1.cpp -o qtscribble1

and
        c++ -Wall -W -O2 -fno-strength-reduce -I$QTDIR/include \
                -L$QTDIR/lib -lqt qtscribble1.cpp -o qtscribble1

To my surprise, the executable code produced by c++ and gcc are 33113 and
140926 bytes in sizes, respectively. It looked like th code produced by c++
is about a quarter in size than the code produced by gcc. The compilation
using the Makefile.linux takes two stages where it first compile the source
code to an object .o code and then linked to produce an executable code.
The manual compilation takes a shortcut to compile from the source code to
an executable code. I would presume in either case, the produced executable
code should be the same or a little difference in size and not a whopping
of 4x reduction.

Does anyone care to investigate?

2. Who's up for a challange?????

3. Fwd: rpm-4.2, rpm-4.1.1, rpm-4.0.5, librpm404-4.0.5 release (finally)

4. Window NT vs x86 solaris vs SCO?

5. Oracle8.0.5 and RedHat 6.0 - core dumps when running binaries

6. [2.5] reiserfs changeset 7 of 15 for 2.5.21

7. SMC Ultra vs. SMC Elite

8. HELP! Install from PCMCIA CDROM

9. Ghostview vs PostScript printer, core dump mysteries

10. /proc/net/tcp and /proc/net/udp

11. SMC EtherPower and Tulip driver

12. New Accton EN1207D TX - HOWTO says 21040 or tulip but /proc/pci says SMC 1211 Controller

13. SMC EtherPower-tulip.o module help!