Non-equilibrium dynamic Monte Carlo (DMC) simulations combined with dual control volume (DCV), denoted as DCV-DMC, were explored for the separation selectivity of a gas mixture of CH4/CO2 gas mixtures in ZIF-8 membrane (thickness of 20 nm) . Data analysis revealed that the parts near membrane surfaces at both ends play a crucial role in determining separation selectivity .