{

"ip": "10.0.0.8",

"mac": "e6:12:8e:f9:03:64",

"vid": 0,

"dpid": "00:00:00:00:00:00:00:08",

"port": 1

},

{

"ip": "10.0.0.7",

"mac": "12:94:57:f7:cb:66",

"vid": 0,

"dpid": "00:00:00:00:00:00:00:07",

"port": 1

},

{

"ip": "10.0.0.4",

"mac": "82:a3:85:71:63:bf",

"vid": 0,

"dpid": "00:00:00:00:00:00:00:04",

"port": 1

}

]

}

3.Register a packet which needs to be injected in the network for tracing the path. For example TCP packet with destination port as 21.

POST https://controller_ip:8443/sdn/v2.0/diag/packets

Request body:

{"packet": {

"type": "TCP",

"eth": {

"eth_dst": "00:00:00:00:00:05",

"eth_src": "00:00:00:00:00:06",

"eth_type": "IPv4" },

"ip": {

"ipv4_dst": "10.0.0.5",

"ipv4_src": "10.0.0.6",

ip_proto": "TCP",

"ip_dscn": "CS0",

"ip_scn": "NOT_ECT" },

"tcp": {

"tcp_dst": 21,

"tcp_src": 12345

}

}

}

Response: output -

{

"packet": {

"uid": "2096432597", // uid to be used all subsequent invocation

"eth": {

"eth_type": "0x0800(IPv4)",

"eth_src": "00:00:00:00:00:06",

"eth_dst": "00:00:00:00:00:05" },

"ip": {

"ip_proto": "TCP",

"ipv4_src": "10.0.0.6",

"ipv4_dst": "10.0.0.5",

106 Troubleshooting