This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Monitor TCP port 1 between computer and printer over ethernet

0

Hello,

Please forgive me if Im a bit imprecise in my terminology, I am new to this arena.

Im working with a networked RIP printing software in our University printing lab and we've run into a problem where the software sporadically but consistently fails to connect to the networked epson plotter. The company that produces the software informs me that there must be some sort of network issue or software conflict to prevent the connection, and Im trying to diagnose what that conflict might be.

According to the provider, the RIP will ping the printer address 5 times to see if it can connect to the device. The print job itself is sent to the printer via TCP on port 1. In our case, if the software can't connect it throws an error, and only a complete system reboot seems to get things working again.

I'd like to know if Wireshark can help me ascertain if the issue Im running into is a problem on the printer side or on the workstation side, and I need something that will help me observe the problem in action as the fault is intermittent. If the issue is on the workstation side, I need to know what else might be operating on tcp port 1 that would prevent communication to the printer (is it possible for an app to hog a port like this?). Failing that I need to figure out if the RIP itself is just locking up and refusing to try again until after a reboot.

Also, is Wireshark the best tool for this kind of exploration, perhaps there is something simpler. Im a bit daunted by how feature rich it is, most of which I'm completely ignorant as to what it means/does.

This is what I know about the software/environment:

  • The software is running on a OSX 10.8 workstation over a new gigabit ethernet network

  • The Epson plotter and the computer are on the same subdomain.

  • Our IT department assures me that there shouldn't be any firewall rules imposed at this moment to prevent communication between devices.

  • The problem exhibits itself when sending jobs to two separate printers of the same make purchased at different times ( suggesting its not a faulty network card on the printer).

If your at all curious as what other steps I've taken to diagnose the problem read on. Otherwise many thanks for your thoughts.

What I've done to narrow down the issue with no success:

  • Moved to a new building with a brand new giabit network

  • Confirmed with IT that there are no firewall rules that would conflict with workstation to work station comunication on any port

  • Had IT put the lab on its own subdomain within the school network

  • Printers and workstation have fixed IP addresses

  • Installed a second epson plotter of the same type to make sure it wasn't a faulty network card on the printer

  • Wiped a new workstation and just installed just the OS and the RIP software

  • Run a ping test from the terminal from workstation to printer to see if I could observe dropped packets or lack of response while the issue was happening. Yes I've learnt that Ping wont resolve TCP ports but hopefully a basic test of if the printer is generally reachable or not.

asked 07 Feb '14, 05:15

orionrush's gravatar image

orionrush
11114
accept rate: 0%

edited 07 Feb '14, 05:16


2 Answers:

0

I need to know what else might be operating on tcp port 1

TCP port 1 is actually assigned to tcpmux (RFC 1078). But honestly, I have not seen that in any environment in the last 25 years!?! Are you sure it's TCP port 1?

If you wan to use Wireshark to analyze the problem, you should try to capture the traffic at both sides (client and printer) at the same time. See the Ethernet Capture Setup Wiki for instructions (switch mirror port, etc.). As soon as you have those two capture files, you can look at them yourself, or you can post the files somewhere (google drive, dropbox, cloudshark) and publish the link here, so we can have a look at them.

Hint: If it is really TCP port 1 that's being used, there could be firewall issues as well, as that port is used rather seldom, and although it is possible to open firewall for that port, some firewalls might not be able to handle it correctly, i.e. an IDS/IPS module might believe there is an attack going on and thus it blocks the communication.

A Firewall can also be on the client itself in the form of a personal firewall, AV with IDS/IPS capabilities and Endpoint Security Software (Symantec and the like)!! Did you check that?

Regards
Kurt

answered 07 Feb '14, 05:30

Kurt%20Knochner's gravatar image

Kurt Knochner ♦
24.8k1039237
accept rate: 15%

edited 07 Feb '14, 05:33

I will go back and confirm with colorbyte, but it struck me as odd as well. I've just checked and sure enough in the compiled app there is a tcpmux unix executable. If Im understanding the memo you've linked to, tcpmux seems to be to create a custom service name or alias. Perhaps they are using it so their own printing protocol is not interfered with, or steps on any other services.

(07 Feb '14, 06:16) orionrush

We're not using Endpoint, Symantec etc on the boxes themselves, though I do have the standard OSX fire wall in place, with stealth mode enabled. I'll try to disable these to see if there is any improvement. I wouldn't expect theses setting to sometimes work, sometimes not however.

(07 Feb '14, 06:21) orionrush

there is a tcpmux unix executable.

well, then they are probably using really tcp port 1. Why not....

As I said, you need to capture in parallel at the client and in front of the printer (or print server), to figure out what's going wrong.

(07 Feb '14, 08:14) Kurt Knochner ♦

if the software can't connect it throws an error, and only a complete system reboot seems to get things working again.

a system reboot of what exactly? The imageprint system or the networked printer or the print spooler system (if there is one)?

BTW: what is the error message?

(07 Feb '14, 08:20) Kurt Knochner ♦

The error message is ImagePrint code 527, meaning the print spooler simply couldn't connect to the printer - Not very insightful. As far as a reboot, I should have been more clear, I meant the entire OS. Restarting the GUI for and RIP or its print spooler (these have separate interfaces) dosen't help. This hints to me that there is a process that has been spawned that continues to be locked up after the spooler GUI has been shut down. After the OS reboots you can fire up the RIP and get a few more prints through to the spooler, until it locks up again. Reboot, a few more prints. Reboot a few more prints - all day long. No fun at all!

(07 Feb '14, 09:01) orionrush

0

Troubleshooting intermittent/sporadic problem/issue is never an easy task. The challenge is to catch it when it happens. Before you do anything, what I suggest to do is:

  1. Profile a normal behavior when it is operating normally to look at the expected traffic behavior when it is operating normally. That will give you a baseline to work with. You can do that by doing spanning the traffic on your machine side or printer side to a capture machine running (either running Wireshark or dumpcap or tshark).
  2. To port span your traffic, you have options of doing the port span on the switch (which requires a network admin to help you with that). Or, if the end machine/printer/plotter can be taken offline for a bit, you can probably use the dualcomm tap and span out the traffic using the tap. (The dualcomm taps are pretty affordable). http://www.dual-comm.com/gigabit_port-mirroring-LAN_switch.htm
  3. By using the same port span technique, you can then capture the traffic when the problem is happening.
  4. Once you have both the normal "working" packet capture and "non-working" packet capture, then you can diagnose the problem more easily.

Hint: When capturing the traffic to profile the traffic, I would try to capture all traffic except for broadcast & multicast and then slowly clean up the packet capture and not restrict the capture only to the printers alone. This is to make sure that you check if there is any other process (such as any DNS resolution, etc) that is actually happening at the background which might be related.

Just my 2 cents.

answered 07 Feb '14, 05:57

hunghoong's gravatar image

hunghoong
113
accept rate: 0%

The more I learn about the process, the more I realise Im probably not the best man for this job. My initial instinct when we moved into the lab was to try to operate everything on my own unmanaged switches, to totally separate from the network to see if there was in fact any wider firewall issues. Our IT folks went a bit nuclear when the subject came up however, so I put the switches on the floor, kicked them to the centre of the room and backed away slowly with hand's raised. . . . I just have to trust them I guess when they tell me that all the restrictions have been lifted for this initial setup.

(07 Feb '14, 06:28) orionrush