Project

General

Profile

Bug #1475

Updated by Junxiao Shi about 10 years ago

UDP multicast face for an NIC should send packets on the chosen NIC only, instead of onto all NICs. 

 Topology 

      /----\ 
     A        B 
      \----/ 

 * Each host has two NICs. 
 * A/eth0 and B/eth0 are on one VLAN. 
 * A/eth1 and B/eth1 are on another VLAN. 

 Steps to reproduce: 

 1. Start NFD on A and B. 
 2. Execute `nfd-status -f` on A, find out the FaceId of UDP multicast faces. 
 3. Invoke `nfdc add-nexthop /Z $faceid` on A, where $faceid is the FaceId for the UDP multicast face on eth1. 
 4. Start `ndnpingserver /Z` on B. 
 5. Execute `ndnping -c 30 /Z` on A. 
 6. Invoke `nfd-status -f` on A and B. 

 Expected: 

 * On host A, 
    Observe that UDP multicast face on eth0 has 0 incoming Interests, 0 incoming Datas, 0 outgoing Interests, 0 outgoing Datas. 
 * On host A, UDP multicast face on eth1 has 0 incoming Interests, 30 incoming outgoing Datas, 30 outgoing Interests, 0 outgoing Datas. 
 * On host B, and UDP multicast face on eth0 has 0 incoming Interests, 0 incoming Datas, 0 outgoing Interests, 0 outgoing Datas. Data. 
 * On host B, 7. Invoke `nfd-status -f` on A. 

 Expected: UDP multicast face on eth1 has 30 incoming Interests, 0 incoming Datas, 0 outgoing Interests, 30 outgoing Datas. 

 Actual: 

 * On host A, UDP multicast face on eth0 has 0 incoming Interests, 30 incoming Datas, 0 outgoing Interests, 0 outgoing Datas. 
 * On host A, Data.   
 Actual: UDP multicast face on eth1 has 0 incoming Interests, 30 incoming Datas, 30 outgoing Interests, 0 outgoing Datas. 
 * On host B, UDP multicast face on eth0 has 30 incoming Interests, 0 incoming Datas, 0 outgoing Interests, 0 outgoing Datas. 
 * On host B, UDP multicast face on eth1 has 30 incoming Interests, 0 incoming Datas, 0 outgoing Interests, 30 outgoing Datas. 

Back