Forum     

Go Back   Digit Technology Discussion Forum > Portables, Peripherals and Electronics > QnA (read only)
Register FAQ Calendar Mark Forums Read

QnA (read only) Mods please help transfer the contents of this forum to proper sections. :)


 
 
LinkBack Thread Tools Search this Thread Display Modes
Old 12-11-2006, 12:43 AM   #1 (permalink)
Apprentice
 
Join Date: May 2005
Posts: 87
Default IP header field


If we are usign a raw socket to access IP layer directly from the application layer bypassing the transport layer, I wonder what the PROTOCOL field in the header of an IP packet will contain.

Any experts know this?
__________________
Attack ur enemy when he does not expect u, appear where u r least expected.
akshar is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 12-11-2006, 01:14 AM   #2 (permalink)
String Phreak
 
mediator's Avatar
 
Join Date: Mar 2005
Location: In ur Evil Mind!
Posts: 2,457
Default Re: IP header field

WHat do u mean by raw socket? ANd how can u bypass transport layer? U cannot defy the working of TCP/IP protocol suite!
Even when u use loop back address the packet goes to network layer. So please elaborate clearly so that I can ponder over it!
__________________
Bad Bad server.....No candy for u!
mediator is offline  
Old 13-11-2006, 12:39 AM   #3 (permalink)
Apprentice
 
Join Date: May 2005
Posts: 87
Default Re: IP header field

Forget the concept of raw socket.

have you heard of OSPF a routing protocol? It used IP directly without using either TCP/IP

It is possible to bypass these layers as per my knowledge using UNIX sockets you can even talk to Data link layer directly. I.e. you will have to design your own protocols in that case


But I am happy that there is someone who is interested in deep knowledge of TCP/IP. I hope I ll get a good solution from you.
__________________
Attack ur enemy when he does not expect u, appear where u r least expected.
akshar is offline  
Old 13-11-2006, 01:53 AM   #4 (permalink)
String Phreak
 
mediator's Avatar
 
Join Date: Mar 2005
Location: In ur Evil Mind!
Posts: 2,457
Default Re: IP header field

Yea man I know about Open Shortest path first!

Quote:
Originally Posted by akshar
It used IP directly without using either TCP/IP
Nops. That will rip off the whole TCP/IP protocol suite and foundation of internet! The thing u shud understand is
1. OSPF is a routing protocol. And all routing protocols work at network layer
2. IP is an integral part of TCP/IP. If there was only IP then there wud have been no concept of file downloadings! We have to associate TCP with IP for that!

Quote:
Originally Posted by akshar
It is possible to bypass these layers as per my knowledge using UNIX sockets you can even talk to Data link layer directly. I.e. you will have to design your own protocols in that case
Have u heard of OSI model?? And why only 5 of its layers are used in practical TCP/IP model?? OSI is the complete thing theoretically! But practically its 2 layers aren't of much use practically. Hence we have TCP/IP suite, a practical model. So even if u develop ur own models, u may be combining the tasks of the layers. But theoretically and practically speaking, u can't bypass any of the layers.

If u wanna get a good detail of it then read TCP/IP or Telecommunication networks by Forouzan!
__________________
Bad Bad server.....No candy for u!

Last edited by mediator; 13-11-2006 at 03:04 AM.
mediator is offline  
Old 13-11-2006, 06:31 AM   #5 (permalink)
Mobile Freak
 
reddick's Avatar
 
Join Date: Jul 2004
Location: S.B.S Nagar
Posts: 669
Default Re: IP header field

__________________
Hope 4 d best n Do d right :)
reddick is offline  
Old 17-11-2006, 12:32 AM   #6 (permalink)
Apprentice
 
Join Date: May 2005
Posts: 87
Default Re: IP header field

Ok. Mr. Mediator I am very glad that you paid so much attention to my question. If you have access to the book UNIX network programming by STEVENS Volume 1, read the chapter no. two. Also go through its exercise from where I got my question.

I perfectly understood what you are trying to say and that is what I use to think. But that is not the situation precisely.
__________________
Attack ur enemy when he does not expect u, appear where u r least expected.
akshar is offline  
Old 17-11-2006, 02:54 AM   #7 (permalink)
String Phreak
 
mediator's Avatar
 
Join Date: Mar 2005
Location: In ur Evil Mind!
Posts: 2,457
Default Re: IP header field

Fine, I'll go thru it wheneva I'll have the time. And Mr.Akshar forget the Richard Stevens, and read Forouzan in detail. Its all u need to make ur concepts crystal clear. SO read it and then tell whats the situation precisely.
__________________
Bad Bad server.....No candy for u!
mediator is offline  
Old 19-11-2006, 01:03 AM   #8 (permalink)
Apprentice
 
Join Date: May 2005
Posts: 87
Default Re: IP header field

I have read Forouzan many times and I don't think my concepts are weak. If you doubt that my question was not so clear check Stevens
__________________
Attack ur enemy when he does not expect u, appear where u r least expected.
akshar is offline  
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by topgear
- by abhidev
- by clmlbx
- by Sarath

Advertisement




All times are GMT +5.5. The time now is 05:00 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2