Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does this project match completely BonjourConformanceTest? #5

Open
Ks89 opened this issue Jun 8, 2018 · 4 comments
Open

Does this project match completely BonjourConformanceTest? #5

Ks89 opened this issue Jun 8, 2018 · 4 comments

Comments

@Ks89
Copy link

Ks89 commented Jun 8, 2018

Hi, Does this project match all requirements by the Apple BonjourConformanceTest?

thank u

@Ks89
Copy link
Author

Ks89 commented Jun 8, 2018

@DeMille

I want to explain the problem in a better way.

I'm using BonjourConformanceTest from Apple developer website, but it stops with a failure at step I.5 (Link-Local Address Allocation - Subsequent conflict).

This is the log:

12:43:02  starting test: SUBSEQUENT CONFLICTS

12.43.12.750225: subsequent_conflict().594:  Sending ARP reply to device for address 169.254.213.248
12.43.12.750386: deny_arp().134:  Denying ARP for 169.254.213.248 
12.43.12.762690: recv_arp_callback().184:  source Mac:c8:2a:14:11:9:17, source IP:169.254.213.248, target Mac:b8:27:eb:17:7d:b7, target IP:0.0.0.0
12.43.12.762730: recv_arp_callback().184:  source Mac:b8:27:eb:17:7d:b7, source IP:169.254.213.248, target Mac:0:0:0:0:0:0, target IP:169.254.213.248
12.43.12.762743: subsequent_conflict().617:  Source address non-zero 169.254.213.248
12.43.12.762805: subsequent_conflict().622:  The host is attempting to defend its IP - sending the second denial
12.43.12.763016: deny_arp().134:  Denying ARP for 169.254.213.248 
12.43.12.775312: recv_arp_callback().184:  source Mac:c8:2a:14:11:9:17, source IP:169.254.213.248, target Mac:b8:27:eb:17:7d:b7, target IP:0.0.0.0
12.43.20.011768: recv_arp().44:  Timed out. to_ms = 6000, time_waited = 6000
12.43.20.011809: subsequent_conflict().612:  WARNING: 2 of 100 tries : Have not received initial probe from device. Listening ...
12.43.20.011879: subsequent_conflict().617:  Source address non-zero 169.254.213.248
12.43.20.011911: subsequent_conflict().630:  
** The host is attempting to defend its IP even after two denials

....

12.54.32.947276: append_result().135:  WARNING : SUBSEQUENT CONFLICTS: RE-PROBE AFTER FIRST CONFLICT
12.54.32.947294: subsequent_conflict().644:  Received probe for original address.
12.54.32.947324: subsequent_conflict().648:  Sending second ARP reply to device for address 169.254.213.248
12.54.32.947510: deny_arp().134:  Denying ARP for 169.254.213.248 
12.54.32.958118: recv_arp_callback().184:  source Mac:c8:2a:14:11:9:17, source IP:169.254.213.248, target Mac:b8:27:eb:17:7d:b7, target IP:0.0.0.0
12.55.08.872029: recv_arp().44:  Timed out. to_ms = 30000, time_waited = 30000
12.55.08.872071: subsequent_conflict().660:  Did not receive new probe after sending 2 conflicting ARP replies for the device's previously acquired  address.
12.55.08.872138: append_result().135:  FAILED : SUBSEQUENT CONFLICT
12.55.08.872159: autoip_test().164:  
FAILED (SUBSEQUENT CONFLICTS)

The documentation is available inside the .dmg of the Bonjour Conformance Test BonjourConformanceTest1.3.2.dmg, and it's called Conformance Test Outline.txt.

This is what Apple says (so the author of this piece of doc is Apple, Inc.):

I.5 Subsequent Conflict

The test tool will wait ten seconds, and then issue two ARP replies, six seconds apart, for the address the device is using.  The test tool verifies that the device then picks a new address and probes/announces again.  If the device does not wait for the second ARP reply before choosing a new address, instead probing immediately after the first conflict, a warning is generated.

Are you able to do this test alone with an Airport device (configured in a local network without internet as requested by Apple) + a macbook with macOS High Sierra?

What do you think about this topic?

PS I'm really interested in this project and If you want I can try to help you, also doing tests.

@Ks89 Ks89 changed the title Does this project respect completely BonjourConformanceTest? Does this project match completely BonjourConformanceTest? Jun 8, 2018
@Ks89
Copy link
Author

Ks89 commented Jun 11, 2018

Oh wait probably I made a mistake. What is failing is test "SUBSEQUENT CONFLICTS" Phase I.5 and not I.3.
I updated the previous comment and removed another one because wrong.

Tests are done with a different order then "Conformance Test Outline.txt"

@DeMille
Copy link
Owner

DeMille commented Jun 11, 2018

Cool, I actually hadn't heard of bonjour's conformance test. That seems like a great way to verify correct behavior! Thanks for letting me know about it.

I do have access to a hackintosh mac to run the tests, but I haven't run them yet. I'll look into it more and let you know.

@Ks89
Copy link
Author

Ks89 commented Jun 11, 2018

Perfect.

I'm sorry but I discovered that the tests were failing because of avahi, pre-installed on raspian. Tomorrow I'll check again and I'll update you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants