LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-21-2013, 04:56 AM   #1
narender14
LQ Newbie
 
Registered: Feb 2013
Posts: 1

Rep: Reputation: Disabled
IP header record route option


If i specify Record Route option in IP header, it will record the ip address of at most 9 intermediate hops. My question is how this packet with ip Record Route option enabled reaches to the destination host get processed.

I used ICMP ping with record route option enabled and the destination sends a normal ICMP echo reply in which the recorded route is copied back. But if i want to send a UDP or TCP and not ICMP echo request with Record Route option then how the destination will send the recorded route back to source?
 
Old 02-21-2013, 11:08 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
it doesn't send it back, there's nothing else happening other than the intermediate routers adding their details to the packet as it passes.
 
1 members found this post helpful.
Old 08-14-2013, 06:07 PM   #3
blip
LQ Newbie
 
Registered: Aug 2013
Posts: 17

Rep: Reputation: Disabled
It is possible to have the packet sent back by setting the TTL value (Time To Live as number of router hops) to an appropriately low value. In this case, the reply is an ICMP Time Exceeded message with a code indicating that the TTL expired in transit. Your original packet, including IP header and options (Record Route), will be encapsulated in this ICMP message.

In practice however, I found that TCP SYNs with the Record Route option are often silently dropped unlike ICMP echo requests. When combining all three (ICMP Echo, low TTL, and Record Route), I was able to detect routers that did not decrement the TTL and routers that forwarded the Record Route option unaltered.
 
  


Reply

Tags
ip, networking



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using the option field in IP header guam Programming 5 08-25-2011 04:52 AM
gettin an error::: Invalid record in the preferences file, no Package header adamf4i Ubuntu 7 08-10-2006 01:43 PM
Invalid record in the preferences file, no Package header adamf4i Linux - Newbie 5 08-08-2006 01:09 PM
Record files to DB (with option) LinxNew Linux - Software 0 07-14-2006 04:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration