It looks like it could be a very nasty abscess, or it could also be something much worse such as a severely swollen lymph node. I agree, please take your dog to a vet ASAP.
A forum community dedicated to all breeds of dog owners and enthusiasts. Come join the discussion about breeds, training, puppies, food reviews, service animals, and more.