[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ns] Interface between TCP/IP and MAC



Hi NS-users.
 
Thank you in advance.
 
My simulation environment is as follows:
 
Web Server Si provide web-site information to Web Client Ri.
A BaseStation is inbetween.
 
S1 ------------------                        ---------------- R1
              :        \                     /
Si --------------------- BaseStation ------------------ Ri
              :        /                     \
Sn ------------------                        ---------------- Rn
 
Si = Web Server, Ri = Web Client, i=1,2,...,n
 
Fig. 1 System Structure.
 
Focusing in one connection
 
             Si                                       BaseStation                                 Ri
-------------------------------------                                                       -------------------------------------
 application (web traffic)                                                             application (web traffic)
-------------------------------------                                                       ------------------------------------- 
       TCP/IP (TCPReno)                                                                TCP/IP (TCPSink)
-------------------------------------             ------------------------------            -------------------------------------    
                                                     MAC, Link Layer                     MAC, Link Layer
                                                  -------------------------------           ---------------------                    
                                                                |                                             |
                                                                --------------->---------->-----------------
Fig. 2 Layer diagram for single connection
 
 
Our simulation is downlink simulation only.
 
We have our own MAC, Link Layer protocol which means we have done
MAC, Link, physical Layer implementation with c code without using NS.
 
In addition we have implemented Fig. 1 without Under-TCP/IP-layer (MAC, Link, phy layer)
by using NS.
 
Therefore we should include MAC, Link, Phy implementation with c code into
our existing implementation without Under-TCP/IP-layer (MAC, Link, phy layer)
by using NS.
 
Here are two questions.
 
1. When we include MAC, Link, Phy layers with c code into our existing implementaion
in NS, can we still use MAC, Link, Phy with c code?
 
2. How to connect MAC with TCP/IP - Interface between TCP/IP and MAC.
If you can find an example regarding the interface, could you provide me with
some references?
 
Thank you again.
 
Sincerely Yours,
Tai Suk Kim