Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-07-2008, 03:59 PM
Member
 
Join Date: Aug 2008
Posts: 27
Rep Power: 0
islamfunny is on a distinguished road
Default Reading or changing sequenc number in TCP packets
I don't know wether this is feasible,But you're my last chance to figure out something else.Can i read the sequence number that comes inside the TCP header in the incomming packets?This sound illogical but since there is a method for getting the IP of the sender(And that IP exits in the IP header Network layer i),then the sequence number (TCP header inside the Transport layer)must exits in the packet.Can i read it?

-And an even more illogical question? can i change that sequence number or the acknowlege number to form a new packet ? Its like converting a packet to and from a packet object to a string of bits ?

I know excatly where the sequence and acknowledge numbers are located (after how many bits) inside the TCP header?
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 09-08-2008, 11:57 PM
fishtoprecords's Avatar
Senior Member
 
Join Date: Jun 2008
Posts: 571
Rep Power: 2
fishtoprecords is on a distinguished road
Default
You can write your own protocol if you don't like TCP/IP. That is what you would be doing if you changed the use of the sequence field that are internal to TCP/IP packets.

I can't imagine why you would want to do this. Its much easier to just use TCP/IP, it works and has been debugged over decades.
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 09-10-2008, 11:32 PM
Member
 
Join Date: Aug 2008
Posts: 27
Rep Power: 0
islamfunny is on a distinguished road
Default
first off I'm wanna appply this to javame application and jpcap have some native code i dunno how to use it on a cell phone.

I was thinking if i can change the acknowledge number i can order the server i'm connected to to send the data from a specific byte no sequentially.

This way say if I'm downloading a file and i quit for some reasone io can later on calculate the size of what I;ve downloded and do the following :

-Establish the connection with the server
-Receive the first packet.
-Drop this packet and then form another packet with the same info as if it were formed automatically except replaciong the acknolwedge number with the size of my buffered data + 1 .

I know there will be more to it than this row dicription (in case iit is feasible) but i wannna know wether this is feasible.

I also know that some protocols support requesting files from a specific byte(like HTTP) but i wanna do it inside the network layer not the application layer
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 09-11-2008, 12:00 AM
Norm's Avatar
Senior Member
 
Join Date: Jun 2008
Location: SouthWest Missouri, USA
Posts: 2,229
Rep Power: 4
Norm is on a distinguished road
Default
Does the network layer have access to anything other than what the application layer gives it?
Would look like a way to access anything.
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 09-23-2008, 02:44 PM
Member
 
Join Date: Aug 2008
Posts: 12
Rep Power: 0
satu is on a distinguished road
Default
if you are wanting to do this just use your own Protocol Implementation. use java's UDP style and make it like TCP, after this you have full control over packets and all.
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
changing current directory flaca New To Java 5 08-16-2008 02:46 PM
Regarding UDP Datagram packets Raghavendra Networking 1 06-11-2008 12:12 AM
Encrypting packets bugger Networking 2 02-04-2008 11:24 AM
Reading Binary File and Changing data janakiram.attuluri Advanced Java 1 12-21-2007 11:10 AM
How to capture IP packets Hasan Networking 1 05-31-2007 06:44 PM


All times are GMT +2. The time now is 03:39 PM.



VBulletin, Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org