• February 24, 2025, 11:32:18 PM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

This Forum Beta is ONLY for registered owners of D-Link products in the USA for which we have created boards at this time.

Pages: [1] 2

Author Topic: DIR-868 takes master browser and breaks NetBIOS  (Read 18493 times)

gerrym

  • Level 1 Member
  • *
  • Posts: 18
DIR-868 takes master browser and breaks NetBIOS
« on: October 23, 2014, 12:33:43 PM »

Background:   Home network, dual Dlink DNS-321 NAS's, and several other NAS boxes.  The Dlink-321's normally maintain master browser... and do a good job.  I have an 868L that if given the opportunity to take master browser it will.   When the 868l takes over, browsing shared devices stops working correctly.   Unplug it from the network for a few minutes and one (or both) the DNS-321's take over... all returns to normal.   

I would like to turn off all the NetBIOS services, no easy way that I can see.  I have all other shared service off, like media/dlna/usb etc.    Still no joy, if the 868L wins the master broswer election... things break.

Has anyone experienced this?   868 is running the latest firmware, no other issues.

Thanks in advance!

Gerry-
Logged
Retired Network Janitor

FurryNutz

  • Poweruser
  •   ▲
    ▲ ▲
  • *****
  • Posts: 49923
  • D-Link Global Forum Moderator
    • Router Troubleshooting
Re: DIR-868 takes master browser and breaks NetBIOS
« Reply #1 on: October 23, 2014, 12:42:46 PM »

Link>Welcome!

  • What Hardware version is your router? Look at sticker under the router case.
  • Link>What Firmware version is currently loaded? Found on the routers web page under status.
  • What region are you located?

Not sure about this one. Most average users have the main host router and it handles all of the processing and management of network services. There maybe a conflict with the behavior and design of the router and having your DNS handle the same services.

Are these enabled by chance under Setup/Networking?
NetBIOS Announcement:
Learn NetBIOS from WAN

What OS platform are you using?  ???

From was we can gather, the Master Browser is a Windows Domain service that is handled in Domains, and not in home networks. There maybe a network sniff that needs to be collected so D-Link can review it to see what is going on.
« Last Edit: October 23, 2014, 01:18:53 PM by FurryNutz »
Logged
Cable: 1Gb/50Mb>NetGear CM1200>DIR-882>HP 24pt Gb Switch. COVR-1202/2202/3902,DIR-2660/80,3xDGL-4500s,DIR-LX1870,857,835,827,815,890L,880L,868L,836L,810L,685,657,3x655s,645,628,601,DNR-202L,DNS-345,DCS-933L,936L,960L and 8000LH.

gerrym

  • Level 1 Member
  • *
  • Posts: 18
Re: DIR-868 takes master browser and breaks NetBIOS
« Reply #2 on: October 23, 2014, 02:48:46 PM »

Learn and Announce are OFF, as are any NetBIOS services I can find (actually disabled where i can find it globally)   Running various Win7/Win8 clients, all are in the same workgroup, as is the 868L.  Master Browser (NetBIOS) is required to function correctly so all my Windows boxes can browse the NAS devices I have (2 Dlink-321's) and 4 Seagate GoFlex Home.   All are Linux based boxes and all use Samba to advertise their shares.   Master Browser breaks, all my shares do not browse correctly.   It is the 868L's issue.    It mucks up the advertising/management when it wins the browser election.   It cannot beat out my two Dlink-321 NAS's, but if I have one of them off line even momentarily, the 868L goes for master.  If I could shell into it's OS and view a few settings, I might be able to figure it out.

Right now am considering putting the 868L in a 'workgroup' of its own.   That would make peace with the rest of my network.   

Not how I prefer to do it, but right now...

If you'd like some wireshark captures, be happy to provide them.  I've sniffed it a lot and see that this is what is happening... just can't adjust the configuration of the 868L any further... that I can see.    As long as either of my DNS-321's is online, they will win the browser election.

I could be overlooking something... but this has been an issue for 4-5 months.  As long as the 868L isn't master, all is fine.

Thanks in advance for any other thoughts.   Captures... let me know.
« Last Edit: October 23, 2014, 02:50:39 PM by gerrym »
Logged
Retired Network Janitor

FurryNutz

  • Poweruser
  •   ▲
    ▲ ▲
  • *****
  • Posts: 49923
  • D-Link Global Forum Moderator
    • Router Troubleshooting
Re: DIR-868 takes master browser and breaks NetBIOS
« Reply #3 on: October 23, 2014, 03:33:30 PM »

Ok.

I don't see this with my 868L and DNS-345 however I don't have the DNS handling any Master Browser services and maybe there is some differences between the 321 and the 345s. You seem to have a different set up I guess.

I've passed this on to D-Link for review. We may need some sniff samples...
Logged
Cable: 1Gb/50Mb>NetGear CM1200>DIR-882>HP 24pt Gb Switch. COVR-1202/2202/3902,DIR-2660/80,3xDGL-4500s,DIR-LX1870,857,835,827,815,890L,880L,868L,836L,810L,685,657,3x655s,645,628,601,DNR-202L,DNS-345,DCS-933L,936L,960L and 8000LH.

gerrym

  • Level 1 Member
  • *
  • Posts: 18
Re: DIR-868 takes master browser and breaks NetBIOS
« Reply #4 on: October 24, 2014, 07:18:14 AM »

Thanks for your help.

Hardware version is A1.   Firmware is current 1.08.  No 'domain', just a workgroup.

Symptoms are with the 868L as master browser, some clients loose their ability to correctly browse the NAS advertised shares using Windows Explorer.

NetBIOS is using its election process to get the master browser determined, due to the absence of a WINS server or flat file like lmhosts.   Left to hold these elections it is reacting by its own rules, well... hopefully.   Since its Microsoft (and I guess IBM?) aged method, tried and proven... it still serves well I believe for host lookups.   At least for local network awareness, since normally is not set in a router to traverse outside its own subnet.  Sort of too chatty?   

The 868L is apparently configured to advertise itself by an increased 'OS Level',  (although not by much?) because it wins the election every time my DLink-321's are unavailable... which is not often.   The other 4 non-DLink NAS boxes all have their OS Level set specifically at '2'... which low.   The configs on the DNS-321's is not set in their smb.conf, so I'm unable to directly determine their OS Level.   

If there is a setting in the 868L's WebGUI to further turn off those services, I'm missing it.   Again, I could put it in a different workgroup, but that would still leave me not knowing more about what is going on.

Thanks for your help!
« Last Edit: October 24, 2014, 07:28:37 AM by gerrym »
Logged
Retired Network Janitor

FurryNutz

  • Poweruser
  •   ▲
    ▲ ▲
  • *****
  • Posts: 49923
  • D-Link Global Forum Moderator
    • Router Troubleshooting
Re: DIR-868 takes master browser and breaks NetBIOS
« Reply #5 on: October 24, 2014, 07:32:57 AM »

Ya, I'm thinking this is a configuration or your specialized configuration you use is maybe out of normal design and operation for home networks.

I put my 868L back online last night and using Networking, I saw my DNS-345 listed as a network resource and was able to access the shares I had set up on it using normal access policy. I was able to access the DNS as well with my Mac Book Pro. All this is using pretty much default settings.

I think your configuration maybe a bit beyond the scope of the home router and possibly could be causing issues your seeing.

I'll have D-Link review this and see where to go next...While we wait, you may want to contact your regional D-Link support office and ask either someone in the DNS group or the DIR router series group, level 2 or higher about this.
 
« Last Edit: October 24, 2014, 09:54:35 AM by FurryNutz »
Logged
Cable: 1Gb/50Mb>NetGear CM1200>DIR-882>HP 24pt Gb Switch. COVR-1202/2202/3902,DIR-2660/80,3xDGL-4500s,DIR-LX1870,857,835,827,815,890L,880L,868L,836L,810L,685,657,3x655s,645,628,601,DNR-202L,DNS-345,DCS-933L,936L,960L and 8000LH.

gerrym

  • Level 1 Member
  • *
  • Posts: 18
Re: DIR-868 takes master browser and breaks NetBIOS
« Reply #6 on: October 24, 2014, 10:18:46 AM »

Thanks again.   I am starting to think that a key to this might be when using the 868L as the dhcp server AND expecting NetBIOS to work correctly.    As I go into this further today, after first starting to look for a resolution a few months back, perhaps I needed to do a clean break with NetBIOS and the router.

If the 868L was previously feeding my dhcp clients info by using the "NetBIOS announcement" and its various sub-selections, just turning those off is not enough.   I believe... I then needed to go to each client and enable the 'NetBIOS over TCP/IP" setting for things to behave correctly.   

It appears changing this setting at each client is fairing well. 
Logged
Retired Network Janitor

FurryNutz

  • Poweruser
  •   ▲
    ▲ ▲
  • *****
  • Posts: 49923
  • D-Link Global Forum Moderator
    • Router Troubleshooting
Re: DIR-868 takes master browser and breaks NetBIOS
« Reply #7 on: October 24, 2014, 11:53:59 AM »

Keep us posted on how it goes. I believe my network adapter settings are for Default NetBIOS Settings and not strict Enable NetBIOS over TCP/IP. I'm using Windows 7.
Logged
Cable: 1Gb/50Mb>NetGear CM1200>DIR-882>HP 24pt Gb Switch. COVR-1202/2202/3902,DIR-2660/80,3xDGL-4500s,DIR-LX1870,857,835,827,815,890L,880L,868L,836L,810L,685,657,3x655s,645,628,601,DNR-202L,DNS-345,DCS-933L,936L,960L and 8000LH.

PacketTracer

  • Level 4 Member
  • ****
  • Posts: 441
Re: DIR-868 takes master browser and breaks NetBIOS
« Reply #8 on: October 24, 2014, 01:14:00 PM »

Hi,

in addition to dynamically provide IP addresses DHCP allows to specify a huge amount of additonal configuration parameters for use by DHCP clients in the form of so called DHCP options. For example DHCP options 44 (WINS server address list) and 46 (NetBIOS node type: one of B, P, M, H) govern NetBIOS client behaviour.

In theory, if your LAN consists of only one IP subnet and you do not use a WINS server, in DHCP SERVER SETTINGS of your DIR-868-L you could
  • either leave NetBIOS announcement unchecked: In this case a Windows client (at least Windows 7 and later) uses "NetBIOS over TCP/IP", if default setting was not changed.
  • or you check NetBIOS announcement, uncheck Learn NetBIOS from WAN, leave NetBIOS scope and WINS IP addresses blank and specify NetBIOS node type=Broadcast only. In this case a Windows client not statically configured will learn these NetBIOS settings via DHCP (at least if default setting was not changed).

In a Windows command shell you can use ipconfig /all to control correct NetBIOS settings:
  • In the top section it should show Node Type having the value Broadcast or Hybrid.
  • In the network adapter section it should show NetBIOS over Tcpip being Enabled.
  • In the network adapter section no WINS servers should be listet.

In addition in a Windows command shell you can use the nbtstat command to do some checks. For example:
  • nbtstat -n: Shows the list of all locally used NetBIOS names successfully registered.
  • nbtstat -c: Shows the local name cache, which contains all remote NetBIOS names that have been resolved by NetBIOS name resolution. For example, if you want to resolve the computer name of a remote computer (say its name is 'RCOMP') to its IP address via NetBIOS name resolution you can check if this works via the command nbtstat -a RCOMP. Looking again into the local name cache via nbtstat -c it should now have one or more entries for RCOMP showing its IP address.
  • Using the command nbtstat -A <IP address> (replace <IP address> by any IP address of a romote device inside your LAN) you can see the list of all NetBIOS names the remote node corresponding to the ip address has successfully registered. If the list contains an entry WNAME <1D>, where WNAME is a symbolic name I am using here to denote the workgroup name you are using inside your LAN, the corresponding device is the master browser for that workgroup. Hence you can check this way, which device is the present master browser (the one having the <1D> entry for the workgroup).

PT

EDIT: In addition on any Windows 7 client make sure you have turned on network discovery in your current (private) network profile as you can see in the "Advanced sharing settings" inside "Network and Sharing Center". In your "Services Manager" check if "Computer Browser" service is started. In order to reset the IP settings of a Windows computer to its defaults, open a command shell with administrative rights and enter the command netsh int ip reset. After that you have to restart the computer.

EDIT2: For background information see
  • How Computer Browser Service Works. Especially be aware of the fact that after a change of the device that holds the master browser function, it can take 12 minutes or more after a full browsing list is visible/available again.
  • List of names registered with WINS Service: Explains the meaning of the 16th byte (service byte) within NetBIOS names.
  • The Computer Browser service uses 'NetBIOS over TCP/IP' as an underlying technique. The principles and details how 'NetBIOS over TCP/IP' works can be found in RFC1001 and RFC1002.
Also be aware of the fact that 'NetBIOS over TCP/IP' is a dying technique and that instead of the NetBIOS based browsing method there are other methods used by modern Windows systems to enumerate network resources.
« Last Edit: October 25, 2014, 10:07:15 AM by PacketTracer »
Logged

FurryNutz

  • Poweruser
  •   ▲
    ▲ ▲
  • *****
  • Posts: 49923
  • D-Link Global Forum Moderator
    • Router Troubleshooting
Re: DIR-868 takes master browser and breaks NetBIOS
« Reply #9 on: October 24, 2014, 01:57:50 PM »

Thank you PT.

Furry bows to PT networking guru.  ;D
Logged
Cable: 1Gb/50Mb>NetGear CM1200>DIR-882>HP 24pt Gb Switch. COVR-1202/2202/3902,DIR-2660/80,3xDGL-4500s,DIR-LX1870,857,835,827,815,890L,880L,868L,836L,810L,685,657,3x655s,645,628,601,DNR-202L,DNS-345,DCS-933L,936L,960L and 8000LH.

FurryNutz

  • Poweruser
  •   ▲
    ▲ ▲
  • *****
  • Posts: 49923
  • D-Link Global Forum Moderator
    • Router Troubleshooting
Re: DIR-868 takes master browser and breaks NetBIOS
« Reply #10 on: October 28, 2014, 09:45:55 AM »

Any status on this?  ???


Background:   Home network, dual Dlink DNS-321 NAS's, and several other NAS boxes.  The Dlink-321's normally maintain master browser... and do a good job.  I have an 868L that if given the opportunity to take master browser it will.   When the 868l takes over, browsing shared devices stops working correctly.   Unplug it from the network for a few minutes and one (or both) the DNS-321's take over... all returns to normal.   

I would like to turn off all the NetBIOS services, no easy way that I can see.  I have all other shared service off, like media/dlna/usb etc.    Still no joy, if the 868L wins the master broswer election... things break.

Has anyone experienced this?   868 is running the latest firmware, no other issues.

Thanks in advance!

Gerry-
Logged
Cable: 1Gb/50Mb>NetGear CM1200>DIR-882>HP 24pt Gb Switch. COVR-1202/2202/3902,DIR-2660/80,3xDGL-4500s,DIR-LX1870,857,835,827,815,890L,880L,868L,836L,810L,685,657,3x655s,645,628,601,DNR-202L,DNS-345,DCS-933L,936L,960L and 8000LH.

gerrym

  • Level 1 Member
  • *
  • Posts: 18
Re: DIR-868 takes master browser and breaks NetBIOS
« Reply #11 on: October 29, 2014, 02:54:04 PM »

My apologies for not getting back up here.   
 
The 868L's dhcp server settings that allow it to pass NetBIOS configuration parameters to dynamically connecting clients, that certainly warranted added clarification and is much appreciated.   Those details and more... are needed in the setup guide and online help, no doubt.

For the moment I have those items unchecked in my dhcp server setup.   I have manually set all my static and dynamic IP clients to  'Enable NetBIOS over TCP/IP'.    I do not believe that configuration is influencing the issue I am experiencing, but certainly can adjust any of those parameters as needed.   I understand PacketTracer's comments about it being a 'dying breed', but for now I'd prefer to adjust only one thing at a time?

My goal at this point is to see if the 868L can be configured so it does not participate in my local network's NetBIOS traffic as a host with devices to share.   

Given the 868L's ability to share devices connected to its USB port, it is necessarily part of the NetBIOS traffic.  With that USB sharing disabled, the 868L still participates in browser elections. 

Some more background. 

Prior to installing the 868L a few months ago, one of my two Dlink-321 NASs would maintain master browser status, and all client browsing worked fine.  I purchased the 868L specifically for its 802.11ac capability, not much else.   There have been just a handful of times when the 868L takes Master Browser, this evidently has been when the Dlink-321's were off line for a few minutes.   Then the 868L is elected as master and some clients are not able to browse the NAS shares correctly.   The 868L will not release master when the Dlink-321's come back on the network.   

So far the only way to get the 868L to release master is to disconnect it from my network and allow the Dlink-321's to sort out Master.  Then all is fine, I can put the 868L back on the network and it loses any browser elections after this.   

The Dlink-321's are configured to OS Level 20, set by absence of an explicit OS Level parameter in the global section of their respective smb.conf files. The other 2 NASs are set explicitly to OS Level 2, so they hold little power to win a browser election.   Unable to tell how the 868L is configured.  But since the Dlink-321's can maintain master when the 868L comes back on line, why must I pull the 868L off line in order for that to happen?   

The 868L is configured as my Internet gateway, so it is not handy to have it off the network...       

Thanks in advance!

Gerry-
« Last Edit: October 29, 2014, 03:02:37 PM by gerrym »
Logged
Retired Network Janitor

PacketTracer

  • Level 4 Member
  • ****
  • Posts: 441
Re: DIR-868 takes master browser and breaks NetBIOS
« Reply #12 on: October 30, 2014, 02:00:27 PM »

Hi,

Quote
The Dlink-321's are configured to OS Level 20, set by absence of an explicit OS Level parameter in the global section of their respective smb.conf files. The other 2 NASs are set explicitly to OS Level 2, so they hold little power to win a browser election.   Unable to tell how the 868L is configured.  But since the Dlink-321's can maintain master when the 868L comes back on line, why must I pull the 868L off line in order for that to happen?

According to theory in case two potential browsers have the same election criteria, the one that runs longer will win. This might explain why in your case the later starting devices always lose browser election. Maybe you can avoid this situation by setting OS level to 65 for one of your Dlink-321's (details).

Quote
There have been just a handful of times when the 868L takes Master Browser, this evidently has been when the Dlink-321's were off line for a few minutes.   Then the 868L is elected as master and some clients are not able to browse the NAS shares correctly.   The 868L will not release master when the Dlink-321's come back on the network.

If only some of your clients were not able to browse the NAS shares there must have been others that were able to do so? But that would mean that the DIR-868L worked fine in its role as master browser because it could send a complete browse list to those clients that were able to browse the NAS shares. Was the inability to browse the NAS shares a permanent failure or did it vanish after having waited long enough (... 12 minutes)?

PT
Logged

gerrym

  • Level 1 Member
  • *
  • Posts: 18
Re: DIR-868 takes master browser and breaks NetBIOS
« Reply #13 on: October 31, 2014, 07:04:49 AM »

PT,   Thanks for your attention to this, it is much appreciated.  And yep... the theory of election criteria, its like a shell game.  Ha.   I am starting to think this is the path to the answer though, just need to prove it.   I can as you suggest set the OS level of one of the DNS-321's to a higher level, but as they are configured that would only be a temporary fix since the 321s do not like retaining edits to the smb.conf file.   I believe there are tricks to accomplish that, but have not explored that methodology.  For the moment I would prefer to drill down on this first, not ruling out setting another NAS to a higher OS Level and/or designating one as preferred and OS Levlel 65?

At this point I believe additional progress/info will come from a capture of UDP 137/138/139 while watching the 868L force an election and take master.   Prior to the recent addition of my  'new' 868L to the network, the DNS-321's had cooperated as master/backup browser since 2011 or so.   1 DNS-321 will routinely take master and the other takes backup.   Since they are identically configured, I always felt it was simply one getting powered up slightly ahead of the other, nothing more.

To the shell game.. If there is a local master (LM) and local backup (LB) on line when anything happens, that can actually extend the typical 12 minute election period if a master 'disappears' less than graceful.  (I believe this is what started my situation, i.e. the 321s were being tested with MTU tweaks for jumbo packets)  With this 'lost master suddenly' condition 3 election cycles of about 11-12 minutes will go by while the others wait patiently for 'their master' to return.   If there was also a backup, as in my case... you can add 15 minutes because of their update process.   So worst on this network could be... 51 minutes.   UGH.   Perhaps... this is key? 

I don't think I've ever been THAT patient...having thought shorter periods were seemingly my norm because elections were over in much shorter times.  (As evidenced by restoration of client browsing and/or nbstat queries).  But timing as observed and timing as computed by 'theory' should ultimately yield the same result for this to work. (hmmm wait 52 mins... ugh)   The Dlink DNS-321's recover master browser in minutes if I just disconnect the 868L router by pulling its RJ45 feeding my first switch.   That disconnect would seemingly (theory again) constitute a non-graceful departure of a master, but my Dlink-321's don't appear to wait around the theoretical 3 election cycles after a master disappears in that manner.  They have their master (and occasionally one as backup) status back in just a few minutes.

In the absence of being able to see the smb.conf settings on the 868L, just judging by its past behavior it seems empowered to grab master and hold it... perhaps it has a 'Preferred Master' setting?   Ugh.   That would get the 868L another 8 'points' in the election criteria and put it as the winner.   And since the Dlink-321's would have participated in that election and lost, they will disqualify themselves and not try to grab it back?

I am curious now... if perhaps the 868L has a 'preferred master' set in its configuration.   Will have to capture some packets and watch.   Just replaced all my switches with 4 Dlink DGS-1100 Smart Switches so perhaps a capture via a mirror'd port would make for a cleaner capture.   

Using Wireshark looking at past UDP 138 captures, the content in the packet info section (so far) does not seem to be but so explicit relative to an election, perhaps I have missed it.   Perhaps I need to filter 137 and 139 into the mix as well to see who chats to the 868L.

Cannot break the network with live efforts going on though....  :-\

CAVEAT:   Dlink products have a growing place on my network.  If I just KNEW how the 868L is configured explicitly that might simplify my effort here.  Any chance of obtaining THAT information before wading through packet captures?    ::)   

Thanks again!

Gerry-
« Last Edit: October 31, 2014, 07:16:53 AM by gerrym »
Logged
Retired Network Janitor

PacketTracer

  • Level 4 Member
  • ****
  • Posts: 441
Re: DIR-868 takes master browser and breaks NetBIOS
« Reply #14 on: October 31, 2014, 05:06:18 PM »

Hi,

Quote
Using Wireshark looking at past UDP 138 captures, the content in the packet info section (so far) does not seem to be but so explicit relative to an election, perhaps I have missed it.   Perhaps I need to filter 137 and 139 into the mix as well to see who chats to the 868L.

Cannot break the network with live efforts going on though....  :-\

CAVEAT:   Dlink products have a growing place on my network.  If I just KNEW how the 868L is configured explicitly that might simplify my effort here.  Any chance of obtaining THAT information before wading through packet captures?    ::)   

I'm afraid you have to "wade through packet captures" to see from "RequestElection" browser frames that are broadcast by your DIR-868L at startup (e.g. after a reboot) how it is configured. In Wireshark just enter a filter called "browser" to get all frames of the "browser protocol" (UDP packets destined to port 138 with the following nested contents: NetBIOS Datagram Service | SMB | SMB Mailslot Protocol | Microsoft Windows Browser Protocol). The definitions can be found here (especially chapters 6.7 and 6.8 ). Since these packets are broadcast you can see them at any LAN client you run Wireshark on, hence you don't need to capture via a switch mirror port.

PT
« Last Edit: October 31, 2014, 05:19:56 PM by PacketTracer »
Logged
Pages: [1] 2