1. A method, comprising: determining a traffic matrix of a mesh network, the traffic matrix indicating an amount of traffic per type of traffic transitioning between the mesh network and a global computer network via one or more current root devices; selecting one or more optimized root devices from a plurality of capable devices in the mesh network for corresponding directed acyclic graphs (DAGs) based on the amount of traffic and type of traffic; and transmitting a DAG formation request to the selected one or more optimized root devices, the DAG formation request carrying a characteristic for a corresponding DAG to be formed by the respective selected optimized root devices that indicates which one or more types of traffic correspond to the corresponding DAG.