GRE keepalives, again

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Bosko Radivojevic
Date: Sunday, September 14, 2008 - 3:49 pm

Hi all

Ten days ago I asked if anyone has some info regarding Cisco's GRE
keepalive support. Later I've realized that idea behing that feature
is quite simple and nice. As it says on Cisco site:


Using the same idea, I've written small userspace app that do almost
the same - instead of constructing "inner" packet with GRE header, I'm
constructing UDP packet (it is easier to receive it in user space).
After all, that "keepalive" packet looks like - IP|GRE|IP|UDP. When
other end decapsulate it, inner IP|UDP packet should be sent back to
the originating end. So, my primary task to support GRE keepalives on
Linux side in Cisco-to-Linux "network" is accomplished. It's working
fine.

Problem is the other situation, when Cisco is sending keepalives, or
if a GRE tunnel is created between two Linux boxes and my app started
on any of them. Linux is not sending back the "inner" packet (when
"keepalive" packet is decapsulated on the other end, inner IP|UDP or
IP|GRE packet should be sent back to the originating end). Nor Cisco's
generated, nor generated by my app.

At the beginning I taught it has something with rp_filters or
something "adjustable" in /proc/sys/net/... But I was wrong. What
could be a reason for this behavior? I spent some time trying to debug
this, and it looks like inner packet never leave ip_gre code. It looks
like the journey of the packet ends in  ipgre_ecn_decapsulate() at the
very beginning:  if (INET_ECN_is_ce(iph->tos)) {

Does anyone have some hint for me? :)

Thanks!

PS. More info about GRE keepalive -
http://www.cisco.com/en/US/tech/tk827/tk369/technologies_tech_note09186a008048cffc.sht...
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
GRE keepalives, again, Bosko Radivojevic, (Sun Sep 14, 3:49 pm)
Re: GRE keepalives, again, David Miller, (Sun Sep 14, 5:03 pm)
Re: GRE keepalives, again, Bosko Radivojevic, (Mon Sep 15, 4:45 am)
Re: GRE keepalives, again, Bosko Radivojevic, (Mon Sep 15, 5:20 pm)