Initiating cold for up to 5 minutes at a time can do several things:

Cover an ice pack or peas with a damp cloth. Apply to the area for 4 minutes at a time, keep an eye on the skin and the dogs tolerance, removing if they are showing signs of discomfort.