Article from: http://blog.yesky.com/blog/zhazq/archive/2005/02/04/71575.aspx To help users find network resources, Microsoft uses mechanisms called "Browse Service" to complete network resource lookup And positioning.
When we are in a peer network, when the number of hosts is more than a certain amount, sometimes we open "online neighbors", speed will be very slow, (especially in a mixed environment of a 2000 and 98 For serious), he is not a fault. The "online neighbor" work mechanism determines this fact. When our machine starts, you will look for a machine in the network - the main browser, and then report himself to this In the network, the primary browser implements this function by maintaining a "browsing table".
Maintain a list of NetBLOS-based resource lists in the primary browse table, which will have a map of the NetBLOS name to the IP address, which contains information about all of our machines. Ordinary client joins yourself in the primary browse table of the primary browser, telling him: "I came to this network" My NetBilos name is Computer1, IP is 192.168.0.1, when you open the online neighbors, first broadcast Find "Main Browser". If there is no "primary browser" or the primary browser shutdown, a "primary browser" will be selected through "Election" in the network.
The principles include 1. Operating system 2. WUT 10. Computer role (Note: This process may be very slow !! Especially in a 2000 98 mixed environment) After finding the primary browser, get one from the main browser Back up the list of browsers, then get all the list from the backup browser (back up the browser, the backup of the primary browser, store a copy of the browse table), then all the computers appear in the online neighbor!
The customer's browsing process is as follows: 1. Add the server to the browse list by publishing an announcement to the primary browser. 2. Master browser and backup browser shared server (domain) list. 3. The client retrieves the computer list of the backup browser from the primary browser. 4. The client and backup browser contact to retrieve the list of server. 5. The client and server contact to retrieve the list of shared resources on the server.
On the network, in order to effectively locate network resources, the browsing service of the Microsoft Windows network must have specific "browsing servers" to participate and provide. The role of the browsing server is divided into "(Domain) Main Browsing Server," Backup Browse Server "," Potential Browsing Server ". The browsing server is typically held by the first start-up computer, and then can be changed or handhailed by the election. Every 15 minutes, the main browser of each subnet declares themselves to other primary browsers on the subnet. Every 12 minutes, each domain master browser contacts WINS to obtain a list of all DomainName <1b> domains. Every 12 minutes, each primary browser (subnet) is connected to the domain master browser to update the browsing table. Every 12 minutes, each backup browser contacts its local primary browser to retrieve and update the browsing table. All server components (that is, the ability of the ability to share network resources) declare themselves to the primary browser in their local domain. A browser election occurs when the local subnet can't find a primary browser or an initial domain controller. The election is determined according to the operating system version number and identity. And most of the flow in this process is broadcast traffic. That's why WINS needs WINS in the multi-subsidy environment can use "network neighbors". Why is it trying to use the "network neighbor" as little as possible in the corporate network. Its work process determines that in a relatively large and dynamic change, it is destined to be unreliable and there are many problems and bring confusion.
Some common problems: 1 Sometimes, clear computers have been closed, but online neighbors still exist - browsing tables No update 2 All online neighbors are not accessible ---- Main browser crash, yet Elections New Browser 3 Some online neighbors are not available --- is the content in the browsing table does not update the browsing service has no direct control options, except for Win9x can be "Network Properties - File and Print Shared Service Properties "Controlle whether the computer is a browsing server, must be done by modifying the registry. Here are some registry control parameters. Hide specific computers in network neighbors: / system / currentControlSet / Services / LanmanServer / Parameters
Establish or modify: "hidden" = DWORD: 1/0 1 is hidden. (You can also be accessed through the UNC path after hidden)
Controls if it becomes a "browsing server": hkey_local_machine / system / currentControlset / Services / Browser / parameters "MaintainServerList" = reg_sz: Yes / no / auto "yes" is used as a browsing server, "no" does not act, "auto" automatic.
Win9X Computer, Control Isolated - Network - File and Print Shared Service Properties: Master Browse Server: Invalid / Valid / Automatic (It is recommended to set the Win9X computer to be invalid, restarted or from the network-disconnected computer setting to improve the network Neighbor work and improves network efficiency)
related information:
1. What is browsing list (Browsing List) In Microsoft Network, users can see the entire network in the browse list (What finger? Subnet or broadcast domain? Everyone can consider considerations) all the computers. When you open the entire network through the online neighbor window, you will see a list of workgroups, open a working group, you will see the list of computers inside (you can also use NET View / Domain: WorkgroupName command in DOS mode) Get it), this is what we said browsing list. The Working Group is essentially a group of computers sharing a browsing list, all of which are right, no provisions, not allowing all computers to be in a working group.
2. The browsing list has seen a debate on the wooden cotton, some people say: The computer list in the online neighbor is the broadcast query. Some people raised an alphabet saying: My classmates are shut down, but I can still see it in the online neighbors, which should be obtained from the cache of a more fixed device such as Hub or switches. In fact, they only say that one of them, combining them is the correct answer --- Browse the list is to browse the master server via the broadcast query, provided by the browsing master server.
3. Browse the master server is what browsing the master server is a most important computer in the working group. It is responsible for maintaining the browsing list in this working group and the list of master server for other working groups, for this working group. Other computers and other computers that come to this Working Group provide browsing services, each working group selects a browsing master server for each transfer protocol, and most of the incorrectly encountered unable to browse the network is mostly because you are The working group did not browse the master server. You can use the nbtstat -a computername command in a working group to find out the browsing the master server using the NBT protocol, and its identity is containing // msbrowse_name field.
4. Browse the master server how to specify how the default, the browsing master server in the Win98 Workgroup is the first computer that enables file and printer sharing function in the working group, and also allows hand to manually configure a Win98 computer configuration. In order to browse the master server (method will be specified later, it is specified in the network configuration, but because the main control server needs to maintain the dynamic browsing list, performance will be affected), if there are multiple computers in a working group to configure this option, or It is the current browsing master server to turn off the system, without other computers to enable the master settings, the election of the master browser is required. 5. How to generate the browser election to generate the election packet for the browser, don't be very good, I have to tell the things in the book. In fact, the process is simple, first send one by a computer. Election of critical packets, the message contains information from sending a computer (operating system, version and NetBIOS name, etc.), elect packets broadcast to the network, each computer in the working group uses itself and election packets The priority comparison is mainly the main role of the operating system. Remember to be NT Server> NT Workstation> Win98> WFWG, anyway, the best condition is the best way to make a new browsing master server.
6. How is the process of the entire web browsing when a Win98 enters the network, if it comes with server services (enabled files and printer sharing) to broadcast our existence, and browse the master server will achieve this declaration And put it in your own maintenance browsing list; without binding files and printer sharing on the corresponding protocol, it will not declare, so it will not appear in the network neighbors. When the customer's computer wants to get a list of network resources required, first broadcast browsing requests, browse the master server After receiving the request, if the request is the list of browsing this group, the customer needs to be returned directly; If the request is a browsing list of other working groups, browse the master server will find the master browser of the corresponding working group to return to the user according to the record of the Browsing List, and the user can get the list of browsing it wants.
7. Why can't I have access to the online neighbors in my online neighbors, I believe that people who complain about it will not be like now, and everyone is already in front of the browsing service. I know this is impossible, because the gain of the browsing list is not obtained by accessing each machine, many times the computer does not correctly update the browsing list. When a computer is turned off normally, it will send a broadcast declaration to the network so that the browsing the master server is deleted from the browsing list; not normal shutdown, the list will remain a long time for a long time ( Nt is 45 minutes), which is why we can still see it in the network neighbors.