A stripline model is successfully applied to an ani;sis of the surface impedance of a granular superconductor. When the core of the stripline is a resistively shunted Josephson junction, the surface resistance increases with the square of the frequency. A dc magnetic field increases the Josephson inductivity, leading to increased surface resistance and flux penetration. Critical flux penetration of the granular surfaces bordering the junction leads to critical behavior of the stripline. At high power level, a dc magnetic field similarly increases the Josephson inductivity with further increase in surface impedance.