Comment 0 for bug 1034809

Revision history for this message
Alexander Sack (asac) wrote : Fast Models [7.1.42 (May 25 2012)] UserPort Networking is sometimes flaky

I use -C motherboard.hostbridge.userNetPorts='5555=5555' ... if all is normal, i can start the model and half a second later i will see the port 5555 opened as LISTEN in lsof...

however, sometimes more often than not, that doesnt' work and the fastmodel never brings up the 5555 port.

dmart wondered on IRC:
11:13 < dmart> Can the port be customised? Is this a TIME_WAIT problem?
11:14 < asac> dmart: so i use
11:14 < asac> -C motherboard.hostbridge.userNetPorts='5555=5555
11:14 < asac> and so on
11:14 < asac> dmart: now if i start the fast model, if things go well i see a LISTEN 5555 on the host mahcine right away
11:15 < asac> dmart: but in 8 out of 10 runs the port is not opened atall
11:15 < asac> dmart: in cases where it works it seems to be not coupled with the actual target system opening a port
11:15 < asac> it just opens the port right away (which makse sense)
11:15 < asac> so yeah... short: hostbridge.userNetPorts not created in 8 out of 10 cases

note that the telnet ports for serial are always opened properly.

peter maydell pointed out:
11:28 < pm215> it would be good to be able to make the model use the socket option that allows rebinding

also we observed some weird effects where network traffic through this 5555 port gets stalled from time to time and telnet into one of the serial soockets will make the traffic stream up - but no further details on this observation yet.