distribution networks, distributed energy resources, dynamic power flow tracing, loss allocation, P2P electricity market