node32.html
来自「用C++编写的GPRS协议栈源代码」· HTML 代码 · 共 73 行
HTML
73 行
<!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>A packet has to be passed to the RLC</TITLE><META NAME="description" CONTENT="A packet has to be passed to the RLC"><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="tex2html446" HREF="node33.html"><IMG WIDTH=37 HEIGHT=24 ALIGN=BOTTOM ALT="next" SRC="http://cbl.leeds.ac.uk/nikos/figs/next_motif.gif"></A> <A NAME="tex2html444" HREF="node22.html"><IMG WIDTH=26 HEIGHT=24 ALIGN=BOTTOM ALT="up" SRC="http://cbl.leeds.ac.uk/nikos/figs/up_motif.gif"></A> <A NAME="tex2html438" HREF="node31.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="tex2html447" HREF="node33.html">Resources have to be </A><B>Up:</B> <A NAME="tex2html445" HREF="node22.html">Psuedocode for Packet Processing </A><B> Previous:</B> <A NAME="tex2html439" HREF="node31.html">Packet receive completed</A><BR> <P><H2><A NAME="SECTION001310000000000000000">A packet has to be passed to the RLC</A></H2><P><PRE><TT> <B>Comment:</B> xxxxxxxxxxxxB<>Method:</B> <TT>fwd_DATA_to_LL()</TT><P><B>Comment:</B> The packet can be either a MAC control packet or data packet<P> It has to be handled accordingly.<P><B>Action:</B> Check MAC type<P> If MAC type == DATA<P> Remove MAC header<P> Increment hop count in the packet's common header<P> Pass it on to the <TT>uptarget</TT>, the RLC in this case<P> If MAC type == Control, check for subtype<P> If MAC sub type == <EM>res_request</EM><P> Allot a slot to the source MS, through <TT>slot_allot()</TT><P> Schedule a <EM>res_reply</EM> to be sent<P> If MAC sub type == <EM>res_reply</EM><P> Stop the <TT>wait timer</TT><P> Obtain the slot and frequency reserved for me from the <EM>res_reply</EM> header<P> Set <TT>tx_chan[slot]=rx_chan[slot] = frequency</TT><P> Unmark the waiting packet at the BS<P> Move the packet buffered at the MS to <TT>pktTx[slot]</TT><P> Pass the <TT>pktTx[slot]</TT> to <TT>rx_from_ll()</TT><P> Unlock the IFQ<P> If MAC sub type == <EM>tx_end</EM><P> Clear the corresponding MS' entry from the <TT>vlr_.down_table</TT>and <TT>vlr_.up_table</TT><P></TT></PRE><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 + =
减小字号Ctrl + -
显示快捷键?