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 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 root devices, the DAG formation request carrying a characteristic for a corresponding DAG to form by the respective selected root devices that indicates which one or more types of traffic correspond to the corresponding DAG.