Open salocinx opened 7 years ago
by default plipbox does flow control on the ethernet link. if this is not handled correctly you can stall your network.
you can disable flow control with the fc
command in the command mode on the serial console.
to debug this issue it would be helpful to get a serial log of plipbox's output
Okay I managed to connect with CoolTerm/Windows to my Plipbox. I did tests with firmware 0.5 and 0.6. The Plipbox with firmware 0.6 did not jam the network with the procedure described in my initial post, whereas the Plipbox with firmware 0.5 did.
Here are the logs for version 0.5 after shutting down the Amiga while downloading a larger file (network jamming):
Welcome to plipbox 0.5 20161220 by lallafa (http://www.lallafa.de/blog)
fd: full duplex 00 fc: ETH flow ctl 01 fe: filter ETH 01 fp: filter PLIP 01
dd: dump dirs 00 de: dump ETH 00 di: dump IP 00 da: dump ARP 00 dp: dump proto 00 dl: dump plip 00
la: log all cmds 00
enc28j60: rev 07 half duplex 000107.6788 pbp(rx): online: mac=1A:11:AF:A0:47:11 ver=00.05 000107.6894 pbp: link up 000107.6940 eth: link up 000144.8281 io: 22 43 1514 000000.0183 000000.0026
Here are the logs for version 0.6 after shutting down the Amiga while downloading a larger file (no network jamming):
Welcome to plipbox 0.6 20150117 by lallafa (http://www.lallafa.de/blog)
m: mac address 1A:11:AF:A0:47:11
fd: full duplex 00 fc: flow control 00
tl: packet len 05EA tt: packet type FFFD ti: ip address 192.168.002.222 tp: udp port 1A90 tm: test mode 00
Press
to enter command mode or <?> for key help 000000.0581 [BRIDGE] on 000000.0624 pio: init: enc28j60: ok! mac=1A:11:AF:A0:47:11 flags=04 rev=07 000001.3418 FIRST INCOMING! 000001.3474 OFFLINE DROP: 00D7 000002.5289 cmd=00?? ERR:04 000004.3698 OFFLINE DROP: 00D7 000007.3972 OFFLINE DROP: 00D7 000010.4244 OFFLINE DROP: 00D7 000013.4518 OFFLINE DROP: 00D7 000016.4791 OFFLINE DROP: 00D7 000019.5067 OFFLINE DROP: 00D7 000022.5338 OFFLINE DROP: 00D7 000025.5611 OFFLINE DROP: 00D7 000028.5884 OFFLINE DROP: 00D7 000031.6158 OFFLINE DROP: 00D7 000034.6431 OFFLINE DROP: 00D7 000037.6704 OFFLINE DROP: 00D7 000040.6980 OFFLINE DROP: 00D7 000043.7251 OFFLINE DROP: 00D7 000046.7525 OFFLINE DROP: 00D7 000049.7798 OFFLINE DROP: 00D7 000052.8072 OFFLINE DROP: 00D7 000055.8345 OFFLINE DROP: 00D7 000058.8618 OFFLINE DROP: 00D7 000061.8892 OFFLINE DROP: 00D7 000064.9165 OFFLINE DROP: 00D7 000067.9439 OFFLINE DROP: 00D7 000070.9712 OFFLINE DROP: 00D7 000073.9985 OFFLINE DROP: 00D7 000077.0259 OFFLINE DROP: 00D7 000080.0532 OFFLINE DROP: 00D7 000083.0805 OFFLINE DROP: 00D7 000086.1078 OFFLINE DROP: 00D7 000089.1352 OFFLINE DROP: 00D7 000089.4431 OFFLINE DROP: 00F9 000089.4490 OFFLINE DROP: 005C 000089.6281 OFFLINE DROP: 005C 000089.6342 OFFLINE DROP: 00D8 000089.6401 OFFLINE DROP: 005C 000092.1625 OFFLINE DROP: 00D7 000095.1902 OFFLINE DROP: 00D7 000098.2172 OFFLINE DROP: 00D7 000101.2445 OFFLINE DROP: 00D7 000104.2719 OFFLINE DROP: 00D7 000107.2992 OFFLINE DROP: 00D7 000110.3265 OFFLINE DROP: 00D7 000113.3539 OFFLINE DROP: 00D7 000116.3675 [MAGIC] online 000116.4085 FIRST TRANSFER! 000210.8963 cmd=FF?? ERR:04
Let me know if and how I can provide you more information on this issue.
A few times the Plipbox snaps into a very strange state. In that state, my extra send/receive indicator LED does not extinguish anymore and the Plipbox seems to flood the LAN with network packets. When this is the case, no computer attached to the LAN is able to send/receive any network traffic anymore. Restarting the Plipbox solves the issue.
Reproduction procedure (tested with firmware v0.5): Power on the Plipbox and then your Amiga. Start TCP/IP stack, connect Plipbox to the network and download some large file. Power off your Amiga during the download. The Plipbox begins to jam the network and all other computers on the network have no more access to the LAN/WAN.