NSDP ( Netgear Switch Discovery Protocol - Netgear Switch Detection Protocol ) is a protocol created by Netgear to manage certain families of network equipment.
| NTDS | |
|---|---|
| Title | Netgear Switch Discovery Protocol |
| Level ( OSI model ) | Applied |
| Family | TCP / IP |
| Port / ID | 63321, 63322, 63323, 63324 |
| Protocol Purpose | Netgear Layer 2 Switch Management |
Content
- 1 Message format
- 1.1 General message header
- 1.2 Format of entries in the message body
- 2 Protocol Examples
- 3 Device Protocol Support
- 4 Device Software Update
- 5 See also
- 6 References
Message Format
General Post Title
| Bias | Length | Value |
|---|---|---|
| 0x0000 | one | Protocol version - always 0x01 |
| 0x0001 | one | Operation code: can take the value 0x01 - read, 0x02 - response to the read operation, 0x03 - write, 0x04 - response to the write operation |
| 0x0002 | 2 | Operation result |
| 0x0004 | four | Unknown |
| 0x0008 | 6 | Sender MAC Address |
| 0x000e | 6 | Recipient MAC address (value 00: 00: 00: 00: 00: 00 is treated as a broadcast address, the request will be processed by all devices that received the message) |
| 0x0014 | 2 | Not known |
| 0x0016 | 2 | Sequence number of the message (the value of the field should increase with each packet sent) |
| 0x0018 | four | NSDP Signature |
| 0x001C | four | Not known |
| 0x0020 | N | The body of the message consists of a sequence of records in TLV format |
| 0x0020 + N | four | Message End Marker 0x0000FFFF |
Message body format
Records in the message body are in TLV format (type - length - value). The type can take one of the values specified in the table (the list is incomplete):
| Type of | Value |
|---|---|
| 0x0001 | Equipment model |
| 0x0003 | Name (set manually when setting up the equipment) |
| 0x0004 | Device MAC address |
| 0x0006 | Device IP address (not supported by all devices) |
| 0x0007 | Mask of the device’s IP network (not supported by all devices) |
| 0x0008 | The IP address of the router on the device’s network (not supported by all devices) |
| 0x000a | administrator password (in software version 01.02.02 and higher, the password is transmitted in encrypted form) |
| 0x000d | device software version (not supported by all devices) |
Protocol Examples
Discovery of devices on the network (receiving MAC address and device model):
MAC Node = XX: XX: XX: XX: XX: XX: XX from UDP port 63321 or 63323 sends a packet
to broadcast IP address 255.255.255.255 UDP port 63322 or 63324
Header @ 0x00000000 0x01 0x01 0x000000000000 0xXXXXXXXXXXXX 0x000000000000 0x0000 0x0001 0x4E534450 0x00000000
Body @ 0x00000020 0x0001 0x0000 0x0004 0x0000
Marker @ 0x00000028 0x0000FFFF
Each device responds with a message of the form:
Header @ 0x00000000 0x01 0x02 0x000000000000 0xXXXXXXXXXXXXX 0xYYYYYYYYYYYY 0x0000 0x0001 0x4E534450 0x00000000
Body @ 0x00000020 0x0001 0x0028 0x47 0x53 0x31 0x30 0x35 0x45 0x20 * 0x22 0x0004 0x0006 0xYYYYYYYYYYYYY
Marker @ 0x00000058 0x0000FFFF
Device Protocol Support
- GS105E ProsafePlus
- GS108E ProsafePlus
- FS116E (does not support IP- related TLVs as well as device software version)
- FS726TP (uses UDP ports 633323 and 63324 for messaging)
Device Software Update
The device software is updated using the TFTP protocol, but to start the TFTP server on the device, it needs to send a command via the NSDP protocol
See also
- IP
- UDP
- MAC
- Netgear