I don't believe the MAF would have a knocking sound to it although if the trunking is split then it would be a blowing / thudding noise.
The EGR would be a totally different sound so not sure that would be the cause.
I think it may be worth trying to use a smoke tester to see if there are any cracks in exhaust, inlet manifolds or EGR to eliminate those components