The authors present a protocol and security architecture for the smart grid in an advanced metering infrastructure (AMI). Various levels of the hierarchical grid are isolated in protocol planes for preventing propagation of attacks. The utility meters are interconnected via the wireless technologies in order for metering functions, as well as location identification and reporting for attackers. An amended version of Bell Labs security framework (aka, ITU-X.805) protects every component with added first response security apparatus, forensic component and a location determination algorithm for fortifying the PHY of WLAN interconnecting the meters.