The problem is: Consider a traffic sniffer that observes packet arrivals into a link. Packets arrive according to a Poisson process with rate $\lambda$. If the sniffer sees no packet over a period of time $T$, then it stops working. Suppose that at time $t=0$, the sniffer starts.
$a)$ On average, how much time will elapse till the sniffer stops working? Hint: Condition on the arrival time of the first packet.
$b)$ On average, how many packets will the sniffer observe before it stops working? Note: this question can be solved independently from part (a).
To be honest I'm not sure how to start. I understand conditional probability, but I'm very shaky with what a Poisson process even is. I don't have enough information in this problem to get a numerical solution right? If someone could point me in the right direction to get started I'd really appreciate it.
A start for both questions:
(a) (Using the given hint)
Let random variable $X_i$ be the arrival time of the $i^{th}$ packet, for $i=1,2,\ldots,\;$ and let $Y$ be the time until the sniffer stops working. Then, conditioning on the first arrival time,
\begin{align} E(Y) &= P(X_1\gt T)E(Y\mid X_1\gt T) + \int_{u=0}^{T} f_1(u) E(Y\mid X_1=u)\; du \\ &\qquad\text{where $f_1$ is the pdf of $X_1$, which has distribution $Exp(\lambda)$} \\ &= Te^{-\lambda T} + \int_{u=0}^{T} \lambda e^{-\lambda T} (E(Y)+u)\; du \\ &\qquad\text{since if $X_1\gt T$ then we have $T$ time until the sniffer stops and } \\ &\qquad\text{if $X_1=u\lt T$ then we have $u$ time elapsed and then it's like we are} \\ &\qquad\text{starting over again giving us $E(Y)+u$} \\ &= \cdots \end{align}
(b)
Let random variable $Z$ be the number of packets until the sniffer stops working. Then,
\begin{align} E(Z) &= P(X_1\gt T)E(Z\mid X_1\gt T) + P(X_1\lt T)E(Z\mid X_1\lt T) \\ &= \cdots \end{align}
You won't get numerical solutions to either part. Both answers will be in terms of $T$ and $\lambda$. To get there you shouldn't need to know much more about Poisson processes - it's mostly just working with an exponential distribution.