Repository navigation
3.1r1: 9.5.1's UDP broadcast tests and 9.5.2, UDP Solicited - #52
Merged
Merged
Conversation
- 9.5.1's UDP Unicast and UDP Multicast tests: with a TCP connection open, a broadcast that clears IIN1.7 (which IEEE 1815-2012 4.7 has every device accept as a broadcast) goes over UDP to the device's port 20000, or to a multicast group the setup has it join, from the connection's address; the next poll over TCP has IIN1.0 set. - 9.5.2's Port 20000, Port Other Than 20000, Specific IP Address, Wildcard IP Address and Responses to Port 20000, over UDP alone, or with TCP where the device can't use UDP alone. - The driver connects over UDP too: datagrams to the device from a local address and port, which alone receives the device's, from its address. It also sends a message as datagrams alongside its connection. - Each datagram is parsed whole, and a link frame that doesn't end in its datagram fails, as IEEE 1815-2012 13.2.3.2.3 forbids it. - Options for each capability: network.tcp.udpBroadcast, network.tcp.multicast with network.multicastGroup, network.udp, network.udp.respondToOriginatingPort, network.udp.respondTo20000, network.udp.alone, network.udp.anyAddress, network.udp.configurablePort, network.udp.specificAddress, network.udp.wildcard.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The second part of 3.1r1's section 9, after #51's TCP tests.
Tests
Harness
TestDriver.connectnow takes aUdpConnectiontoo. The harness sends datagrams from a local address and port, and receives the device's datagrams only there and only from the device's address. A reconnection after a close binds the same port again.TestDriver.sendDatagramssends a message as datagrams, one per link frame, alongside the connection.Options. As in #51, each test runs only where the options say the device can do what it tests:
network.tcp.udpBroadcastnetwork.tcp.multicast, withnetwork.multicastGroupnetwork.udpnetwork.udp.respondToOriginatingPort, which every 9.5.2 test needs, as 9.5.2.1 step 2 saysnetwork.udp.respondTo20000network.udp.aloneandnetwork.udp.anyAddressnetwork.udp.configurablePort,network.udp.specificAddressandnetwork.udp.wildcardThe UDP Unsolicited tests (9.5.3) and 9.5.4 come next. The 2.7
-describeoutput is unchanged.