⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 node2.html

📁 用C++编写的GPRS协议栈源代码
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><!--Converted with LaTeX2HTML 96.1 (Feb 5, 1996) by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds --><HTML><HEAD><TITLE>Configuration - How to use the LL/RLC/MAC</TITLE><META NAME="description" CONTENT="Configuration - How to use the LL/RLC/MAC"><META NAME="keywords" CONTENT="gprs"><META NAME="resource-type" CONTENT="document"><META NAME="distribution" CONTENT="global"><LINK REL=STYLESHEET HREF="gprs.css"></HEAD><BODY LANG="EN"> <A NAME="tex2html118" HREF="node3.html"><IMG WIDTH=37 HEIGHT=24 ALIGN=BOTTOM ALT="next" SRC="http://cbl.leeds.ac.uk/nikos/figs/next_motif.gif"></A> <A NAME="tex2html116" HREF="node1.html"><IMG WIDTH=26 HEIGHT=24 ALIGN=BOTTOM ALT="up" SRC="http://cbl.leeds.ac.uk/nikos/figs/up_motif.gif"></A> <A NAME="tex2html110" HREF="node1.html"><IMG WIDTH=63 HEIGHT=24 ALIGN=BOTTOM ALT="previous" SRC="http://cbl.leeds.ac.uk/nikos/figs/previous_motif.gif"></A>   <BR><B> Next:</B> <A NAME="tex2html119" HREF="node3.html">MAC Implementation Details</A><B>Up:</B> <A NAME="tex2html117" HREF="node1.html">The General Packet Radio </A><B> Previous:</B> <A NAME="tex2html111" HREF="node1.html">The General Packet Radio </A><BR> <P><H1><A NAME="SECTION00110000000000000000">Configuration - How to use the LL/RLC/MAC</A></H1><P> Configuration for the LL/RLC/MAC is described below. Each can be usedseperately/independantly for any other stack implementation. A GPRS/GSM configuration would require to use all together.Configuration is similar to any wired-cum-wireless example (note - presenceof the BS makes it a wired-cum-wireless scenario).<P><UL><LI> <B>Setting the LL</B>:  Set the LL layer type while configuring the nodes<PRE>        set opt(ll)     LL            ;# Link layer type           :           :        # configure for base-station/mobile nodes           :        $ns_ node-config -llType $opt(ll) \</PRE><LI> <B>Setting the RLC</B>: Introduce an RLC while configuring the nodes.<PRE>         set opt(ll)    RLC          ;# Radio Link Control type           :           :        #configure for base-station node/mobile nodes           :        $ns_ node-config -rlcType $opt(rlc)  \</PRE><LI><B>Setting the Mac</B>: Set the MAC to GPRS.  The Mac requires a non-adhocrouting agent. Set the adhoc routing agent to NOAH.<PRE>         set opt(mac)     Mac/Gprs        set opt(adhoc)  NOAH           :           :        # configure for base-station node/mobile nodes        $ns_ node-config -macType $opt(mac)  \        $ns_ node-config -adhocRouting $opt(adhoc)\</PRE><LI> <B>Configuring the Base Station (BS)</B>: The BS should be configured first ,ie before any other wireless node.  Therefore it will have a herarchicaladdress of the form 0.0.0 or 1.0.0 etc. This is requred by the Macimplementation.<LI> <B>Configuring the Mobile Stations (MS)</B>: The MS are normal  ns-mobile nodeand can be configured to act as  GPRS mobiles or GSM mobiles. The onlydifference being that GPRS mobiles release resources ( ie release the slotreserved for them)  if their IFQ is empty and there is no packet transferfor a while.  The slot can then be alloted to another GPRS mobile ifrequred.  The GPRS mobile can ask for resources again whenever it haspackets to send. GSM mobiles on the other hand, keep resources &quot;forever&quot;.This severly limits the number of GSM mobiles a system can support. Toconfigure the moble node as GPRS or GSM,  for each mobile node set<P><PRE>         Mac/Gprs set gprs_   1 ; # for GPRS; default value=1                   or        Mac/Gprs set gprs_   0 ; # for GSM</PRE></UL><BR> <HR><P><ADDRESS><I>Richa Jain (96D07007) <BR>Tue Jul 24 22:29:53 IST 2001</I></ADDRESS></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -