Skip to contentSkip to conversation

Network activity after route changes

DISCUSSION Oleg Kutkov 3 participants 5 messages Apr 17, 2010 – Apr 19, 2010

lore
Share & tools
lore
#0 lore raw

Hello.
I try to send and receive ethernet packets on very low level in my kernel module.
When i change routin table (via route command) my network is freeze for ~15 seconds and my application can't send and receive any packets. Is it normal or bug somewhere in my application?
Can i change this behavior of route system, maybe change some timeouts, or immediately flush route (rt_flush() ?) table?

Thanks.

#1 lore raw

Hello.
I try to send and receive ethernet packets on very low level in my kernel module.
When i change (add or delete entry) routin table (via route command) my network is freeze for ~15 seconds and my application can't send and receive any packets. Is it normal or bug somewhere in my application?
Can i change this behavior of route system? Maybe change some timeouts, or immediately flush route (rt_flush() ?) table?

Thanks.

#2 lore raw
Quoted 11 lines · Oleg Kutkov

Hello.
I try to send and receive ethernet packets on very low level in my kernel module.
When i change (add or delete entry) routin table (via route command) my network is freeze for ~15 seconds and my application can't send and receive any packets.
Is it normal or bug somewhere in my application?
Can i change this behavior of route system? Maybe change some timeouts, or immediately flush route (rt_flush() ?) table?

Thanks.

I guess its a bug in your module, since user apps dont experience this interesting phenomena :)

#3 lore raw
In reply to Oleg Kutkov
Quoted 5 lines · Oleg Kutkov

Hello.
I try to send and receive ethernet packets on very low level in my kernel module.
When i change (add or delete entry) routin table (via route command) my network is freeze for ~15 seconds and my application can't send and receive any packets. Is it normal or bug somewhere in my application?
Can i change this behavior of route system? Maybe change some timeouts, or immediately flush route (rt_flush() ?) table?

Depending on your routing configuration the change may be causing the problem. Have you tried flushing the route cache (as opposed to the main routing table)?

# ip route flush table cache

matt

#4 lore raw

Thank, but this does not help me. Maybe it really my bug.

2010/4/18 Matt <[email protected]>:

Quoted 20 lines · Oleg Kutkov
Quoted 10 lines

Hello.
I try to send and receive ethernet packets on very low level in my kernel module.
When i change (add or delete entry) routin table (via route command) my network is freeze for ~15 seconds and my application can't send and receive any packets.
Is it normal or bug somewhere in my application?
Can i change this behavior of route system? Maybe change some timeouts, or immediately flush route (rt_flush() ?) table?

Depending on your routing configuration the change may be causing the problem. Have you tried flushing the route cache (as opposed to the main routing table)?

# ip route flush table cache

matt