.

How can i build my oen protocol..?

<<

rahulr

Newbie
Newbie

Posts: 12

Joined: Sun Oct 18, 2009 9:28 am

Post Sat Oct 31, 2009 2:08 pm

How can i build my oen protocol..?

I am been working studying on  encryption ciphers and various NIPS and NIDS .
Now , i am wanting to build my own protocol and analyze them in any of the NIPS software or network packet analyzing software like ethereal.
I have no idea on how to proceed further .
i would be glad if u could help me out.
<<

Ketchup

User avatar

Hero Member
Hero Member

Posts: 1021

Joined: Fri Jul 04, 2008 7:44 pm

Location: Philadelphia, PA

Post Sat Oct 31, 2009 2:46 pm

Re: How can i build my oen protocol..?

Well, your first read should probably be about using sockets (winsock on Windows).  A network protocol is an abstract concept.  It is a basically a set of rules and guidelines for the parties communicating to be able to send, receive, and parse data.  Once you grock socket programming, you can move on and incorporate encryption and other technology. 

Usually, when I do socket programming, I like to use simple XML structures for communication.  I realize this adds a bit of overhead, but it makes writing the routines that handle parsing data much easier, since most languages have a built in support for XML. 

Just Google "socket programming" or "winsock programming" and you should get a ton of links to tutorials.
~~~~~~~~~~~~~~
Ketchup
<<

rahulr

Newbie
Newbie

Posts: 12

Joined: Sun Oct 18, 2009 9:28 am

Post Sun Nov 01, 2009 2:07 pm

Re: How can i build my oen protocol..?

Thanks for the info ,
i also wanted to know that which programming language is best for socket programming ?
Should i go for python or use a relatively lower level like C++ or C ?
<<

Ketchup

User avatar

Hero Member
Hero Member

Posts: 1021

Joined: Fri Jul 04, 2008 7:44 pm

Location: Philadelphia, PA

Post Sun Nov 01, 2009 5:22 pm

Re: How can i build my oen protocol..?

I believe many languages offer the ability to work with sockets.  My personal preference is C/C++.  That's just me though.
~~~~~~~~~~~~~~
Ketchup
<<

UNIX

User avatar

Hero Member
Hero Member

Posts: 1244

Joined: Mon Apr 28, 2008 9:20 am

Post Thu Nov 12, 2009 1:11 pm

Re: How can i build my oen protocol..?

Implementing your own protocol shouldn't be hard - you could write a server/ client architecture and design whatever you want. The ends just must know how to interpret the coming packets.
Taking a look at sockets as suggested by Ketchup is certainly a good idea.

In terms of programming language - it really doesn't matter, choose whatever you feel comfortable with.

Return to Programming

Who is online

Users browsing this forum: No registered users and 2 guests

.
Powered by phpBB® Forum Software © phpBB Group.
Designed by ST Software