chapter 16. windows internet name service(wins) network basic input/output system (netbios) n etbios...

22
Windows Internet Name Service(WINS) Chapter 16

Upload: savion-norem

Post on 28-Mar-2015

214 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Chapter 16. Windows Internet Name Service(WINS) Network Basic Input/Output System (NetBIOS) N etBIOS over TCP/IP (NetBT) provides commands and support

Windows Internet Name Service(WINS)

Chapter 16

Page 2: Chapter 16. Windows Internet Name Service(WINS) Network Basic Input/Output System (NetBIOS) N etBIOS over TCP/IP (NetBT) provides commands and support

Windows Internet Name Service(WINS)

Network Basic Input/Output System (NetBIOS)

● NetBIOS over TCP/IP (NetBT)

provides commands and support for network name registration and verification. session establishment and termination. reliable connection-oriented session data transfer. unreliable connectionless datagram data transfer. adapter monitoring and management.

the operation of the NetBIOS protocol over the Transmission Control Protocol (TCP) and the User Datagram Protocol (UDP) of the TCP/IP protocol stack.

Page 3: Chapter 16. Windows Internet Name Service(WINS) Network Basic Input/Output System (NetBIOS) N etBIOS over TCP/IP (NetBT) provides commands and support

NetBT Name Service Messages Name Query Request

Name Query Response

Name Registration Request

Name Registration Response

Wait Acknowledgment

Name Refresh Request

Name Release Request

Name Release Response

Page 4: Chapter 16. Windows Internet Name Service(WINS) Network Basic Input/Output System (NetBIOS) N etBIOS over TCP/IP (NetBT) provides commands and support

NetBT Name Service Messages

Question entries Variable legth

Answer RRs Variable length

Authority RRs Variable length

Additional RRs Variable length

• Name Service header Fixed length (12 bytes long)

Page 5: Chapter 16. Windows Internet Name Service(WINS) Network Basic Input/Output System (NetBIOS) N etBIOS over TCP/IP (NetBT) provides commands and support

Name Service header

Transaction ID > 2-byte

Flags > 2-byte

Question Entry Count > 2-byte

Answer RR Count > 2-byte

Authority RR Count > 2-byte

Additional RR Count > 2-byte

Page 6: Chapter 16. Windows Internet Name Service(WINS) Network Basic Input/Output System (NetBIOS) N etBIOS over TCP/IP (NetBT) provides commands and support

The Flags field in the Name Service header

Request/Response > 1-bit

Operation Code > 4-bit

Authoritative Answer > 1-bit

Truncation > 1-bit

Recursion Desired > 1-bit

Recursion Available > 1-bit

Reserved > 3-bit

Return Code > 4-bit

Page 7: Chapter 16. Windows Internet Name Service(WINS) Network Basic Input/Output System (NetBIOS) N etBIOS over TCP/IP (NetBT) provides commands and support

NetBIOS Name Representation

The 16-character NetBIOS name is converted into a 32-byte ASCII representation.

The period (.) character and the NetBIOS scope identifier are appended to the 32-byte ASCII representation of the NetBIOS name.

The resulting name is then encoded using length-value format according to the rules for

fully qualified domain names (FQDNs) in DNS Name Query Request messages.

Creating the DNS form of a NetBIOS name for NetBIOS name service messages involves the followingsteps:

Page 8: Chapter 16. Windows Internet Name Service(WINS) Network Basic Input/Output System (NetBIOS) N etBIOS over TCP/IP (NetBT) provides commands and support

Question RR FormatQuestion entry format

RR format in NetBIOS name service messages

Question Name

Question Type

Question Class

RR Name

Record Type

Record Class

Time to Live

Resource Data Length

Resource Data

Page 9: Chapter 16. Windows Internet Name Service(WINS) Network Basic Input/Output System (NetBIOS) N etBIOS over TCP/IP (NetBT) provides commands and support

Format for General Name Service RRs

Question RR Format

RR Name Record Type

Record Class Time to Live

Resource Data Length Data Flags IP Address

Format of the RDATA flags field

Group Flag

Owner Node Type

Reserved

Page 10: Chapter 16. Windows Internet Name Service(WINS) Network Basic Input/Output System (NetBIOS) N etBIOS over TCP/IP (NetBT) provides commands and support

Question RR Format

Page 11: Chapter 16. Windows Internet Name Service(WINS) Network Basic Input/Output System (NetBIOS) N etBIOS over TCP/IP (NetBT) provides commands and support

Question RR Format

Page 12: Chapter 16. Windows Internet Name Service(WINS) Network Basic Input/Output System (NetBIOS) N etBIOS over TCP/IP (NetBT) provides commands and support

WINS Client and Server Message Exchanges

Resolving NetBIOS names to IP addresses Registering NetBIOS names Renewing NetBIOS names Releasing NetBIOS names

This section describes common message exchanges between WINS clients and servers for the following:

Page 13: Chapter 16. Windows Internet Name Service(WINS) Network Basic Input/Output System (NetBIOS) N etBIOS over TCP/IP (NetBT) provides commands and support

Resolving NetBIOS Names to IP Addresses

Page 14: Chapter 16. Windows Internet Name Service(WINS) Network Basic Input/Output System (NetBIOS) N etBIOS over TCP/IP (NetBT) provides commands and support

Resolving NetBIOS Names to IP Addresses

Page 15: Chapter 16. Windows Internet Name Service(WINS) Network Basic Input/Output System (NetBIOS) N etBIOS over TCP/IP (NetBT) provides commands and support

Registering NetBIOS Names

Page 16: Chapter 16. Windows Internet Name Service(WINS) Network Basic Input/Output System (NetBIOS) N etBIOS over TCP/IP (NetBT) provides commands and support

Resolving NetBIOS Names to IP Addresses

Page 17: Chapter 16. Windows Internet Name Service(WINS) Network Basic Input/Output System (NetBIOS) N etBIOS over TCP/IP (NetBT) provides commands and support

Registering NetBIOS Names

Page 18: Chapter 16. Windows Internet Name Service(WINS) Network Basic Input/Output System (NetBIOS) N etBIOS over TCP/IP (NetBT) provides commands and support

Refreshing NetBIOS Names

Page 19: Chapter 16. Windows Internet Name Service(WINS) Network Basic Input/Output System (NetBIOS) N etBIOS over TCP/IP (NetBT) provides commands and support

Refreshing NetBIOS Names

Page 20: Chapter 16. Windows Internet Name Service(WINS) Network Basic Input/Output System (NetBIOS) N etBIOS over TCP/IP (NetBT) provides commands and support

Releasing NetBIOS Names

Page 21: Chapter 16. Windows Internet Name Service(WINS) Network Basic Input/Output System (NetBIOS) N etBIOS over TCP/IP (NetBT) provides commands and support

Releasing NetBIOS Names

Page 22: Chapter 16. Windows Internet Name Service(WINS) Network Basic Input/Output System (NetBIOS) N etBIOS over TCP/IP (NetBT) provides commands and support

Summary

Name Query Request Name Query Response messages Name Query Response

Name Registration Request Name Registration Response

WACKName Registration Response

Name Refresh Request

Registration Response Name Release Request

Name Release Response

WINS-based NetBIOS name resolution

NetBIOS name registration

NetBIOS name refresh

NetBIOS name release

fixed-size

variable-sized