tkn-tub / ns3-gym

ns3-gym - The Playground for Reinforcement Learning in Networking Research
GNU General Public License v2.0
540 stars 199 forks source link

Always pause at place “Got new port for ns3gm interface: ” #6

Closed zhuwenxing closed 6 years ago

zhuwenxing commented 6 years ago

When I run cognitive-agent-v1.py, it always pause at "Got new port for ns3gm interface:" after several episodes .Sometime episode: 11/200,sometime episode: 47/200(not fixed,changes every time).

It just stop at there,no error information. I wait several minutes and it has no response!

xiaochang@w:~/ns3-gym-master/scratch/interference-pattern$ ./cognitive-agent-v1.py
Got new port for ns3gm interface:  8567
Observation space:  Box(4,) uint64
Action space:  Discrete(4) 4
2018-11-11 11:49:54.963102: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
episode: 0/200, time: 8, rew: 6.0, eps: 0.99
Got new port for ns3gm interface:  5296
episode: 1/200, time: 8, rew: 6.0, eps: 0.98
Got new port for ns3gm interface:  5485
episode: 2/200, time: 7, rew: 5.0, eps: 0.98
Got new port for ns3gm interface:  9031
episode: 3/200, time: 7, rew: 5.0, eps: 0.97
Got new port for ns3gm interface:  9820
episode: 4/200, time: 4, rew: 2.0, eps: 0.97
Got new port for ns3gm interface:  7310
episode: 5/200, time: 3, rew: 1.0, eps: 0.96
Got new port for ns3gm interface:  5253
episode: 6/200, time: 4, rew: 2.0, eps: 0.96
Got new port for ns3gm interface:  6842
episode: 7/200, time: 2, rew: 0.0, eps: 0.96
Got new port for ns3gm interface:  6411
episode: 8/200, time: 4, rew: 2.0, eps: 0.95
Got new port for ns3gm interface:  7233
episode: 9/200, time: 1, rew: -1.0, eps: 0.95
Got new port for ns3gm interface:  9101
episode: 10/200, time: 11, rew: 5.0, eps: 0.94
Got new port for ns3gm interface:  8633
episode: 11/200, time: 13, rew: 7.0, eps: 0.93
Got new port for ns3gm interface:  8456
pgawlowicz commented 6 years ago

Hi, Do you use the newest version of ns3-gym? I have experienced the issue in past, but never with the current version. I will check again. BR, Piotr