tcp - What is the best way to implement the x.224 OSI COTS protocol on Linux -


i need make old linux box running 2.6.12.1 kernel communicate older computer using:

iso 8602 datagram (connectionless service) 1987 12 15 (1st edition)
iso 8073 class 4 (connection oriented service)
these using "inactive network layer" subset. (i pretty sure means not have worry routing. 2 end points hitting each other mac addresses.)

i have kernel module implements connectionless part. in order connection oriented service operational, best approach? have been taking approach of adding in struct proto_ops .connect, .accept, .listen functions existing connectionless driver referring tcp implementation.

maybe there better approach? spending lot of time trying decide tcp code doing , deciding if relevant needs. example, nagle algorithm isn't needed because don't have small bits of data being transmitted. in addition, there lot of error recovery , flow control stuff don't need because know data 2 endpoints transmitting , how transmit it. plan implement first whatever simplistic (if any) packet retransmission, sequencing, etc.. point wireshark looks similar wireshark capture have live system. try mine against real thing , add in whatever error recovery/retransmit stuff seems necessary. in other words, pain in rear trying determine guts of tcp/stream implementation want copy vs error correction/flow control stuff might never need.

i found \net\core\stream.c says:
* generic stream handling routines. these generic most
* protocols. ip. tonight 8-).
* used because tcp, llc (others too) layer have mostly
* identical sendmsg() , recvmsg() code.
* (will) share here.

this suggested me maybe there might simpler stream thingy can start from. can recommend more basic streams driver should start instead of tcp?

is there example code provides basic stream implementation?

i made user level library implement protocol providing own versions of open/read/write/select etc. if else cares, can find me @ http://pnwsoft.com

do not attempt use openss7. total waste of time.


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -