1. A method for replicating and filtering multicast packets in a physical network, the method comprising: upon receiving a multicast packet, generating a set of metadata as ingress replication context for the received packet based on a source of the received packet; and performing multicast replication of the packet by identifying ports that are to be excluded from the multicast replication based on the generated ingress replication context, said performing multicast replication comprising interpreting the ingress replication context based on a multicast mapping data structure for mapping the ingress replication context into identities of logical ports or logical domains to be excluded from the multicast replication, the multicast mapping data structure comprising a multicast tree for each multicast group, each multicast tree including a set of multicast processing nodes (MPNs), each MPN associated with a replication identifier (ID), a multicast node exclusion ID, and a set of logical port identifiers, wherein the generated ingress replication context comprises a multicast group identifier, a replication identifier, a first layer exclusion identifier, and a second layer exclusion identifier.