When enemy's are close or in a firefight, my ping spikes to 400 or more

When enemy's are close or in a firefight, my ping spikes to 400 or more. This only happens sometimes while I am playing a coop game, but annoying none the less.

Oh and with my feedback, I never provided my specs. Here:

GTX 1050 TI

Intel i5-7500 3.40 ghz (Not overclocked)

8gb ram

windows 10 64 bit

1TB HDD

I know that this problem does not have to do with my specs but either with the servers themselves or my internet(Probably not, but maybe) but if I do need to provide them for future feedback, here it is.

Similar problem in pvp. Anytime I engage someone my ping will shoot up by 30-70.