node24.html
来自「用C++编写的GPRS协议栈源代码」· HTML 代码 · 共 97 行
HTML
97 行
<!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>Packet received at an BS</TITLE><META NAME="description" CONTENT="Packet received at an BS"><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="tex2html366" HREF="node25.html"><IMG WIDTH=37 HEIGHT=24 ALIGN=BOTTOM ALT="next" SRC="http://cbl.leeds.ac.uk/nikos/figs/next_motif.gif"></A> <A NAME="tex2html364" 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="tex2html358" HREF="node23.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="tex2html367" HREF="node25.html">Accepting a packet from </A><B>Up:</B> <A NAME="tex2html365" HREF="node22.html">Psuedocode for Packet Processing </A><B> Previous:</B> <A NAME="tex2html359" HREF="node23.html">Packet at MS MAC</A><BR> <P><H2><A NAME="SECTION00132000000000000000">Packet received at an BS</A></H2><P><PRE><TT> <B>Method:</B> bs_recv()<P><B>Comment:</B> It can be a packet from the IFQ to be sent to an MS<P> or a packet from an MS at the Air Interface.<P> The latter case occurs only at the start of an up-slot.<P><B>Action:</B> Check direction in packet header<P> If packet direction == UP<P> Check mac_destination<P> If mac_destination == (self or Broadcast)<P> Extract the frequency channel the packet was sent on from its header . Store packet in rxQ[freq][upslot]. (see Note)<P> Switch the radio On.<P> Pass rxQ_[freq][upslot] to rx_from_phy().<P> Else ignore packet.<P> Else if packet direction == DOWN<P> If packet is a broadcast<P> Stamp it to be transmitted in downslot0, frequency0.<P> Else<P> Look up slot reserved for this destination from thevlr_downtable[][]<P> If no slot reserved for destination<P> Mark packet as waiting.<P> Call slot_allot()<P> Call send_resource_reply()<P> Else<P> If <EM>resource_reply</EM> not yet received by MS<P> Mark packet as waiting.<P> Stamp frequency channel onto packet header<P> Store packet in txQ[freq][downslot]. (see Note)<P> Pass txQ[freq][downslot] to rx_from_ll()<P></TT></PRE><P>Note:<P>The situation here is similar to that at the MS. There is also theadded complexity that the BS may have to transmit/receive packets meant for/fromdifferent MS at a time; and that it can transmit/receive on manyfrequencies at a time. We sort and store all packets to betransmitted, and those received, in a two-dimensional array, in orderto keep track of all the packets. Again, the entries are cleared afterthe packets have been fully processed.<P><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 + -
显示快捷键?