An Intrusion Detection System by using Mapping Relations