从上到下依次,详细具体地分析这一个log信息中的每一条记录,然后判断switch转发结果,信息到达时间等等全部方面是否符合预期,给出详尽回答:(base)…
- User
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
从上到下依次,详细具体地分析这一个log信息中的每一条记录,然后判断switch转发结果,信息到达时间等等全部方面是否符合预期,给出详尽回答:(base) cyoung@cyoungdeMacBook-Pro ns-3.44 % ./ns3 run nb-switch-example CSMA channel (Backoff Enabled): DataRate 1Mbps, Delay 5ms client host1 -> host3 : srcHost 16777217 dstHost 16777219 app id 8082 client host1 -> host4 : srcHost 16777217 dstHost 16777220 app id 8083 client host2 -> host3 : srcHost 16777218 dstHost 16777219 app id 8086 client host2 -> host4 : srcHost 16777218 dstHost 16777220 app id 8087 server host3 (app for client host1) app id 8082 server host3 (app for client host2) app id 8086 server host4 (app for client host1) app id 8083 server host4 (app for client host2) app id 8087 Nb stack reused in nb server app! Nb stack reused in nb server app! Hostid: 16777217, Appid: 8082, Client Receive ESTABLISHED, time: 1.000000 Send info: From = 16777217, To = 16777219, time = 1.000000 Nb stack reused in nb client app! Hostid: 16777217, Appid: 8083, Client Receive ESTABLISHED, time: 1.000000 Send info: From = 16777217, To = 16777220, time = 1.000000 Hostid: 16777218, Appid: 8086, Client Receive ESTABLISHED, time: 1.000000 Send info: From = 16777218, To = 16777219, time = 1.000000 Nb stack reused in nb client app! Hostid: 16777218, Appid: 8087, Client Receive ESTABLISHED, time: 1.000000 Send info: From = 16777218, To = 16777220, time = 1.000000 Switch Received! src: 16777217, dst: 16777219, time: 1.007080 [SW] learn host 16777217 is from port 0 [SW] flood unknown dst 16777219 from inPort 0 [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- [iSLIP] out 1 grant: in 0 [iSLIP] out 2 grant: in 0 [iSLIP] out 3 grant: in 0 [iSLIP] in 0 accept: out 1 [iSLIP] ---- Grant phase ---- Switch Received! src: 16777218, dst: 16777219, time: 1.007080 [SW] learn host 16777218 is from port 1 [SW] flood unknown dst 16777219 from inPort 1 [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- [iSLIP] out 0 grant: in 1 [iSLIP] out 2 grant: in 0 [iSLIP] out 3 grant: in 0 [iSLIP] in 0 accept: out 2 [iSLIP] in 1 accept: out 0 [iSLIP] ---- Grant phase ---- Recal Switch, PortBecameIdle! [iSLIP] PortBecameIdle [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- [iSLIP] out 2 grant: in 1 [iSLIP] out 3 grant: in 0 [iSLIP] in 0 accept: out 3 [iSLIP] in 1 accept: out 2 [iSLIP] ---- Grant phase ---- Recal Switch, PortBecameIdle! [iSLIP] PortBecameIdle [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- Recal Switch, PortBecameIdle! [iSLIP] PortBecameIdle [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- Recal Switch, PortBecameIdle! [iSLIP] PortBecameIdle [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- [iSLIP] out 3 grant: in 1 [iSLIP] in 1 accept: out 3 [iSLIP] ---- Grant phase ---- Hostid: 16777219, Appid: 8082, Server Receive ACCEPT_READY, time: 1.014160 NbStack::Accept Hostid: 16777219, Appid: 8082, Server Receive READ_READY, time: 1.014160 Send info: From = 16777219, To = 16777217, time = 1.014160 Recal Switch, PortBecameIdle! [iSLIP] PortBecameIdle [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- Switch Received! src: 16777219, dst: 16777217, time: 1.021241 [SW] learn host 16777219 is from port 2 [SW] unicast dst 16777217 via outPort 0 [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- [iSLIP] out 0 grant: in 2 [iSLIP] in 2 accept: out 0 [iSLIP] ---- Grant phase ---- Switch Received! src: 16777217, dst: 16777220, time: 1.021301 [SW] flood unknown dst 16777220 from inPort 0 [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- [iSLIP] out 1 grant: in 0 [iSLIP] out 3 grant: in 0 [iSLIP] in 0 accept: out 1 [iSLIP] ---- Grant phase ---- Switch Received! src: 16777218, dst: 16777220, time: 1.021346 [SW] flood unknown dst 16777220 from inPort 1 [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- [iSLIP] out 3 grant: in 0 [iSLIP] in 0 accept: out 3 [iSLIP] ---- Grant phase ---- Recal Switch, PortBecameIdle! [iSLIP] PortBecameIdle [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- [iSLIP] out 0 grant: in 1 [iSLIP] in 1 accept: out 0 [iSLIP] ---- Grant phase ---- Recal Switch, PortBecameIdle! [iSLIP] PortBecameIdle [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- Recal Switch, PortBecameIdle! [iSLIP] PortBecameIdle [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- [iSLIP] out 2 grant: in 0 [iSLIP] in 0 accept: out 2 [iSLIP] ---- Grant phase ---- Recal Switch, PortBecameIdle! [iSLIP] PortBecameIdle [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- [iSLIP] out 3 grant: in 1 [iSLIP] in 1 accept: out 3 [iSLIP] ---- Grant phase ---- Hostid: 16777217, Appid: 8082, Client Receive READ_READY, time: 1.028399 client send count: 1 Send info: From = 16777217, To = 16777219, time = 1.028399 Hostid: 16777219, Appid: 8086, Server Receive ACCEPT_READY, time: 1.029140 NbStack::Accept Hostid: 16777219, Appid: 8086, Server Receive READ_READY, time: 1.029140 Send info: From = 16777219, To = 16777218, time = 1.029140 Hostid: 16777220, Appid: 8083, Server Receive ACCEPT_READY, time: 1.031570 NbStack::Accept Hostid: 16777220, Appid: 8083, Server Receive READ_READY, time: 1.031570 Send info: From = 16777220, To = 16777217, time = 1.031570 Switch Received! src: 16777217, dst: 16777219, time: 1.035480 [SW] unicast dst 16777219 via outPort 2 [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- Switch Received! src: 16777219, dst: 16777218, time: 1.036221 [SW] unicast dst 16777218 via outPort 1 [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- [iSLIP] out 1 grant: in 2 [iSLIP] in 2 accept: out 1 [iSLIP] ---- Grant phase ---- Recal Switch, PortBecameIdle! [iSLIP] PortBecameIdle [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- Recal Switch, PortBecameIdle! [iSLIP] PortBecameIdle [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- Recal Switch, PortBecameIdle! [iSLIP] PortBecameIdle [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- [iSLIP] out 2 grant: in 1 [iSLIP] in 1 accept: out 2 [iSLIP] ---- Grant phase ---- Switch Received! src: 16777220, dst: 16777217, time: 1.038651 [SW] learn host 16777220 is from port 3 [SW] unicast dst 16777217 via outPort 0 [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- [iSLIP] out 0 grant: in 3 [iSLIP] in 3 accept: out 0 [iSLIP] ---- Grant phase ---- Recal Switch, PortBecameIdle! [iSLIP] PortBecameIdle [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- Hostid: 16777218, Appid: 8086, Client Receive READ_READY, time: 1.043301 client send count: 1 Send info: From = 16777218, To = 16777219, time = 1.043301 Recal Switch, PortBecameIdle! [iSLIP] PortBecameIdle [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- Hostid: 16777220, Appid: 8087, Server Receive ACCEPT_READY, time: 1.046095 NbStack::Accept Hostid: 16777220, Appid: 8087, Server Receive READ_READY, time: 1.046095 Send info: From = 16777220, To = 16777218, time = 1.046095 Recal Switch, PortBecameIdle! [iSLIP] PortBecameIdle [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- [iSLIP] out 2 grant: in 0 [iSLIP] in 0 accept: out 2 [iSLIP] ---- Grant phase ---- Hostid: 16777217, Appid: 8083, Client Receive READ_READY, time: 1.050248 client send count: 1 Send info: From = 16777217, To = 16777220, time = 1.050248 Switch Received! src: 16777218, dst: 16777219, time: 1.050382 [SW] unicast dst 16777219 via outPort 2 [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- Switch Received! src: 16777220, dst: 16777218, time: 1.053176 [SW] unicast dst 16777218 via outPort 1 [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- [iSLIP] out 1 grant: in 3 [iSLIP] in 3 accept: out 1 [iSLIP] ---- Grant phase ---- Recal Switch, PortBecameIdle! [iSLIP] PortBecameIdle [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- [iSLIP] out 2 grant: in 1 [iSLIP] in 1 accept: out 2 [iSLIP] ---- Grant phase ---- Recal Switch, PortBecameIdle! [iSLIP] PortBecameIdle [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- Switch Received! src: 16777217, dst: 16777220, time: 1.057329 [SW] unicast dst 16777220 via outPort 3 [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- [iSLIP] out 3 grant: in 0 [iSLIP] in 0 accept: out 3 [iSLIP] ---- Grant phase ---- Hostid: 16777219, Appid: 8082, Server Receive READ_READY, time: 1.058208 Send info: From = 16777219, To = 16777217, time = 1.058208 Recal Switch, PortBecameIdle! [iSLIP] PortBecameIdle [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- Hostid: 16777218, Appid: 8087, Client Receive READ_READY, time: 1.060256 client send count: 1 Send info: From = 16777218, To = 16777220, time = 1.060256 Hostid: 16777220, Appid: 8083, Server Receive READ_READY, time: 1.064409 Send info: From = 16777220, To = 16777217, time = 1.064409 Switch Received! src: 16777219, dst: 16777217, time: 1.065289 [SW] unicast dst 16777217 via outPort 0 [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- [iSLIP] out 0 grant: in 2 [iSLIP] in 2 accept: out 0 [iSLIP] ---- Grant phase ---- Switch Received! src: 16777218, dst: 16777220, time: 1.067337 [SW] unicast dst 16777220 via outPort 3 [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- [iSLIP] out 3 grant: in 1 [iSLIP] in 1 accept: out 3 [iSLIP] ---- Grant phase ---- Recal Switch, PortBecameIdle! [iSLIP] PortBecameIdle [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- Recal Switch, PortBecameIdle! [iSLIP] PortBecameIdle [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- Switch Received! src: 16777220, dst: 16777217, time: 1.071490 [SW] unicast dst 16777217 via outPort 0 [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- [iSLIP] out 0 grant: in 3 [iSLIP] in 3 accept: out 0 [iSLIP] ---- Grant phase ---- Hostid: 16777217, Appid: 8082, Client Receive READ_READY, time: 1.072369 client send count: 2 Send info: From = 16777217, To = 16777219, time = 1.072369 Hostid: 16777219, Appid: 8086, Server Receive READ_READY, time: 1.072971 Send info: From = 16777219, To = 16777218, time = 1.072971 Recal Switch, PortBecameIdle! [iSLIP] PortBecameIdle [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- Hostid: 16777220, Appid: 8087, Server Receive READ_READY, time: 1.078633 Send info: From = 16777220, To = 16777218, time = 1.078633 Switch Received! src: 16777217, dst: 16777219, time: 1.079450 [SW] unicast dst 16777219 via outPort 2 [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- [iSLIP] out 2 grant: in 0 [iSLIP] in 0 accept: out 2 [iSLIP] ---- Grant phase ---- Switch Received! src: 16777219, dst: 16777218, time: 1.080052 [SW] unicast dst 16777218 via outPort 1 [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- [iSLIP] out 1 grant: in 2 [iSLIP] in 2 accept: out 1 [iSLIP] ---- Grant phase ---- Recal Switch, PortBecameIdle! [iSLIP] PortBecameIdle [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- Recal Switch, PortBecameIdle! [iSLIP] PortBecameIdle [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- Recal Switch, PortBecameIdle! [iSLIP] PortBecameIdle [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- Switch Received! src: 16777220, dst: 16777218, time: 1.085714 [SW] unicast dst 16777218 via outPort 1 [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- [iSLIP] out 1 grant: in 3 [iSLIP] in 3 accept: out 1 [iSLIP] ---- Grant phase ---- Hostid: 16777217, Appid: 8083, Client Receive READ_READY, time: 1.086721 client send count: 2 Send info: From = 16777217, To = 16777220, time = 1.086721 Hostid: 16777218, Appid: 8086, Client Receive READ_READY, time: 1.087132 client send count: 2 Send info: From = 16777218, To = 16777219, time = 1.087132 Hostid: 16777219, Appid: 8082, Server Receive READ_READY, time: 1.087442 Send info: From = 16777219, To = 16777217, time = 1.087442 Switch Received! src: 16777217, dst: 16777220, time: 1.093802 [SW] unicast dst 16777220 via outPort 3 [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- [iSLIP] out 3 grant: in 0 [iSLIP] in 0 accept: out 3 [iSLIP] ---- Grant phase ---- Switch Received! src: 16777218, dst: 16777219, time: 1.094213 [SW] unicast dst 16777219 via outPort 2 [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- [iSLIP] out 2 grant: in 1 [iSLIP] in 1 accept: out 2 [iSLIP] ---- Grant phase ---- Switch Received! src: 16777219, dst: 16777217, time: 1.094523 [SW] unicast dst 16777217 via outPort 0 [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- [iSLIP] out 0 grant: in 2 [iSLIP] in 2 accept: out 0 [iSLIP] ---- Grant phase ---- Recal Switch, PortBecameIdle! [iSLIP] PortBecameIdle [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- Recal Switch, PortBecameIdle! [iSLIP] PortBecameIdle [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- Recal Switch, PortBecameIdle! [iSLIP] PortBecameIdle [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- Recal Switch, PortBecameIdle! [iSLIP] PortBecameIdle [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- Hostid: 16777220, Appid: 8083, Server Receive READ_READY, time: 1.100882 Send info: From = 16777220, To = 16777217, time = 1.100882 Hostid: 16777218, Appid: 8087, Client Receive READ_READY, time: 1.101414 client send count: 2 Send info: From = 16777218, To = 16777220, time = 1.101414 Hostid: 16777217, Appid: 8082, Client Receive READ_READY, time: 1.101603 client send count: 3 Send info: From = 16777217, To = 16777219, time = 1.101603 Hostid: 16777219, Appid: 8086, Server Receive READ_READY, time: 1.101644 Send info: From = 16777219, To = 16777218, time = 1.101644 Switch Received! src: 16777220, dst: 16777217, time: 1.107963 [SW] unicast dst 16777217 via outPort 0 [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- [iSLIP] out 0 grant: in 3 [iSLIP] in 3 accept: out 0 [iSLIP] ---- Grant phase ---- Switch Received! src: 16777218, dst: 16777220, time: 1.108495 [SW] unicast dst 16777220 via outPort 3 [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- [iSLIP] out 3 grant: in 1 [iSLIP] in 1 accept: out 3 [iSLIP] ---- Grant phase ---- Switch Received! src: 16777217, dst: 16777219, time: 1.108684 [SW] unicast dst 16777219 via outPort 2 [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- [iSLIP] out 2 grant: in 0 [iSLIP] in 0 accept: out 2 [iSLIP] ---- Grant phase ---- Switch Received! src: 16777219, dst: 16777218, time: 1.108725 [SW] unicast dst 16777218 via outPort 1 [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- [iSLIP] out 1 grant: in 2 [iSLIP] in 2 accept: out 1 [iSLIP] ---- Grant phase ---- Recal Switch, PortBecameIdle! [iSLIP] PortBecameIdle [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- Recal Switch, PortBecameIdle! [iSLIP] PortBecameIdle [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- Recal Switch, PortBecameIdle! [iSLIP] PortBecameIdle [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- Recal Switch, PortBecameIdle! [iSLIP] PortBecameIdle [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- Hostid: 16777220, Appid: 8087, Server Receive READ_READY, time: 1.115575 Send info: From = 16777220, To = 16777218, time = 1.115575 Hostid: 16777217, Appid: 8083, Client Receive READ_READY, time: 1.115799 client send count: 3 Send info: From = 16777217, To = 16777220, time = 1.115799 Hostid: 16777218, Appid: 8086, Client Receive READ_READY, time: 1.115805 client send count: 3 Send info: From = 16777218, To = 16777219, time = 1.115805 Hostid: 16777219, Appid: 8082, Server Receive READ_READY, time: 1.115817 Send info: From = 16777219, To = 16777217, time = 1.115817 Switch Received! src: 16777220, dst: 16777218, time: 1.122656 [SW] unicast dst 16777218 via outPort 1 [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- [iSLIP] out 1 grant: in 3 [iSLIP] in 3 accept: out 1 [iSLIP] ---- Grant phase ---- Switch Received! src: 16777217, dst: 16777220, time: 1.122880 [SW] unicast dst 16777220 via outPort 3 [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- [iSLIP] out 3 grant: in 0 [iSLIP] in 0 accept: out 3 [iSLIP] ---- Grant phase ---- Switch Received! src: 16777218, dst: 16777219, time: 1.122886 [SW] unicast dst 16777219 via outPort 2 [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- [iSLIP] out 2 grant: in 1 [iSLIP] in 1 accept: out 2 [iSLIP] ---- Grant phase ---- Switch Received! src: 16777219, dst: 16777217, time: 1.122898 [SW] unicast dst 16777217 via outPort 0 [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- [iSLIP] out 0 grant: in 2 [iSLIP] in 2 accept: out 0 [iSLIP] ---- Grant phase ---- Recal Switch, PortBecameIdle! [iSLIP] PortBecameIdle [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- Recal Switch, PortBecameIdle! [iSLIP] PortBecameIdle [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- Recal Switch, PortBecameIdle! [iSLIP] PortBecameIdle [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- Recal Switch, PortBecameIdle! [iSLIP] PortBecameIdle [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- Hostid: 16777220, Appid: 8083, Server Receive READ_READY, time: 1.129960 Send info: From = 16777220, To = 16777217, time = 1.129960 Hostid: 16777217, Appid: 8082, Client Receive READ_READY, time: 1.129978 client send count: 4 Send info: From = 16777217, To = 16777219, time = 1.129978 Hostid: 16777219, Appid: 8086, Server Receive READ_READY, time: 1.129998 Send info: From = 16777219, To = 16777218, time = 1.129998 Hostid: 16777218, Appid: 8087, Client Receive READ_READY, time: 1.130101 client send count: 3 Send info: From = 16777218, To = 16777220, time = 1.130101 Switch Received! src: 16777220, dst: 16777217, time: 1.137041 [SW] unicast dst 16777217 via outPort 0 [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- [iSLIP] out 0 grant: in 3 [iSLIP] in 3 accept: out 0 [iSLIP] ---- Grant phase ---- Switch Received! src: 16777217, dst: 16777219, time: 1.137059 [SW] unicast dst 16777219 via outPort 2 [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- [iSLIP] out 2 grant: in 0 [iSLIP] in 0 accept: out 2 [iSLIP] ---- Grant phase ---- Switch Received! src: 16777219, dst: 16777218, time: 1.137079 [SW] unicast dst 16777218 via outPort 1 [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- [iSLIP] out 1 grant: in 2 [iSLIP] in 2 accept: out 1 [iSLIP] ---- Grant phase ---- Switch Received! src: 16777218, dst: 16777220, time: 1.137182 [SW] unicast dst 16777220 via outPort 3 [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- [iSLIP] out 3 grant: in 1 [iSLIP] in 1 accept: out 3 [iSLIP] ---- Grant phase ---- Recal Switch, PortBecameIdle! [iSLIP] PortBecameIdle [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- Recal Switch, PortBecameIdle! [iSLIP] PortBecameIdle [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- Recal Switch, PortBecameIdle! [iSLIP] PortBecameIdle [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- Recal Switch, PortBecameIdle! [iSLIP] PortBecameIdle [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- Hostid: 16777217, Appid: 8083, Client Receive READ_READY, time: 1.144180 client send count: 4 Send info: From = 16777217, To = 16777220, time = 1.144180 Hostid: 16777219, Appid: 8082, Server Receive READ_READY, time: 1.144214 Send info: From = 16777219, To = 16777217, time = 1.144214 Hostid: 16777220, Appid: 8087, Server Receive READ_READY, time: 1.144262 Send info: From = 16777220, To = 16777218, time = 1.144262 Hostid: 16777218, Appid: 8086, Client Receive READ_READY, time: 1.144296 client send count: 4 Send info: From = 16777218, To = 16777219, time = 1.144296 Switch Received! src: 16777217, dst: 16777220, time: 1.151261 [SW] unicast dst 16777220 via outPort 3 [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- [iSLIP] out 3 grant: in 0 [iSLIP] in 0 accept: out 3 [iSLIP] ---- Grant phase ---- Switch Received! src: 16777219, dst: 16777217, time: 1.151295 [SW] unicast dst 16777217 via outPort 0 [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- [iSLIP] out 0 grant: in 2 [iSLIP] in 2 accept: out 0 [iSLIP] ---- Grant phase ---- Switch Received! src: 16777220, dst: 16777218, time: 1.151343 [SW] unicast dst 16777218 via outPort 1 [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- [iSLIP] out 1 grant: in 3 [iSLIP] in 3 accept: out 1 [iSLIP] ---- Grant phase ---- Switch Received! src: 16777218, dst: 16777219, time: 1.151377 [SW] unicast dst 16777219 via outPort 2 [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- [iSLIP] out 2 grant: in 1 [iSLIP] in 1 accept: out 2 [iSLIP] ---- Grant phase ---- Recal Switch, PortBecameIdle! [iSLIP] PortBecameIdle [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- Recal Switch, PortBecameIdle! [iSLIP] PortBecameIdle [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- Recal Switch, PortBecameIdle! [iSLIP] PortBecameIdle [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- Recal Switch, PortBecameIdle! [iSLIP] PortBecameIdle [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- Hostid: 16777217, Appid: 8082, Client Receive READ_READY, time: 1.158375 client send count: 5 Send info: From = 16777217, To = 16777219, time = 1.158375 Hostid: 16777219, Appid: 8086, Server Receive READ_READY, time: 1.158457 Send info: From = 16777219, To = 16777218, time = 1.158457 Hostid: 16777220, Appid: 8083, Server Receive READ_READY, time: 1.158465 Send info: From = 16777220, To = 16777217, time = 1.158465 Hostid: 16777218, Appid: 8087, Client Receive READ_READY, time: 1.158494 client send count: 4 Send info: From = 16777218, To = 16777220, time = 1.158494 Switch Received! src: 16777217, dst: 16777219, time: 1.163536 [SW] unicast dst 16777219 via outPort 2 [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- [iSLIP] out 2 grant: in 0 [iSLIP] in 0 accept: out 2 [iSLIP] ---- Grant phase ---- Switch Received! src: 16777219, dst: 16777218, time: 1.165538 [SW] unicast dst 16777218 via outPort 1 [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- [iSLIP] out 1 grant: in 2 [iSLIP] in 2 accept: out 1 [iSLIP] ---- Grant phase ---- Switch Received! src: 16777220, dst: 16777217, time: 1.165546 [SW] unicast dst 16777217 via outPort 0 [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- [iSLIP] out 0 grant: in 3 [iSLIP] in 3 accept: out 0 [iSLIP] ---- Grant phase ---- Switch Received! src: 16777218, dst: 16777220, time: 1.165575 [SW] unicast dst 16777220 via outPort 3 [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- [iSLIP] out 3 grant: in 1 [iSLIP] in 1 accept: out 3 [iSLIP] ---- Grant phase ---- Recal Switch, PortBecameIdle! [iSLIP] PortBecameIdle [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- Recal Switch, PortBecameIdle! [iSLIP] PortBecameIdle [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- Recal Switch, PortBecameIdle! [iSLIP] PortBecameIdle [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- Recal Switch, PortBecameIdle! [iSLIP] PortBecameIdle [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- Hostid: 16777219, Appid: 8082, Server Receive READ_READY, time: 1.170824 Hostid: 16777217, Appid: 8083, Client Receive READ_READY, time: 1.172626 client send count: 5 Send info: From = 16777217, To = 16777220, time = 1.172626 Hostid: 16777220, Appid: 8087, Server Receive READ_READY, time: 1.172655 Send info: From = 16777220, To = 16777218, time = 1.172655 Hostid: 16777218, Appid: 8086, Client Receive READ_READY, time: 1.172702 client send count: 5 Send info: From = 16777218, To = 16777219, time = 1.172702 Switch Received! src: 16777217, dst: 16777220, time: 1.177787 [SW] unicast dst 16777220 via outPort 3 [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- [iSLIP] out 3 grant: in 0 [iSLIP] in 0 accept: out 3 [iSLIP] ---- Grant phase ---- Switch Received! src: 16777218, dst: 16777219, time: 1.177863 [SW] unicast dst 16777219 via outPort 2 [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- [iSLIP] out 2 grant: in 1 [iSLIP] in 1 accept: out 2 [iSLIP] ---- Grant phase ---- Recal Switch, PortBecameIdle! [iSLIP] PortBecameIdle [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- Switch Received! src: 16777220, dst: 16777218, time: 1.179736 [SW] unicast dst 16777218 via outPort 1 [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- [iSLIP] out 1 grant: in 3 [iSLIP] in 3 accept: out 1 [iSLIP] ---- Grant phase ---- Recal Switch, PortBecameIdle! [iSLIP] PortBecameIdle [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- Recal Switch, PortBecameIdle! [iSLIP] PortBecameIdle [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- Hostid: 16777219, Appid: 8086, Server Receive READ_READY, time: 1.183023 Hostid: 16777220, Appid: 8083, Server Receive READ_READY, time: 1.184930 Hostid: 16777218, Appid: 8087, Client Receive READ_READY, time: 1.186816 client send count: 5 Send info: From = 16777218, To = 16777220, time = 1.186816 Switch Received! src: 16777218, dst: 16777220, time: 1.191977 [SW] unicast dst 16777220 via outPort 3 [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- [iSLIP] out 3 grant: in 1 [iSLIP] in 1 accept: out 3 [iSLIP] ---- Grant phase ---- Recal Switch, PortBecameIdle! [iSLIP] PortBecameIdle [iSLIP] Arbitrate: N=4 [iSLIP] ---- Grant phase ---- Hostid: 16777220, Appid: 8087, Server Receive READ_READY, time: 1.197137 NbClient StopApplication Done! NbClient StopApplication Done! NbClient StopApplication Done! NbClient StopApplication Done! (base) cyoung@cyoungdeMacBook-Pro ns-3.44 %
The log provided details the operation of a network switch (SW) using the iSLIP arbitration algorithm in an ns-3 simulation. Below is a structured analysis of the log entries, focusing on switch forwarding behavior, timing, and protocol adherence:
CSMA Channel Parameters:
Data rate = 1 Mbps, propagation delay = 5 ms. This defines the link characteristics between hosts and the switch.
Client-Server Mapping:
host1 (16777217), host2 (16777218).host3 (16777219), host4 (16777220).Key Observations:
host1, host2) initiate connections to servers (host3, host4), entering the ESTABLISHED state at 1.000000s.host1 → host3 at 1.000000s).The switch learns MAC addresses (host IDs) dynamically and forwards packets based on learned information:
First Packet from host1 to host3 (time: 1.007080s):
src=16777217, dst=16777219.host1 is on port 0.host3 (dst=16777219) is unknown, the switch floods the packet to all ports except the incoming port (port 0).Second Packet from host2 to host3 (time: 1.007080s):
host2 is on .host3.Server host3 Sends Response (time: 1.014160s):
src=16777219, dst=16777217.host3 is on port 2.host1 (dst=16777217) are forwarded via port 0 (e.g., time: 1.021241s).Server host4 Sends Response (time: 1.031570s):
src=16777220, dst=16777217.host4 is on port 3.host1 use port 0.Propagation Delay:
Each link has a 5 ms delay. For a client→switch→server path:
Subsequent Packets:
PortBecameIdle events).Switch Learning:
host1 on port 0, host3 on port 2).Timing:
iSLIP Functionality:
No Errors:
The switch operates as expected:
No discrepancies are observed in the log. The system behaves correctly for a typical layer-2 switch with learning and iSLIP scheduling.