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

📄 pim_testsuite.tex

📁 xorp源码hg
💻 TEX
📖 第 1 页 / 共 5 页
字号:
BSR              Pri LocalAddress     Pri State            Timeout SZTimeout0.0.0.0            0 0.0.0.0            0 Init                  -1        -1\end{verbatim}  In addition, the neighbor state information in the RUT should be empty:\begin{verbatim}Xorp> show pim neighbors Interface        DRpriority NeighborAddr     V Mode    Holdtime Timeout\end{verbatim}  \item After the interoperability option in the RUT is enabled, the next  Bootstrap message from TR1 should be accepted by the RUT. As a result, the  Bootstrap state in the RUT should show that TR1 is the BSR:\begin{verbatim}Xorp> show pim bootstrapActive zones:BSR              Pri LocalAddress     Pri State            Timeout SZTimeout10.2.0.1           1 0.0.0.0            0 AcceptPreferred       74      1444\end{verbatim}  Eventually, the neighbor state information in the RUT may show TR1. If this  is the case, the state information in the RUT for TR1 should be refreshed by  each Bootstrap originated by TR1:\begin{verbatim}Xorp> show pim neighbors Interface        DRpriority NeighborAddr     V Mode    Holdtime Timeoutdc2                    none 10.2.0.1         2 Sparse       210     164\end{verbatim}  \item After Rx1 is started, TR1 should send PIM Join message for group  224.0.1.20 on LAN2 toward the RP (the RUT).  \item After S1 is started, the multicast data packets originated by it  should be forwarded by the RUT and TR1 to Rx1.\end{itemize}\para{Possible Problems:}None.%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\chapter{PIM Register Messages}\para{Scope:}Test sending and receiving of PIM Register messages.\para{Overview:}The Designated Router (DR) on a LAN or point-to-point link encapsulatesmulticast packets from local sources to the RP for the relevant groupunless it recently received a Register-Stop message for that (S,G) or(*,G) from the RP.  When the DR receives a Register-Stop message fromthe RP, it starts a Register-Stop Timer to maintain this state.  Justbefore the Register-Stop Timer expires, the DR sends a Null-Registermessage to the RP to allow the RP to refresh the Register-Stopinformation at the DR.  If the Register-Stop Timer actually expires, theDR will resume encapsulating packets from the source to the RP.%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\newpage\section{Register Messages Transmission}\para{Purpose:}Verify that a DR properly sends Register messages.\para{References:}\begin{itemize}  \item draft-ietf-pim-sm-v2-new-05 -- Section 4.4.1\end{itemize}\para{Discussion:}The DR encapsulates multicast packets from local sources into PIM Registermessages, and unicasts them to the RP for the relevant multicast group.\para{Test Setup:}Connect the RUT, TR1, TR2, S1, and Rx1 according toFigure~\ref{fig:pim_test_3_1_register_messages_transmission}.Configure the RUT, TR1, and TR2 such that TR1 is the RP for group 224.0.1.20,and such that it never attempts to switch to the shortest-path tree byoriginating an (S,G) SPT Join message toward a source.Enable PIM-SM on the RUT, TR1, and TR2.Configure Rx1 and S1 such that Rx1 is a receiver, and S1 is a sender,both for group 224.0.1.20.\begin{figure}[htbp]  \begin{center}    \includegraphics[scale=0.8]{figs/pim_test_3_1_register_messages_transmission}    \caption{Register messages transmission test setup}    \label{fig:pim_test_3_1_register_messages_transmission}  \end{center}\end{figure}\para{Procedure:}\subpara{Part A: Transmission of Register messages.}\begin{enumerate}  \item Configure the RUT such that it is the DR on LAN3.  \item Start the RUT, TR1, and TR2. If necessary, wait until the RP-set in        the RUT, TR1, and TR1 converges.  \item Start Rx1.  \item Observe the messages transmitted by the RUT and TR2 on LAN2.  \item Start S1.\end{enumerate}\subpara{Part B: Non-transmission of Register messages.}The procedure is same as in Part A, except that TR1 instead of the RUT is theDR on LAN3.\subpara{Part C: Switching between transmission and non-transmission ofRegister messages.}\begin{enumerate}  \item Configure the RUT such that it is the DR on LAN3.  \item Start the RUT, TR1, and TR2. If necessary, wait until the RP-set in        the RUT, TR1, and TR1 converges.  \item Start Rx1.  \item Observe the messages transmitted by the RUT and TR2 on LAN2.  \item Start S1.  \item Reconfigure the RUT (without stopping it), such that TR2 is the DR on  LAN3.  \item Reconfigure the RUT (without stopping it), such that it again is the  DR on LAN3.\end{enumerate}\subpara{Part D: Handling of Register-Stop(S,G) messages at the DR.}\begin{enumerate}  \item Start the RUT and TR1 (note that in this part we do not use TR2). If  necessary, wait until the RP-set in the RUT and TR1 converges.  \item Start Rx1.  \item Observe the messages transmitted by the RUT on LAN2.  \item Start S1.  \item Stop Rx1.  \item Start Rx1.\end{enumerate}\para{Observable Results:}\subpara{Part A:}After S1 is started, the RUT should start encapsulatingthe data packets transmitted by S1 in PIM Register messages, and unicast themto the RP (TR1, that should decapsulate and forward them to Rx1).\subpara{Part B:}After S1 is started, the RUT should NOT encapsulate thedata packets transmitted by S1 in PIM Register messages. Instead, TR2 shouldencapsulate and unicast them to the RP (TR1, that should decapsulate andforward them to Rx1).\subpara{Part C:}\begin{itemize}  \item After S1 is started, the RUT should start  encapsulating the data packets transmitted by S1 in PIM Register messages,  and unicast them to the RP (TR1, that should decapsulate and forward them to  Rx1).  \item After the RUT is reconfigured such that it is not the DR on LAN3, it  should immediately stop transmitting PIM Register messages to the RP.  Instead, the new DR (TR2) should start transmitting them.  \item After the RUT is reconfigured such that it is again the DR on LAN3, it  should immediately start transmitting PIM Register messages to the RP.  The previous DR (TR2) should stop transmitting them.\end{itemize}\subpara{Part D:}\begin{itemize}  \item After S1 is started, the RUT should start  encapsulating the data packets transmitted by S1 in PIM Register messages,  and unicast them to the RP (TR1, that should decapsulate and forward them to  Rx1).  \item After Rx1 is stopped, TR1 should send PIM Register-Stop message to  the RUT for each PIM Register message it receives from the RUT (including  the PIM Null-Register messages). After receiving the first PIM Register-Stop  message, the RUT should stop sending PIM Register messages to the RP (TR1)  with the encapsulated data packets from S1.  However, from time to time the RUT should be sending PIM Null-Register  messages to the RP (TR1) with time interval between two messages a random  value chosen uniformly from the interval \\  (0.5 * \verb=Register_Suppression_Time=,  1.5 * \verb=Register_Suppression_Time=) \\  - \verb=Register_Probe_Time= \\  = ( (0.5 * {\PimsmRegisterSuppressionTime}, 1.5 *  {\PimsmRegisterSuppressionTime}) - {\PimsmRegisterProbeTime} ). \\  To each PIM Null-Register message, the RP (TR1) should respond with a PIM  Register-Stop message, therefore the RUT should continue not to encapsulate  the data packets from S1.  \item After Rx1 is started again, the RP (TR1) should send an SPT (S,G) Join  message on LAN2 toward the source. As a result, the data packets from S1  should be forwarded to the RP (TR1) natively instead of encapsulating them  in PIM Register messages.\end{itemize}\para{Possible Problems:}In Part C, if the sender's rate is relatively high, there could be few packetlosses at Rx1 when the DR on LAN3 changes.%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\newpage\section{Register Tunnel Interface}\para{Purpose:}Verify that a Register tunnel virtual interface is properly created, removed,or changed.\para{References:}\begin{itemize}  \item draft-ietf-pim-sm-v2-new-05 -- Section 4.4.1\end{itemize}\para{Discussion:}When the DR has to encapsulate the data packets from local sources intoPIM Register messages, and unicasts them to the RP for the relevant multicastgroup, it creates a Register tunnel virtual interface with its encapsulationtarget being the RP. If the DR should stop encapsulating the data packets, itremoves the Register tunnel virtual interface. If the RP for the multicastgroup changes, the DR should update the Register tunnel virtual interface.\para{Test Setup:}Connect the RUT, TR1, TR2, S1, and Rx1 according toFigure~\ref{fig:pim_test_3_2_register_tunnel_interface}.Enable PIM-SM on the RUT, TR1,and TR2. In all the tests, configure the RP such that it never attempts toswitch to the shortest-path tree by originating an (S,G) SPT Join messagetoward a source. Enable PIM-SM on the RUT, TR1, and TR2.  Configure Rx1 and S1such that Rx1 is a receiver, and S1 is a sender, both for group 224.0.1.20.\begin{figure}[htbp]  \begin{center}    \includegraphics[scale=0.8]{figs/pim_test_3_2_register_tunnel_interface}    \caption{Register tunnel interface test setup}    \label{fig:pim_test_3_2_register_tunnel_interface}  \end{center}\end{figure}\para{Procedure:}\subpara{Part A: Add and remove Register tunnel.}\begin{enumerate}  \item Configure TR1 such that it is the RP.  \item Start the RUT, TR1, and TR2. If necessary, wait until the RP-set in  the RUT, TR1, and TR2 converges.  \item Start Rx1.  \item Observe the Register state machine at the RUT, and the messages  transmitted by the RUT on LAN3.  \item Start S1.  \item Stop Rx1.  \item Stop S1.\end{enumerate}\subpara{Part B: Update Register tunnel.}\begin{enumerate}  \item Configure TR1 such that it is the RP.  \item Start the RUT, TR1, and TR2. If necessary, wait until the RP-set in  the RUT, TR1, and TR2 converges.  \item Start Rx1.  \item Observe the Register state machine at the RUT, and the messages  transmitted by the RUT on LAN3.  \item Start S1.  \item Reconfigure TR1 and TR2 such that TR2 becomes the RP.\end{enumerate}\para{Observable Results:}\subpara{Part A:}\begin{itemize}  \item After Rx1 is started, the Register state machine in the RUT for source  S1 and group 224.0.1.20 should be in No Info state:\begin{verbatim}Xorp> show pim join 224.0.1.20Group           Source          RP              Flags\end{verbatim}  Further, no PIM Register messages should be transmitted by the RUT.  \item After S1 is started, the Register state machine in the RUT for source  S1 and group 224.0.1.20 should be in Join state, and the Register tunnel  virtual interface should be created between the RUT and the RP (TR1):\begin{verbatim}Xorp> show pim join 224.0.1.20Group           Source          RP              Flags224.0.1.20      10.4.0.2        10.2.0.1        SG SPT DirectlyConnectedS     Upstream interface (S):    dc0    Upstream interface (RP):   dc2    Upstream MRIB next hop (RP): 10.3.0.1    Upstream MRIB next hop (S):  UNKNOWN    Upstream RPF'(S,G):        UNKNOWN    Upstream state:            Joined     Register state:            RegisterJoin RegisterCouldRegister     Join timer:                13    Local receiver include WC: .............    Local receiver include SG: .............    Local receiver exclude SG: .............    Joins RP:                  .............    Joins WC:                  .............    Joins SG:                  ............O    Join state:                ............O    Prune state:               .............    Prune pending state:       .............    I am assert winner state:  .............    I am assert loser state:   .............    Assert winner WC:          .............    Assert winner SG:          .............    Assert lost WC:            .............    Assert lost SG:            .............    Assert lost SG_RPT:        .............    Assert tracking SG:        ....O.......O    Could assert WC:           .............    Could assert SG:           ............O    I am DR:                   ....O.O......    Immediate olist RP:        .............    Immediate olist WC:        .............    Immediate olist SG:        ............O    Inherited olist SG:        ............O    Inherited olist SG_RPT:    .............    PIM include WC:            .............    PIM include SG:            .............    PIM exclude SG:        

⌨️ 快捷键说明

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