File: rfc3049.txt

package info (click to toggle)
doc-rfc 20181229-2
  • links: PTS, VCS
  • area: non-free
  • in suites: buster
  • size: 570,944 kB
  • sloc: xml: 285,646; sh: 107; python: 90; perl: 42; makefile: 14
file content (1179 lines) | stat: -rw-r--r-- 40,743 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179






Network Working Group                                          J. Naugle
Request for Comments: 3049                             K. Kasthurirangan
Category: Standards Track                                            IBM
                                                              G. Ledford
                                                      Zephyr Development
                                                            January 2001


             TN3270E Service Location and Session Balancing

Status of this Memo

   This document specifies an Internet standards track protocol for the
   Internet community, and requests discussion and suggestions for
   improvements.  Please refer to the current edition of the "Internet
   Official Protocol Standards" (STD 1) for the standardization state
   and status of this protocol.  Distribution of this memo is unlimited.

Copyright Notice

   Copyright (C) The Internet Society (2001).  All Rights Reserved.

Abstract

   This document discusses the implementation of Service Location
   Protocol (SLP) and session balancing with a TN3270E emulator in a
   client server implementation with a TN3270E server.

   Application program developer's can locate TN3270E services and load
   balance among those services (3270 host sessions), by using this SLP
   support.

Table of Contents

   1. Introduction and Terminology .................................  2
      1.1 Terminology ..............................................  2
   2. An Overview of RFC 2165 ......................................  3
      2.1 SLP Agents ...............................................  3
      2.2 Service Agents ...........................................  3
      2.3 User Agents ..............................................  4
   3. TN3270E Server Environment and Load ..........................  4
      3.1 TnN3270E Server Load .....................................  4
   4. TN3270E Client Configuration .................................  6
      4.1 SLP Scope ................................................  6
      4.2 DA-Discovery Time-Out ....................................  6
      4.3 SA-Discovery Time-Out ....................................  7
   5. TN3270E Client Implementation Information ....................  7
      5.1 Overview .................................................  7



Naugle, et al.              Standards Track                     [Page 1]

RFC 3049              TN3270E Location & Balancing          January 2001


      5.2 How to Obtain List of TN3270E Servers Supporting SLP .....  8
      5.3 TN3270E Sample Client Flow ...............................  9
         5.3.1 Open the SLP connection .............................  9
         5.3.2 Query the list of TN3270E servers ...................  9
         5.3.3 Forward Looking Example using SLPv2 ................. 10
         5.3.4 Determine loading of each TN3270E server ............ 10
      5.4 Recommendations .......................................... 11
   6. Sample Trace Flow of SLP and Session Balancing ............... 11
   7. Service Templates and Service Registration ................... 12
      7.1 The TN3270E Service Type Template ........................ 12
      7.2 The Server Service Template .............................. 16
      7.3 Template Contact Information ............................. 17
      7.4 Security Considerations .................................. 17
      7.5 Sample TN3270 Service Registration Message ............... 18
      7.6 Sample Server Service Registration Message ............... 19
   8. References ................................................... 19
   9. Authors' Addresses ........................................... 20
   10. Full Copyright Statement .................................... 21

1. Introduction and Terminology

   This document will provide information on Service Location Protocol
   implementation to discover TN3270E servers in a network and session
   balance among those servers.  This implementation follows the
   standards track RFC 2165, Service Location Protocol [1] but also
   provides some examples when using Service Location Protocol version 2
   to be forward looking.  Service Location Protocol version 2 is
   documented in RFC 2608 [4] and RFC 2609 [2].

1.1 Terminology

   The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
   "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
   document are to be interpreted as described in RFC 2119  [1].

   Session Balance - This refers to the ability of TN3270E client to use
   server load information to establish a TN3270E connection to the
   TN3270E server with the least load at that time.  The purpose is to
   distribute the connection of TN3270E sessions among more than one
   TN3270E server, and one server will not be excessively loaded.  The
   term "load balance" is a more general term, with respect to server
   load, and in this document we are focusing on the TN3270E session
   connections to least loaded servers.

   SNA Gateway - A Systems Network Architecture (SNA) gateway allows
   multiple LAN-attached workstations to access SNA hosts through one or
   more physical connections to one or more hosts.  A SNA gateway acts
   as a protocol converter between workstations attached to a LAN and a



Naugle, et al.              Standards Track                     [Page 2]

RFC 3049              TN3270E Location & Balancing          January 2001


   WAN host line.  It typically would support the SNA protocols LU 0, 1,
   2, 3, and dependent LU 6.2 (APPC).  SNA gateways typically include a
   TN3270E server capability.

   LU Pool - The Logical Units (LUs) defined in the gateway can be
   dedicated to a particular workstation or pooled among multiple
   workstations.  Pooling allows workstations to share common Logical
   Units (LUs), which increases the efficiency of the LUs and reduces
   the configuration and startup requirements at the host.  When a
   client connects to the gateway, the gateway retrieves an LU from the
   pool to establish a session.  The LU is returned to the pool for
   access by other workstations when the session is ended.

   Commserver Service Type Template - Commserver service type is defined
   as an SNA Gateway server as previously defined above in this
   terminology section.  A template describing the attributes for this
   service type is in section 7.2.

2. An overview of RFC 2165

   RFC 2165, Service Location Protocol (SLP) [1], provides an automatic
   way for clients to discover services within an administrative domain.

   These services have various attributes associated with them from
   which a client can base a service selection.  The basic design
   involves the use of three agent types.  These are: User Agents
   (UA's), Service Agents (SA's) and Directory Agents (DA's).

2.1 SLP Agents

   User Agents are used to query Service Agents or Directory Agents.
   They acquire/request service information based upon the desired
   attributes and service needed for the user application.

   Service Agents represent a specific service and advertise service
   information.

   Directory Agents act as a central collection point for service
   registration information by Service Agents which is later requested
   by "user agents" in "intranets".

2.2 Service Agents

   The service registers itself with the service agent so that the SA
   can start advertising this information over the network.  The process
   of registration consists of the service giving the SA all relevant
   configuration information and attribute tag/value list pairs specific
   to this service.  The Service template is an abstract schema that



Naugle, et al.              Standards Track                     [Page 3]

RFC 3049              TN3270E Location & Balancing          January 2001


   applies to the service type.  The service template for TN3270E is
   shown later, contains the URL which is the address of the server with
   the port, which should be used to connect to it.  The URL also
   contains the service type which in this case is TN3270.  The template
   also contains all the other attributes associated with this service.

2.3 User Agents

   The User Agent working on the TN3270E client's behalf retrieves
   service information from the Service Agent(s) or a Directory Agent.
   Based on the gathered information and required attributes the TN3270E
   client or user can decide whether or not to connect with a particular
   server.  Based on the service advertisements from various TN3270E
   servers, the client looks at the load attribute and can decide to
   connect to the least loaded server.  If by the time it connects to
   that particular TN3270E server, the server becomes unavailable it can
   try connecting to the next server in its list (ie: the second least
   loaded server whose advertisement was retrieved by the client/user
   agent).

3. TN3270E Server Environment and Load

   TN3270E Servers are pervasive in today's networked environment.  SLP
   provides emulator clients with a way to discover TN3270E servers in
   the network and session balance among the servers.  The TN3270E
   servers could be distributed across different SNA gateways with
   different connection methods to hosts.  The use of LU pools provides
   an easy way for administrators to provide users access to hosts.
   Administrators can add users to LU pools that have pre-configured
   LU's with specific attributes, like LU types and model types.

   These LU pools would typically have LUs from several different
   gateways assigned, and as members of the LU pool make TN3270E session
   connections, they would be making connections to different TN3270E
   servers, with different load factors, so that session balancing could
   be accomplished.  The use of LU pools is not a requirement for SLP
   and session balancing.  A TN3270E client could obtain a session by
   using SLP and session balancing to locate the least loaded server in
   the network.  On a service request a wild card "*" could be used when
   asking for LUPOOL if the emulator doesn't care which device types are
   supported in given pools or if it can assume given pools support only
   certain device types.

3.1 TN3270E Server Load

   TN3270E servers providing load information, SHOULD include number of
   sessions available, not in current use, as part of the calculation in
   determining the total load for the server.  There can be other



Naugle, et al.              Standards Track                     [Page 4]

RFC 3049              TN3270E Location & Balancing          January 2001


   factors that might have an effect on server load.  An example would
   be if a server is not dedicated to only SNA traffic, and is handling
   other processes, like file services and print services, etc.  It is
   beyond the scope of this document to standardize the method of
   individual server load calculations.  Different vendors server's may
   calculate load information based upon factors they consider
   important, and methods for calculating load may change over time.

   If the TN3270E server coexists in a network with other TN server
   implementations using SLP for session balancing, TN3270E server load
   could be adjusted to compensate for differences in load calculations.

   One way to allow TN3270E server administrators to compensate for
   differences in implementations of calculating server load measurement
   is to provide the ability to modify the load calculation on the
   TN3270E server.  An element of control can be provided by allowing
   the administrator to modify the load measurement, by using an
   integral number between 0 and 100 (100 being the highest) to change
   the load.  This load measurement acts as an additional factor on the
   server's actual load calculation, so that the administrator could
   bias up or down, the likelihood of that server being selected by a
   TN3270E client.

   Load MUST be defined as one of the attributes for the TN3270E server.
   The Load attribute provided at the server will allow clients to
   determine which server to make a connection.  If a UA provides only a
   Service Type, in an Attribute Request,  then the reply includes all
   attributes and all values for that Service Type, and Load would be
   included.  Attribute Requests MAY include a select clause, so you
   could be returned just load information.  For more information on
   Attribute Requests refer to Service Location Protocol [1].

   An application could issue a Service Request to locate a TN3270E
   server.  Then an application designed to perform least-load location
   of a TN3270E service, could issue a series of Attribute Requests to
   obtain the load measurement of each server specified with a URL.  It
   would specify a select clause similar to the one below to receive
   only load information.

   URL = service:tn3270://9.37.51.254:23 Attribute filter = LOAD

   The attribute LOAD would be returned along with its value.  The
   application could then issue other Attribute Request calls for each
   URL.







Naugle, et al.              Standards Track                     [Page 5]

RFC 3049              TN3270E Location & Balancing          January 2001


   The application would then select the least loaded server as a
   connection target.  If it tries to connect to a server and that
   connection fails, it could then try to connect to the next least-
   loaded server.

4. TN3270E Client Configuration

4.1 SLP Scope

   Scope is a parameter used to control and manage access by clients to
   servers in a network.  It is the same as the Service Location
   Protocol scope defined in RFC 2165 [1].  The control scope provides
   is necessary for two reasons:

   As your network, the number of clients, and the number of servers
   grow, it becomes necessary to partition access to those servers by
   the growing number of clients in order to reduce overall traffic on
   the network.  It allows administrators to organize users and servers
   into administrative groups.

   The meaning of the values of scope is defined by the administrator of
   the network.  These values can represent any entity.  Commonly, they
   fall along either departmental, geographical, or organizational
   lines.

   Each TN3270E server can be assigned to a single scope or multiple
   scopes.  TN3270E clients using these servers can be configured for a
   single specific scope.  If TN3270E clients are not configured with a
   scope they MUST use the scope "default".

   SLP Service Agents and Directory Agents (DA) need to reside in the
   network that support the TN3270E server with configured scopes.

   Attribute information for Service Types pertaining to a specific
   scope can be obtained from Directory Agents (DA).  The DA will not
   return a result unless the requested scope matches.

   For more information on SLP scope refer to Service Location Protocol
   [1].

4.2 DA Discovery time-out

   The DA Discovery time-out value, is used to control how long the SLP
   API must wait to discover Directory Agents (DAs) in the network.  The
   discovery request is a multicast, and the amount of time required to
   gather all DA responses might vary depending on many factors.  If
   there are no DAs in the network, this time-out value can be set to




Naugle, et al.              Standards Track                     [Page 6]

RFC 3049              TN3270E Location & Balancing          January 2001


   zero to indicate that no DA discovery is to be done.  The time-out is
   expressed in milliseconds.  Time-out intervals and default values
   should be handled as described in RFC 2165 [1].

4.3 SA Multicast time-out

   The SA Multicast time-out value, is used to control how long the SLP
   API must wait to discover services, attributes, or service types in a
   network without at least one DA that supports the scope of the
   request.  In this situation, these requests are multicast and the
   User Agent waits the time-out value to gather the multiple responses
   that are returned.  The time-out is expressed in milliseconds. Time-
   out intervals and default values should be handled as described in
   RFC 2165 [1].

5. TN3270E Client Implementation Information

5.1 Overview

   A TN3270E client that implements TN3270E SLP session balancing does
   not need to configure an IP Host Address or TCP Port for the TN3270E
   server it desires to connect to.  Instead, the IP Host Address and
   TCP Port of the least loaded TN3270E server is discovered by using
   the SLP session balancing described in this document.

   The discovery of the least loaded TN3270E server is done entirely
   outside of and before the TN3270E telnet negotiation.  Once the IP
   Host address and TCP Port of the least loaded TN3270E server is
   discovered, the TN3270E client can then start normal TN3270E telnet
   negotiation.

   The TN3270E client MUST allow for configuration of the following
   parameters.  These SLP specific configuration items are covered by
   configuration parameters in the SLP API [5].

   Enable SLP Session Balancing

   This configuration parameter indicates whether or not SLP session
   balancing is enabled.  If it is enabled the following three
   configuration parameters MUST also be configurable.  If this
   parameter is disabled, SLP session balancing is not supported and
   normal TN3270E telnet negotiation is performed.

   Scope Name The scope name is a text string that specifies a group of
   TN3270E servers.  The scope name can be used to identify groups of
   TN3270E servers in a departmental or geographic setting.  For





Naugle, et al.              Standards Track                     [Page 7]

RFC 3049              TN3270E Location & Balancing          January 2001


   example, if the scope name is Building-D, then the SLP session
   balancing would search all TN3270E servers in the Building-D scope to
   find the least loaded TN3270E server.

   If the scope name is blank, then the scope name is not used.  This is
   referred to as unscoped.  It should be noted as in section 4.1 above
   that any reference to unscoped services applies to Service Location
   Protocol version 1 only [1].  Service Location Protocol version 2
   doesn't allow unscoped services but does allow the use of default
   scope [4].  In this case all TN3270E servers, with or without scope
   names, can be used to satisfy the request for least loaded TN3270E
   servers.  In order to cut down on network overhead, it is recommended
   that either all servers be scoped or no servers be scoped.  Refer
   back to section 4.1 for more discussion of scope.

   DA Discovery Time Out Value

   This value is specified in milliseconds and is fully described in
   section 4.2 of this document.

   SA Multicast Time Out Value

   This value is specified in milliseconds and is fully described in
   section 4.3 of this document.

5.2 How to obtain the list of TN3270E servers supporting SLP

   A TN3270E client that implements SLP session balancing uses API calls
   to obtain the list of TN3270E servers supporting SLP session
   balancing.

   The following Service Location Version 2 API [5] calls, could be used
   with TN3270E SLP session balancing:

   SLPOpen - returns an SLPHandle handle to be used

   SLPFindSrvs - issues the query for services

   SLPFindAttrs - returns service attributes matching the attribute ids
   for the indicated service URL or service type.

   SLPClose - frees all resources associated with the handle.









Naugle, et al.              Standards Track                     [Page 8]

RFC 3049              TN3270E Location & Balancing          January 2001


5.3 TN3270E Sample Client Flow

5.3.1 Open the SLP connection

   The TN3270E client must first open a handle with the SLP User Agent.
   For Service Location Protocol version 2, SLPOpen API call [5] The SA
   multicast time out and DA discovery time out values would be passed
   as parameters to the SLPOpen API call.

5.3.2 Query the list of TN3270E servers

   The TN3270E client then queries for the list of TN3270E servers
   supporting SLP.  This is done by using the Service Request API call.

   The request string contains information that determines which type of
   TN3270E servers that this client desires to connect to.  The request
   string can contain the scope name, pool name, session type and 3270
   screen size.

   The SLPv1 query string has the following format:

   TN3270/<scope name>/LUPOOL/ == <pool name><TAB><device type>

   The <scope name> is the name of the scope that is configured for the
   TN3270E client.  If the scope is blank or null (unscoped request),
   then the scope is not inserted into the request string.

   The <pool name> is a 1 to 8 character upper case string that
   indicates the name of the pool to which the TN3270E client desires to
   connect.  For SLP session balancing, the same pool name must be
   configured on different TN3270E servers.

   The <TAB> is the '/t' tab character which is hexadecimal 0x09.  the
   <TAB> is a literal and is used as a separator.

   The <device type> can be any of the following:

    3270DSC for TN3270E device type IBM-3287-1
    3270002 for TN3270E device types IBM-3278-2 and IBM-3278-2-E
    3270003 for TN3270E device types IBM-3278-3 and IBM-3278-3-E
    3270004 for TN3270E device types IBM-3278-4 and IBM-3278-4-E
    3270005 for TN3270E device types IBM-3278-5 and IBM-3278-5-E
    * for TN3270E device type IBM-DYNAMIC








Naugle, et al.              Standards Track                     [Page 9]

RFC 3049              TN3270E Location & Balancing          January 2001


   Example:

   For a TN3270E client searching for TN3270E servers in the ENGINEERING
   scope for a model 2 screen size and LUPOOL name pool2, the following
   request SLPv1 string would be constructed:

   "TN3270/ENGINEERING/LUPOOL/ == POOL2<TAB>3270002"

   Note: The " characters before and after the string are not part of
   the request string.

5.3.3 Forward Looking Example for SLPv2

   For SLPv2 the scope and service type are no longer part of the query
   string.  These are now separate fields in the message.  The service
   type name is required to have the "service:" prepended.  The service
   type field would look like "service:TN3270", and the scope field
   would be a comma separated list of scopes.  A scope name is always
   required in SLPv2, if no other name is known, the scope name
   "DEFAULT" is used.  The example below uses the same parameters as
   used in above section 5.3.2.

   Example:  Service Type: service:TN3270 Scope string: ENGINEERING The
   query string would have the following format:

           (LUPOOL=<POOL2> <32700002>)

   In SLPv2 queries, all whitespace is compressed to a single space
   character during matching, so the identity of the separator character
   does not matter.  The tab character could be added for readability,
   but it will not affect the outcome of the query.

5.3.4 Determine loading of each TN3270E server

   An attribute request for "service:tn3270e" specifying the attribute
   LOAD can be made and you will get back all the available loads.  Say
   these are 35,88,78.  You can then issue a service request for all
   tn3270E servers with "LOAD<40" for instance.  Even if the load
   changes between the time you get the attribute reply and when you
   issue the request, you will still get the best the network has to
   offer.

   The TN3270E client then uses the TN3270E server's IP Host address to
   start normal Telnet TN3270E negotiation.







Naugle, et al.              Standards Track                    [Page 10]

RFC 3049              TN3270E Location & Balancing          January 2001


5.4 Recommendations

   The TN3270E client SHOULD display the IP hostname and TCP Port that
   is being used for the TN3270E connection.  This gives the user
   knowledge of which TN3270E server the session is connected to.  For
   example, the IP host address could be displayed in the window system
   status bar.

   The TN3270E client SHOULD display the resource name that is returned
   by the TN3270E server after connection and TN3270E negotiation is
   completed.  This gives the user knowledge of which LU resource name
   in the LUPOOL the session is connected to.  For example, the resource
   name could be displayed in the Windows status bar, or even in the
   3270 OIA line.

   In the event that after the TN3270E client has determined the least
   loaded server and the connection to that server fails for some
   reason, the connection should be closed and an attempt made to
   connect to other TN3270E servers in the list of least loaded servers.

   For example, a TN3270E server may reject a connection to a specific
   pool if the pool is full, or if the device type does not match what
   is available in the pool.  If this occurs, then an attempt to other
   least loaded TN3270E servers SHOULD be performed.

6. Sample Trace Flow of SLP and Session Balancing

   This sample trace flow is provided for informational purposes only.

   SLP API: Service Request: TN3270//LUPOOL == POOL2 3270002/

   SLP API: Service Reply: service:tn3270://206.109.45.139:23

   SLP API: Service Reply: service:tn3270://206.109.45.140:23

   Connecting to 206.109.45.139:23...

   TerminalType=NVT

   Connection established

   Recv <- DO TN3270E

   Send -> WILL TN3270E

   TerminalType=TN3270E

   Recv <- SEND DEVICE_TYPE



Naugle, et al.              Standards Track                    [Page 11]

RFC 3049              TN3270E Location & Balancing          January 2001


   Send -> DEVICE_TYPE REQUEST IBM-3278-2-E CONNECT POOL2

   Recv <- DEVICE_TYPE IS IBM-3278-2-E CONNECT TN8003

   Send -> FUNCTIONS REQUEST BIND_IMAGE SYSREQ

   Recv <- FUNCTIONS IS BIND_IMAGE SYSREQ

7. Service Templates and Service Registration

   The Service Location Protocol uses the "service:" URL scheme name to
   define URLs called "service: URLs".  These schemes provide a way for
   clients to obtain configuration information that is needed to
   establish a 3270 session through the TN3270E server.  The Service
   Location Protocol provides for service: URLs to be registered and
   discovered.

   Service Registration These service registrations contain a service:
   URL, and possible attributes associated with that service.  The
   service registration information are shown below for the server.

   Service Templates Service templates are documents defining in a
   formal way the attributes associated with that service that a client
   may want to use.  For more information on service templates please
   refer to, Service Templates and service:  Schemes. [2].  The server
   service template and TN3270 service templates are shown below.

7.1 The TN3270E Service Type Template

   The 'service:tn3270:' template defined below conforms to the grammar
   described in "Service Templates and service: Schemes".  Please refer
   to [2] for detailed explanation of the syntax.

   Name of submitters: Jim Naugle <jnaugle@us.ibm.com>
                       Gregg Ledford <gledford@zephyrcorp.com>
                       K. Kasthurirangan <kasthuri@us.ibm.com>
   Language of service template: en
   Security Considerations:
   Service Location Protocol can help clients discover security services
   supported by the TN3270E server.  If security services are important
   or required, using SLP authentication, and protected scopes in
   Service Location Protocol version 1 is recommended [1]. Well known
   ciphersuite names are used in the template [3].








Naugle, et al.              Standards Track                    [Page 12]

RFC 3049              TN3270E Location & Balancing          January 2001


   Template text:
   ----------------------template begins here -------------------------

   template-type=tn3270e

   template-version=1.0

   template-description=
    The tn3270 service provides 3270 gateway access to an SNA network
    via the TN3270 protocol.  The attributes reflect the types of 3270
    devices, LU Pools, and load information available on the server.

   template-url-syntax=
   # service:tn3270://<hostname>:<port>
   # <hostname>
   # <port>

   load=integer
   # This is the load balancing quantity to use in determining the
   # least loaded TN3270E server to attach to for the service.  The
   #range of valid values is an integral 0 to 100 with 0 indicating the
   #lowest possible load and 100 the highest

   LUPool=string X M L
   # This attribute takes on one or more values as defined below.
   # The <TAB> char.  0x09 is literal and will be used as a separator.
   #
   #
   #   <pool name> = <name> / <name> "<TAB>" <dev type>
   #   <name>      = 1*ALPHANUM
   #                 "3270DSC"
   #
   #
   #
   #
   # Identifies the LU pool names of LU pools available for use on this
   # service with the associated device types supported in each pool.
   # Each value is a record where the first token is the pool name of
   # the pool and the second token is a device type supported in that
   # pool.  A pool name without a device type indicates that LUs of
   # unknown type are included in the pool.  Records associated with a
   # given pool name are repeated for each supported device type.  A
   # given pool is included in a registration request if any PU profile
   # that contributes at least one LU to the pool is active on the
   # server.  The range of valid dev_types are:
   #
   # dev_type    Meaning
   #



Naugle, et al.              Standards Track                    [Page 13]

RFC 3049              TN3270E Location & Balancing          January 2001


   # 3270002     Lu Type 2 Model 2
   #
   # 3270003     Lu Type 2 Model 3
   #
   # 3270004     Lu Type 2 Model 4
   #
   # 3270005     Lu Type 2 Model 5
   #
   # 3270DSC     Printer LU
   #

   BIND=keyword
   # The server supports the SNA bind image TN3270E function.

   DATA=keyword
   # The non-SNA 3270 data stream is supported by server.

   RESPONSES=keyword
   # The server supports SNA response mode.

   SCS=keyword
   # The server supports SNA 3270 SCS data stream.

   SYSREQ=keyword
   # The SYSREQ keyboard key is supported on server.

   RFC1576=keyword
   # RFC1576 options supported.

   RFC1646=keyword
   # RFC1646 options supported.

   RFC2355=keyword
   # RFC2355 options supported.

   security=string M
   # This is the security technique supported on the server.
   # The defined values are:
   NONE
   SSLV3

   Ciphersuites=string M
   # Cipher specifications supported by this server.
   # Additional values will be defined in future templates.
   NULL_NULL,
   NULL_MD5,
   NULL_SHA,
   RC4_MD5_EXPORT,



Naugle, et al.              Standards Track                    [Page 14]

RFC 3049              TN3270E Location & Balancing          January 2001


   RC4_MD5_US,
   RC4_SHA_US,
   RC2_MD5_EXPORT,
   DES_SHA_EXPORT,
   TRIPLE_DES_SHA_US

   platform=string X
   # This is the network operating system platform underlying the
   # advertising service.  The defined values are:
   #
   # IW          Server uses IntranetWare or NetWare operating system
   #
   # NT          Server uses the Microsoft NT operating system
   #
   # OS2         Server uses the OS2 operating system
   #
   # AIX         Server uses the AIX operating system
   #
   IW,NT,OS2,AIX

   protocol=string X
   #   This is the protocol(s) supported by the server providing this
   #   service.  The defined values are:
   #
   # IP          Server supports client connections over IP (TCP/IP or
   #             UDP/IP)
   #
   # IPX         Server supports client connections over IPX (SPX/IPX)
   #
   IP,IPX

   server name=string
   # This is the name of the server that was configured during
   # installation.

   release=string X
   # This is the version and release level of the server advertising
   # services.  Its format is vv.rr.mm where "vv" is the major version
   # number, "rr" is the minor version number, and "mm" is the
   # modification level.  All numbers are padded on the left with zeroes
   # to two characters.
   # Example: version 3, release 0, mod level 0 is "03.00.00"

   ------------------template ends here -------------------------------







Naugle, et al.              Standards Track                    [Page 15]

RFC 3049              TN3270E Location & Balancing          January 2001


7.2 Server Service Type Template

   The 'service:commserver:' template defined below conforms to the
   grammar described in "Service Templates and service: Schemes".
   Please refer to [2] for detailed explanation of the syntax.

   Name of submitters: Jim Naugle <jnaugle@us.ibm.com>
                       Gregg Ledford <gledford@zephyrcorp.com>
                       K. Kasthurirangan <kasthuri@us.ibm.com>
   Language of service template: en
   Security Considerations:
   Service Location Protocol can help clients discover security
   services supported by the TN3270E server.  If security services are
   important or required, using SLP authentication, and protected
   scopes [1] is recommended.

   Template text:

   -------------------template begins below this line------------------

   template-type=commserver

   template-version=1.0

   template-description=
    The server service type is registered whenever the communications
    software is loaded on the server.  It describes generic attributes of
    the server.  These attributes are also repeated on the other service
    types provided.

   template-url-syntax=
    # service:commserver://<hostname>:<port>
    # <hostname>
    # <port>

   platform=string X
    # This is the network operating system platform underlying the
    # advertising service.  The defined values are:
    #
    # IW          Server uses Novell IntranetWare or NetWare operating
    #             system
    # NT          Server uses the Microsoft NT operating system
    #
    # OS2         Server uses the OS2 operating system
    #
    # AIX         Server uses the AIX operating system
    #
    IW,NT,OS2,AIX



Naugle, et al.              Standards Track                    [Page 16]

RFC 3049              TN3270E Location & Balancing          January 2001


   protocol=string X
    #   This is the protocol(s) supported by the server providing this
    #   service.  The defined values are:
    #
    # IP          Server supports client connections over IP (TCP/IP or
    #             UDP/IP)
    #
    # IPX         Server supports client connections over IPX (SPX/IPX)
    #
    IP,IPX

   server name=string
    # This is the name of the server that was configured during
    # installation.

   release=string X
    # This is the version and release level of the commserver
    # advertising services.  Its format is vv.rr.mm where "vv" is the
    # major version number, "rr" is the minor version number, and "mm"
    # is the modification level.  All numbers are padded on the left with
    # zeroes to two characters.
    #
    # Example: version 3, release 0, mod level 0 is "03.00.00"

   ---------------------template ends above this line---------------------

7.3 Template Contact Information

   Jim Naugle <jnaugle@us.ibm.com>
   Kasthuri Kasthurirangan <kasthuri@us.ibm.com>
   Gregg Ledford <gledford@zephyrcorp.com>

7.4 Security Considerations

   Service type templates provide information that is used to interpret
   information obtained by the Service Location Protocol.  If these
   templates are modified or if false templates are distributed,
   services may not correctly register themselves, or clients might not
   be able to interpret service information.

   The service: URLs themselves specify the service access point and
   protocol for a particular service type.  These service: URLs could be
   distributed and indicate the location of a service other than that
   normally wanted to used.  SLP [1] provides an authentication
   mechanism that allows service: URLs of registered services to be
   signed and for the signatures to be verified by clients.





Naugle, et al.              Standards Track                    [Page 17]

RFC 3049              TN3270E Location & Balancing          January 2001


   Service Location Protocol can help clients discover security services
   supported by the TN3270E server.  If security services are important
   or required, using SLP authentication, and protected scopes [1] is
   recommended.

7.5 Sample TN3270 Service Registration Message

   URL: service:tn3270://<addr-spec>:<port-number> Attributes:

   [(SCOPE=<string>),]

   (RELEASE=03.00.00),

   (PLATFORM=IW),

   (PROTOCOL=IP),

   (SERVERNAME=<string>),

   (LOAD=<integer 0 to 100>),

   [(LUPOOL=pool-name0/tANY,

   pool-name1/tdevice_type1,

   pool-name2/tdevice-type2, ...

   pool-namen/tdevice-typen)]

   BIND,

   DATA,

   RESPONSES,

   SCS,

   SYSREQ,

   (SECURITY=NONE),

   RFC1576,

   RFC1646,

   RFC2355





Naugle, et al.              Standards Track                    [Page 18]

RFC 3049              TN3270E Location & Balancing          January 2001


7.6 Sample Server Service Registration Message

   URL:service:commserver://<addr-spec>:<port-number>

   Attributes:  [(SCOPE=<string>),]

   (RELEASE=03.00.00),

   (PLATFORM=IW),

   (PROTOCOL=IP),

   (SERVERNAME=<string>)

8. References

   [1]  Veizades, J., Guttman, E., Perkins, C., and S. Kaplan, "Service
        Location Protocol", RFC 2165, July 1997.

   [2]  Guttman, E., Perkins, C. and J. Kempf, "Service Templates and
        service: Schemes", RFC 2609, June 1999.

   [3]  Dierks, T. and C. Allen, "The TLS Protocol Version 1.0", RFC
        2246, January 1999.

   [4]  Guttman, E., Perkins, C., Veizades, J. and M. Day, "Service
        Location Protocol Version 2", RFC 2608, June 1999.

   [5]  Kempf, J. and E. Guttman, "An API for Service Location", RFC
        2614, June 1999.

   [6]  Bradner, S., "Key Words for Use in RFCs to Indicate Requirement
        Levels", BCP 14, RFC 2119, March 1997.


















Naugle, et al.              Standards Track                    [Page 19]

RFC 3049              TN3270E Location & Balancing          January 2001


9. Authors' Addresses

   Jim Naugle
   IBM
   P.O. Box 12195
   Research Triangle Park, N.C. 27709-2195
   USA

   Phone:  (919) 254-8789
   EMail:  jnaugle@us.ibm.com


   Kasthuri Kasthurirangan
   IBM
   P.O. Box 12195
   Research Triangle Park, N.C. 27709-2195
   USA

   Phone: (919) 254-5721
   EMail: kasthuri@us.ibm.com


   Gregg Ledford
   Zephyr Development Corporation
   8 Greenway Plaza Suite 1400
   Houston, Texas 77046
   USA

   Phone: (713) 623-0089
   EMail:  gledford@zephyrcorp.com





















Naugle, et al.              Standards Track                    [Page 20]

RFC 3049              TN3270E Location & Balancing          January 2001


10.  Full Copyright Statement

   Copyright (C) The Internet Society (2001).  All Rights Reserved.

   This document and translations of it may be copied and furnished to
   others, and derivative works that comment on or otherwise explain it
   or assist in its implementation may be prepared, copied, published
   and distributed, in whole or in part, without restriction of any
   kind, provided that the above copyright notice and this paragraph are
   included on all such copies and derivative works.  However, this
   document itself may not be modified in any way, such as by removing
   the copyright notice or references to the Internet Society or other
   Internet organizations, except as needed for the purpose of
   developing Internet standards in which case the procedures for
   copyrights defined in the Internet Standards process must be
   followed, or as required to translate it into languages other than
   English.

   The limited permissions granted above are perpetual and will not be
   revoked by the Internet Society or its successors or assigns.

   This document and the information contained herein is provided on an
   "AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING
   TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING
   BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION
   HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF
   MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.

Acknowledgement

   Funding for the RFC Editor function is currently provided by the
   Internet Society.



















Naugle, et al.              Standards Track                    [Page 21]