Share projects and connect with makers.
Joined before the site update? first.
New to WIZnet Makers?
We sent a verification link to your address. Open it to activate your account, then log in.
Accounts from this email provider are reviewed by an administrator after verification. Approval usually takes one business day.
Already have an account?
Enter your email address. If it belongs to an account, we'll send a link to set a new password. Members who joined before the site update use this to set their password.
If an account uses that address, we sent a link to set a new password. The link works once and expires in 30 minutes.
Know your password?
Need an account?
RE: W5300 / Strange ARP response during UDP communication
by Lihan__ WIZnet ·
안녕하세요! 문의 주신 내용 확인했습니다. 캡처가 첨부되지 않고 와서, 다시 한번 올려주시면 정확히 봐드리겠습니다.
말씀하신 증상만으로는 원인을 하나로 특정하기 어렵고, ARP가 오가는 시점에 끊긴다는 점에서 아래 두 가지 방향이 있습니다.
1. PC 쪽 ARP 테이블이 잘못 채워지는 경우
PC의 ARP 캐시가 만료되면 PC가 ARP 요청을 보내고 장비가 응답합니다. 이때 응답이 이상하거나(MAC 깨짐), 같은 IP를 가진 다른 장비가 끼어들어 응답하면 PC가 엉뚱한 MAC으로 보내게 되고, Windows가 ARP를 다시 제대로 잡을 때까지 수 초에서 수십 초 끊길 수 있습니다. 이 경우 장비 펌웨어와는 무관합니다.
2. 장비 쪽에서 ARP 대기 중 송신이 멈추는 경우
W5300은 UDP 송신 시 목적지 IP가 바뀌면 ARP를 새로 하는데, 응답이 안 오면 기본 설정으로 최대 약 1.8초(RTR 200ms × RCR 8) 기다립니다. 이 동안 sendto()가 붙잡혀 있어서 펌웨어 구조에 따라 수신 처리까지 같이 멈출 수 있습니다. 다만 같은 PC로만 계속 응답하는 구조라면 통신 중에 ARP를 다시 할 이유가 없어서, 이 경우는 가능성이 상대적으로 낮습니다.