Advertisement

12.01.2007 at 08:59PM PST, ID: 22995792
[x]
Attachment Details

UDP packets get changed to ICMP packets

Asked by jsmeast in User Datagram Protocol (UDP), Internet Control Message Protocol (ICMP)

Tags: udp, packets, icmp

While debugging an app, I discovered that packets I sent as UDP had been changed to ICMP packets when sent over the internet. As a test, I did the following from a Mac running OS-X 10.5:

1. Open a terminal window with "nc -u -l 1028" to listen for UDP packets.
2. Open another terminal window with "nc -u x.x.x.x 1028" to send UDP packets.
3.  With x.x.x.x set to 192.168.0.8, the IP address of the Mac I'm using, text sends just fine from one window to the other.
4. With x.x.x.x set to my internet IP address, packets never show up on the listening window.
5. Using the Wireshark packet sniffer, the transmitted packet appears as UDP, as expected.
6. The received packet, however, is shown as an ICMP packet, 28 bytes longer. The data portion of the content is correct.

The fact that the packet sniffer shows an incoming ICMP packet indicates that the packet is not being blocked by any firewall (set to forward port 1028 to 192.168.0.8). My internet connection is Verizon FIOS, using their Actiontec wireless router.

In short, UDP between two terminal windows on the same machine works fine when using the local machine address, but does not work when routing through the internet to the machine's internet IP address because the packets somehow get changed to ICMP packets. Any ideas would be appreciated. Thanks.Start Free Trial
 
 
Loading Advertisement...
 
[+][-]12.02.2007 at 11:47AM PST, ID: 20392071

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.03.2007 at 03:05AM PST, ID: 20394711

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.03.2007 at 05:32AM PST, ID: 20395216

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.03.2007 at 08:33AM PST, ID: 20396553

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: User Datagram Protocol (UDP), Internet Control Message Protocol (ICMP)
Tags: udp, packets, icmp
Sign Up Now!
Solution Provided By: Bamit99
Participating Experts: 2
Solution Grade: A
 
 
[+][-]12.03.2007 at 08:40AM PST, ID: 20396618

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.03.2007 at 08:48AM PST, ID: 20396670

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.03.2007 at 01:56PM PST, ID: 20399122

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.03.2007 at 07:06PM PST, ID: 20400648

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.03.2007 at 07:32PM PST, ID: 20400744

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.03.2007 at 07:34PM PST, ID: 20400755

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.04.2007 at 05:38AM PST, ID: 20402594

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.04.2007 at 01:02PM PST, ID: 20406436

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628