Subject : TN 3270 ¼Ò°³


     ¡Ü °³¿ä

     ÀϹÝÀûÀÎ IBM Å͹̳ÎÀÎ 3270 Å͹̳αºÀº IBM ¸ÞÀÎÇÁ·¹ÀÓ
     ¾îÇø®ÄÉÀ̼ǰú ¹ÐÁ¢ÇÑ °ü°è¸¦ °¡Áö°í ÀÖ°í ÇöÀçµµ ¼ö¸¹Àº
     ¾îÇ÷¹ÄÉÀ̼ǵéÀÌ ¿î¿ëµÇ°í ÀÖ´Ù. TN3270Àº ¸ÞÀÎÇÁ·¹ÀÓ È¯°æ¿¡ TCP/IP
     ¸ÁÀ» Ãß°¡ Áö¿øÇϰԵǸ鼭 ±âÁ¸ ¾îÇø®ÄÉÀ̼ÇÀ» TCP/IP ÇÁ·ÎÅäÄÝ¿¡
     ¸ÂÃç ´Ù½Ã ÀÛ¼ºÇÏÁö¾Ê°í TCP/IP ¸ÁÀ» ÀÌ¿ëÇÒ ¼ö ÀÖ°Ô ÇϱâÀ§ÇÏ¿©
     ¸¸µé¾î Áø °ÍÀ¸·Î, Telnet ÇÁ·ÎÅäÄÝ»ó¿¡ 3270 µ¥ÀÌŸ ½ºÆ®¸²ÀÌ
     Àü¼ÛµÇ°Ô ÇÏ´Â °ÍÀÌ ÁÖ¿ä °ñÀÚ´Ù.

     º» ¼­¿¡¼­´Â TN3270 °ü·Ã ±â¼ú ³»¿ëÀ» ¸ðµÎ ´Ù·çÁö ¾Ê°í ÇöÀç IWW
     3.0ÀÌ Áö¿øÇÏ´Â RFC 1646¿¡ °üÇؼ­¸¸ ¾ð±ÞÇÏ¿´À¸¸ç, ÁÖ·Î Á¢¼ÓÀÇ
     À̽´°¡µÇ´Â Ŭ¶óÀ̾ðÆ®-¼­¹ö°£ÀÇ Negotiation °úÁ¤°ú ±× ±â¼úÀû Àǹ̸¦
     °£´ÜÈ÷ ¼Ò°³ÇÑ´Ù.

     ¡Ü RFC 1646 TN3270 Extensions (TN3287) ¼Ò°³

     TN3287Àº TN3270À» È®ÀåÇÑ °Í(TN3270 Extensions: TN3270E)À¸·Î TN3270
     Client°¡ TN3270 Server·ÎºÎÅÍ Æ¯Á¤ µð¹ÙÀ̽º(LUname)¸¦ ¿ä±¸ÇÏ´Â
     ¹æ¹ý°ú TN3270 ÇÁ¸°ÅÍ ¼­ºñ½º°¡ ¿ä±¸µÇ´Â ¹æ¹ý ¹× ÇÁ¸°ÅÍ »óÅ Á¤º¸¸¦
     ¾î¶²½ÄÀ¸·Î ¼­¹ö¿¡°Ô º¸³¾°ÍÀΰ¡ µî Å©°Ô ÀÌ µÎ °¡Áö¿¡ ´ëÇØ Á¤ÀÇÇÑ´Ù.

     3270 Å͹̳¯ÀÇ À¯ÀÏÇÑ Æ¯Â¡Àº »óÅ Á¤º¸¸¦ out-of-band µ¥ÀÌŸ·Î ÁÖ°í
     ¹ÞÀ» ¼ö ÀÖ´Ù´Â Á¡ÀÌ´Ù. ¿¹¸¦µé¸é, ÇÁ¸°ÅÍÀÇ Á¾ÀÌ°¡ ¾ø´ÙµçÁö Å͹̳¯ÀÇ
     Àü¿øÀÌ ³»·ÁÁ³´ÙµçÁö µî°ú °°Àº »óÅ Á¤º¸´Â °á±¹ È£½ºÆ®
     ¾îÇø®ÄÉÀ̼ǿ¡ ÀÇÇØ ¿À·ù °ËÃâ µîÀ» ¸ñÀûÀ¸·Î ÀÌ¿ëµÈ´Ù. Å͹̳¯Àº
     half duplexÀÌ°í ºí·° ¸ðµå·Î µ¿ÀÛÇϹǷΠ°á±¹, ¾ðÁ¦ ºí·°ÀÌ
     º¸³»¾îÁö°í, ¾ðÁ¦ ºí·°ÀÌ ³¡³ª´ÂÁö, ¶Ç ¾ðÁ¦ º¸³»¾îÁú ¼ö ¾ø´ÂÁö¸¦
     ¼­·Î ¿¬¶ôÇÒ ÇÊ¿ä°¡ ÀÖ´Ù. ÀÌ´Â VTAM°ú TCP/IPÀÇ Á¢¼Ó¿¡ °ü·ÃµÈ ¹®Á¦·Î
     VTAMÀ» »ç¿ëÇÏ´Â ¸ðµç ½Ã½ºÅÛ¿¡ Àû¿ëµÈ´Ù. (MV¿Í °°ÀÌ VTAMÀ» »ç¿ëÇÏÁö
     ¾Ê´Â ¸ÞÀÎÇÁ·¹ÀÓ ¾îÇø®ÄÉÀÌ¼Ç ½Ã½ºÅÛÀ» Á¦¿Ü)

     VTAM/SNA´Â °èÃþÀû ¸Á(Hierachical Network)À̸ç, 3270 Terminal
     ȯ°æÀº Terminal Controller¿Í ±× Controller¿¡ ¸Å´Þ¸° Terminal·Î
     ±¸¼ºµÈ´Ù. ¿©±â¼­ Terminal Cpontroller´Â PU(Physical Unit)¶ó ÇÏ°í,
     TerminalÀº LU(Logical Unit)¶ó ÇÑ´Ù. VTAM/SNA´Â ³×Æ®¿÷»óÀÇ °¢ PU¿Í
     LU¿¡ À¯ÀÏÇÑ À̸§À» ºÎ¿©ÇÏ¿©, ÀÌ °ÍÀÌ PUname, LUnameÀÌ´Ù.
     ¾îÇø®ÄÉÀ̼ǰú Å͹̳¯°£ÀÇ ¿¬°áÀ» ¼¼¼ÇÀ̶ó ÇÏ°í, VTAM/SNA Å͹̳¯Àº
     ½ÇÁúÀûÀ¸·Î in-band Á¤º¸¿Í out-of-band Á¤º¸¸¦ ÁÖ°í ¹Þ´Â 2 °³ÀÇ
     ¼¼¼ÇÀ» °¡Áö¸ç, °¢°¢ ¾îÇø®ÄÉÀ̼ǿ¡ Á÷Á¢ ºÙ´Â LU-LU ¼¼¼Ç°ú VTAM¿¡
     ºÙ´Â SSCP-LU ¼¼¼ÇÀ̶ó ÇÑ´Ù.

                                   [Image]

     out-of-band Á¤º¸ÁßÀÇ Çϳª°¡ Å͹̳¯ÀÇ »óÅ º¯È­¸¦ ¾îÇø®ÄÉÀ̼ǿ¡°Ô
     ¾Ë¸®´Â LUSTAT ¸Þ¼¼ÁöÀ̸ç, ÇÁ¸°ÅÍ È¤Àº ½ºÅ©¸°ÀÌ µ¥ÀÌŸ¸¦ ¼ö½ÅÇÒ
     Áغñ(ready) »óÅÂÀÎÁö ¾Æ´ÑÁö¸¦ ³ªÅ¸³½´Ù.
     LU-LU ¼¼¼Ç¿¡¼­µµ Å͹̳¯ÀÇ »ç¿ëÀ» Á¦¾îÇÏ´Â Data Flow°¡ Á¸ÀçÇϸç, ÇÑ
     ¼¼¼Ç³»¿¡¼­ Àü¼ÛµÇ´Â Á¤º¸ ºí·°À» RU(Request Unit)À̶ó Çϴµ¥, ¾î¶²
     Á¾·ùÀÇ µ¥ÀÌŸ¸¦ ´ã°í ÀÖ´ÂÁö, µ¥ÀÌŸ ±æÀÌ°¡ ¾ó¸¶³ª µÇ´ÂÁö, ´ÙÀ½
     µ¥ÀÌŸ(RUs)°¡ ´õ ÀÖ´ÂÁö µîÀ» Ç¥½ÃÇÑ´Ù.

        * Bracket : ÀÛ¾÷ ´ÜÀ§ÀÇ Á¾·á¸¦ Ç¥½Ã
        * Chaining : ´Ù¸¥ RU°¡ ´õ ÀÖ´ÂÁö ¿©ºÎ¸¦ Ç¥½Ã

     BracketÀ̳ª Chaining°ú °°Àº VTAM/SNA ÇÁ·ÎÅäÄÝÀÇ ¾î¶² ºÎºÐÀÌ »ç¿ëµÉ
     °ÍÀΰ¡¿¡ ´ëÇÑ °áÁ¤Àº LOGMODE¶ó ºÒ¸®´Â VTAM Å×ÀÌºí¿¡ ÀÇÇØ
     °ü¸®µÇ´Âµ¥, ÀÌ·¯ÇÑ Å×À̺íµéÀº LU-LU ¼¼¼ÇÀÌ ½ÃÀÛµÉ ¶§ ¼±ÅõǾî
     ÇÁ·ÎÅäÄÝÀ̳ª RU¿¡ Æ÷ÇÔµÈ ´Ü¸» µ¥ÀÌŸÀÇ Á¾·ù¸¦ ¼Â¾þÇÑ´Ù.

        * LU type 1 : printer data without screen formatting data
        * LU type 2 : 3270 screen formatted data
        * LU type 3 : 3270 screen formatted data for a printer

     LOGMODE Å×À̺íÀº ¼Û¼ö½ÅµÇ´Â RU Å©±â¿Í ½ºÅ©¸° Å©±â ¶ÇÇÑ °®°í ÀÖ´Ù.
     °¢ LU´Â GENÀ̶ó ºÒ¸®´Â VTAM ±¸¼ºÀÇ ÀϺκÐÀ¸·Î LOGMODE Å×À̺í
     ¿£Æ®¸®¸¦ °®°í ÀÖÀ¸¸ç, ÀÌ·¯ÇÑ Å×ÀÌºí ¿£Æ®¸®ÀÇ ¼±ÅÃÀº LU³ª PU¿¡
     ÀÇÇؼ­ Á¶Á¤µÇ´Â °ÍÀÌ ¾Æ´Ï¶ó connection ÀÌ ¸Î¾îÁú ¶§ »ç¿ëÀÚ È¤Àº
     ¾îÇø®ÄÉÀ̼ǿ¡ ÀÇÇؼ­¸¸ ¼±ÅõȴÙ. ½ÇÁ¦ ¼¼¼Ç¿¡ »ç¿ëµÉ LOGMODE
     ¿£Æ®¸®´Â ¼¼¼Ç ·Î±×¿Â ŸÀӽà º¸³»Áö´Âµ¥, ÀÌ Æ¯º°ÇÑ Á¾·ùÀÇ RU¸¦
     BIND¶ó ÇÑ´Ù. ÀÏ´Ü BIND°¡ º¸³»Áö¸é ¼¼¼Ç »ç¿ë ±ÔÄ¢ÀÌ Á¤ÇØÁø´Ù.

     TN3287 ÇÁ·ÎÅäÄÝÀÇ ¸ñÀûÀº ÀϹÝÀûÀÎ IBM È£½ºÆ® ÇÁ¸°ÅÍ Åë½Å ±â´ÉÀ»
     Á¦°øÇÏ´Â °ÍÀ¸·Î TN3270 Ŭ¶óÀ̾ðÆ®·Î ÇÏ¿©±Ý 3287 ÇÁ¸°ÅÍ µ¥ÀÌŸ
     ½ºÆ®¸²À» ó¸®ÇÏ°Ô ÇÑ´Ù.

     ¡Ü Client-Server Negotiation

     TN3287 µ¥ÀÌŸ½ºÆ®¸²¿¡ ´ëÇÑ Çù»ó Á¶°ÇÀº ´ÙÀ½ ¼¼ °¡Áö´Ù.

        * BINARY : ÀÌÁø µ¥ÀÌŸ ±³È¯ °¡´É¼º
        * TERMINAL-TYPE : ´Ü¸» Á¾·ù ÁöÁ¤
        * TELNET IAC EOR : inbound ¹× outbound µ¥ÀÌŸ½ºÆ®¸²ÀÇ delimiter
          ÁöÁ¤

     ÀÌ °ÍÀÌ ±¸ÇöµÊÀ¸·Î Çؼ­ È£½ºÆ® ¾îÇø®ÄÉÀ̼ÇÀÌ LU1°ú LU3 ŸÀÙ
     µ¥ÀÌŸ¸¦ ¼¯¾î ¾²´Â °ÍÀÌ °¡´ÉÇÏ´Ù.

        * TN3287 Server
            1. Maximum RU size : 4K Byte
            2. LU TypeÀº ¸ÞÀÎÇÁ·¹ÀÓ ¾îÇø®ÄÉÀ̼ÇÀ¸·ÎºÎÅÍÀÇ bind¿¡ ÀÇÇØ
               °áÁ¤, LU1ÀÎÁö ȤÀº LU3ÀÎÁö ¼­¹ö°¡ ±â¾ïÇØ¾ß ÇÔ
            3. TELNET CLOSE ¸í·É¾î ¼ö½Å Áï½Ã ¼­¹ö´Â ÀÚµ¿ÀûÀ¸·Î ¼¼¼ÇÀ»
               unbindÇØ¾ß ÇÔ
        * TN3287 Client
            1. IBM 3287 model 1 Type Printer
            2. LU1°ú LU3 ¸ðµÎ Áö¿ø : LU1 µ¥ÀÌŸ´Â 0x00·Î ½ÃÀÛ, LU3
               µ¥ÀÌŸ´Â WCC·Î ½ÃÀÛ (0ÀÎ °æ¿ì´Â ¾øÀ½)

     ¡Ü Command Structure

     ¸ðµç TELNET ¸í·É¾îÀº Àû¾îµµ 2 Byte ÀÌ»óÀÇ SequenceÀ̸ç, Ç×»ó
     ¸í·É¾î ½ÃÀÛÀ» ¾Ë¸®´Â IAC (Interpret-as-Command) Äڵ带 ¾Õ¼¼¿î´Ù.

     COMMAND Values

          IAC           Interpret as command        FF
          DO                                        FD
          WILL                                      FB
          WONT                                      FC
          SB            SuBnegotiation option       FA
          SE            Subnegotiation End          F0
          TERMINAL-TYPE                             18
          SEND                                      1
          IS                                        0

          EOR           End-Of-Record (SNA RU chain 19
                        ³¡)
          BINARY                                    0

          AO            Abort Output (end of        F5
                        bracket)
          IP            Interrupt Process           F4
          AYT           Are You There               F6
          BREAK                                     F3

     TELNET COMMANDSÀÇ ¿¹

          S: [IAC DO TERMINAL-TYPE]     --- "Å͹̳¯ ŸÀÙ Çù»ó ½ÃÀÛÇÏÀÚ"
          C: [IAC WILL TERMINAL-TYPE]   --- "ÁÁ´Ù, ¿øÇÏ¸é ³» Å͹̳¯
                                        ŸÀÙ Á¤º¸¸¦ º¸³»ÁÖ¸¶"
          S: [IAC SB TERMINAL-TYPE SEND --- "±×·³, ³× Å͹̳¯ ŸÀÙÀº
          IAC SE]                       ¹¹³Ä?"
          C: [IAC SB TERM TYPE IS       --- "³» Å͹̳¯ ŸÀÙÀº
          IBM-3287-1 IAC SE]            IBM-3287-1ÀÌ´Ù."
          S: [IAC DO END-OF-RECORD]     --- "EOR Àü¼Û ½ÃÀÛÇÏÀÚ"
          C: [IAC WILL END-OF-RECORD]   --- "³ª´Â EOR º¸³»°Ú´Ù"
          S: [IAC WILL END-OF-RECORD]   --- "³ªµµ EOR º¸³»°Ú´Ù"
          C: [IAC DO END-OF-RECORD]     --- "EOR Àü¼ÛÇϱâ·Î ÇÏÀÚ"
          S: [IAC DO TRANSMIT-BINARY]   --- "8 BIT ÀÌÁø µ¥ÀÌŸ Àü¼Û
                                        ½ÃÀÛÇÏÀÚ"
          C: [IAC WILL TRANSMIT-BINARY] --- "³ª´Â ÀÌÁø µ¥ÀÌŸ º¸³»°Ú´Ù"
          S: [IAC WILL TRANSMIT-BINARY] --- "³ªµµ ÀÌÁø µ¥ÀÌŸ º¸³»°Ú´Ù"
          C: [IAC DO TRANSMIT-BINARY]   --- "ÀÌÁø µ¥ÀÌŸ Àü¼ÛÇϱâ·Î
                                        ÇÏÀÚ"

     ¡Ü TN3270 Printer Status Message

     TN3270 Client°¡ Server¿¡°Ô º¸³»´Â ÇÁ¸°ÅÍ »óÅ ¸Þ¼¼Áö

     ¸Þ¼¼Áö Çü½Ä

     SOH   %   R   S1  S2  IAC     EOR
     01    6C  D9

     S1 : Status/Sense Byte 1

          0    1   2   3    4 5      6     7
          0    0   0   0    0 US     DE    0

               US (Unit Specify) --- "error ¹ß»ý"
               DE (Device End) --- "¼­¹ö·ÎºÎÅÍ ¹ÞÀº µ¥ÀÌŸ¸¦
               Àß Ã³¸®ÇßÀ½"

     S2 : Status/Sense Byte 2

          0    1   2     3      4     5     6   7
          0    0   CR    IR     CD    DC    0   OP

               CR (Command Rejected)    "invalid 3270
                                        command ¹ß»ý"
               IR (Intervention
               Required)                "Printer Not Ready"
               CD (Component
               Disconnectioned)         "Printer Power Off"
                                        or "Printer Cable
                                        Not Connected"
               DC (Data Check)          "Invalid print data"
               OP (Operation Check)     "illegal buffer
                                        address"
                                        or "incomplete order
                                        sequence"

                    SNA Sence Code

               CR         0x10030000
               IR         0x08020000
               CD         0x08020000
               DC         0x10010000
               OC         0x10050000

     Print Data ¼Û¼ö½ÅÀÇ ¿¹

          S: 0x00 [3270 Print Data] --- LU1 Type Data
          C: [S/S with DE] IAC EOR  --- "Àß Ã³¸® ÇßÀ½"
          S: 0x00 [3270 Print Data]
          IAC EOR                   --- End of Chain or LU Type º¯°æ
          C: [S/S with IR] IAC EOR  --- "Paper Jam ¹ß»ý"
          C: [S/S with DE] IAC EOR  --- "À§ ¹®Á¦ ÇØ°á"
          S: 0x00 [3270 Print Data] --- LU1 Type Data
          S: [3270 Print Data]      --- Data °è¼Ó
          S: [3270 Print Data]      --- Data °è¼Ó
          S: [3270 Print Data] IAC
          EOR                       --- Data Chain ³¡
          C: [S/S with DE] IAC EOR  --- "Àß Ã³¸® ÇßÀ½"
          S: 0x00 [Last 3270 Print
          Data] IAC EOR             --- ¸¶Áö¸· Print Data
          C: IAC EOR                --- "Àß Ã³¸® ÇßÀ½"
          S: IAC AO                 --- End-of-bracket (End of print
                                    job)

     ¡Ü Error Conditions

     ¼º°øÀûÀÎ Çù»ó ¿Ï·áÈÄ¿¡µµ ¿À·ù°¡ °ËÃâµÇ¸é Server¿Í Client°£¿¡
     "WONT/DONT" Telnet Sequence¸¦ ÁÖ°í¹ÞÀº ´ÙÀ½ Client´Â NVT ¸ðµå·Î
     º¹±ÍÇÑ´Ù.

     COMMAND Values

          WILL "º¸³»ÁÖ°Ú´Ù"                       FB
          WONT "¸ø º¸³»ÁÖ°Ú´Ù"                    FC
          DO "¹Þ¾ÆµéÀÌ°Ú´Ù"                       FD
          DONT "¸ø ¹Þ¾ÆµéÀÌ°Ú´Ù"                  FE

     TELNET COMMANDSÀÇ ¿¹

          S: [IAC DO TN3270E]        --- "TN3270E Data ¹Þ¾ÆµéÀÌ°Ú´Ù"
                                     ( RFC1647 Áö¿øÇϳÄ? )
          C: [IAC WONT TN3270E]      --- "TN3270E Data ¸ø º¸³»ÁÖ°Ú´Ù
                                     ( RFC1647 Áö¿ø¾ÈµÊ )
          S: [IAC DO TERMINAL-TYPE]  --- "TN3270 Data ¹Þ¾ÆµéÀÌ°Ú´Ù"
                                     ( Å͹̳¯ ŸÀÙ Çù»ó ½ÃÀÛÇÏÀÚ )
          C:[IAC WILL TERMINAL-TYPE] --- "TN3270 Data º¸³»ÁÖ°Ú´Ù
                                     (ÁÁ´Ù, ¿øÇÏ¸é ³» Å͹̳¯ ŸÀÙ
                                     Á¤º¸¸¦ º¸³»ÁÖ¸¶)

----------------------------------------------------------------------------

Revision History

ÀÛ¼ºÀÏÀÚ : 97.03.10
ÀÛ¼ºÀÚ : À̹ÎÈ£

¼öÁ¤ÀÏÀÚ :
¼öÁ¤ÀÚ :