📄 node178.html
字号:
<html><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><!--Converted with jLaTeX2HTML 2002 (1.62) JA patch-1.4patched version by: Kenshi Muto, Debian Project.LaTeX2HTML 2002 (1.62),original version by: Nikos Drakos, CBLU, University of Leeds* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan* with significant contributions from: Jens Lippmann, Marek Rouchal, Martin Wilck and others --><HTML><HEAD><TITLE>16.1.4.2 Preamble based TDMA protocol</TITLE><META NAME="description" CONTENT="16.1.4.2 Preamble based TDMA protocol"><META NAME="keywords" CONTENT="everything"><META NAME="resource-type" CONTENT="document"><META NAME="distribution" CONTENT="global"><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"><META NAME="Generator" CONTENT="jLaTeX2HTML v2002 JA patch-1.4"><META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css"><LINK REL="STYLESHEET" HREF="everything.css" tppabs="http://www.isi.edu/nsnam/ns/doc/everything.css"><LINK REL="previous" HREF="node177.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node177.html"><LINK REL="up" HREF="node176.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node176.html"><LINK REL="next" HREF="node179.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node179.html"></HEAD><BODY ><!--Navigation Panel--><A NAME="tex2html4028" HREF="node179.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node179.html"><IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="file:/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html4022" HREF="node176.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node176.html"><IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="file:/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html4018" HREF="node177.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node177.html"><IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="file:/usr/share/latex2html/icons/prev.png"></A> <A NAME="tex2html4024" HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html"><IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="file:/usr/share/latex2html/icons/contents.png"></A> <A NAME="tex2html4026" HREF="node590.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node590.html"><IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="file:/usr/share/latex2html/icons/index.png"></A> <BR><B> Next:</B> <A NAME="tex2html4029" HREF="node179.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node179.html">16.1.5 Different types of</A><B> Up:</B> <A NAME="tex2html4023" HREF="node176.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node176.html">16.1.4 Different MAC layer</A><B> Previous:</B> <A NAME="tex2html4019" HREF="node177.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node177.html">16.1.4.1 802.11 MAC protocol</A>   <B> <A NAME="tex2html4025" HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html">Contents</A></B>   <B> <A NAME="tex2html4027" HREF="node590.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node590.html">Index</A></B> <BR><BR><!--End of Navigation Panel--><H3><A NAME="SECTION031314200000000000000"></A><A NAME="sec:tdma"></A><BR>16.1.4.2 Preamble based TDMA protocol</H3><B>Note:</B> this works is still at a preliminary stage, some practical issues, such as: contention in the preamble phase and time slot reuse in a multi-hop environment are not considered.<P>Unlike contention based MAC protocol (802.11, for example), a TDMA MAC protocol allocates different time slots for nodes to send and receive packets.The superset of these time slots is called a TDMA frame.<P>Currently, supports a single hop, preamble-based TDMA MAC protocol.With this protocl, a TDMA frame contains preamble besides the data transmission slots.Within the preamble, every node has a dedicated subslot and uses it to broadcast the destination node id of outgoing packet.Other nodes listen in the preamble and record the time slots to receive packets.Like other common TDMA protocols (GSM, for example), each node has a data transmission slot to send packets.<P>To avoid unnecessary power consumption, each node turns its radio on and off explicitly by invoking node API <TT>set_node_sleep()</TT>.The radio only needs to be on when: in the pramble phase (takes one slot time) and there is a packet to send and receive.<P>The preamble is implemented as a central data structure <TT>tdma_preamble_</TT>, which is accessible to all the nodes.At the beginning of a frame, each node writes the destination node id into its subslot in preamble if it has a packet to send.Following preamble phase, each node sends packet in its data transmission slot and checks the preamble to determine if there is a packet to receive in other slots.<P>The following parameters are user configurable: the wireless link bandwidth <TT>bandwith_</TT>, the slot length <TT>packet_slot_len_</TT>, and the number of nodes <TT>max_node_num_</TT>.See mac-tdma.{cc,h} for implementation details.<P><HR><!--Navigation Panel--><A NAME="tex2html4028" HREF="node179.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node179.html"><IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="file:/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html4022" HREF="node176.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node176.html"><IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="file:/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html4018" HREF="node177.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node177.html"><IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="file:/usr/share/latex2html/icons/prev.png"></A> <A NAME="tex2html4024" HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html"><IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="file:/usr/share/latex2html/icons/contents.png"></A> <A NAME="tex2html4026" HREF="node590.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node590.html"><IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="file:/usr/share/latex2html/icons/index.png"></A> <BR><B> Next:</B> <A NAME="tex2html4029" HREF="node179.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node179.html">16.1.5 Different types of</A><B> Up:</B> <A NAME="tex2html4023" HREF="node176.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node176.html">16.1.4 Different MAC layer</A><B> Previous:</B> <A NAME="tex2html4019" HREF="node177.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node177.html">16.1.4.1 802.11 MAC protocol</A>   <B> <A NAME="tex2html4025" HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html">Contents</A></B>   <B> <A NAME="tex2html4027" HREF="node590.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node590.html">Index</A></B> <!--End of Navigation Panel--><ADDRESS>2003-09-23</ADDRESS></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -