Debian Codegraph @

doc/html/docwp.htm

raw
1 <HTML>
2 <HEAD>
3 <TITLE>White Pages</TITLE>
4 </HEAD>
5 <BODY BACKGROUND="/back_fbb.jpg">
6 <P>
7 <IMG SRC="/fbb.gif" WIDTH="32" HEIGHT="32">
8 <H1 ALIGN=Center>
9 White Pages<SMALL>.</SMALL>
10 </H1>
11 <P ALIGN=Center>
12 Database and server.
13 <P>
14 <PRE>
15 <BIG><B><A HREF="docwp.htm#Description">DESCRIPTION.</A></B></BIG>
16 <BIG><B><A HREF="docwp.htm#Update">UPDATE REQUESTS.</A></B></BIG>
17 <BIG><B><A HREF="docwp.htm#DataDesc">DATABASE DESCRIPTION.</A></B></BIG>
18 <BIG><B><A HREF="docwp.htm#Manager">DATABASE MANAGER.</A></B></BIG>
19 <BIG><B><A HREF="docwp.htm#Epurwp">EPURWP AND UPDATE MESSAGES.</A></B></BIG>
20 <BIG><B><A HREF="docwp.htm#Wpserver">WP SERVER REQUESTS.</A></B></BIG>
21
22
23 <A NAME="Description"></A><IMG SRC="../blue.gif" WIDTH="14" HEIGHT="14"><BIG><B>Description.</B></BIG>
24
25 The White Pages implementation in FBB software has been based upon the W0RLI
26 model (many thanks to Hank for his work). I've tried to maintain a high
27 degree of compatibility whilst making further development to my own criteria.
28
29 I shall try to explain how FBB White Pages works.
30
31 I have probably mis-understood some features of W0RLI's specifications but I
32 hope that this will not greatly affect the compatibility.
33
34 First of all, why do we need White Pages?
35
36 White pages has some interesting features. Not least :
37
38 - A dynamic database containing users Name, zip code, HomeBBS and QTH (as
39 well as other fields).
40 - Automatic addressing/routing of mail to the HomeBBS of the destination
41 callsign.
42 - A White Pages server for remote interrogation of the database.
43
44 The database information is updated, firstly from the information given by
45 users when they exercise the N, NH, NQ and NZ features at their home (or
46 another WP equipped) BBS; and secondly, from information contained within the
47 messages headers as they traverse the Network.
48
49 The database is dynamic, it is changing constantly, and it updates itself in
50 real time. Either as soon as a line of a message header is received when in
51 ASCII forwarding mode, or when a complete message is decoded in compressed
52 forwarding mode; or else when a user disconnects from the BBS (this is to
53 prevent multiple updates being generated during a session).
54
55 So, the database can hold many callsigns. In fact it maintains a list of all
56 the callsigns seen from all individuals sending messages as well has all of
57 the BBS's seen in the forwarding paths. More than 10,000 valid records is not
58 impossible today, and this will surely increase as the number of packet radio
59 users grows with each day. This will allow user to send messages to other
60 users around the world without necessarily having to be concerned to find
61 their full Hierarchical Address, the old principle of the user typing:
62
63 BBS PROMPT &gt;
64 SP K6VAZ @ KM6WU.#CENCA.CA.USA.NOAM
65
66 should now be replaced by the user entering:
67
68 BBS PROMPT &gt;
69 SP KM6VAZ
70
71 The BBS will add the HA and send the response:
72
73 BBS PROMPT &gt;
74 SP K6VAZ
75 WP ROUTING @KM6WU.#CENCA.CA.USA.NOAM ADDED
76 TITLE ?
77
78 If the routing destination HA is not recorded in the database then the user
79 will be advised and prompted to enter the address manually.
80
81 Another capability of FBB White Pages is the automatic sending of update
82 messages to other BBS's. These messages are generated every night during
83 House-Keeping and are a listing of the additions and modifications made to
84 the database during that day. These messages are sent addressed both to and
85 from WP.
86
87 When passing through or terminating at another White Pages equipped BBS, the
88 message will automatically update the 'local' WP database at that BBS. This
89 feature MUST BE USED WITH CARE, as updates can generate a lot of traffic and
90 the Network must be able to support it.
91
92 *** It's not be a good idea to send these update messages on HF ! ***
93
94 A built-in White Pages server (WP) will provide information from the
95 database in response to a remote request. This server is described in
96 paragraph xx.
97
98 All files used by White Pages are in the FBB\SYSTEM\WP subdirectory.
99
100 Trace for WP updates (for debugging etc):
101 in the \windows\winfbb.ini file, add the following line in the main section :
102 TraceWp=1
103 You can replace 1 with 2 or 3. 3 gives the maximum information.
104 A file WP.DBG will be created in the WP directory.
105
106
107
108 <A NAME="Update"></A><IMG SRC="../red.gif" WIDTH="14" HEIGHT="14"><BIG><B>UPDATE REQUESTS.</B></BIG>
109
110 The database receives information from three sources. The s
111 indicated on each line of the update message as a suffix to the callsign:-
112
113 - The /U suffix denotes that the information in this line of the update is
114 User-Generated as is therefore assumed to be CORRECT. This information is
115 collected by the BBS whenever the User responds to the N, NH, NQ or NZ
116 commands. The date associated with the information is the date when the User
117 disconnects that session.
118
119 - The /G suffix denotes that the information in this line has been gathered
120 by examining the header of a message to GUESS at which BBS the sender is
121 registered. The HomeBBS of the User is assumed to be the BBS shown in the
122 first R: header line. The date associated with this information is the date
123 shown on this R: header line.
124
125 - The /I suffix denotes information about forwarding BBS's taken from the R:
126 header lines. This information can consist of the HA (the Hierarchical
127 Address), the QTH (within brackets) and the zip code (following the Z:). The
128 date of this information is again taken from the R: header line of the BBS in
129 question.
130
131 When the BBS is idle the Database Manager is called and the update
132 information detailed above is processed.
133
134
135 <A NAME="DataDesc"></A><IMG SRC="../green.gif" WIDTH="14" HEIGHT="14"><BIG><B>DATABASE DESCRIPTION.</B></BIG>
136
137 The database is composed of individual records. Each record
138 following components :
139
140 - Callsign and Name.
141 - Active information.
142 - Temporary information.
143
144 The active and temporary information components are identical and each
145 includes the following fields:
146
147 - Date of the information
148 - Hierarchical Address (one word)
149 - Zip code (one word)
150 - Qth (one or more words)
151
152 Only the Active information is used for addressing/routing and database
153 requests.
154
155
156 <A NAME="Manager"></A><IMG SRC="../cyan.gif" WIDTH="14" HEIGHT="14"><BIG><B>DATABASE MANAGER.</B></BIG>
157
158 This process freshens the database, following receipt of the new or changed
159 information detailed above.
160
161 The update subroutine will first look for an entry in the database for the
162 callsign which matches the received information. If it does not exist then a
163 completely new record will be created in the database and the information be
164 used to fill what fields it can, in both the active and the temporary
165 components. The date will be then changed to the one associated with the
166 update information.
167
168 If the record does already exist, then the unknown fields of both the
169 temporary and active fields will be filled in, and those fields already known
170 in the temporary part will be replaced by the new information if the date new
171 information is younger than that already on file. The date will then be
172 adjusted such that it is consistent with the updated information.
173
174 If the new information is of the /U category, then the current fields will
175 be replaced by the new information in both the primary and secondary (Active
176 and Temporary) parts of the record, as this information has been input
177 directly from the user. If the information was of another category then only
178 the secondary (Temporary) part of the record will be updated, so the Active
179 or primary record will remain unchanged at this time.
180
181 If a field is changed, a flag giving the update request type is then
182 validated. If the /U flag is already validated, it will not be replaced. This
183 flag will be used in case the WP update messages are validated.
184
185
186 <A NAME="Epurwp"></A><IMG SRC="../orange.gif" WIDTH="14" HEIGHT="14"><BIG><B>EPURWP AND UPDATE MESSAGES.</B></BIG>
187
188 <A HREF="toolepwp.htm">EPURWP</A> is a maintenance program for the White Pages database which should be
189 run during each House-Keeping cycle.
190
191 The program conducts a validity check on each of the entries, and discards
192 any "unwanted" records (in the case of an invalid callsign for example).
193
194 The program also checks the date of the last update of the temporary part of
195 each record. If this date is older than a pre-defined number of days (given
196 as a parameter, default 40 days) then the temporary part is considered as
197 stable, and then the known fields will be transferred to the Primary or
198 Active part, which is then used to answer all addressing/server requests.
199
200 This process ensures that the database is tolerant of users sending messages
201 from mailboxes other than their normal HomeBBS. Once the Active or primary
202 part of the record is set, then the temporary (or secondary) part can be
203 updated/changed many times. Only once this temporary field has remained
204 unchanged for 40 days, or the user exercises any of the "Nx" options at his
205 new HomeBBs will the Active or Primary record be changed.
206
207 If the changes to the database are validated, then the record is marked with
208 an update flag and a line will be appended to the file MESS.WP
209
210 Each line of the outgoing WP update messages looks like :
211
212 On 930123 FD1CDC/U @ F6FBB.FMLR.FRA.EU zip 31240 Claude Saint Jean
213
214 Any unknown fields are replaced by "?" like :
215
216 On 930123 FD1CDC/U @ F6FBB.FMLR.FRA.EU zip ? ? Saint Jean
217
218 The U character is the update type.
219
220
221 <A NAME="Wpserver"></A><IMG SRC="../grey.gif" WIDTH="14" HEIGHT="14"><BIG><B>WP SERVER REQUESTS.</B></BIG>
222
223 FBB software has an internal built-in WP server.
224
225 The format of the WP server requests are as shown below :
226
227 BBS PROMPT &gt;
228 SP WP @ F6FBB
229 Title of message
230 WP Request (does not matter)
231 Text of message
232
233 F6FBB ?
234 EA3* ?
235
236 ^Z (or /EX)
237
238 The server will answer to the request with a private message, addressed to
239 the sender, and routed to the BBS according to the first R: header line of
240 the incoming request.
241
242 The reply message is restricted to a maximum of 100 lines, as the use of
243 wildcards in the request could generate a unacceptably long replies.
244
245
246 <A HREF="doc.htm"><IMG SRC="/contents.gif" WIDTH="108" HEIGHT="28"></A>
247
248 <A HREF="/"><IMG SRC="../button_home.gif" WIDTH="90" HEIGHT="29"></A>
249
250 <FONT COLOR="#800000">This page was last updated <!--#config timefmt="%d-%b-%y"--><!--#echo var="LAST_MODIFIED"--></FONT>
251
252 </PRE>
253 </BODY></HTML>