





















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






















Note: Fields in Green are Encrypted
Note: Fields in Green are Encrypted
1. Route Discovery by SAODV SAODV route Discovery: Source Destination [Shared key of both source and destination will be exchanged during this phase] 2. Establishment of SA Data_Message= ((Sequence Number Counter +AH Information/ESP Information) EKS- priv) EKD-pub: SourceDestination (With First UDP Packet) [AH information: authentication algorithm, shared secret key, key lifetime] [ESP information: encryption algorithm, shared secret key, key lifetime] 3.Data Transmission IF (AH implemented packet) Packet with AH header: Source to Destination and Destination to Source ELSE IF (ESP implemented packet) Packet with AH header: Source to Destination and Destination to Source 4. ACK_PKT IF (Check (Authentication)= = true)) Send ACK_PKT ELSE IF ((De encapsulate (Packet) & & check (Authentication)) = = true) Send ACK_PKT ELSE Drop PKT 5. Receive ACK_PKT IF sender Receive (ACK_PCK) = = true) Send next packet Else Retransmit same data packet 6. END
Static class TcpClass : public TclClass { public: TcpClass( ) : TclClass(“ Agent/Echo ”) {} TclObject* create(int, const charconst) { return (new EchoAgent ()); } } class echo;
TclObject
Agent
Agent/Echo
TclObject
Agent
EchoAgent
NsObject (^) ??
C++ mirroring OTcl