-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AmsTcpIpRouter delays when using windows containers and NAT network driver #56
Comments
Unfortunately I am not an expert in Docker usage so that I cannot answer why windows containers should behave this way. For reproducing the issue I miss some relevant information in the attached files or there are some inconsistencies to your description.
|
Sorry for the delay.
To reproduce you only need two containers running, one router and one client. They delay is seen without the 2nd client running. However to reproduce with 2 clients I created a second container with the client-program and used the command line args to give it a different net id. |
Would capturing the docker traffic help in this case? https://github.com/siemens/edgeshark |
This is the setup I am using
![image](https://private-user-images.githubusercontent.com/134443708/310626100-41649d9e-8940-459a-8d58-afcb67e632b0.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyMjg4ODAsIm5iZiI6MTczOTIyODU4MCwicGF0aCI6Ii8xMzQ0NDM3MDgvMzEwNjI2MTAwLTQxNjQ5ZDllLTg5NDAtNDU5YS04ZDU4LWFmY2I2N2U2MzJiMC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMFQyMzAzMDBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT05MTg2ZTUzYzFjOGYzM2VkNWY3NDEzYjczNDJhMDc5YjE1NjMyZWVjOTM4ZTlkZWRjNmQxMjljZWU3OThhMThlJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.0Ci5UHEq0RI_gOEbv3ZzKxftvgCAsQG7ZyVwpBkm9Cw)
The use case for this setup is to be able to preform a hot swap of our software. Container 1 would be running version 1.1 of our software and container 2 startup running version 1.2. Once a handoff is completed container 2 would take over and container 1 would shutdown.
After many trial and error and support from [email protected] the above setup is working with one quirk, there is a 4000ms delay from when a client sends a request to when the router forwards the request to the PLC.
log example
The router and client console apps are based on the example code Beckhoff provides, I've attached the program.cs file.
client and router.zip
I've also attached the docker images
docker images.zip
I've tested the same setup with linux containers using the same container host (Win 11).
There is no delay using linux, so I assume the problem is related to using the nat driver as opposed to the bridge driver.
The text was updated successfully, but these errors were encountered: