home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!dtix!darwin.sura.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ucbvax!FTP.COM!jbvb
- From: jbvb@FTP.COM ("James B. Van Bokkelen")
- Newsgroups: comp.protocols.tcp-ip.ibmpc
- Subject: Re: netbios name resolving
- Message-ID: <9208211948.AA19966@ftp.com>
- Date: 21 Aug 92 19:48:22 GMT
- Sender: daemon@ucbvax.BERKELEY.EDU
- Reply-To: jbvb@ftp.com
- Organization: The Internet
- Lines: 17
-
-
- I've read the netbios RFCS (10?? whatever I can't remember the 2 numbers
- for the 2 rfcs), and 883 for domain name representation.
- There is mention of compression, but I can't figure out the the method.
-
- Netbios name encoding works like this: You take the 16-byte binary
- Netbios name, and divide it into 32 4-bit 'nibbles'. You then take a
- string of 32 'A's, and add each 'nibble' in turn to the corresponding
- 'A'. Append the 'scope' the Netbios was started with, create a
- DNS-format packet with a special opcode and send it out over UDP port
- 137 (instead of 53 as used by regular DNS). The only thing that
- counts as "compression" is that if the same string appears in several
- fields in the packet you can replace all but one of them with a
- pointer to the single copy of the actual string.
-
- James B. VanBokkelen 26 Princess St., Wakefield, MA 01880
- FTP Software Inc. voice: (617) 246-0900 fax: (617) 246-0901
-