Skip to content

Thread sec policy #4155

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

Merged
merged 4 commits into from
May 2, 2017
Merged

Conversation

kseverinkangas-zg
Copy link

Thread security policy can be now configured in .json. the default is set to 255.

Status

READY

Migrations

If this PR changes any APIs or behaviors, give a short description of what API users should do when this PR is merged.

NO

Steps to test or reproduce

Can be manually tested by observing Wireshark logs.

@kseverinkangas-zg
Copy link
Author

@artokin

Copy link
Contributor

@artokin artokin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Few minor comments

| thread-config-channel-mask | number [0-0x07fff800] | Channel mask, 0x07fff800 scans all channels. |
| thread-config-channel-page | number [0, 2]| Channel page, 0 for 2,4 GHz and 2 for sub-GHz radios. |
| thread-config-channel | number [0-27] | RF channel to use. |
| thread-config-panid | number [0-0xFFFF] | Network identifier. |
| thread-config-network-name | string [1-16] |
| thread-config-commissioning-dataset-timestamp | [0-0xFFFFFFFFFFFFFFFF] | Timestamp where upper 48 bits are seconds |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check length of timestamp, is it 32 or 64bits?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is 64-bit

| thread-master-key | byte array [16]| Network master key. |
| thread-config-ml-prefix | byte array [8] | Mesh local prefix. |
| thread-config-pskc | byte array [16] | Pre-Shared Key for the Commissioner. |
| thread-security-policy | number [0-0xFF] | Security policy |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Security policy bits?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

"thread-config-extended-panid": "{0xf1, 0xb5, 0xa1, 0xb2,0xc4, 0xd5, 0xa1, 0xbd }",
"thread-master-key": "{0x10, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88, 0x99, 0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff}",
"thread-config-ml-prefix": "{0xfd, 0x0, 0x0d, 0xb8, 0x0, 0x0, 0x0, 0x0}",
"thread-config-pskc": "{0xc8, 0xa6, 0x2e, 0xae, 0xf3, 0x68, 0xf3, 0x46, 0xa9, 0x9e, 0x57, 0x85, 0x98, 0x9d, 0x1c, 0xd0}",
"thread-device-type": "MESH_DEVICE_TYPE_THREAD_ROUTER"
"thread-device-type": "MESH_DEVICE_TYPE_THREAD_ROUTER",
"thread-security-policy": 255
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Format 0xff?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's leave one byte values as decimals

Minor changes
@kseverinkangas-zg
Copy link
Author

This is ready to me merged

@0xc0170
Copy link
Contributor

0xc0170 commented Apr 19, 2017

/morph test-nightly

@mbed-bot
Copy link

Result: SUCCESS

Your command has finished executing! Here's what you wrote!

/morph test-nightly

Output

mbed Build Number: 36

All builds and test passed!

@adbridge
Copy link
Contributor

@karsev is this an API change? It looks like the security policy has been added and then given a default value. That sounds like something which would change behaviour of the system?

@kseverinkangas-zg
Copy link
Author

The original setting was wrong causing an incorrect operation of the Thread network (router assignment).
Now the Thread network is formed in a correct way.

@adbridge
Copy link
Contributor

adbridge commented May 5, 2017

This is reliant on #3987 which is tagged for mbed-os-5.5.0 thus this also needs to be bumped to that release.

@kseverinkangas-zg
Copy link
Author

Why this is taking so much time? Now, for example, mbed-os-example-client can fail if there is more than one device in the Thread network.

@0xc0170
Copy link
Contributor

0xc0170 commented May 15, 2017

Why this is taking so much time? Now, for example, mbed-os-example-client can fail if there is more than one device in the Thread network.

What's the objection ? It was merged to master, will be part of 5.5 as stated above (dependencies).

@kseverinkangas-zg
Copy link
Author

Ok, there was a documentation dependency included by mistake.

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

Successfully merging this pull request may close these issues.

6 participants