This document describes the OpenROUTE implementation of NetBIOS over bridged networks and over DLSw networks. It includes the following topics:
About NetBIOS
Reducing NetBIOS Traffic
About NetBIOS Configuration and Monitoring Commands
Displaying the NetBIOS Configuration Prompt
Displaying the NetBIOS Monitoring Prompt
Configuring NetBIOS Filtering and Caching
NetBIOS Commands
About NetBIOS
NetBIOS was designed only for use on a LAN. It is not a routable protocol and is typically bridged or switched using DLSw.
NetBIOS relies on broadcast frames for most of its functions. While this may not present a problem in LAN environments, these broadcasts can be costly in internetwork environments by causing congestion, as well as increased costs for WAN links.
NetBIOS uses LLC type 1 (LLC1) and LLC type 2 (LLC2) services:
LLC1 provides connectionless data transfer. It requires name conflict resolution, station status gathering flows, and circuit and connection setup flows.
LLC2 provides a connection-oriented data transfer that uses I-frame traffic sent on established LLC2 connections.
Individual names represent a single NetBIOS client or server and should be unique within the NetBIOS network.
Group names represent a group of NetBIOS stations (an OS/2 LAN Server domain, for example). These names should not be the same as any individual NetBIOS names in the network.
The client can then do either of the following:
Filter as many broadcast NetBIOS frames as possible.
Forward unfiltered NetBIOS UI frames on as few bridge ports or DLSw TCP sessions as possible.
Once the router filters frames, name caching and route caching control how the router forwards the remaining frames. Using MAC Filtering describes MAC address filtering.
The following sections describe frame type, duplicate frame, and response filtering, name and route caching, and name and byte filtering.
Frame Type Filtering
Frame type filtering lets you filter the following types of frames:
Name Conflict Resolution
General Broadcast
Trace Control
It is critical that the NetBIOS names of stations to which a NetBIOS session is established (typically a server) be unique.
It is also usually critical that the individual NetBIOS names of stations within the same group (or domain) be unique.
It is often not critical that the NetBIOS names of stations from which a NetBIOS session is set up (typically a client) be unique, especially across domains.
For this reason, networks in which there is good control over server names may gain advantage by filtering name conflict resolution frames. This is especially true for DLSw networks.
NetBIOS config>set filters bridge
Filter Name Conflict frames? [No]: yes
Name conflict filtering is ON
Filter General Broadcast frames? [No]: yes
General broadcast filtering is ON
Filter Trace Control frames? [No]: yes
Trace control filtering is ON
Figure 1 Setting Up a NetBIOS Session Over DLSw

Figure 2 Duplicate Frame Filtering Process for Bridged Traffic

If you enabled DLSw, the router also prompts you for the following:NetBIOS config>set general
WARNING! Setting Duplicate Frame Filter Timeout to zero...
disables duplicate frame checking!
Duplicate frame filter timeout value in seconds [1.5]?
Duplicate frame detect timeout value in seconds [5.0]?
General parameters set
These parameters control how many query frames the target DLSw router sends during a configurable time period.Command frame retry count [5]?
Command frame retry timeout value in seconds [0.5]?
A router takes responsibility for setting up a session if it matches Name-Query and Name-Recognized frames within the duplicate frame detect timeout period. If the router does not match those frames within that time period, it does not forward Name-Recognized response frames, and it does not set up the session. The default duplicate frame detect timeout is five seconds. Do not set the duplicate frame detect timeout to zero, or the router will have no time to set up the session. You can increase the duplicate frame detect timeout using the set general command.
NetBIOS config>set general
WARNING! Setting Duplicate Frame Filter Timeout to zero...
disables duplicate frame checking!
Duplicate frame filter timeout value in seconds [1.5]?
Duplicate frame detect timeout value in seconds [5.0]?
General parameters set
Permanent entries are those that you add at the NetBIOS configuration prompt (NetBIOS config>). The router saves permanent entries, and they are still available when you restart the router.
Static entries are those that you enter at the NetBIOS monitoring prompt (NetBIOS>). The router does not save static entries, and they are not available after you restart the router.
Dynamic entries are those that the router learns through Name-Query and Name-Recognized processing. A timer removes dynamic entries that are not referenced within a configurable amount of time. The router does not save dynamic entries, and they are not available after you restart the router.
Individual is a NetBIOS individual name.
Group is a NetBIOS group name.
Unknown means the router does not yet have information about the name, indicating that a search for the name is not complete.
Local is an entry the router can reach locally via the bridge network. The router saves the MAC address associated with the name. If route caching is enabled, the router also saves the best LLC route between the router and the NetBIOS station.
Remote is an entry the router can reach remotely via a DLSw TCP session. The router saves the best TCP sessions.
NetBIOS config> prompt to add permanent entries.
Enter add cache-entry at the NetBIOS> prompt to add static entries.NetBIOS config>add cache-entry
Enter up to 15 characters of NetBIOS name(no wild cards)[]? nbs<F8>Enter IP Address [0.0.0.0]? 20.15.8.2
Name cache entry has been created
NetBIOS config>set cache-parms
Significant characters in name [15]?
Best path aging timeout value in seconds [60.0]?
Reduced search timeout value in seconds [1.5]?
Unreferenced entry timeout value in minutes [5000]?
Max nbr local name cache entries [500]?
Max nbr remote name cache entries [100]?
Cache parameters set
From the NetBIOS monitoring prompt, you can use the list cache commands in Table 3.
NetBIOS Name Filtering
NetBIOS name filters apply to both bridging and DLSw. You can use them to filter NetBIOS packets that have specific NetBIOS host names. The router examines the source name or destination name field of the following NetBIOS UI packet types:
Add-Group-Name-Query (source)
Add-Name-Query (source)
Datagram (destination)
Name-Query (source and destination)
NetBIOS Byte Filtering
NetBIOS byte filters apply to both bridging and DLSw. Byte filtering lets you filter NetBIOS packets based on fields in the NetBIOS packet.
To build a byte filter, you specify
An offset from the beginning of the NetBIOS header
A byte pattern to match
An optional mask to apply to the selected fields of the NetBIOS header
About NetBIOS Configuration and Monitoring Commands
Enter NetBIOS configuration commands at the NetBIOS config> prompt. This document refers to changes you make at the configuration prompt as permanent. Changes you make at this prompt do not take effect immediately. They become part of the router's configuration memory when you restart the router.
Enter NetBIOS monitoring commands at the NetBIOS> prompt. This document refers to changes you make at the monitoring prompt as static. Monitoring commands take effect immediately, but the router does not save them after you restart the router.
Displaying the NetBIOS Configuration Prompt
You can access the NetBIOS config> prompt from either the Bridge or DLSw configuration environments.
Changes you make at the NetBIOS config> prompt affect both bridging and DLSw.
NetBIOS config> prompt from the Bridge configuration environment, enter protocol bridge at the Config> prompt and netbios at the Bridge Config> prompt.
Config>protocol bridge
Transparent Bridge user configuration
Bridge Config>netbios
NetBIOS Support User Configuration
NetBIOS config>
NetBIOS config> prompt from the DLSw configuration environment, enter protocol dls at the Config> prompt and netbios at the DLSw config> prompt.
Config>protocol dls
DLSw protocol user configuration
DLSw config>netbios
NetBIOS Support User Configuration
NetBIOS config>
NetBIOS> prompt from either the Bridge or DLSw monitoring environments.
Changes you make at the NetBIOS> prompt affect both bridging and DLSw.NetBIOS> prompt from the Bridge monitoring environment, enter protocol bridge at the + prompt and netbios at the Bridge> prompt.
+protocol bridge
Bridge>netbios
NetBIOS Support User Console
NetBIOS>
NetBIOS> prompt from the DLSw monitoring environment, enter protocol dls at the + prompt and netbios at the DLSw> prompt.
+protocol dls
DLSw>netbios
NetBIOS Support User Console
NetBIOS>
To configure name caching parameters, enter set cache-parms.
To configure duplicate frame filtering, enter set general.
To configure frame type filtering, enter set filters bridge or set filters dlsw.
Add name cache entries for DLSw neighbors.
Open NetBIOS SAPs.
Set a priority for SNA and NetBIOS sessions.
Set the maximum NetBIOS frame size.
Set the memory allocation for NetBIOS UI frames.
NetBIOS config>add cache-entry
Enter up to 15 characters of NetBIOS name (no wild cards)[] Accounting<0000>
Enter IP Address [0.0.0.0]? 20.2.1.3
Name cache entry has been created
DLSw config> prompt, open NetBIOS SAPs on both sides of the link to enable DLSw to transmit NetBIOS frames. DLSw config>open-sap
Interface # [0]?
Enter SAP in hex(range 0-F4),'SNA', 'NB' or 'LNM'[4]? nb
SAP F0 opened on interface 0
DLSw config> prompt, enter set priority to set a priority of Critical, High, Medium, or Low for SNA sessions and NetBIOS sessions. Also, set a message allocation that corresponds to a session's priority. The router uses the priority and message allocation to selectively limit the burst-length of specific types of traffic. For example, if you assignDLSw config>set priority
Priority for SNA DLSw sessions (C/H/M/L) [M]? H
Priority for NetBIOS DLSw sessions (C/H/M/L) [M]? M
Message allocation by C/H/M/L priority (4 digits) [4/3/2/1]?
Maximum NetBIOS frame size (516, 1470, 2052, or 4399) [2052]?
SNA traffic a priority of Critical, and Critical sessions have a message allocation of 4, and
NetBIOS traffic a priority of Medium, and Medium sessions have a message allocation of 2,
DLSw config> prompt. The default is 2052. Set this parameter to the largest frame size you expect to need, and no larger. Setting the frame size larger than needed reduces the number of available buffers.
DLSw config>set memory
Number of bytes to allocate for DLSw (at least 26368) [141056]?
Number of bytes to allocate per LLC session [8192]?
Number of bytes to allocate per SDLC session [4096]?
Number of bytes to allocate for NetBIOS UI-frames [40960]?
[C] means the command is available at the NetBIOS config> prompt.
[M] means the command is available at the NetBIOS> prompt.
Add [C] [M]
Adds a new name cache entry to the router's permanent or static configuration.
From the configuration prompt, adds a permanent entry. From the monitoring prompt, adds a static entry.
Syntax: add
add cache-entry
Enter up to 15 characters of NetBIOS name (no wild cards)[] nbserve<F1>
Enter IP Address [0.0.0.0]? 20.2.1.3
Name cache entry has been created
delete cache-entry
Enter name cache record number [1]? 2
Name cache entry has been deleted
delete cache-entry
Enter up to 15 characters of NetBIOS name (no wild cards) []? ADMIN
Name cache entry NOT found in Active list for name entered
Name cache entry has NOT been deleted from Active list
Static name cache entry deleted from Config list
disable duplicate-filtering
Duplicate frame filtering is OFF
disable route-caching
Route caching is OFF
enable duplicate-filtering
Duplicate frame filtering is ON
enable route-caching
Route caching is ON
exit
List [C]
Displays all cache entries or displays cache entries by type of entry. Displays filter configuration information or general configuration information.
Syntax: list
list cache all
Entry Name IP Address
----- ------------------- ---------------
1 Accounting <00> 20.2.1.3
2 Notes<00000> <00> 20.2.3.4
list cache entry-number
Enter name cache record number [1]? 1
Entry Name IP Address
----- ------------------- ---------------
1 Accounting <00> 20.2.1.3
|
*
|
Stands for any character string. For example, "San*" could produce: San Francisco Santa Fe San Juan |
|
?
| Stands for any one character. |
|
$
| Must coincide with the last character in a name. |
Following are examples of valid uses of wildcards that match San Francisco:
|
*Fran*
| S??*????????? |
|
San?Fran?isco
| S?* |
|
S*
| S?a?n?F?a?c?s? |
|
*o
| ???????????? |
|
isco?
| isco$ |
|
San?F*
| * |
Use as many wildcards as you like, up to the maximum number of characters in a NetBIOS name (15 or 16, depending on how many significant characters you configured using the set cache-parms command).Note: NetBIOS names are case sensitive.
Example:list cache name
Enter up to 15 characters of NetBIOS name (wild cards ok) []? Acc*
Entry Name IP Address
----- ------------------- ---------------
1 Accounting <00> 20.2.1.3
list cache ip-address
Enter IP Address [0.0.0.0]? 20.2.1.3
Entry Name IP Address
----- ------------------- ---------------
1 Accounting <00> 20.2.1.3
list filters all
Bridge name conflict filtering is OFF
Bridge general bcast filtering is OFF
Bridge trace control filtering is OFF
DLS name conflict filtering is ON
DLS general bcast filtering is ON
DLS trace control filtering is ON
list filters bridge
Bridge name conflict filtering is OFF
Bridge general bcast filtering is OFF
Bridge trace control filtering is OFF
list filters dlsw
DLS name conflict filtering is ON
DLS general bcast filtering is ON
DLS trace control filtering is ON
list general
Bridge-only Information:
Bridge duplicate filtering is OFF
Bridge duplicate frame filter t/o 1.5 seconds
DLS-only Information:
DLS command frame retry count 5
DLS max remote name cache entries 100
DLS command frame retry timeout 0.5 seconds
DLS-Bridge Common Information:
Route caching is OFF
Significant characters in name 15
Max local name cache entries 500
Duplicate frame detect timeout 5.0 seconds
Best path aging timeout 60.0 seconds
Reduced search timeout 1.5 seconds
Unreferenced entry timeout 5000 minutes
Cnt NetBIOS Name Name Type Entry Type
--- ------------------- ----------------- ----------
1 HYPERION <01> INDIVIDUAL LOCAL DYNAMIC
2 LANGROUP<F8> <00> UNKNOWN STATIC
3 ACCOUNTING<000><00> GROUP PERMANENT
list cache config
Name IP Address Source Last Mod
------------------ -------------- --------- ---------
Admin<00000> <00> 20.3.120.8 STATIC ADDED
Finance <01> 20.4.96.8 PERMANENT MODIFIED
Notes <00> 20.8.210.3 PERMANENT UNCHANGED
Cnt NetBIOS Name Entry Type Loc Path St Rem Path St
--- --------------- ----------- ----------- -----------
2 HYPERION <01> DYNAMIC UNKNOWN GROUP
3 EXCEL < > DYNAMIC GROUP GROUP
For NetBIOS clients the Local Path State is always Unknown and the MAC Address and Routing Information fields are always empty.
Example:
list cache local
Cnt NetBIOS Name Loc Path St MAC Address Routing Information
--- --------------- ----------- ----------- --------------------
2 HYPERION <01> UNKNOWN
|
*
|
Stands for any character string. For example, "San*" could produce: San Francisco Santa Fe San Juan |
|
?
| Stands for any one character. |
|
$
| Must coincide with the last character in a name. |
Following are examples of valid uses of wildcards that match San Francisco:
|
*Fran*
| S??*????????? |
|
San?Fran?isco
| S?* |
|
S*
| S?a?n?F?a?c?s? |
|
*o
| ???????????? |
|
isco?
| isco$ |
|
San?F*
| * |
Use as many wildcards as you like, up to the maximum number of characters in a NetBIOS name (15 or 16, depending on how many significant characters you configured using the set cache-parms command).Note: NetBIOS names are case sensitive.
Example:list cache name
Enter up to 15 characters of NetBIOS name (wild cards ok) []? HYP*
NetBIOS Name Name Type Entry Type
------------------- ----------------- ----------
HYPERION <01> INDIVIDUAL REMOTE DYNAMIC
Count of name cache entry hits 2
Age of name cache entry 689
Age of name cache last reference 85
Local path information:
Loc Path St Timestamp MAC Address LFS Routing Information
----------- --------- ----------- --- -----------------------
UNKNOWN 689
Remote path information:
Rem Path St Timestamp LFS IP Address(es)
----------- --------- --- --------------
BEST FOUND 85 2 52 20.55.27.33
cache remote
Displays cache entries that the router learns over the DLSw WAN. If the router has found the best path, it displays the IP address associated with the DLSw neighbor that can reach the NetBIOS station. For a description of the fields in this display, see the list cache name command.
Cnt NetBIOS Name Entry Type Rem Path St IP Address(es)
--- --------------- -------------- -------------- --------------
2 HYPERION <01> STATIC BEST FOUND 20.55.27.33
3 EXCEL <00> STATIC SEARCH ALL cache unknown
Cnt NetBIOS Name Entry Type Loc Path St Rem Path St IP Address(es)
--- ------------- ----------- ----------- ----------- --------------
2 HYPERION <01> STATIC UNKNOWN BEST FOUND 23.21.21.2
3 EXCEL <00> STATIC UNKNOWN UNKNOWN
list filters all
Bridge name conflict filtering is OFF
Bridge general bcast filtering is OFF
Bridge trace control filtering is OFF
DLS name conflict filtering is ON
DLS general bcast filtering is ON
DLS trace control filtering is ON
list filters bridge
Bridge name conflict filtering is OFF
Bridge general bcast filtering is OFF
Bridge trace control filtering is OFF
list filters dlsw
DLS name conflict filtering is ON
DLS general bcast filtering is ON
DLS trace control filtering is ON
list general
Bridge-only Information:
Bridge duplicate filtering is OFF
Bridge duplicate frame filter t/o 1.5 seconds
DLS-only Information:
DLS command frame retry count 5
DLS max remote name cache entries 100
DLS command frame retry timeout 0.5 seconds
DLS-Bridge Common Information:
Route caching is OFF
Significant characters in name 15
Max local name cache entries 500
Duplicate frame detect timeout 5.0 seconds
Best path aging timeout 60.0 seconds
Reduced search timeout 1.5 seconds
Unreferenced entry timeout 5000 minutes
list statistics cache
Local name cache entries 1
Remote name cache entries 1
Local individual names 1
Remote individual names 0
Group names 0
Unknown names 1
Name cache hits 2194
Name cache misses 2
list statistics frames bridge
Frames in cache 0
Name query frames 0
Status query frames 0
Add name frames 0
Add group name frames 0
Name in conflict frames 0
Frames not filtered as duplicates 0
list statistics frames dlsw
Name query frames 0
Status query frames 0
Add name frames 0
Add group name frames 0
Name in conflict frames 0
Frames not filtered as duplicates 0
list statistics general bridge
Frames received 1339
Frames discarded 0
Frames forwarded to bridge 1339
Frames forwarded to DLS 1339
list statistics general dlsw
Frames received 1339
Frames discarded 0
Frames forwarded to bridge 1339
set cache-parms
Significant characters in name [15]?
Best path aging timeout value in seconds [60.0]?
Reduced search timeout value in seconds [1.5]?
Unreferenced entry timeout value in minutes [5000]?
Max nbr local name cache entries [500]?
Max nbr remote name cache entries [100]?
Cache parameters set
filters bridge
Turns on or off frame-type filtering for bridging.
Example: set filters bridge
Filter Name Conflict frames? [No]: y
Name conflict filtering is ON
Filter General Broadcast frames? [No]:
General broadcast filtering is OFF
Filter Trace Control frames? [No]:
Trace control filtering is OFF
NetBIOS config> prompt, displays the NetBIOS filtering configuration prompt (NETBIOS Filter config>).
From the NetBIOS> prompt, displays the NetBIOS filtering monitoring prompt (NETBIOS Filter>).
These prompts allow you to set up NetBIOS name and byte filters.
See Configuring and Monitoring NetBIOS Name and Byte Filters for information on the commands available at this prompt.NETBIOS Filtering configuration
NETBIOS Filter config>
set filters dlsw
Filter Name Conflict frames? [Yes]:
Name conflict filtering is ON
Filter General Broadcast frames? [Yes]:
General broadcast filtering is ON
Filter Trace Control frames? [Yes]:
Trace control filtering is ON
NetBIOS config> prompt, displays the NETBIOS Filter config> prompt.
From the NetBIOS> prompt, displays the NETBIOS Filter> prompt.
These prompts allow you to set up NetBIOS name and byte filters.
See Configuring and Monitoring NetBIOS Name and Byte Filters for a description of the commands available at this prompt.NETBIOS Filtering configuration
NETBIOS Filter config>
WARNING! Setting Duplicate Frame Filter Timeout to zero...
disables duplicate frame checking!
Duplicate frame filter timeout value in seconds [1.5]?
Duplicate frame detect timeout value in seconds [5.0]?
General parameters set
Command frame retry count [5]?
Command frame retry timeout value in seconds [0.5]?