The paper deals with the optimal filtering problem for random processes in dynamical systems whose mathematical models include stochastic differential equations with a compound Poisson process. The particle method and the maximum cross section method are applied for optimal filtering.