主权项 |
1. A method for self-debugging of a network comprising a first network device communicatively coupled to a second network device, wherein the first network device and the second network device are communicatively coupled to a plurality of other network devices, the method comprising:
generating, by a control plane of the first network device, a first debug traffic that simulates traffic received from a first of the plurality of other network devices in the network; injecting, by the control plane of the first network device, the generated first debug traffic into a data plane of the first network device such that the first debug traffic appears to the data plane as if it originated from the first of the plurality of other network devices in the network; transmitting, by the data plane of the first network device, a second debug traffic associated with the first debug traffic to a second of the plurality of other network devices; collecting, by the control plane of the first network device, a first debug information of the first debug traffic and a second debug information of the second debug traffic; transmitting, by the control plane of the first network device, the collected first debug information and second debug information to a control plane of the second network device; receiving, by a data plane of the second network device, a third debug traffic associated with the first debug traffic from a third of the plurality of other network devices; collecting, by the control plane of the second network device, a third debug information of the third debug traffic; and providing, by the control plane of the second network device, the first, second, and third debug information. |