Detecting if samples belong to a given distribution I am a networking person and I am trying to use statistical methods for a problem I am facing, so I would appreciate any help or pointers. 
I have users that access the medium, but in case 2 or more try to access it, they are forced to wait before they retry. The assigned wait times are random and follow an exponential distribution. 
I need to figure out if they break the rule and start using a more favorable distribution (it doesn't matter which distribution: I only care to detect when they deviate from the exponential). I have done some readings and came up with CUSUM method, but I am not sure if there are better approaches.
 A: If you seek formal hypothesis tests:
a) If you want to test stochastic dominance of the training set over the new sample, you could use a one-sided two-sample Kolmogorov-Smirnov test (or perhaps a Mann-Whitney test) 
b) If you're more interested in them shifting the mean, you might use a permutation test, or 
c) with the assumption of exponentiality under the null, you could construct an $F$-test based on the ratio of means of the training set and the new sample ... again, in either case, one-sided tests can be done, since you seem to have only a one sided alternative that's of interest.
If you just want a diagnostic:
a) You could plot overlaid quantile plots (vs expected exponential quantiles) for the two (training set and new set), though there are other ways -
b) you could plot both ECDFs, for example
A: I believe that Anastasia wants to calculate the departure from the Exponential distribution as new data arrives.  Thus in essence, she can perform a changepoint test to decide if the recent data obeys the same distribution as previously seen data.
There are several options here, if you are sure about the Exponential assumption then you could use a likelihood ratio test statistic.  The downside with this is that you are also assuming an Exponential distribution for the new data but just with a different rate parameter.  This may work in practice and give you the answers you want but you would have to try it.
What might be more beneficial is to use a nonparametric test statistic such as a Kolmogorov-Smirnov test as described by Glen_b.  However, I would adovate using this in a changepoint setting so that as a new data point arrives, you see if a change has occurred recently.
Both these methods are available in the cpm R package.  Unfortunately due to not passing some CRAN checks, this has been archived here.  I have used the pacakge for a while and can vouch that the methods are correct, the package has just failed a CRAN check on the Solaris operating system which the package author is finding awkward to correct.  You can install it manually by downloading the source from the archive.  I don't believe that there are any other changepoint packages on CRAN that are capable of detecting changepoints from a data stream.
