top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

If I have to write a protocol stack from scratch, what will be the approach towards the design?

+1 vote
309 views
If I have to write a protocol stack from scratch, what will be the approach towards the design?
posted Nov 30, 2015 by Kali Mishra

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button

Similar Questions
0 votes

I am working on a system where I need to create a protocol to help communicate data back and forth. Im curious how you guys have tackled this in the past:
My protocol packet looks something like this:

enum class Command
 {
 Authorize, //used to authorize a user
 Version, //used to get the version of the client.
 VersionR //used as the rversion reply.
 };
 template 
 class Packet
 {
 Command cmd;
 int flag;
 int length;
 P* payload;;
 };

Now for all of the data, the P is the payload. So for example:

 class Authorization
 {
 const char* name;
 const char* password;
 };

The length of the payload can be retrieved and set as the length in the packet class. Is this something how people have implemented them in the past?

+1 vote

Several messages are exchanged between UE and network nodes (eNodeB and MME) during attach procedure. I want to know in which all stages timers are used to guard various sub procedures of LTE attach procedure.

...