Guest User

Untitled

a guest
May 26th, 2017
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 474.94 KB | None | 0 0
  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7. Network Working Group K. Murakami
  8. Request for Comments: 2173 M. Maruyama
  9. Category: Informational NTT Laboratories
  10. June 1997
  11.  
  12.  
  13. A MAPOS version 1 Extension - Node Switch Protocol
  14.  
  15. Status of this Memo
  16.  
  17. This memo provides information for the Internet community. This memo
  18. does not specify an Internet standard of any kind. Distribution of
  19. this memo is unlimited.
  20.  
  21. Abstract
  22.  
  23. This document describes a MAPOS extension, Node Switch Protocol, for
  24. automatic node address assignment. MAPOS is a multiple access
  25. protocol for transmission of network-protocol datagrams, encapsulated
  26. in High-Level Data Link Control (HDLC) frames, over SONET/SDH. NSP
  27. automates the HDLC address configuration of each node. Using NSP, a
  28. node retrieves its HDLC address from the switch to which it is
  29. connected.
  30.  
  31. 1. Introduction
  32.  
  33. MAPOS[1], Multiple Access Protocol over SONET(Synchronous Optical
  34. Network)/SDH(Synchronous Digital Hierarchy)[2][3][4][5], is a
  35. protocol for transmission of HDLC frames over SONET/SDH. A SONET
  36. switch provides multiple access capability to each node. In MAPOS,
  37. each node has a unique HDLC address within a switch. The address is
  38. equivalent to the port number of the switch to which the node is
  39. connected. This document describes an extension to MAPOS, Node
  40. Switch Protocol, which enable automatic HDLC address assignment.
  41. First, it explains the addressing of MAPOS. Then, it describes the
  42. NSP protocol for automatic HDLC node address assignment.
  43.  
  44. 2. Node Address Format
  45.  
  46. This section describes MAPOS Version 1 address format in single and
  47. multiple switch environment.
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58. Murakami & Maruyama Informational [Page 1]
  59. RFC 2173 MAPOS June 1997
  60.  
  61.  
  62. 2.1 Address Format
  63.  
  64. In MAPOS network, each end node has a unique HDLC address. As shown
  65. in Figure 1, the address length is 8 bits. The LSB is always 1 which
  66. indicates the end of the field. When a SONET switch receives an HDLC
  67. frame, it forwards the frame based on the address in the frame
  68. header.
  69.  
  70. In unicast, MSB is 0 and the rest of the bits are the port number to
  71. which a node is connected. Since the LSB is always 1, the minimum and
  72. maximum addresses are 0x01 and 0x7F, respectively. Address 0x01 is
  73. reserved and is assigned to the control processor in a SONET switch.
  74.  
  75. In broadcast, MSB is 1 and the rest of the bits are all 1s. In
  76. multicast, MSB is 1 and the rest of the bits, except for the LSB,
  77. indicate the group address.
  78.  
  79. +-------------+-+
  80. | | | | | | | | |
  81. | |port number|1|
  82. +-+-----------+-+
  83. ^ ^
  84. | |
  85. | +------- EA bit (always 1)
  86. |
  87. 1 : broadcast, multicast
  88. 0 : unicast
  89.  
  90. Figure 1 Address format
  91.  
  92. 2.2 Address in multi-switch environment
  93.  
  94. In a multi-switch environment, variable-length subnet addressing is
  95. used. Each switch has a switch number that is unique within the
  96. system. Subnetted node addresses consist of the switch number and the
  97. port number to which a node is connected. The address format is "0
  98. <switch number> <node number> 1" for a unicast address, "all 1" for
  99. the broadcast address, and "1 <group address> 1" for a multicast
  100. address.
  101.  
  102. The address 0x01 is reserved and is assigned to the control processor
  103. in the "local" switch. That is, it indicates the switch itself to
  104. which the node is connected. The addresses of the form "0 <switch
  105. number> <all 0> 1" are reserved, and indicates the control processor
  106. of the switch designated by the switch number.
  107.  
  108. In Figure 2, the switch numbers are two bits long. Node N1 is
  109. connected to port 0x3 of switch S1 numbered 0x1 (01 in binary). Thus,
  110.  
  111.  
  112.  
  113. Murakami & Maruyama Informational [Page 2]
  114. RFC 2173 MAPOS June 1997
  115.  
  116.  
  117. the node address is 0 + 01 + 00011, that is, 00100011(0x23). Node N3
  118. has an address 01001001(0x49), since the switch number of S2 is 0x2
  119. (10 in binary) and the port number is 0x09. Note that all the port
  120. numbers are odd because the LSBs are always 1.
  121.  
  122. +------+
  123. | node |
  124. | N1 |
  125. +------+
  126. | 00100011(0x23)
  127. |
  128. |0x3 |0x3
  129. +------+ +---+----+ +---+----+ +------+
  130. | node +----+ SONET +-------+ SONET +-----+ node |
  131. | N2 | 0x5| Switch |0x9 0x5| Switch |0x9 | N3 |
  132. +------+ | S1 | | S2 | +------+
  133. 00100101(0x25) | 0x1 | | 0x2 | 01001001(0x49)
  134. +---+----+ +---+----+
  135. |0x7 |0x7
  136.  
  137.  
  138. Figure 2 Addressing in Multiple Switch Environment
  139.  
  140. 4 NSP(Node-Switch Protocol)
  141.  
  142. This section describes the NSP protocol used for automatic node
  143. address assignment.
  144.  
  145. 4.1 NSP protocol
  146.  
  147. NSP is introduced to provide an automatic node address assignment
  148. function in MAPOS version 1. It reduces the administrative overhead
  149. of node address configuration for each node and prevents troubles
  150. such as address inconsistency and collision. When a node is connected
  151. to a switch and receives SONET signal correctly, the node sends an
  152. address request packet to the control processor in the local switch.
  153. The destination address of this packet is 00000001(0x01). When the
  154. control processor receives the packet, it replies with an address
  155. assignment packet. The destination is the assigned node address. If
  156. the node does not receive the address assignment packet within 5
  157. seconds, it retransmits the address request packet. The
  158. retransmission continues until the node successfully receives the
  159. address assignment packet.
  160.  
  161. Whenever a node detects a transmission error such as carrier loss or
  162. out-of-synchronization, it SHOULD send an address request packet to
  163. the control processor and verify its current address. In addition, a
  164. node MUST verify its address by sending address request packets every
  165.  
  166.  
  167.  
  168. Murakami & Maruyama Informational [Page 3]
  169. RFC 2173 MAPOS June 1997
  170.  
  171.  
  172. 30 seconds. The switch regards them as keep-alive packets and
  173. utilizes them to detect the node's status. If it has not received a
  174. request packet for more than 90 seconds, it assumes that the node
  175. went down. In addition, it also assumes the node went down when a
  176. switch detects a SONET signal failure.
  177.  
  178. 4.2 Packet Format
  179.  
  180. The HDLC protocol field of a NSP frame contains 0xFE03 (hexadecimal)
  181. as defined by the "MAPOS Version 1 Assigned Numbers" [6]. The
  182. information field contains the NSP packet as shown in Figure 3.
  183.  
  184.  
  185. +-----------+------------+
  186. I command I address I
  187. +-----------+------------+
  188. I<- 32bit ->I<- 32 bit ->I
  189.  
  190. Figure 3 NSP packet format
  191.  
  192. The command field is 32 bits long and has the following values (in
  193. decimal);
  194.  
  195. 1 address request
  196. 2 address assignment
  197. 3 reject(error)
  198.  
  199. The length of the address field is 32bits. In address request
  200. packets, the NSP address field SHOULD be filled with zeroes, although
  201. the switch ignores it. In address assignment packets, the assigned
  202. address is placed in the least significant byte of the field. The
  203. rest of the field is padded with zeroes. When the switch can not
  204. assign the address for some reason, the switch replies with a reject
  205. command (the values is 3). The value of the address field is
  206. undefined.
  207.  
  208. 4.3 Consideration for special cases
  209.  
  210. There are two special cases to consider. One is a point-to-point
  211. connection without a switch. The other is loop-back, that is, direct
  212. connection between the input and the output of the same port.
  213.  
  214. 4.3.1 point-to-point
  215.  
  216. In the case of a point-to-point connection shown in Figure 4, a node
  217. sends an address request packet to the other node. The destination
  218. address is 00000001(0x01), that is usually a control processor in a
  219. switch. When a node receives the address request, it detects the
  220.  
  221.  
  222.  
  223. Murakami & Maruyama Informational [Page 4]
  224. RFC 2173 MAPOS June 1997
  225.  
  226.  
  227. point-to-point connection by examining both the destination address
  228. and the command contained. Then, it MUST reply with an address
  229. assignment packet. The assigned address MUST be 00000011(0x03). Since
  230. both nodes send an address request to each other, both of them get
  231. address 00000011(0x03). Since any address can be used in point-to-
  232. point environment, there is no problem even if both of the nodes have
  233. the same address.
  234.  
  235. ---- address request ----> 0x01
  236. 0x03 <---- address assignment ----
  237. +------+ +------+
  238. | node +--------------------------------+ node |
  239. +------+ +------+
  240. 0x01 <---- address request ----
  241. ---- address assignment ----> 0x03
  242.  
  243. Figure 4 Point-to-point connection
  244.  
  245. 4.3.2 loop-back
  246.  
  247. Another special case is loop-back where the output port of a node is
  248. simply connected to its input port as shown in Figure 5. In this
  249. case, the same mechanism as that for point-to-point can be applied
  250. without modification. A node sends an address request packet
  251. destined to 00000001(0x01). The node then receives the same packet.
  252. Since the destination is 00000001(0x01), it replies with an address
  253. assignment packet, containing the assigned address 00000011(0x03), to
  254. the address 0000 0011(0x03). Thus, the node obtains the address
  255. 00000011(0x03).
  256.  
  257. ---- address request ----> 0x01
  258. +------+ --- address assignment --> 0x03
  259. | +-------------->-----------------+
  260. | node + |
  261. | +--------------<-----------------+
  262. +------+
  263.  
  264. Figure 5 Loop-back Configuration
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272.  
  273.  
  274.  
  275.  
  276.  
  277.  
  278. Murakami & Maruyama Informational [Page 5]
  279. RFC 2173 MAPOS June 1997
  280.  
  281.  
  282. 5. Security Considerations
  283.  
  284. Security issues are not discussed in this memo.
  285.  
  286. References
  287.  
  288. [1] Murakami, K. and M. Maruyama, "MAPOS - Multiple Access Protocol
  289. over SONET/SDH, Version 1," RFC-2171, June 1997.
  290.  
  291. [2] CCITT Recommendation G.707: Synchronous Digital Hierarchy Bit
  292. Rates (1990).
  293.  
  294. [3] CCITT Recommendation G.708: Network Node Interface for
  295. Synchronous Digital Hierarchy (1990).
  296.  
  297. [4] CCITT Recommendation G.709: Synchronous Multiplexing Structure
  298. (1990).
  299.  
  300. [5] American National Standard for Telecommunications - Digital
  301. Hierarchy - Optical Interface Rates and Formats Specification,
  302. ANSI T1.105-1991.
  303.  
  304. [6] Maruyama, M. and K. Murakami, "MAPOS Version 1 Assigned
  305. Numbers," RFC-2172, June, 1997.
  306.  
  307. Acknowledgements
  308.  
  309. The authors would like to acknowledge the contributions and
  310. thoughtful suggestions of John P. Mullaney, Clark Bremer, Masayuki
  311. Kobayashi, Paul Francis, Toshiaki Yoshida, and Takahiro Sajima.
  312.  
  313. Authors' Address
  314.  
  315. Ken Murakami
  316. NTT Software Laboratories
  317. 3-9-11, Midori-cho
  318. Musashino-shi
  319. Tokyo 180, Japan
  320. E-mail: murakami@ntt-20.ecl.net
  321.  
  322. Mitsuru Maruyama
  323. NTT Software Laboratories
  324. 3-9-11, Midori-cho
  325. Musashino-shi
  326. Tokyo 180, Japan
  327. E-mail: mitsuru@ntt-20.ecl.net
  328.  
  329.  
  330.  
  331.  
  332.  
  333. Murakami & Maruyama Informational [Page 6]
  334.  
  335.  
  336.  
  337.  
  338.  
  339.  
  340.  
  341. Network Working Group K. Murakami
  342. Request for Comments: 2173 M. Maruyama
  343. Category: Informational NTT Laboratories
  344. June 1997
  345.  
  346.  
  347. A MAPOS version 1 Extension - Node Switch Protocol
  348.  
  349. Status of this Memo
  350.  
  351. This memo provides information for the Internet community. This memo
  352. does not specify an Internet standard of any kind. Distribution of
  353. this memo is unlimited.
  354.  
  355. Abstract
  356.  
  357. This document describes a MAPOS extension, Node Switch Protocol, for
  358. automatic node address assignment. MAPOS is a multiple access
  359. protocol for transmission of network-protocol datagrams, encapsulated
  360. in High-Level Data Link Control (HDLC) frames, over SONET/SDH. NSP
  361. automates the HDLC address configuration of each node. Using NSP, a
  362. node retrieves its HDLC address from the switch to which it is
  363. connected.
  364.  
  365. 1. Introduction
  366.  
  367. MAPOS[1], Multiple Access Protocol over SONET(Synchronous Optical
  368. Network)/SDH(Synchronous Digital Hierarchy)[2][3][4][5], is a
  369. protocol for transmission of HDLC frames over SONET/SDH. A SONET
  370. switch provides multiple access capability to each node. In MAPOS,
  371. each node has a unique HDLC address within a switch. The address is
  372. equivalent to the port number of the switch to which the node is
  373. connected. This document describes an extension to MAPOS, Node
  374. Switch Protocol, which enable automatic HDLC address assignment.
  375. First, it explains the addressing of MAPOS. Then, it describes the
  376. NSP protocol for automatic HDLC node address assignment.
  377.  
  378. 2. Node Address Format
  379.  
  380. This section describes MAPOS Version 1 address format in single and
  381. multiple switch environment.
  382.  
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392. Murakami & Maruyama Informational [Page 1]
  393. RFC 2173 MAPOS June 1997
  394.  
  395.  
  396. 2.1 Address Format
  397.  
  398. In MAPOS network, each end node has a unique HDLC address. As shown
  399. in Figure 1, the address length is 8 bits. The LSB is always 1 which
  400. indicates the end of the field. When a SONET switch receives an HDLC
  401. frame, it forwards the frame based on the address in the frame
  402. header.
  403.  
  404. In unicast, MSB is 0 and the rest of the bits are the port number to
  405. which a node is connected. Since the LSB is always 1, the minimum and
  406. maximum addresses are 0x01 and 0x7F, respectively. Address 0x01 is
  407. reserved and is assigned to the control processor in a SONET switch.
  408.  
  409. In broadcast, MSB is 1 and the rest of the bits are all 1s. In
  410. multicast, MSB is 1 and the rest of the bits, except for the LSB,
  411. indicate the group address.
  412.  
  413. +-------------+-+
  414. | | | | | | | | |
  415. | |port number|1|
  416. +-+-----------+-+
  417. ^ ^
  418. | |
  419. | +------- EA bit (always 1)
  420. |
  421. 1 : broadcast, multicast
  422. 0 : unicast
  423.  
  424. Figure 1 Address format
  425.  
  426. 2.2 Address in multi-switch environment
  427.  
  428. In a multi-switch environment, variable-length subnet addressing is
  429. used. Each switch has a switch number that is unique within the
  430. system. Subnetted node addresses consist of the switch number and the
  431. port number to which a node is connected. The address format is "0
  432. <switch number> <node number> 1" for a unicast address, "all 1" for
  433. the broadcast address, and "1 <group address> 1" for a multicast
  434. address.
  435.  
  436. The address 0x01 is reserved and is assigned to the control processor
  437. in the "local" switch. That is, it indicates the switch itself to
  438. which the node is connected. The addresses of the form "0 <switch
  439. number> <all 0> 1" are reserved, and indicates the control processor
  440. of the switch designated by the switch number.
  441.  
  442. In Figure 2, the switch numbers are two bits long. Node N1 is
  443. connected to port 0x3 of switch S1 numbered 0x1 (01 in binary). Thus,
  444.  
  445.  
  446.  
  447. Murakami & Maruyama Informational [Page 2]
  448. RFC 2173 MAPOS June 1997
  449.  
  450.  
  451. the node address is 0 + 01 + 00011, that is, 00100011(0x23). Node N3
  452. has an address 01001001(0x49), since the switch number of S2 is 0x2
  453. (10 in binary) and the port number is 0x09. Note that all the port
  454. numbers are odd because the LSBs are always 1.
  455.  
  456. +------+
  457. | node |
  458. | N1 |
  459. +------+
  460. | 00100011(0x23)
  461. |
  462. |0x3 |0x3
  463. +------+ +---+----+ +---+----+ +------+
  464. | node +----+ SONET +-------+ SONET +-----+ node |
  465. | N2 | 0x5| Switch |0x9 0x5| Switch |0x9 | N3 |
  466. +------+ | S1 | | S2 | +------+
  467. 00100101(0x25) | 0x1 | | 0x2 | 01001001(0x49)
  468. +---+----+ +---+----+
  469. |0x7 |0x7
  470.  
  471.  
  472. Figure 2 Addressing in Multiple Switch Environment
  473.  
  474. 4 NSP(Node-Switch Protocol)
  475.  
  476. This section describes the NSP protocol used for automatic node
  477. address assignment.
  478.  
  479. 4.1 NSP protocol
  480.  
  481. NSP is introduced to provide an automatic node address assignment
  482. function in MAPOS version 1. It reduces the administrative overhead
  483. of node address configuration for each node and prevents troubles
  484. such as address inconsistency and collision. When a node is connected
  485. to a switch and receives SONET signal correctly, the node sends an
  486. address request packet to the control processor in the local switch.
  487. The destination address of this packet is 00000001(0x01). When the
  488. control processor receives the packet, it replies with an address
  489. assignment packet. The destination is the assigned node address. If
  490. the node does not receive the address assignment packet within 5
  491. seconds, it retransmits the address request packet. The
  492. retransmission continues until the node successfully receives the
  493. address assignment packet.
  494.  
  495. Whenever a node detects a transmission error such as carrier loss or
  496. out-of-synchronization, it SHOULD send an address request packet to
  497. the control processor and verify its current address. In addition, a
  498. node MUST verify its address by sending address request packets every
  499.  
  500.  
  501.  
  502. Murakami & Maruyama Informational [Page 3]
  503. RFC 2173 MAPOS June 1997
  504.  
  505.  
  506. 30 seconds. The switch regards them as keep-alive packets and
  507. utilizes them to detect the node's status. If it has not received a
  508. request packet for more than 90 seconds, it assumes that the node
  509. went down. In addition, it also assumes the node went down when a
  510. switch detects a SONET signal failure.
  511.  
  512. 4.2 Packet Format
  513.  
  514. The HDLC protocol field of a NSP frame contains 0xFE03 (hexadecimal)
  515. as defined by the "MAPOS Version 1 Assigned Numbers" [6]. The
  516. information field contains the NSP packet as shown in Figure 3.
  517.  
  518.  
  519. +-----------+------------+
  520. I command I address I
  521. +-----------+------------+
  522. I<- 32bit ->I<- 32 bit ->I
  523.  
  524. Figure 3 NSP packet format
  525.  
  526. The command field is 32 bits long and has the following values (in
  527. decimal);
  528.  
  529. 1 address request
  530. 2 address assignment
  531. 3 reject(error)
  532.  
  533. The length of the address field is 32bits. In address request
  534. packets, the NSP address field SHOULD be filled with zeroes, although
  535. the switch ignores it. In address assignment packets, the assigned
  536. address is placed in the least significant byte of the field. The
  537. rest of the field is padded with zeroes. When the switch can not
  538. assign the address for some reason, the switch replies with a reject
  539. command (the values is 3). The value of the address field is
  540. undefined.
  541.  
  542. 4.3 Consideration for special cases
  543.  
  544. There are two special cases to consider. One is a point-to-point
  545. connection without a switch. The other is loop-back, that is, direct
  546. connection between the input and the output of the same port.
  547.  
  548. 4.3.1 point-to-point
  549.  
  550. In the case of a point-to-point connection shown in Figure 4, a node
  551. sends an address request packet to the other node. The destination
  552. address is 00000001(0x01), that is usually a control processor in a
  553. switch. When a node receives the address request, it detects the
  554.  
  555.  
  556.  
  557. Murakami & Maruyama Informational [Page 4]
  558. RFC 2173 MAPOS June 1997
  559.  
  560.  
  561. point-to-point connection by examining both the destination address
  562. and the command contained. Then, it MUST reply with an address
  563. assignment packet. The assigned address MUST be 00000011(0x03). Since
  564. both nodes send an address request to each other, both of them get
  565. address 00000011(0x03). Since any address can be used in point-to-
  566. point environment, there is no problem even if both of the nodes have
  567. the same address.
  568.  
  569. ---- address request ----> 0x01
  570. 0x03 <---- address assignment ----
  571. +------+ +------+
  572. | node +--------------------------------+ node |
  573. +------+ +------+
  574. 0x01 <---- address request ----
  575. ---- address assignment ----> 0x03
  576.  
  577. Figure 4 Point-to-point connection
  578.  
  579. 4.3.2 loop-back
  580.  
  581. Another special case is loop-back where the output port of a node is
  582. simply connected to its input port as shown in Figure 5. In this
  583. case, the same mechanism as that for point-to-point can be applied
  584. without modification. A node sends an address request packet
  585. destined to 00000001(0x01). The node then receives the same packet.
  586. Since the destination is 00000001(0x01), it replies with an address
  587. assignment packet, containing the assigned address 00000011(0x03), to
  588. the address 0000 0011(0x03). Thus, the node obtains the address
  589. 00000011(0x03).
  590.  
  591. ---- address request ----> 0x01
  592. +------+ --- address assignment --> 0x03
  593. | +-------------->-----------------+
  594. | node + |
  595. | +--------------<-----------------+
  596. +------+
  597.  
  598. Figure 5 Loop-back Configuration
  599.  
  600.  
  601.  
  602.  
  603.  
  604.  
  605.  
  606.  
  607.  
  608.  
  609.  
  610.  
  611.  
  612. Murakami & Maruyama Informational [Page 5]
  613. RFC 2173 MAPOS June 1997
  614.  
  615.  
  616. 5. Security Considerations
  617.  
  618. Security issues are not discussed in this memo.
  619.  
  620. References
  621.  
  622. [1] Murakami, K. and M. Maruyama, "MAPOS - Multiple Access Protocol
  623. over SONET/SDH, Version 1," RFC-2171, June 1997.
  624.  
  625. [2] CCITT Recommendation G.707: Synchronous Digital Hierarchy Bit
  626. Rates (1990).
  627.  
  628. [3] CCITT Recommendation G.708: Network Node Interface for
  629. Synchronous Digital Hierarchy (1990).
  630.  
  631. [4] CCITT Recommendation G.709: Synchronous Multiplexing Structure
  632. (1990).
  633.  
  634. [5] American National Standard for Telecommunications - Digital
  635. Hierarchy - Optical Interface Rates and Formats Specification,
  636. ANSI T1.105-1991.
  637.  
  638. [6] Maruyama, M. and K. Murakami, "MAPOS Version 1 Assigned
  639. Numbers," RFC-2172, June, 1997.
  640.  
  641. Acknowledgements
  642.  
  643. The authors would like to acknowledge the contributions and
  644. thoughtful suggestions of John P. Mullaney, Clark Bremer, Masayuki
  645. Kobayashi, Paul Francis, Toshiaki Yoshida, and Takahiro Sajima.
  646.  
  647. Authors' Address
  648.  
  649. Ken Murakami
  650. NTT Software Laboratories
  651. 3-9-11, Midori-cho
  652. Musashino-shi
  653. Tokyo 180, Japan
  654. E-mail: murakami@ntt-20.ecl.net
  655.  
  656. Mitsuru Maruyama
  657. NTT Software Laboratories
  658. 3-9-11, Midori-cho
  659. Musashino-shi
  660. Tokyo 180, Japan
  661. E-mail: mitsuru@ntt-20.ecl.net
  662.  
  663.  
  664.  
  665.  
  666.  
  667. Murakami & Maruyama Informational [Page 6]
  668.  
  669.  
  670.  
  671.  
  672.  
  673.  
  674.  
  675. Network Working Group K. Murakami
  676. Request for Comments: 2173 M. Maruyama
  677. Category: Informational NTT Laboratories
  678. June 1997
  679.  
  680.  
  681. A MAPOS version 1 Extension - Node Switch Protocol
  682.  
  683. Status of this Memo
  684.  
  685. This memo provides information for the Internet community. This memo
  686. does not specify an Internet standard of any kind. Distribution of
  687. this memo is unlimited.
  688.  
  689. Abstract
  690.  
  691. This document describes a MAPOS extension, Node Switch Protocol, for
  692. automatic node address assignment. MAPOS is a multiple access
  693. protocol for transmission of network-protocol datagrams, encapsulated
  694. in High-Level Data Link Control (HDLC) frames, over SONET/SDH. NSP
  695. automates the HDLC address configuration of each node. Using NSP, a
  696. node retrieves its HDLC address from the switch to which it is
  697. connected.
  698.  
  699. 1. Introduction
  700.  
  701. MAPOS[1], Multiple Access Protocol over SONET(Synchronous Optical
  702. Network)/SDH(Synchronous Digital Hierarchy)[2][3][4][5], is a
  703. protocol for transmission of HDLC frames over SONET/SDH. A SONET
  704. switch provides multiple access capability to each node. In MAPOS,
  705. each node has a unique HDLC address within a switch. The address is
  706. equivalent to the port number of the switch to which the node is
  707. connected. This document describes an extension to MAPOS, Node
  708. Switch Protocol, which enable automatic HDLC address assignment.
  709. First, it explains the addressing of MAPOS. Then, it describes the
  710. NSP protocol for automatic HDLC node address assignment.
  711.  
  712. 2. Node Address Format
  713.  
  714. This section describes MAPOS Version 1 address format in single and
  715. multiple switch environment.
  716.  
  717.  
  718.  
  719.  
  720.  
  721.  
  722.  
  723.  
  724.  
  725.  
  726. Murakami & Maruyama Informational [Page 1]
  727. RFC 2173 MAPOS June 1997
  728.  
  729.  
  730. 2.1 Address Format
  731.  
  732. In MAPOS network, each end node has a unique HDLC address. As shown
  733. in Figure 1, the address length is 8 bits. The LSB is always 1 which
  734. indicates the end of the field. When a SONET switch receives an HDLC
  735. frame, it forwards the frame based on the address in the frame
  736. header.
  737.  
  738. In unicast, MSB is 0 and the rest of the bits are the port number to
  739. which a node is connected. Since the LSB is always 1, the minimum and
  740. maximum addresses are 0x01 and 0x7F, respectively. Address 0x01 is
  741. reserved and is assigned to the control processor in a SONET switch.
  742.  
  743. In broadcast, MSB is 1 and the rest of the bits are all 1s. In
  744. multicast, MSB is 1 and the rest of the bits, except for the LSB,
  745. indicate the group address.
  746.  
  747. +-------------+-+
  748. | | | | | | | | |
  749. | |port number|1|
  750. +-+-----------+-+
  751. ^ ^
  752. | |
  753. | +------- EA bit (always 1)
  754. |
  755. 1 : broadcast, multicast
  756. 0 : unicast
  757.  
  758. Figure 1 Address format
  759.  
  760. 2.2 Address in multi-switch environment
  761.  
  762. In a multi-switch environment, variable-length subnet addressing is
  763. used. Each switch has a switch number that is unique within the
  764. system. Subnetted node addresses consist of the switch number and the
  765. port number to which a node is connected. The address format is "0
  766. <switch number> <node number> 1" for a unicast address, "all 1" for
  767. the broadcast address, and "1 <group address> 1" for a multicast
  768. address.
  769.  
  770. The address 0x01 is reserved and is assigned to the control processor
  771. in the "local" switch. That is, it indicates the switch itself to
  772. which the node is connected. The addresses of the form "0 <switch
  773. number> <all 0> 1" are reserved, and indicates the control processor
  774. of the switch designated by the switch number.
  775.  
  776. In Figure 2, the switch numbers are two bits long. Node N1 is
  777. connected to port 0x3 of switch S1 numbered 0x1 (01 in binary). Thus,
  778.  
  779.  
  780.  
  781. Murakami & Maruyama Informational [Page 2]
  782. RFC 2173 MAPOS June 1997
  783.  
  784.  
  785. the node address is 0 + 01 + 00011, that is, 00100011(0x23). Node N3
  786. has an address 01001001(0x49), since the switch number of S2 is 0x2
  787. (10 in binary) and the port number is 0x09. Note that all the port
  788. numbers are odd because the LSBs are always 1.
  789.  
  790. +------+
  791. | node |
  792. | N1 |
  793. +------+
  794. | 00100011(0x23)
  795. |
  796. |0x3 |0x3
  797. +------+ +---+----+ +---+----+ +------+
  798. | node +----+ SONET +-------+ SONET +-----+ node |
  799. | N2 | 0x5| Switch |0x9 0x5| Switch |0x9 | N3 |
  800. +------+ | S1 | | S2 | +------+
  801. 00100101(0x25) | 0x1 | | 0x2 | 01001001(0x49)
  802. +---+----+ +---+----+
  803. |0x7 |0x7
  804.  
  805.  
  806. Figure 2 Addressing in Multiple Switch Environment
  807.  
  808. 4 NSP(Node-Switch Protocol)
  809.  
  810. This section describes the NSP protocol used for automatic node
  811. address assignment.
  812.  
  813. 4.1 NSP protocol
  814.  
  815. NSP is introduced to provide an automatic node address assignment
  816. function in MAPOS version 1. It reduces the administrative overhead
  817. of node address configuration for each node and prevents troubles
  818. such as address inconsistency and collision. When a node is connected
  819. to a switch and receives SONET signal correctly, the node sends an
  820. address request packet to the control processor in the local switch.
  821. The destination address of this packet is 00000001(0x01). When the
  822. control processor receives the packet, it replies with an address
  823. assignment packet. The destination is the assigned node address. If
  824. the node does not receive the address assignment packet within 5
  825. seconds, it retransmits the address request packet. The
  826. retransmission continues until the node successfully receives the
  827. address assignment packet.
  828.  
  829. Whenever a node detects a transmission error such as carrier loss or
  830. out-of-synchronization, it SHOULD send an address request packet to
  831. the control processor and verify its current address. In addition, a
  832. node MUST verify its address by sending address request packets every
  833.  
  834.  
  835.  
  836. Murakami & Maruyama Informational [Page 3]
  837. RFC 2173 MAPOS June 1997
  838.  
  839.  
  840. 30 seconds. The switch regards them as keep-alive packets and
  841. utilizes them to detect the node's status. If it has not received a
  842. request packet for more than 90 seconds, it assumes that the node
  843. went down. In addition, it also assumes the node went down when a
  844. switch detects a SONET signal failure.
  845.  
  846. 4.2 Packet Format
  847.  
  848. The HDLC protocol field of a NSP frame contains 0xFE03 (hexadecimal)
  849. as defined by the "MAPOS Version 1 Assigned Numbers" [6]. The
  850. information field contains the NSP packet as shown in Figure 3.
  851.  
  852.  
  853. +-----------+------------+
  854. I command I address I
  855. +-----------+------------+
  856. I<- 32bit ->I<- 32 bit ->I
  857.  
  858. Figure 3 NSP packet format
  859.  
  860. The command field is 32 bits long and has the following values (in
  861. decimal);
  862.  
  863. 1 address request
  864. 2 address assignment
  865. 3 reject(error)
  866.  
  867. The length of the address field is 32bits. In address request
  868. packets, the NSP address field SHOULD be filled with zeroes, although
  869. the switch ignores it. In address assignment packets, the assigned
  870. address is placed in the least significant byte of the field. The
  871. rest of the field is padded with zeroes. When the switch can not
  872. assign the address for some reason, the switch replies with a reject
  873. command (the values is 3). The value of the address field is
  874. undefined.
  875.  
  876. 4.3 Consideration for special cases
  877.  
  878. There are two special cases to consider. One is a point-to-point
  879. connection without a switch. The other is loop-back, that is, direct
  880. connection between the input and the output of the same port.
  881.  
  882. 4.3.1 point-to-point
  883.  
  884. In the case of a point-to-point connection shown in Figure 4, a node
  885. sends an address request packet to the other node. The destination
  886. address is 00000001(0x01), that is usually a control processor in a
  887. switch. When a node receives the address request, it detects the
  888.  
  889.  
  890.  
  891. Murakami & Maruyama Informational [Page 4]
  892. RFC 2173 MAPOS June 1997
  893.  
  894.  
  895. point-to-point connection by examining both the destination address
  896. and the command contained. Then, it MUST reply with an address
  897. assignment packet. The assigned address MUST be 00000011(0x03). Since
  898. both nodes send an address request to each other, both of them get
  899. address 00000011(0x03). Since any address can be used in point-to-
  900. point environment, there is no problem even if both of the nodes have
  901. the same address.
  902.  
  903. ---- address request ----> 0x01
  904. 0x03 <---- address assignment ----
  905. +------+ +------+
  906. | node +--------------------------------+ node |
  907. +------+ +------+
  908. 0x01 <---- address request ----
  909. ---- address assignment ----> 0x03
  910.  
  911. Figure 4 Point-to-point connection
  912.  
  913. 4.3.2 loop-back
  914.  
  915. Another special case is loop-back where the output port of a node is
  916. simply connected to its input port as shown in Figure 5. In this
  917. case, the same mechanism as that for point-to-point can be applied
  918. without modification. A node sends an address request packet
  919. destined to 00000001(0x01). The node then receives the same packet.
  920. Since the destination is 00000001(0x01), it replies with an address
  921. assignment packet, containing the assigned address 00000011(0x03), to
  922. the address 0000 0011(0x03). Thus, the node obtains the address
  923. 00000011(0x03).
  924.  
  925. ---- address request ----> 0x01
  926. +------+ --- address assignment --> 0x03
  927. | +-------------->-----------------+
  928. | node + |
  929. | +--------------<-----------------+
  930. +------+
  931.  
  932. Figure 5 Loop-back Configuration
  933.  
  934.  
  935.  
  936.  
  937.  
  938.  
  939.  
  940.  
  941.  
  942.  
  943.  
  944.  
  945.  
  946. Murakami & Maruyama Informational [Page 5]
  947. RFC 2173 MAPOS June 1997
  948.  
  949.  
  950. 5. Security Considerations
  951.  
  952. Security issues are not discussed in this memo.
  953.  
  954. References
  955.  
  956. [1] Murakami, K. and M. Maruyama, "MAPOS - Multiple Access Protocol
  957. over SONET/SDH, Version 1," RFC-2171, June 1997.
  958.  
  959. [2] CCITT Recommendation G.707: Synchronous Digital Hierarchy Bit
  960. Rates (1990).
  961.  
  962. [3] CCITT Recommendation G.708: Network Node Interface for
  963. Synchronous Digital Hierarchy (1990).
  964.  
  965. [4] CCITT Recommendation G.709: Synchronous Multiplexing Structure
  966. (1990).
  967.  
  968. [5] American National Standard for Telecommunications - Digital
  969. Hierarchy - Optical Interface Rates and Formats Specification,
  970. ANSI T1.105-1991.
  971.  
  972. [6] Maruyama, M. and K. Murakami, "MAPOS Version 1 Assigned
  973. Numbers," RFC-2172, June, 1997.
  974.  
  975. Acknowledgements
  976.  
  977. The authors would like to acknowledge the contributions and
  978. thoughtful suggestions of John P. Mullaney, Clark Bremer, Masayuki
  979. Kobayashi, Paul Francis, Toshiaki Yoshida, and Takahiro Sajima.
  980.  
  981. Authors' Address
  982.  
  983. Ken Murakami
  984. NTT Software Laboratories
  985. 3-9-11, Midori-cho
  986. Musashino-shi
  987. Tokyo 180, Japan
  988. E-mail: murakami@ntt-20.ecl.net
  989.  
  990. Mitsuru Maruyama
  991. NTT Software Laboratories
  992. 3-9-11, Midori-cho
  993. Musashino-shi
  994. Tokyo 180, Japan
  995. E-mail: mitsuru@ntt-20.ecl.net
  996.  
  997.  
  998.  
  999.  
  1000.  
  1001. Murakami & Maruyama Informational [Page 6]
  1002.  
  1003.  
  1004.  
  1005.  
  1006.  
  1007.  
  1008.  
  1009. Network Working Group K. Murakami
  1010. Request for Comments: 2173 M. Maruyama
  1011. Category: Informational NTT Laboratories
  1012. June 1997
  1013.  
  1014.  
  1015. A MAPOS version 1 Extension - Node Switch Protocol
  1016.  
  1017. Status of this Memo
  1018.  
  1019. This memo provides information for the Internet community. This memo
  1020. does not specify an Internet standard of any kind. Distribution of
  1021. this memo is unlimited.
  1022.  
  1023. Abstract
  1024.  
  1025. This document describes a MAPOS extension, Node Switch Protocol, for
  1026. automatic node address assignment. MAPOS is a multiple access
  1027. protocol for transmission of network-protocol datagrams, encapsulated
  1028. in High-Level Data Link Control (HDLC) frames, over SONET/SDH. NSP
  1029. automates the HDLC address configuration of each node. Using NSP, a
  1030. node retrieves its HDLC address from the switch to which it is
  1031. connected.
  1032.  
  1033. 1. Introduction
  1034.  
  1035. MAPOS[1], Multiple Access Protocol over SONET(Synchronous Optical
  1036. Network)/SDH(Synchronous Digital Hierarchy)[2][3][4][5], is a
  1037. protocol for transmission of HDLC frames over SONET/SDH. A SONET
  1038. switch provides multiple access capability to each node. In MAPOS,
  1039. each node has a unique HDLC address within a switch. The address is
  1040. equivalent to the port number of the switch to which the node is
  1041. connected. This document describes an extension to MAPOS, Node
  1042. Switch Protocol, which enable automatic HDLC address assignment.
  1043. First, it explains the addressing of MAPOS. Then, it describes the
  1044. NSP protocol for automatic HDLC node address assignment.
  1045.  
  1046. 2. Node Address Format
  1047.  
  1048. This section describes MAPOS Version 1 address format in single and
  1049. multiple switch environment.
  1050.  
  1051.  
  1052.  
  1053.  
  1054.  
  1055.  
  1056.  
  1057.  
  1058.  
  1059.  
  1060. Murakami & Maruyama Informational [Page 1]
  1061. RFC 2173 MAPOS June 1997
  1062.  
  1063.  
  1064. 2.1 Address Format
  1065.  
  1066. In MAPOS network, each end node has a unique HDLC address. As shown
  1067. in Figure 1, the address length is 8 bits. The LSB is always 1 which
  1068. indicates the end of the field. When a SONET switch receives an HDLC
  1069. frame, it forwards the frame based on the address in the frame
  1070. header.
  1071.  
  1072. In unicast, MSB is 0 and the rest of the bits are the port number to
  1073. which a node is connected. Since the LSB is always 1, the minimum and
  1074. maximum addresses are 0x01 and 0x7F, respectively. Address 0x01 is
  1075. reserved and is assigned to the control processor in a SONET switch.
  1076.  
  1077. In broadcast, MSB is 1 and the rest of the bits are all 1s. In
  1078. multicast, MSB is 1 and the rest of the bits, except for the LSB,
  1079. indicate the group address.
  1080.  
  1081. +-------------+-+
  1082. | | | | | | | | |
  1083. | |port number|1|
  1084. +-+-----------+-+
  1085. ^ ^
  1086. | |
  1087. | +------- EA bit (always 1)
  1088. |
  1089. 1 : broadcast, multicast
  1090. 0 : unicast
  1091.  
  1092. Figure 1 Address format
  1093.  
  1094. 2.2 Address in multi-switch environment
  1095.  
  1096. In a multi-switch environment, variable-length subnet addressing is
  1097. used. Each switch has a switch number that is unique within the
  1098. system. Subnetted node addresses consist of the switch number and the
  1099. port number to which a node is connected. The address format is "0
  1100. <switch number> <node number> 1" for a unicast address, "all 1" for
  1101. the broadcast address, and "1 <group address> 1" for a multicast
  1102. address.
  1103.  
  1104. The address 0x01 is reserved and is assigned to the control processor
  1105. in the "local" switch. That is, it indicates the switch itself to
  1106. which the node is connected. The addresses of the form "0 <switch
  1107. number> <all 0> 1" are reserved, and indicates the control processor
  1108. of the switch designated by the switch number.
  1109.  
  1110. In Figure 2, the switch numbers are two bits long. Node N1 is
  1111. connected to port 0x3 of switch S1 numbered 0x1 (01 in binary). Thus,
  1112.  
  1113.  
  1114.  
  1115. Murakami & Maruyama Informational [Page 2]
  1116. RFC 2173 MAPOS June 1997
  1117.  
  1118.  
  1119. the node address is 0 + 01 + 00011, that is, 00100011(0x23). Node N3
  1120. has an address 01001001(0x49), since the switch number of S2 is 0x2
  1121. (10 in binary) and the port number is 0x09. Note that all the port
  1122. numbers are odd because the LSBs are always 1.
  1123.  
  1124. +------+
  1125. | node |
  1126. | N1 |
  1127. +------+
  1128. | 00100011(0x23)
  1129. |
  1130. |0x3 |0x3
  1131. +------+ +---+----+ +---+----+ +------+
  1132. | node +----+ SONET +-------+ SONET +-----+ node |
  1133. | N2 | 0x5| Switch |0x9 0x5| Switch |0x9 | N3 |
  1134. +------+ | S1 | | S2 | +------+
  1135. 00100101(0x25) | 0x1 | | 0x2 | 01001001(0x49)
  1136. +---+----+ +---+----+
  1137. |0x7 |0x7
  1138.  
  1139.  
  1140. Figure 2 Addressing in Multiple Switch Environment
  1141.  
  1142. 4 NSP(Node-Switch Protocol)
  1143.  
  1144. This section describes the NSP protocol used for automatic node
  1145. address assignment.
  1146.  
  1147. 4.1 NSP protocol
  1148.  
  1149. NSP is introduced to provide an automatic node address assignment
  1150. function in MAPOS version 1. It reduces the administrative overhead
  1151. of node address configuration for each node and prevents troubles
  1152. such as address inconsistency and collision. When a node is connected
  1153. to a switch and receives SONET signal correctly, the node sends an
  1154. address request packet to the control processor in the local switch.
  1155. The destination address of this packet is 00000001(0x01). When the
  1156. control processor receives the packet, it replies with an address
  1157. assignment packet. The destination is the assigned node address. If
  1158. the node does not receive the address assignment packet within 5
  1159. seconds, it retransmits the address request packet. The
  1160. retransmission continues until the node successfully receives the
  1161. address assignment packet.
  1162.  
  1163. Whenever a node detects a transmission error such as carrier loss or
  1164. out-of-synchronization, it SHOULD send an address request packet to
  1165. the control processor and verify its current address. In addition, a
  1166. node MUST verify its address by sending address request packets every
  1167.  
  1168.  
  1169.  
  1170. Murakami & Maruyama Informational [Page 3]
  1171. RFC 2173 MAPOS June 1997
  1172.  
  1173.  
  1174. 30 seconds. The switch regards them as keep-alive packets and
  1175. utilizes them to detect the node's status. If it has not received a
  1176. request packet for more than 90 seconds, it assumes that the node
  1177. went down. In addition, it also assumes the node went down when a
  1178. switch detects a SONET signal failure.
  1179.  
  1180. 4.2 Packet Format
  1181.  
  1182. The HDLC protocol field of a NSP frame contains 0xFE03 (hexadecimal)
  1183. as defined by the "MAPOS Version 1 Assigned Numbers" [6]. The
  1184. information field contains the NSP packet as shown in Figure 3.
  1185.  
  1186.  
  1187. +-----------+------------+
  1188. I command I address I
  1189. +-----------+------------+
  1190. I<- 32bit ->I<- 32 bit ->I
  1191.  
  1192. Figure 3 NSP packet format
  1193.  
  1194. The command field is 32 bits long and has the following values (in
  1195. decimal);
  1196.  
  1197. 1 address request
  1198. 2 address assignment
  1199. 3 reject(error)
  1200.  
  1201. The length of the address field is 32bits. In address request
  1202. packets, the NSP address field SHOULD be filled with zeroes, although
  1203. the switch ignores it. In address assignment packets, the assigned
  1204. address is placed in the least significant byte of the field. The
  1205. rest of the field is padded with zeroes. When the switch can not
  1206. assign the address for some reason, the switch replies with a reject
  1207. command (the values is 3). The value of the address field is
  1208. undefined.
  1209.  
  1210. 4.3 Consideration for special cases
  1211.  
  1212. There are two special cases to consider. One is a point-to-point
  1213. connection without a switch. The other is loop-back, that is, direct
  1214. connection between the input and the output of the same port.
  1215.  
  1216. 4.3.1 point-to-point
  1217.  
  1218. In the case of a point-to-point connection shown in Figure 4, a node
  1219. sends an address request packet to the other node. The destination
  1220. address is 00000001(0x01), that is usually a control processor in a
  1221. switch. When a node receives the address request, it detects the
  1222.  
  1223.  
  1224.  
  1225. Murakami & Maruyama Informational [Page 4]
  1226. RFC 2173 MAPOS June 1997
  1227.  
  1228.  
  1229. point-to-point connection by examining both the destination address
  1230. and the command contained. Then, it MUST reply with an address
  1231. assignment packet. The assigned address MUST be 00000011(0x03). Since
  1232. both nodes send an address request to each other, both of them get
  1233. address 00000011(0x03). Since any address can be used in point-to-
  1234. point environment, there is no problem even if both of the nodes have
  1235. the same address.
  1236.  
  1237. ---- address request ----> 0x01
  1238. 0x03 <---- address assignment ----
  1239. +------+ +------+
  1240. | node +--------------------------------+ node |
  1241. +------+ +------+
  1242. 0x01 <---- address request ----
  1243. ---- address assignment ----> 0x03
  1244.  
  1245. Figure 4 Point-to-point connection
  1246.  
  1247. 4.3.2 loop-back
  1248.  
  1249. Another special case is loop-back where the output port of a node is
  1250. simply connected to its input port as shown in Figure 5. In this
  1251. case, the same mechanism as that for point-to-point can be applied
  1252. without modification. A node sends an address request packet
  1253. destined to 00000001(0x01). The node then receives the same packet.
  1254. Since the destination is 00000001(0x01), it replies with an address
  1255. assignment packet, containing the assigned address 00000011(0x03), to
  1256. the address 0000 0011(0x03). Thus, the node obtains the address
  1257. 00000011(0x03).
  1258.  
  1259. ---- address request ----> 0x01
  1260. +------+ --- address assignment --> 0x03
  1261. | +-------------->-----------------+
  1262. | node + |
  1263. | +--------------<-----------------+
  1264. +------+
  1265.  
  1266. Figure 5 Loop-back Configuration
  1267.  
  1268.  
  1269.  
  1270.  
  1271.  
  1272.  
  1273.  
  1274.  
  1275.  
  1276.  
  1277.  
  1278.  
  1279.  
  1280. Murakami & Maruyama Informational [Page 5]
  1281. RFC 2173 MAPOS June 1997
  1282.  
  1283.  
  1284. 5. Security Considerations
  1285.  
  1286. Security issues are not discussed in this memo.
  1287.  
  1288. References
  1289.  
  1290. [1] Murakami, K. and M. Maruyama, "MAPOS - Multiple Access Protocol
  1291. over SONET/SDH, Version 1," RFC-2171, June 1997.
  1292.  
  1293. [2] CCITT Recommendation G.707: Synchronous Digital Hierarchy Bit
  1294. Rates (1990).
  1295.  
  1296. [3] CCITT Recommendation G.708: Network Node Interface for
  1297. Synchronous Digital Hierarchy (1990).
  1298.  
  1299. [4] CCITT Recommendation G.709: Synchronous Multiplexing Structure
  1300. (1990).
  1301.  
  1302. [5] American National Standard for Telecommunications - Digital
  1303. Hierarchy - Optical Interface Rates and Formats Specification,
  1304. ANSI T1.105-1991.
  1305.  
  1306. [6] Maruyama, M. and K. Murakami, "MAPOS Version 1 Assigned
  1307. Numbers," RFC-2172, June, 1997.
  1308.  
  1309. Acknowledgements
  1310.  
  1311. The authors would like to acknowledge the contributions and
  1312. thoughtful suggestions of John P. Mullaney, Clark Bremer, Masayuki
  1313. Kobayashi, Paul Francis, Toshiaki Yoshida, and Takahiro Sajima.
  1314.  
  1315. Authors' Address
  1316.  
  1317. Ken Murakami
  1318. NTT Software Laboratories
  1319. 3-9-11, Midori-cho
  1320. Musashino-shi
  1321. Tokyo 180, Japan
  1322. E-mail: murakami@ntt-20.ecl.net
  1323.  
  1324. Mitsuru Maruyama
  1325. NTT Software Laboratories
  1326. 3-9-11, Midori-cho
  1327. Musashino-shi
  1328. Tokyo 180, Japan
  1329. E-mail: mitsuru@ntt-20.ecl.net
  1330.  
  1331.  
  1332.  
  1333.  
  1334.  
  1335. Murakami & Maruyama Informational [Page 6]
  1336.  
  1337.  
  1338.  
  1339.  
  1340.  
  1341.  
  1342.  
  1343. Network Working Group K. Murakami
  1344. Request for Comments: 2173 M. Maruyama
  1345. Category: Informational NTT Laboratories
  1346. June 1997
  1347.  
  1348.  
  1349. A MAPOS version 1 Extension - Node Switch Protocol
  1350.  
  1351. Status of this Memo
  1352.  
  1353. This memo provides information for the Internet community. This memo
  1354. does not specify an Internet standard of any kind. Distribution of
  1355. this memo is unlimited.
  1356.  
  1357. Abstract
  1358.  
  1359. This document describes a MAPOS extension, Node Switch Protocol, for
  1360. automatic node address assignment. MAPOS is a multiple access
  1361. protocol for transmission of network-protocol datagrams, encapsulated
  1362. in High-Level Data Link Control (HDLC) frames, over SONET/SDH. NSP
  1363. automates the HDLC address configuration of each node. Using NSP, a
  1364. node retrieves its HDLC address from the switch to which it is
  1365. connected.
  1366.  
  1367. 1. Introduction
  1368.  
  1369. MAPOS[1], Multiple Access Protocol over SONET(Synchronous Optical
  1370. Network)/SDH(Synchronous Digital Hierarchy)[2][3][4][5], is a
  1371. protocol for transmission of HDLC frames over SONET/SDH. A SONET
  1372. switch provides multiple access capability to each node. In MAPOS,
  1373. each node has a unique HDLC address within a switch. The address is
  1374. equivalent to the port number of the switch to which the node is
  1375. connected. This document describes an extension to MAPOS, Node
  1376. Switch Protocol, which enable automatic HDLC address assignment.
  1377. First, it explains the addressing of MAPOS. Then, it describes the
  1378. NSP protocol for automatic HDLC node address assignment.
  1379.  
  1380. 2. Node Address Format
  1381.  
  1382. This section describes MAPOS Version 1 address format in single and
  1383. multiple switch environment.
  1384.  
  1385.  
  1386.  
  1387.  
  1388.  
  1389.  
  1390.  
  1391.  
  1392.  
  1393.  
  1394. Murakami & Maruyama Informational [Page 1]
  1395. RFC 2173 MAPOS June 1997
  1396.  
  1397.  
  1398. 2.1 Address Format
  1399.  
  1400. In MAPOS network, each end node has a unique HDLC address. As shown
  1401. in Figure 1, the address length is 8 bits. The LSB is always 1 which
  1402. indicates the end of the field. When a SONET switch receives an HDLC
  1403. frame, it forwards the frame based on the address in the frame
  1404. header.
  1405.  
  1406. In unicast, MSB is 0 and the rest of the bits are the port number to
  1407. which a node is connected. Since the LSB is always 1, the minimum and
  1408. maximum addresses are 0x01 and 0x7F, respectively. Address 0x01 is
  1409. reserved and is assigned to the control processor in a SONET switch.
  1410.  
  1411. In broadcast, MSB is 1 and the rest of the bits are all 1s. In
  1412. multicast, MSB is 1 and the rest of the bits, except for the LSB,
  1413. indicate the group address.
  1414.  
  1415. +-------------+-+
  1416. | | | | | | | | |
  1417. | |port number|1|
  1418. +-+-----------+-+
  1419. ^ ^
  1420. | |
  1421. | +------- EA bit (always 1)
  1422. |
  1423. 1 : broadcast, multicast
  1424. 0 : unicast
  1425.  
  1426. Figure 1 Address format
  1427.  
  1428. 2.2 Address in multi-switch environment
  1429.  
  1430. In a multi-switch environment, variable-length subnet addressing is
  1431. used. Each switch has a switch number that is unique within the
  1432. system. Subnetted node addresses consist of the switch number and the
  1433. port number to which a node is connected. The address format is "0
  1434. <switch number> <node number> 1" for a unicast address, "all 1" for
  1435. the broadcast address, and "1 <group address> 1" for a multicast
  1436. address.
  1437.  
  1438. The address 0x01 is reserved and is assigned to the control processor
  1439. in the "local" switch. That is, it indicates the switch itself to
  1440. which the node is connected. The addresses of the form "0 <switch
  1441. number> <all 0> 1" are reserved, and indicates the control processor
  1442. of the switch designated by the switch number.
  1443.  
  1444. In Figure 2, the switch numbers are two bits long. Node N1 is
  1445. connected to port 0x3 of switch S1 numbered 0x1 (01 in binary). Thus,
  1446.  
  1447.  
  1448.  
  1449. Murakami & Maruyama Informational [Page 2]
  1450. RFC 2173 MAPOS June 1997
  1451.  
  1452.  
  1453. the node address is 0 + 01 + 00011, that is, 00100011(0x23). Node N3
  1454. has an address 01001001(0x49), since the switch number of S2 is 0x2
  1455. (10 in binary) and the port number is 0x09. Note that all the port
  1456. numbers are odd because the LSBs are always 1.
  1457.  
  1458. +------+
  1459. | node |
  1460. | N1 |
  1461. +------+
  1462. | 00100011(0x23)
  1463. |
  1464. |0x3 |0x3
  1465. +------+ +---+----+ +---+----+ +------+
  1466. | node +----+ SONET +-------+ SONET +-----+ node |
  1467. | N2 | 0x5| Switch |0x9 0x5| Switch |0x9 | N3 |
  1468. +------+ | S1 | | S2 | +------+
  1469. 00100101(0x25) | 0x1 | | 0x2 | 01001001(0x49)
  1470. +---+----+ +---+----+
  1471. |0x7 |0x7
  1472.  
  1473.  
  1474. Figure 2 Addressing in Multiple Switch Environment
  1475.  
  1476. 4 NSP(Node-Switch Protocol)
  1477.  
  1478. This section describes the NSP protocol used for automatic node
  1479. address assignment.
  1480.  
  1481. 4.1 NSP protocol
  1482.  
  1483. NSP is introduced to provide an automatic node address assignment
  1484. function in MAPOS version 1. It reduces the administrative overhead
  1485. of node address configuration for each node and prevents troubles
  1486. such as address inconsistency and collision. When a node is connected
  1487. to a switch and receives SONET signal correctly, the node sends an
  1488. address request packet to the control processor in the local switch.
  1489. The destination address of this packet is 00000001(0x01). When the
  1490. control processor receives the packet, it replies with an address
  1491. assignment packet. The destination is the assigned node address. If
  1492. the node does not receive the address assignment packet within 5
  1493. seconds, it retransmits the address request packet. The
  1494. retransmission continues until the node successfully receives the
  1495. address assignment packet.
  1496.  
  1497. Whenever a node detects a transmission error such as carrier loss or
  1498. out-of-synchronization, it SHOULD send an address request packet to
  1499. the control processor and verify its current address. In addition, a
  1500. node MUST verify its address by sending address request packets every
  1501.  
  1502.  
  1503.  
  1504. Murakami & Maruyama Informational [Page 3]
  1505. RFC 2173 MAPOS June 1997
  1506.  
  1507.  
  1508. 30 seconds. The switch regards them as keep-alive packets and
  1509. utilizes them to detect the node's status. If it has not received a
  1510. request packet for more than 90 seconds, it assumes that the node
  1511. went down. In addition, it also assumes the node went down when a
  1512. switch detects a SONET signal failure.
  1513.  
  1514. 4.2 Packet Format
  1515.  
  1516. The HDLC protocol field of a NSP frame contains 0xFE03 (hexadecimal)
  1517. as defined by the "MAPOS Version 1 Assigned Numbers" [6]. The
  1518. information field contains the NSP packet as shown in Figure 3.
  1519.  
  1520.  
  1521. +-----------+------------+
  1522. I command I address I
  1523. +-----------+------------+
  1524. I<- 32bit ->I<- 32 bit ->I
  1525.  
  1526. Figure 3 NSP packet format
  1527.  
  1528. The command field is 32 bits long and has the following values (in
  1529. decimal);
  1530.  
  1531. 1 address request
  1532. 2 address assignment
  1533. 3 reject(error)
  1534.  
  1535. The length of the address field is 32bits. In address request
  1536. packets, the NSP address field SHOULD be filled with zeroes, although
  1537. the switch ignores it. In address assignment packets, the assigned
  1538. address is placed in the least significant byte of the field. The
  1539. rest of the field is padded with zeroes. When the switch can not
  1540. assign the address for some reason, the switch replies with a reject
  1541. command (the values is 3). The value of the address field is
  1542. undefined.
  1543.  
  1544. 4.3 Consideration for special cases
  1545.  
  1546. There are two special cases to consider. One is a point-to-point
  1547. connection without a switch. The other is loop-back, that is, direct
  1548. connection between the input and the output of the same port.
  1549.  
  1550. 4.3.1 point-to-point
  1551.  
  1552. In the case of a point-to-point connection shown in Figure 4, a node
  1553. sends an address request packet to the other node. The destination
  1554. address is 00000001(0x01), that is usually a control processor in a
  1555. switch. When a node receives the address request, it detects the
  1556.  
  1557.  
  1558.  
  1559. Murakami & Maruyama Informational [Page 4]
  1560. RFC 2173 MAPOS June 1997
  1561.  
  1562.  
  1563. point-to-point connection by examining both the destination address
  1564. and the command contained. Then, it MUST reply with an address
  1565. assignment packet. The assigned address MUST be 00000011(0x03). Since
  1566. both nodes send an address request to each other, both of them get
  1567. address 00000011(0x03). Since any address can be used in point-to-
  1568. point environment, there is no problem even if both of the nodes have
  1569. the same address.
  1570.  
  1571. ---- address request ----> 0x01
  1572. 0x03 <---- address assignment ----
  1573. +------+ +------+
  1574. | node +--------------------------------+ node |
  1575. +------+ +------+
  1576. 0x01 <---- address request ----
  1577. ---- address assignment ----> 0x03
  1578.  
  1579. Figure 4 Point-to-point connection
  1580.  
  1581. 4.3.2 loop-back
  1582.  
  1583. Another special case is loop-back where the output port of a node is
  1584. simply connected to its input port as shown in Figure 5. In this
  1585. case, the same mechanism as that for point-to-point can be applied
  1586. without modification. A node sends an address request packet
  1587. destined to 00000001(0x01). The node then receives the same packet.
  1588. Since the destination is 00000001(0x01), it replies with an address
  1589. assignment packet, containing the assigned address 00000011(0x03), to
  1590. the address 0000 0011(0x03). Thus, the node obtains the address
  1591. 00000011(0x03).
  1592.  
  1593. ---- address request ----> 0x01
  1594. +------+ --- address assignment --> 0x03
  1595. | +-------------->-----------------+
  1596. | node + |
  1597. | +--------------<-----------------+
  1598. +------+
  1599.  
  1600. Figure 5 Loop-back Configuration
  1601.  
  1602.  
  1603.  
  1604.  
  1605.  
  1606.  
  1607.  
  1608.  
  1609.  
  1610.  
  1611.  
  1612.  
  1613.  
  1614. Murakami & Maruyama Informational [Page 5]
  1615. RFC 2173 MAPOS June 1997
  1616.  
  1617.  
  1618. 5. Security Considerations
  1619.  
  1620. Security issues are not discussed in this memo.
  1621.  
  1622. References
  1623.  
  1624. [1] Murakami, K. and M. Maruyama, "MAPOS - Multiple Access Protocol
  1625. over SONET/SDH, Version 1," RFC-2171, June 1997.
  1626.  
  1627. [2] CCITT Recommendation G.707: Synchronous Digital Hierarchy Bit
  1628. Rates (1990).
  1629.  
  1630. [3] CCITT Recommendation G.708: Network Node Interface for
  1631. Synchronous Digital Hierarchy (1990).
  1632.  
  1633. [4] CCITT Recommendation G.709: Synchronous Multiplexing Structure
  1634. (1990).
  1635.  
  1636. [5] American National Standard for Telecommunications - Digital
  1637. Hierarchy - Optical Interface Rates and Formats Specification,
  1638. ANSI T1.105-1991.
  1639.  
  1640. [6] Maruyama, M. and K. Murakami, "MAPOS Version 1 Assigned
  1641. Numbers," RFC-2172, June, 1997.
  1642.  
  1643. Acknowledgements
  1644.  
  1645. The authors would like to acknowledge the contributions and
  1646. thoughtful suggestions of John P. Mullaney, Clark Bremer, Masayuki
  1647. Kobayashi, Paul Francis, Toshiaki Yoshida, and Takahiro Sajima.
  1648.  
  1649. Authors' Address
  1650.  
  1651. Ken Murakami
  1652. NTT Software Laboratories
  1653. 3-9-11, Midori-cho
  1654. Musashino-shi
  1655. Tokyo 180, Japan
  1656. E-mail: murakami@ntt-20.ecl.net
  1657.  
  1658. Mitsuru Maruyama
  1659. NTT Software Laboratories
  1660. 3-9-11, Midori-cho
  1661. Musashino-shi
  1662. Tokyo 180, Japan
  1663. E-mail: mitsuru@ntt-20.ecl.net
  1664.  
  1665.  
  1666.  
  1667.  
  1668.  
  1669. Murakami & Maruyama Informational [Page 6]
  1670.  
  1671.  
  1672.  
  1673.  
  1674.  
  1675.  
  1676.  
  1677. Network Working Group K. Murakami
  1678. Request for Comments: 2173 M. Maruyama
  1679. Category: Informational NTT Laboratories
  1680. June 1997
  1681.  
  1682.  
  1683. A MAPOS version 1 Extension - Node Switch Protocol
  1684.  
  1685. Status of this Memo
  1686.  
  1687. This memo provides information for the Internet community. This memo
  1688. does not specify an Internet standard of any kind. Distribution of
  1689. this memo is unlimited.
  1690.  
  1691. Abstract
  1692.  
  1693. This document describes a MAPOS extension, Node Switch Protocol, for
  1694. automatic node address assignment. MAPOS is a multiple access
  1695. protocol for transmission of network-protocol datagrams, encapsulated
  1696. in High-Level Data Link Control (HDLC) frames, over SONET/SDH. NSP
  1697. automates the HDLC address configuration of each node. Using NSP, a
  1698. node retrieves its HDLC address from the switch to which it is
  1699. connected.
  1700.  
  1701. 1. Introduction
  1702.  
  1703. MAPOS[1], Multiple Access Protocol over SONET(Synchronous Optical
  1704. Network)/SDH(Synchronous Digital Hierarchy)[2][3][4][5], is a
  1705. protocol for transmission of HDLC frames over SONET/SDH. A SONET
  1706. switch provides multiple access capability to each node. In MAPOS,
  1707. each node has a unique HDLC address within a switch. The address is
  1708. equivalent to the port number of the switch to which the node is
  1709. connected. This document describes an extension to MAPOS, Node
  1710. Switch Protocol, which enable automatic HDLC address assignment.
  1711. First, it explains the addressing of MAPOS. Then, it describes the
  1712. NSP protocol for automatic HDLC node address assignment.
  1713.  
  1714. 2. Node Address Format
  1715.  
  1716. This section describes MAPOS Version 1 address format in single and
  1717. multiple switch environment.
  1718.  
  1719.  
  1720.  
  1721.  
  1722.  
  1723.  
  1724.  
  1725.  
  1726.  
  1727.  
  1728. Murakami & Maruyama Informational [Page 1]
  1729. RFC 2173 MAPOS June 1997
  1730.  
  1731.  
  1732. 2.1 Address Format
  1733.  
  1734. In MAPOS network, each end node has a unique HDLC address. As shown
  1735. in Figure 1, the address length is 8 bits. The LSB is always 1 which
  1736. indicates the end of the field. When a SONET switch receives an HDLC
  1737. frame, it forwards the frame based on the address in the frame
  1738. header.
  1739.  
  1740. In unicast, MSB is 0 and the rest of the bits are the port number to
  1741. which a node is connected. Since the LSB is always 1, the minimum and
  1742. maximum addresses are 0x01 and 0x7F, respectively. Address 0x01 is
  1743. reserved and is assigned to the control processor in a SONET switch.
  1744.  
  1745. In broadcast, MSB is 1 and the rest of the bits are all 1s. In
  1746. multicast, MSB is 1 and the rest of the bits, except for the LSB,
  1747. indicate the group address.
  1748.  
  1749. +-------------+-+
  1750. | | | | | | | | |
  1751. | |port number|1|
  1752. +-+-----------+-+
  1753. ^ ^
  1754. | |
  1755. | +------- EA bit (always 1)
  1756. |
  1757. 1 : broadcast, multicast
  1758. 0 : unicast
  1759.  
  1760. Figure 1 Address format
  1761.  
  1762. 2.2 Address in multi-switch environment
  1763.  
  1764. In a multi-switch environment, variable-length subnet addressing is
  1765. used. Each switch has a switch number that is unique within the
  1766. system. Subnetted node addresses consist of the switch number and the
  1767. port number to which a node is connected. The address format is "0
  1768. <switch number> <node number> 1" for a unicast address, "all 1" for
  1769. the broadcast address, and "1 <group address> 1" for a multicast
  1770. address.
  1771.  
  1772. The address 0x01 is reserved and is assigned to the control processor
  1773. in the "local" switch. That is, it indicates the switch itself to
  1774. which the node is connected. The addresses of the form "0 <switch
  1775. number> <all 0> 1" are reserved, and indicates the control processor
  1776. of the switch designated by the switch number.
  1777.  
  1778. In Figure 2, the switch numbers are two bits long. Node N1 is
  1779. connected to port 0x3 of switch S1 numbered 0x1 (01 in binary). Thus,
  1780.  
  1781.  
  1782.  
  1783. Murakami & Maruyama Informational [Page 2]
  1784. RFC 2173 MAPOS June 1997
  1785.  
  1786.  
  1787. the node address is 0 + 01 + 00011, that is, 00100011(0x23). Node N3
  1788. has an address 01001001(0x49), since the switch number of S2 is 0x2
  1789. (10 in binary) and the port number is 0x09. Note that all the port
  1790. numbers are odd because the LSBs are always 1.
  1791.  
  1792. +------+
  1793. | node |
  1794. | N1 |
  1795. +------+
  1796. | 00100011(0x23)
  1797. |
  1798. |0x3 |0x3
  1799. +------+ +---+----+ +---+----+ +------+
  1800. | node +----+ SONET +-------+ SONET +-----+ node |
  1801. | N2 | 0x5| Switch |0x9 0x5| Switch |0x9 | N3 |
  1802. +------+ | S1 | | S2 | +------+
  1803. 00100101(0x25) | 0x1 | | 0x2 | 01001001(0x49)
  1804. +---+----+ +---+----+
  1805. |0x7 |0x7
  1806.  
  1807.  
  1808. Figure 2 Addressing in Multiple Switch Environment
  1809.  
  1810. 4 NSP(Node-Switch Protocol)
  1811.  
  1812. This section describes the NSP protocol used for automatic node
  1813. address assignment.
  1814.  
  1815. 4.1 NSP protocol
  1816.  
  1817. NSP is introduced to provide an automatic node address assignment
  1818. function in MAPOS version 1. It reduces the administrative overhead
  1819. of node address configuration for each node and prevents troubles
  1820. such as address inconsistency and collision. When a node is connected
  1821. to a switch and receives SONET signal correctly, the node sends an
  1822. address request packet to the control processor in the local switch.
  1823. The destination address of this packet is 00000001(0x01). When the
  1824. control processor receives the packet, it replies with an address
  1825. assignment packet. The destination is the assigned node address. If
  1826. the node does not receive the address assignment packet within 5
  1827. seconds, it retransmits the address request packet. The
  1828. retransmission continues until the node successfully receives the
  1829. address assignment packet.
  1830.  
  1831. Whenever a node detects a transmission error such as carrier loss or
  1832. out-of-synchronization, it SHOULD send an address request packet to
  1833. the control processor and verify its current address. In addition, a
  1834. node MUST verify its address by sending address request packets every
  1835.  
  1836.  
  1837.  
  1838. Murakami & Maruyama Informational [Page 3]
  1839. RFC 2173 MAPOS June 1997
  1840.  
  1841.  
  1842. 30 seconds. The switch regards them as keep-alive packets and
  1843. utilizes them to detect the node's status. If it has not received a
  1844. request packet for more than 90 seconds, it assumes that the node
  1845. went down. In addition, it also assumes the node went down when a
  1846. switch detects a SONET signal failure.
  1847.  
  1848. 4.2 Packet Format
  1849.  
  1850. The HDLC protocol field of a NSP frame contains 0xFE03 (hexadecimal)
  1851. as defined by the "MAPOS Version 1 Assigned Numbers" [6]. The
  1852. information field contains the NSP packet as shown in Figure 3.
  1853.  
  1854.  
  1855. +-----------+------------+
  1856. I command I address I
  1857. +-----------+------------+
  1858. I<- 32bit ->I<- 32 bit ->I
  1859.  
  1860. Figure 3 NSP packet format
  1861.  
  1862. The command field is 32 bits long and has the following values (in
  1863. decimal);
  1864.  
  1865. 1 address request
  1866. 2 address assignment
  1867. 3 reject(error)
  1868.  
  1869. The length of the address field is 32bits. In address request
  1870. packets, the NSP address field SHOULD be filled with zeroes, although
  1871. the switch ignores it. In address assignment packets, the assigned
  1872. address is placed in the least significant byte of the field. The
  1873. rest of the field is padded with zeroes. When the switch can not
  1874. assign the address for some reason, the switch replies with a reject
  1875. command (the values is 3). The value of the address field is
  1876. undefined.
  1877.  
  1878. 4.3 Consideration for special cases
  1879.  
  1880. There are two special cases to consider. One is a point-to-point
  1881. connection without a switch. The other is loop-back, that is, direct
  1882. connection between the input and the output of the same port.
  1883.  
  1884. 4.3.1 point-to-point
  1885.  
  1886. In the case of a point-to-point connection shown in Figure 4, a node
  1887. sends an address request packet to the other node. The destination
  1888. address is 00000001(0x01), that is usually a control processor in a
  1889. switch. When a node receives the address request, it detects the
  1890.  
  1891.  
  1892.  
  1893. Murakami & Maruyama Informational [Page 4]
  1894. RFC 2173 MAPOS June 1997
  1895.  
  1896.  
  1897. point-to-point connection by examining both the destination address
  1898. and the command contained. Then, it MUST reply with an address
  1899. assignment packet. The assigned address MUST be 00000011(0x03). Since
  1900. both nodes send an address request to each other, both of them get
  1901. address 00000011(0x03). Since any address can be used in point-to-
  1902. point environment, there is no problem even if both of the nodes have
  1903. the same address.
  1904.  
  1905. ---- address request ----> 0x01
  1906. 0x03 <---- address assignment ----
  1907. +------+ +------+
  1908. | node +--------------------------------+ node |
  1909. +------+ +------+
  1910. 0x01 <---- address request ----
  1911. ---- address assignment ----> 0x03
  1912.  
  1913. Figure 4 Point-to-point connection
  1914.  
  1915. 4.3.2 loop-back
  1916.  
  1917. Another special case is loop-back where the output port of a node is
  1918. simply connected to its input port as shown in Figure 5. In this
  1919. case, the same mechanism as that for point-to-point can be applied
  1920. without modification. A node sends an address request packet
  1921. destined to 00000001(0x01). The node then receives the same packet.
  1922. Since the destination is 00000001(0x01), it replies with an address
  1923. assignment packet, containing the assigned address 00000011(0x03), to
  1924. the address 0000 0011(0x03). Thus, the node obtains the address
  1925. 00000011(0x03).
  1926.  
  1927. ---- address request ----> 0x01
  1928. +------+ --- address assignment --> 0x03
  1929. | +-------------->-----------------+
  1930. | node + |
  1931. | +--------------<-----------------+
  1932. +------+
  1933.  
  1934. Figure 5 Loop-back Configuration
  1935.  
  1936.  
  1937.  
  1938.  
  1939.  
  1940.  
  1941.  
  1942.  
  1943.  
  1944.  
  1945.  
  1946.  
  1947.  
  1948. Murakami & Maruyama Informational [Page 5]
  1949. RFC 2173 MAPOS June 1997
  1950.  
  1951.  
  1952. 5. Security Considerations
  1953.  
  1954. Security issues are not discussed in this memo.
  1955.  
  1956. References
  1957.  
  1958. [1] Murakami, K. and M. Maruyama, "MAPOS - Multiple Access Protocol
  1959. over SONET/SDH, Version 1," RFC-2171, June 1997.
  1960.  
  1961. [2] CCITT Recommendation G.707: Synchronous Digital Hierarchy Bit
  1962. Rates (1990).
  1963.  
  1964. [3] CCITT Recommendation G.708: Network Node Interface for
  1965. Synchronous Digital Hierarchy (1990).
  1966.  
  1967. [4] CCITT Recommendation G.709: Synchronous Multiplexing Structure
  1968. (1990).
  1969.  
  1970. [5] American National Standard for Telecommunications - Digital
  1971. Hierarchy - Optical Interface Rates and Formats Specification,
  1972. ANSI T1.105-1991.
  1973.  
  1974. [6] Maruyama, M. and K. Murakami, "MAPOS Version 1 Assigned
  1975. Numbers," RFC-2172, June, 1997.
  1976.  
  1977. Acknowledgements
  1978.  
  1979. The authors would like to acknowledge the contributions and
  1980. thoughtful suggestions of John P. Mullaney, Clark Bremer, Masayuki
  1981. Kobayashi, Paul Francis, Toshiaki Yoshida, and Takahiro Sajima.
  1982.  
  1983. Authors' Address
  1984.  
  1985. Ken Murakami
  1986. NTT Software Laboratories
  1987. 3-9-11, Midori-cho
  1988. Musashino-shi
  1989. Tokyo 180, Japan
  1990. E-mail: murakami@ntt-20.ecl.net
  1991.  
  1992. Mitsuru Maruyama
  1993. NTT Software Laboratories
  1994. 3-9-11, Midori-cho
  1995. Musashino-shi
  1996. Tokyo 180, Japan
  1997. E-mail: mitsuru@ntt-20.ecl.net
  1998.  
  1999.  
  2000.  
  2001.  
  2002.  
  2003. Murakami & Maruyama Informational [Page 6]
  2004.  
  2005.  
  2006.  
  2007.  
  2008.  
  2009.  
  2010.  
  2011. Network Working Group K. Murakami
  2012. Request for Comments: 2173 M. Maruyama
  2013. Category: Informational NTT Laboratories
  2014. June 1997
  2015.  
  2016.  
  2017. A MAPOS version 1 Extension - Node Switch Protocol
  2018.  
  2019. Status of this Memo
  2020.  
  2021. This memo provides information for the Internet community. This memo
  2022. does not specify an Internet standard of any kind. Distribution of
  2023. this memo is unlimited.
  2024.  
  2025. Abstract
  2026.  
  2027. This document describes a MAPOS extension, Node Switch Protocol, for
  2028. automatic node address assignment. MAPOS is a multiple access
  2029. protocol for transmission of network-protocol datagrams, encapsulated
  2030. in High-Level Data Link Control (HDLC) frames, over SONET/SDH. NSP
  2031. automates the HDLC address configuration of each node. Using NSP, a
  2032. node retrieves its HDLC address from the switch to which it is
  2033. connected.
  2034.  
  2035. 1. Introduction
  2036.  
  2037. MAPOS[1], Multiple Access Protocol over SONET(Synchronous Optical
  2038. Network)/SDH(Synchronous Digital Hierarchy)[2][3][4][5], is a
  2039. protocol for transmission of HDLC frames over SONET/SDH. A SONET
  2040. switch provides multiple access capability to each node. In MAPOS,
  2041. each node has a unique HDLC address within a switch. The address is
  2042. equivalent to the port number of the switch to which the node is
  2043. connected. This document describes an extension to MAPOS, Node
  2044. Switch Protocol, which enable automatic HDLC address assignment.
  2045. First, it explains the addressing of MAPOS. Then, it describes the
  2046. NSP protocol for automatic HDLC node address assignment.
  2047.  
  2048. 2. Node Address Format
  2049.  
  2050. This section describes MAPOS Version 1 address format in single and
  2051. multiple switch environment.
  2052.  
  2053.  
  2054.  
  2055.  
  2056.  
  2057.  
  2058.  
  2059.  
  2060.  
  2061.  
  2062. Murakami & Maruyama Informational [Page 1]
  2063. RFC 2173 MAPOS June 1997
  2064.  
  2065.  
  2066. 2.1 Address Format
  2067.  
  2068. In MAPOS network, each end node has a unique HDLC address. As shown
  2069. in Figure 1, the address length is 8 bits. The LSB is always 1 which
  2070. indicates the end of the field. When a SONET switch receives an HDLC
  2071. frame, it forwards the frame based on the address in the frame
  2072. header.
  2073.  
  2074. In unicast, MSB is 0 and the rest of the bits are the port number to
  2075. which a node is connected. Since the LSB is always 1, the minimum and
  2076. maximum addresses are 0x01 and 0x7F, respectively. Address 0x01 is
  2077. reserved and is assigned to the control processor in a SONET switch.
  2078.  
  2079. In broadcast, MSB is 1 and the rest of the bits are all 1s. In
  2080. multicast, MSB is 1 and the rest of the bits, except for the LSB,
  2081. indicate the group address.
  2082.  
  2083. +-------------+-+
  2084. | | | | | | | | |
  2085. | |port number|1|
  2086. +-+-----------+-+
  2087. ^ ^
  2088. | |
  2089. | +------- EA bit (always 1)
  2090. |
  2091. 1 : broadcast, multicast
  2092. 0 : unicast
  2093.  
  2094. Figure 1 Address format
  2095.  
  2096. 2.2 Address in multi-switch environment
  2097.  
  2098. In a multi-switch environment, variable-length subnet addressing is
  2099. used. Each switch has a switch number that is unique within the
  2100. system. Subnetted node addresses consist of the switch number and the
  2101. port number to which a node is connected. The address format is "0
  2102. <switch number> <node number> 1" for a unicast address, "all 1" for
  2103. the broadcast address, and "1 <group address> 1" for a multicast
  2104. address.
  2105.  
  2106. The address 0x01 is reserved and is assigned to the control processor
  2107. in the "local" switch. That is, it indicates the switch itself to
  2108. which the node is connected. The addresses of the form "0 <switch
  2109. number> <all 0> 1" are reserved, and indicates the control processor
  2110. of the switch designated by the switch number.
  2111.  
  2112. In Figure 2, the switch numbers are two bits long. Node N1 is
  2113. connected to port 0x3 of switch S1 numbered 0x1 (01 in binary). Thus,
  2114.  
  2115.  
  2116.  
  2117. Murakami & Maruyama Informational [Page 2]
  2118. RFC 2173 MAPOS June 1997
  2119.  
  2120.  
  2121. the node address is 0 + 01 + 00011, that is, 00100011(0x23). Node N3
  2122. has an address 01001001(0x49), since the switch number of S2 is 0x2
  2123. (10 in binary) and the port number is 0x09. Note that all the port
  2124. numbers are odd because the LSBs are always 1.
  2125.  
  2126. +------+
  2127. | node |
  2128. | N1 |
  2129. +------+
  2130. | 00100011(0x23)
  2131. |
  2132. |0x3 |0x3
  2133. +------+ +---+----+ +---+----+ +------+
  2134. | node +----+ SONET +-------+ SONET +-----+ node |
  2135. | N2 | 0x5| Switch |0x9 0x5| Switch |0x9 | N3 |
  2136. +------+ | S1 | | S2 | +------+
  2137. 00100101(0x25) | 0x1 | | 0x2 | 01001001(0x49)
  2138. +---+----+ +---+----+
  2139. |0x7 |0x7
  2140.  
  2141.  
  2142. Figure 2 Addressing in Multiple Switch Environment
  2143.  
  2144. 4 NSP(Node-Switch Protocol)
  2145.  
  2146. This section describes the NSP protocol used for automatic node
  2147. address assignment.
  2148.  
  2149. 4.1 NSP protocol
  2150.  
  2151. NSP is introduced to provide an automatic node address assignment
  2152. function in MAPOS version 1. It reduces the administrative overhead
  2153. of node address configuration for each node and prevents troubles
  2154. such as address inconsistency and collision. When a node is connected
  2155. to a switch and receives SONET signal correctly, the node sends an
  2156. address request packet to the control processor in the local switch.
  2157. The destination address of this packet is 00000001(0x01). When the
  2158. control processor receives the packet, it replies with an address
  2159. assignment packet. The destination is the assigned node address. If
  2160. the node does not receive the address assignment packet within 5
  2161. seconds, it retransmits the address request packet. The
  2162. retransmission continues until the node successfully receives the
  2163. address assignment packet.
  2164.  
  2165. Whenever a node detects a transmission error such as carrier loss or
  2166. out-of-synchronization, it SHOULD send an address request packet to
  2167. the control processor and verify its current address. In addition, a
  2168. node MUST verify its address by sending address request packets every
  2169.  
  2170.  
  2171.  
  2172. Murakami & Maruyama Informational [Page 3]
  2173. RFC 2173 MAPOS June 1997
  2174.  
  2175.  
  2176. 30 seconds. The switch regards them as keep-alive packets and
  2177. utilizes them to detect the node's status. If it has not received a
  2178. request packet for more than 90 seconds, it assumes that the node
  2179. went down. In addition, it also assumes the node went down when a
  2180. switch detects a SONET signal failure.
  2181.  
  2182. 4.2 Packet Format
  2183.  
  2184. The HDLC protocol field of a NSP frame contains 0xFE03 (hexadecimal)
  2185. as defined by the "MAPOS Version 1 Assigned Numbers" [6]. The
  2186. information field contains the NSP packet as shown in Figure 3.
  2187.  
  2188.  
  2189. +-----------+------------+
  2190. I command I address I
  2191. +-----------+------------+
  2192. I<- 32bit ->I<- 32 bit ->I
  2193.  
  2194. Figure 3 NSP packet format
  2195.  
  2196. The command field is 32 bits long and has the following values (in
  2197. decimal);
  2198.  
  2199. 1 address request
  2200. 2 address assignment
  2201. 3 reject(error)
  2202.  
  2203. The length of the address field is 32bits. In address request
  2204. packets, the NSP address field SHOULD be filled with zeroes, although
  2205. the switch ignores it. In address assignment packets, the assigned
  2206. address is placed in the least significant byte of the field. The
  2207. rest of the field is padded with zeroes. When the switch can not
  2208. assign the address for some reason, the switch replies with a reject
  2209. command (the values is 3). The value of the address field is
  2210. undefined.
  2211.  
  2212. 4.3 Consideration for special cases
  2213.  
  2214. There are two special cases to consider. One is a point-to-point
  2215. connection without a switch. The other is loop-back, that is, direct
  2216. connection between the input and the output of the same port.
  2217.  
  2218. 4.3.1 point-to-point
  2219.  
  2220. In the case of a point-to-point connection shown in Figure 4, a node
  2221. sends an address request packet to the other node. The destination
  2222. address is 00000001(0x01), that is usually a control processor in a
  2223. switch. When a node receives the address request, it detects the
  2224.  
  2225.  
  2226.  
  2227. Murakami & Maruyama Informational [Page 4]
  2228. RFC 2173 MAPOS June 1997
  2229.  
  2230.  
  2231. point-to-point connection by examining both the destination address
  2232. and the command contained. Then, it MUST reply with an address
  2233. assignment packet. The assigned address MUST be 00000011(0x03). Since
  2234. both nodes send an address request to each other, both of them get
  2235. address 00000011(0x03). Since any address can be used in point-to-
  2236. point environment, there is no problem even if both of the nodes have
  2237. the same address.
  2238.  
  2239. ---- address request ----> 0x01
  2240. 0x03 <---- address assignment ----
  2241. +------+ +------+
  2242. | node +--------------------------------+ node |
  2243. +------+ +------+
  2244. 0x01 <---- address request ----
  2245. ---- address assignment ----> 0x03
  2246.  
  2247. Figure 4 Point-to-point connection
  2248.  
  2249. 4.3.2 loop-back
  2250.  
  2251. Another special case is loop-back where the output port of a node is
  2252. simply connected to its input port as shown in Figure 5. In this
  2253. case, the same mechanism as that for point-to-point can be applied
  2254. without modification. A node sends an address request packet
  2255. destined to 00000001(0x01). The node then receives the same packet.
  2256. Since the destination is 00000001(0x01), it replies with an address
  2257. assignment packet, containing the assigned address 00000011(0x03), to
  2258. the address 0000 0011(0x03). Thus, the node obtains the address
  2259. 00000011(0x03).
  2260.  
  2261. ---- address request ----> 0x01
  2262. +------+ --- address assignment --> 0x03
  2263. | +-------------->-----------------+
  2264. | node + |
  2265. | +--------------<-----------------+
  2266. +------+
  2267.  
  2268. Figure 5 Loop-back Configuration
  2269.  
  2270.  
  2271.  
  2272.  
  2273.  
  2274.  
  2275.  
  2276.  
  2277.  
  2278.  
  2279.  
  2280.  
  2281.  
  2282. Murakami & Maruyama Informational [Page 5]
  2283. RFC 2173 MAPOS June 1997
  2284.  
  2285.  
  2286. 5. Security Considerations
  2287.  
  2288. Security issues are not discussed in this memo.
  2289.  
  2290. References
  2291.  
  2292. [1] Murakami, K. and M. Maruyama, "MAPOS - Multiple Access Protocol
  2293. over SONET/SDH, Version 1," RFC-2171, June 1997.
  2294.  
  2295. [2] CCITT Recommendation G.707: Synchronous Digital Hierarchy Bit
  2296. Rates (1990).
  2297.  
  2298. [3] CCITT Recommendation G.708: Network Node Interface for
  2299. Synchronous Digital Hierarchy (1990).
  2300.  
  2301. [4] CCITT Recommendation G.709: Synchronous Multiplexing Structure
  2302. (1990).
  2303.  
  2304. [5] American National Standard for Telecommunications - Digital
  2305. Hierarchy - Optical Interface Rates and Formats Specification,
  2306. ANSI T1.105-1991.
  2307.  
  2308. [6] Maruyama, M. and K. Murakami, "MAPOS Version 1 Assigned
  2309. Numbers," RFC-2172, June, 1997.
  2310.  
  2311. Acknowledgements
  2312.  
  2313. The authors would like to acknowledge the contributions and
  2314. thoughtful suggestions of John P. Mullaney, Clark Bremer, Masayuki
  2315. Kobayashi, Paul Francis, Toshiaki Yoshida, and Takahiro Sajima.
  2316.  
  2317. Authors' Address
  2318.  
  2319. Ken Murakami
  2320. NTT Software Laboratories
  2321. 3-9-11, Midori-cho
  2322. Musashino-shi
  2323. Tokyo 180, Japan
  2324. E-mail: murakami@ntt-20.ecl.net
  2325.  
  2326. Mitsuru Maruyama
  2327. NTT Software Laboratories
  2328. 3-9-11, Midori-cho
  2329. Musashino-shi
  2330. Tokyo 180, Japan
  2331. E-mail: mitsuru@ntt-20.ecl.net
  2332.  
  2333.  
  2334.  
  2335.  
  2336.  
  2337. Murakami & Maruyama Informational [Page 6]
  2338.  
  2339.  
  2340.  
  2341.  
  2342.  
  2343.  
  2344.  
  2345. Network Working Group K. Murakami
  2346. Request for Comments: 2173 M. Maruyama
  2347. Category: Informational NTT Laboratories
  2348. June 1997
  2349.  
  2350.  
  2351. A MAPOS version 1 Extension - Node Switch Protocol
  2352.  
  2353. Status of this Memo
  2354.  
  2355. This memo provides information for the Internet community. This memo
  2356. does not specify an Internet standard of any kind. Distribution of
  2357. this memo is unlimited.
  2358.  
  2359. Abstract
  2360.  
  2361. This document describes a MAPOS extension, Node Switch Protocol, for
  2362. automatic node address assignment. MAPOS is a multiple access
  2363. protocol for transmission of network-protocol datagrams, encapsulated
  2364. in High-Level Data Link Control (HDLC) frames, over SONET/SDH. NSP
  2365. automates the HDLC address configuration of each node. Using NSP, a
  2366. node retrieves its HDLC address from the switch to which it is
  2367. connected.
  2368.  
  2369. 1. Introduction
  2370.  
  2371. MAPOS[1], Multiple Access Protocol over SONET(Synchronous Optical
  2372. Network)/SDH(Synchronous Digital Hierarchy)[2][3][4][5], is a
  2373. protocol for transmission of HDLC frames over SONET/SDH. A SONET
  2374. switch provides multiple access capability to each node. In MAPOS,
  2375. each node has a unique HDLC address within a switch. The address is
  2376. equivalent to the port number of the switch to which the node is
  2377. connected. This document describes an extension to MAPOS, Node
  2378. Switch Protocol, which enable automatic HDLC address assignment.
  2379. First, it explains the addressing of MAPOS. Then, it describes the
  2380. NSP protocol for automatic HDLC node address assignment.
  2381.  
  2382. 2. Node Address Format
  2383.  
  2384. This section describes MAPOS Version 1 address format in single and
  2385. multiple switch environment.
  2386.  
  2387.  
  2388.  
  2389.  
  2390.  
  2391.  
  2392.  
  2393.  
  2394.  
  2395.  
  2396. Murakami & Maruyama Informational [Page 1]
  2397. RFC 2173 MAPOS June 1997
  2398.  
  2399.  
  2400. 2.1 Address Format
  2401.  
  2402. In MAPOS network, each end node has a unique HDLC address. As shown
  2403. in Figure 1, the address length is 8 bits. The LSB is always 1 which
  2404. indicates the end of the field. When a SONET switch receives an HDLC
  2405. frame, it forwards the frame based on the address in the frame
  2406. header.
  2407.  
  2408. In unicast, MSB is 0 and the rest of the bits are the port number to
  2409. which a node is connected. Since the LSB is always 1, the minimum and
  2410. maximum addresses are 0x01 and 0x7F, respectively. Address 0x01 is
  2411. reserved and is assigned to the control processor in a SONET switch.
  2412.  
  2413. In broadcast, MSB is 1 and the rest of the bits are all 1s. In
  2414. multicast, MSB is 1 and the rest of the bits, except for the LSB,
  2415. indicate the group address.
  2416.  
  2417. +-------------+-+
  2418. | | | | | | | | |
  2419. | |port number|1|
  2420. +-+-----------+-+
  2421. ^ ^
  2422. | |
  2423. | +------- EA bit (always 1)
  2424. |
  2425. 1 : broadcast, multicast
  2426. 0 : unicast
  2427.  
  2428. Figure 1 Address format
  2429.  
  2430. 2.2 Address in multi-switch environment
  2431.  
  2432. In a multi-switch environment, variable-length subnet addressing is
  2433. used. Each switch has a switch number that is unique within the
  2434. system. Subnetted node addresses consist of the switch number and the
  2435. port number to which a node is connected. The address format is "0
  2436. <switch number> <node number> 1" for a unicast address, "all 1" for
  2437. the broadcast address, and "1 <group address> 1" for a multicast
  2438. address.
  2439.  
  2440. The address 0x01 is reserved and is assigned to the control processor
  2441. in the "local" switch. That is, it indicates the switch itself to
  2442. which the node is connected. The addresses of the form "0 <switch
  2443. number> <all 0> 1" are reserved, and indicates the control processor
  2444. of the switch designated by the switch number.
  2445.  
  2446. In Figure 2, the switch numbers are two bits long. Node N1 is
  2447. connected to port 0x3 of switch S1 numbered 0x1 (01 in binary). Thus,
  2448.  
  2449.  
  2450.  
  2451. Murakami & Maruyama Informational [Page 2]
  2452. RFC 2173 MAPOS June 1997
  2453.  
  2454.  
  2455. the node address is 0 + 01 + 00011, that is, 00100011(0x23). Node N3
  2456. has an address 01001001(0x49), since the switch number of S2 is 0x2
  2457. (10 in binary) and the port number is 0x09. Note that all the port
  2458. numbers are odd because the LSBs are always 1.
  2459.  
  2460. +------+
  2461. | node |
  2462. | N1 |
  2463. +------+
  2464. | 00100011(0x23)
  2465. |
  2466. |0x3 |0x3
  2467. +------+ +---+----+ +---+----+ +------+
  2468. | node +----+ SONET +-------+ SONET +-----+ node |
  2469. | N2 | 0x5| Switch |0x9 0x5| Switch |0x9 | N3 |
  2470. +------+ | S1 | | S2 | +------+
  2471. 00100101(0x25) | 0x1 | | 0x2 | 01001001(0x49)
  2472. +---+----+ +---+----+
  2473. |0x7 |0x7
  2474.  
  2475.  
  2476. Figure 2 Addressing in Multiple Switch Environment
  2477.  
  2478. 4 NSP(Node-Switch Protocol)
  2479.  
  2480. This section describes the NSP protocol used for automatic node
  2481. address assignment.
  2482.  
  2483. 4.1 NSP protocol
  2484.  
  2485. NSP is introduced to provide an automatic node address assignment
  2486. function in MAPOS version 1. It reduces the administrative overhead
  2487. of node address configuration for each node and prevents troubles
  2488. such as address inconsistency and collision. When a node is connected
  2489. to a switch and receives SONET signal correctly, the node sends an
  2490. address request packet to the control processor in the local switch.
  2491. The destination address of this packet is 00000001(0x01). When the
  2492. control processor receives the packet, it replies with an address
  2493. assignment packet. The destination is the assigned node address. If
  2494. the node does not receive the address assignment packet within 5
  2495. seconds, it retransmits the address request packet. The
  2496. retransmission continues until the node successfully receives the
  2497. address assignment packet.
  2498.  
  2499. Whenever a node detects a transmission error such as carrier loss or
  2500. out-of-synchronization, it SHOULD send an address request packet to
  2501. the control processor and verify its current address. In addition, a
  2502. node MUST verify its address by sending address request packets every
  2503.  
  2504.  
  2505.  
  2506. Murakami & Maruyama Informational [Page 3]
  2507. RFC 2173 MAPOS June 1997
  2508.  
  2509.  
  2510. 30 seconds. The switch regards them as keep-alive packets and
  2511. utilizes them to detect the node's status. If it has not received a
  2512. request packet for more than 90 seconds, it assumes that the node
  2513. went down. In addition, it also assumes the node went down when a
  2514. switch detects a SONET signal failure.
  2515.  
  2516. 4.2 Packet Format
  2517.  
  2518. The HDLC protocol field of a NSP frame contains 0xFE03 (hexadecimal)
  2519. as defined by the "MAPOS Version 1 Assigned Numbers" [6]. The
  2520. information field contains the NSP packet as shown in Figure 3.
  2521.  
  2522.  
  2523. +-----------+------------+
  2524. I command I address I
  2525. +-----------+------------+
  2526. I<- 32bit ->I<- 32 bit ->I
  2527.  
  2528. Figure 3 NSP packet format
  2529.  
  2530. The command field is 32 bits long and has the following values (in
  2531. decimal);
  2532.  
  2533. 1 address request
  2534. 2 address assignment
  2535. 3 reject(error)
  2536.  
  2537. The length of the address field is 32bits. In address request
  2538. packets, the NSP address field SHOULD be filled with zeroes, although
  2539. the switch ignores it. In address assignment packets, the assigned
  2540. address is placed in the least significant byte of the field. The
  2541. rest of the field is padded with zeroes. When the switch can not
  2542. assign the address for some reason, the switch replies with a reject
  2543. command (the values is 3). The value of the address field is
  2544. undefined.
  2545.  
  2546. 4.3 Consideration for special cases
  2547.  
  2548. There are two special cases to consider. One is a point-to-point
  2549. connection without a switch. The other is loop-back, that is, direct
  2550. connection between the input and the output of the same port.
  2551.  
  2552. 4.3.1 point-to-point
  2553.  
  2554. In the case of a point-to-point connection shown in Figure 4, a node
  2555. sends an address request packet to the other node. The destination
  2556. address is 00000001(0x01), that is usually a control processor in a
  2557. switch. When a node receives the address request, it detects the
  2558.  
  2559.  
  2560.  
  2561. Murakami & Maruyama Informational [Page 4]
  2562. RFC 2173 MAPOS June 1997
  2563.  
  2564.  
  2565. point-to-point connection by examining both the destination address
  2566. and the command contained. Then, it MUST reply with an address
  2567. assignment packet. The assigned address MUST be 00000011(0x03). Since
  2568. both nodes send an address request to each other, both of them get
  2569. address 00000011(0x03). Since any address can be used in point-to-
  2570. point environment, there is no problem even if both of the nodes have
  2571. the same address.
  2572.  
  2573. ---- address request ----> 0x01
  2574. 0x03 <---- address assignment ----
  2575. +------+ +------+
  2576. | node +--------------------------------+ node |
  2577. +------+ +------+
  2578. 0x01 <---- address request ----
  2579. ---- address assignment ----> 0x03
  2580.  
  2581. Figure 4 Point-to-point connection
  2582.  
  2583. 4.3.2 loop-back
  2584.  
  2585. Another special case is loop-back where the output port of a node is
  2586. simply connected to its input port as shown in Figure 5. In this
  2587. case, the same mechanism as that for point-to-point can be applied
  2588. without modification. A node sends an address request packet
  2589. destined to 00000001(0x01). The node then receives the same packet.
  2590. Since the destination is 00000001(0x01), it replies with an address
  2591. assignment packet, containing the assigned address 00000011(0x03), to
  2592. the address 0000 0011(0x03). Thus, the node obtains the address
  2593. 00000011(0x03).
  2594.  
  2595. ---- address request ----> 0x01
  2596. +------+ --- address assignment --> 0x03
  2597. | +-------------->-----------------+
  2598. | node + |
  2599. | +--------------<-----------------+
  2600. +------+
  2601.  
  2602. Figure 5 Loop-back Configuration
  2603.  
  2604.  
  2605.  
  2606.  
  2607.  
  2608.  
  2609.  
  2610.  
  2611.  
  2612.  
  2613.  
  2614.  
  2615.  
  2616. Murakami & Maruyama Informational [Page 5]
  2617. RFC 2173 MAPOS June 1997
  2618.  
  2619.  
  2620. 5. Security Considerations
  2621.  
  2622. Security issues are not discussed in this memo.
  2623.  
  2624. References
  2625.  
  2626. [1] Murakami, K. and M. Maruyama, "MAPOS - Multiple Access Protocol
  2627. over SONET/SDH, Version 1," RFC-2171, June 1997.
  2628.  
  2629. [2] CCITT Recommendation G.707: Synchronous Digital Hierarchy Bit
  2630. Rates (1990).
  2631.  
  2632. [3] CCITT Recommendation G.708: Network Node Interface for
  2633. Synchronous Digital Hierarchy (1990).
  2634.  
  2635. [4] CCITT Recommendation G.709: Synchronous Multiplexing Structure
  2636. (1990).
  2637.  
  2638. [5] American National Standard for Telecommunications - Digital
  2639. Hierarchy - Optical Interface Rates and Formats Specification,
  2640. ANSI T1.105-1991.
  2641.  
  2642. [6] Maruyama, M. and K. Murakami, "MAPOS Version 1 Assigned
  2643. Numbers," RFC-2172, June, 1997.
  2644.  
  2645. Acknowledgements
  2646.  
  2647. The authors would like to acknowledge the contributions and
  2648. thoughtful suggestions of John P. Mullaney, Clark Bremer, Masayuki
  2649. Kobayashi, Paul Francis, Toshiaki Yoshida, and Takahiro Sajima.
  2650.  
  2651. Authors' Address
  2652.  
  2653. Ken Murakami
  2654. NTT Software Laboratories
  2655. 3-9-11, Midori-cho
  2656. Musashino-shi
  2657. Tokyo 180, Japan
  2658. E-mail: murakami@ntt-20.ecl.net
  2659.  
  2660. Mitsuru Maruyama
  2661. NTT Software Laboratories
  2662. 3-9-11, Midori-cho
  2663. Musashino-shi
  2664. Tokyo 180, Japan
  2665. E-mail: mitsuru@ntt-20.ecl.net
  2666.  
  2667.  
  2668.  
  2669.  
  2670.  
  2671. Murakami & Maruyama Informational [Page 6]
  2672.  
  2673.  
  2674.  
  2675.  
  2676.  
  2677.  
  2678.  
  2679. Network Working Group K. Murakami
  2680. Request for Comments: 2173 M. Maruyama
  2681. Category: Informational NTT Laboratories
  2682. June 1997
  2683.  
  2684.  
  2685. A MAPOS version 1 Extension - Node Switch Protocol
  2686.  
  2687. Status of this Memo
  2688.  
  2689. This memo provides information for the Internet community. This memo
  2690. does not specify an Internet standard of any kind. Distribution of
  2691. this memo is unlimited.
  2692.  
  2693. Abstract
  2694.  
  2695. This document describes a MAPOS extension, Node Switch Protocol, for
  2696. automatic node address assignment. MAPOS is a multiple access
  2697. protocol for transmission of network-protocol datagrams, encapsulated
  2698. in High-Level Data Link Control (HDLC) frames, over SONET/SDH. NSP
  2699. automates the HDLC address configuration of each node. Using NSP, a
  2700. node retrieves its HDLC address from the switch to which it is
  2701. connected.
  2702.  
  2703. 1. Introduction
  2704.  
  2705. MAPOS[1], Multiple Access Protocol over SONET(Synchronous Optical
  2706. Network)/SDH(Synchronous Digital Hierarchy)[2][3][4][5], is a
  2707. protocol for transmission of HDLC frames over SONET/SDH. A SONET
  2708. switch provides multiple access capability to each node. In MAPOS,
  2709. each node has a unique HDLC address within a switch. The address is
  2710. equivalent to the port number of the switch to which the node is
  2711. connected. This document describes an extension to MAPOS, Node
  2712. Switch Protocol, which enable automatic HDLC address assignment.
  2713. First, it explains the addressing of MAPOS. Then, it describes the
  2714. NSP protocol for automatic HDLC node address assignment.
  2715.  
  2716. 2. Node Address Format
  2717.  
  2718. This section describes MAPOS Version 1 address format in single and
  2719. multiple switch environment.
  2720.  
  2721.  
  2722.  
  2723.  
  2724.  
  2725.  
  2726.  
  2727.  
  2728.  
  2729.  
  2730. Murakami & Maruyama Informational [Page 1]
  2731. RFC 2173 MAPOS June 1997
  2732.  
  2733.  
  2734. 2.1 Address Format
  2735.  
  2736. In MAPOS network, each end node has a unique HDLC address. As shown
  2737. in Figure 1, the address length is 8 bits. The LSB is always 1 which
  2738. indicates the end of the field. When a SONET switch receives an HDLC
  2739. frame, it forwards the frame based on the address in the frame
  2740. header.
  2741.  
  2742. In unicast, MSB is 0 and the rest of the bits are the port number to
  2743. which a node is connected. Since the LSB is always 1, the minimum and
  2744. maximum addresses are 0x01 and 0x7F, respectively. Address 0x01 is
  2745. reserved and is assigned to the control processor in a SONET switch.
  2746.  
  2747. In broadcast, MSB is 1 and the rest of the bits are all 1s. In
  2748. multicast, MSB is 1 and the rest of the bits, except for the LSB,
  2749. indicate the group address.
  2750.  
  2751. +-------------+-+
  2752. | | | | | | | | |
  2753. | |port number|1|
  2754. +-+-----------+-+
  2755. ^ ^
  2756. | |
  2757. | +------- EA bit (always 1)
  2758. |
  2759. 1 : broadcast, multicast
  2760. 0 : unicast
  2761.  
  2762. Figure 1 Address format
  2763.  
  2764. 2.2 Address in multi-switch environment
  2765.  
  2766. In a multi-switch environment, variable-length subnet addressing is
  2767. used. Each switch has a switch number that is unique within the
  2768. system. Subnetted node addresses consist of the switch number and the
  2769. port number to which a node is connected. The address format is "0
  2770. <switch number> <node number> 1" for a unicast address, "all 1" for
  2771. the broadcast address, and "1 <group address> 1" for a multicast
  2772. address.
  2773.  
  2774. The address 0x01 is reserved and is assigned to the control processor
  2775. in the "local" switch. That is, it indicates the switch itself to
  2776. which the node is connected. The addresses of the form "0 <switch
  2777. number> <all 0> 1" are reserved, and indicates the control processor
  2778. of the switch designated by the switch number.
  2779.  
  2780. In Figure 2, the switch numbers are two bits long. Node N1 is
  2781. connected to port 0x3 of switch S1 numbered 0x1 (01 in binary). Thus,
  2782.  
  2783.  
  2784.  
  2785. Murakami & Maruyama Informational [Page 2]
  2786. RFC 2173 MAPOS June 1997
  2787.  
  2788.  
  2789. the node address is 0 + 01 + 00011, that is, 00100011(0x23). Node N3
  2790. has an address 01001001(0x49), since the switch number of S2 is 0x2
  2791. (10 in binary) and the port number is 0x09. Note that all the port
  2792. numbers are odd because the LSBs are always 1.
  2793.  
  2794. +------+
  2795. | node |
  2796. | N1 |
  2797. +------+
  2798. | 00100011(0x23)
  2799. |
  2800. |0x3 |0x3
  2801. +------+ +---+----+ +---+----+ +------+
  2802. | node +----+ SONET +-------+ SONET +-----+ node |
  2803. | N2 | 0x5| Switch |0x9 0x5| Switch |0x9 | N3 |
  2804. +------+ | S1 | | S2 | +------+
  2805. 00100101(0x25) | 0x1 | | 0x2 | 01001001(0x49)
  2806. +---+----+ +---+----+
  2807. |0x7 |0x7
  2808.  
  2809.  
  2810. Figure 2 Addressing in Multiple Switch Environment
  2811.  
  2812. 4 NSP(Node-Switch Protocol)
  2813.  
  2814. This section describes the NSP protocol used for automatic node
  2815. address assignment.
  2816.  
  2817. 4.1 NSP protocol
  2818.  
  2819. NSP is introduced to provide an automatic node address assignment
  2820. function in MAPOS version 1. It reduces the administrative overhead
  2821. of node address configuration for each node and prevents troubles
  2822. such as address inconsistency and collision. When a node is connected
  2823. to a switch and receives SONET signal correctly, the node sends an
  2824. address request packet to the control processor in the local switch.
  2825. The destination address of this packet is 00000001(0x01). When the
  2826. control processor receives the packet, it replies with an address
  2827. assignment packet. The destination is the assigned node address. If
  2828. the node does not receive the address assignment packet within 5
  2829. seconds, it retransmits the address request packet. The
  2830. retransmission continues until the node successfully receives the
  2831. address assignment packet.
  2832.  
  2833. Whenever a node detects a transmission error such as carrier loss or
  2834. out-of-synchronization, it SHOULD send an address request packet to
  2835. the control processor and verify its current address. In addition, a
  2836. node MUST verify its address by sending address request packets every
  2837.  
  2838.  
  2839.  
  2840. Murakami & Maruyama Informational [Page 3]
  2841. RFC 2173 MAPOS June 1997
  2842.  
  2843.  
  2844. 30 seconds. The switch regards them as keep-alive packets and
  2845. utilizes them to detect the node's status. If it has not received a
  2846. request packet for more than 90 seconds, it assumes that the node
  2847. went down. In addition, it also assumes the node went down when a
  2848. switch detects a SONET signal failure.
  2849.  
  2850. 4.2 Packet Format
  2851.  
  2852. The HDLC protocol field of a NSP frame contains 0xFE03 (hexadecimal)
  2853. as defined by the "MAPOS Version 1 Assigned Numbers" [6]. The
  2854. information field contains the NSP packet as shown in Figure 3.
  2855.  
  2856.  
  2857. +-----------+------------+
  2858. I command I address I
  2859. +-----------+------------+
  2860. I<- 32bit ->I<- 32 bit ->I
  2861.  
  2862. Figure 3 NSP packet format
  2863.  
  2864. The command field is 32 bits long and has the following values (in
  2865. decimal);
  2866.  
  2867. 1 address request
  2868. 2 address assignment
  2869. 3 reject(error)
  2870.  
  2871. The length of the address field is 32bits. In address request
  2872. packets, the NSP address field SHOULD be filled with zeroes, although
  2873. the switch ignores it. In address assignment packets, the assigned
  2874. address is placed in the least significant byte of the field. The
  2875. rest of the field is padded with zeroes. When the switch can not
  2876. assign the address for some reason, the switch replies with a reject
  2877. command (the values is 3). The value of the address field is
  2878. undefined.
  2879.  
  2880. 4.3 Consideration for special cases
  2881.  
  2882. There are two special cases to consider. One is a point-to-point
  2883. connection without a switch. The other is loop-back, that is, direct
  2884. connection between the input and the output of the same port.
  2885.  
  2886. 4.3.1 point-to-point
  2887.  
  2888. In the case of a point-to-point connection shown in Figure 4, a node
  2889. sends an address request packet to the other node. The destination
  2890. address is 00000001(0x01), that is usually a control processor in a
  2891. switch. When a node receives the address request, it detects the
  2892.  
  2893.  
  2894.  
  2895. Murakami & Maruyama Informational [Page 4]
  2896. RFC 2173 MAPOS June 1997
  2897.  
  2898.  
  2899. point-to-point connection by examining both the destination address
  2900. and the command contained. Then, it MUST reply with an address
  2901. assignment packet. The assigned address MUST be 00000011(0x03). Since
  2902. both nodes send an address request to each other, both of them get
  2903. address 00000011(0x03). Since any address can be used in point-to-
  2904. point environment, there is no problem even if both of the nodes have
  2905. the same address.
  2906.  
  2907. ---- address request ----> 0x01
  2908. 0x03 <---- address assignment ----
  2909. +------+ +------+
  2910. | node +--------------------------------+ node |
  2911. +------+ +------+
  2912. 0x01 <---- address request ----
  2913. ---- address assignment ----> 0x03
  2914.  
  2915. Figure 4 Point-to-point connection
  2916.  
  2917. 4.3.2 loop-back
  2918.  
  2919. Another special case is loop-back where the output port of a node is
  2920. simply connected to its input port as shown in Figure 5. In this
  2921. case, the same mechanism as that for point-to-point can be applied
  2922. without modification. A node sends an address request packet
  2923. destined to 00000001(0x01). The node then receives the same packet.
  2924. Since the destination is 00000001(0x01), it replies with an address
  2925. assignment packet, containing the assigned address 00000011(0x03), to
  2926. the address 0000 0011(0x03). Thus, the node obtains the address
  2927. 00000011(0x03).
  2928.  
  2929. ---- address request ----> 0x01
  2930. +------+ --- address assignment --> 0x03
  2931. | +-------------->-----------------+
  2932. | node + |
  2933. | +--------------<-----------------+
  2934. +------+
  2935.  
  2936. Figure 5 Loop-back Configuration
  2937.  
  2938.  
  2939.  
  2940.  
  2941.  
  2942.  
  2943.  
  2944.  
  2945.  
  2946.  
  2947.  
  2948.  
  2949.  
  2950. Murakami & Maruyama Informational [Page 5]
  2951. RFC 2173 MAPOS June 1997
  2952.  
  2953.  
  2954. 5. Security Considerations
  2955.  
  2956. Security issues are not discussed in this memo.
  2957.  
  2958. References
  2959.  
  2960. [1] Murakami, K. and M. Maruyama, "MAPOS - Multiple Access Protocol
  2961. over SONET/SDH, Version 1," RFC-2171, June 1997.
  2962.  
  2963. [2] CCITT Recommendation G.707: Synchronous Digital Hierarchy Bit
  2964. Rates (1990).
  2965.  
  2966. [3] CCITT Recommendation G.708: Network Node Interface for
  2967. Synchronous Digital Hierarchy (1990).
  2968.  
  2969. [4] CCITT Recommendation G.709: Synchronous Multiplexing Structure
  2970. (1990).
  2971.  
  2972. [5] American National Standard for Telecommunications - Digital
  2973. Hierarchy - Optical Interface Rates and Formats Specification,
  2974. ANSI T1.105-1991.
  2975.  
  2976. [6] Maruyama, M. and K. Murakami, "MAPOS Version 1 Assigned
  2977. Numbers," RFC-2172, June, 1997.
  2978.  
  2979. Acknowledgements
  2980.  
  2981. The authors would like to acknowledge the contributions and
  2982. thoughtful suggestions of John P. Mullaney, Clark Bremer, Masayuki
  2983. Kobayashi, Paul Francis, Toshiaki Yoshida, and Takahiro Sajima.
  2984.  
  2985. Authors' Address
  2986.  
  2987. Ken Murakami
  2988. NTT Software Laboratories
  2989. 3-9-11, Midori-cho
  2990. Musashino-shi
  2991. Tokyo 180, Japan
  2992. E-mail: murakami@ntt-20.ecl.net
  2993.  
  2994. Mitsuru Maruyama
  2995. NTT Software Laboratories
  2996. 3-9-11, Midori-cho
  2997. Musashino-shi
  2998. Tokyo 180, Japan
  2999. E-mail: mitsuru@ntt-20.ecl.net
  3000.  
  3001.  
  3002.  
  3003.  
  3004.  
  3005. Murakami & Maruyama Informational [Page 6]
  3006.  
  3007.  
  3008.  
  3009.  
  3010.  
  3011.  
  3012.  
  3013. Network Working Group K. Murakami
  3014. Request for Comments: 2173 M. Maruyama
  3015. Category: Informational NTT Laboratories
  3016. June 1997
  3017.  
  3018.  
  3019. A MAPOS version 1 Extension - Node Switch Protocol
  3020.  
  3021. Status of this Memo
  3022.  
  3023. This memo provides information for the Internet community. This memo
  3024. does not specify an Internet standard of any kind. Distribution of
  3025. this memo is unlimited.
  3026.  
  3027. Abstract
  3028.  
  3029. This document describes a MAPOS extension, Node Switch Protocol, for
  3030. automatic node address assignment. MAPOS is a multiple access
  3031. protocol for transmission of network-protocol datagrams, encapsulated
  3032. in High-Level Data Link Control (HDLC) frames, over SONET/SDH. NSP
  3033. automates the HDLC address configuration of each node. Using NSP, a
  3034. node retrieves its HDLC address from the switch to which it is
  3035. connected.
  3036.  
  3037. 1. Introduction
  3038.  
  3039. MAPOS[1], Multiple Access Protocol over SONET(Synchronous Optical
  3040. Network)/SDH(Synchronous Digital Hierarchy)[2][3][4][5], is a
  3041. protocol for transmission of HDLC frames over SONET/SDH. A SONET
  3042. switch provides multiple access capability to each node. In MAPOS,
  3043. each node has a unique HDLC address within a switch. The address is
  3044. equivalent to the port number of the switch to which the node is
  3045. connected. This document describes an extension to MAPOS, Node
  3046. Switch Protocol, which enable automatic HDLC address assignment.
  3047. First, it explains the addressing of MAPOS. Then, it describes the
  3048. NSP protocol for automatic HDLC node address assignment.
  3049.  
  3050. 2. Node Address Format
  3051.  
  3052. This section describes MAPOS Version 1 address format in single and
  3053. multiple switch environment.
  3054.  
  3055.  
  3056.  
  3057.  
  3058.  
  3059.  
  3060.  
  3061.  
  3062.  
  3063.  
  3064. Murakami & Maruyama Informational [Page 1]
  3065. RFC 2173 MAPOS June 1997
  3066.  
  3067.  
  3068. 2.1 Address Format
  3069.  
  3070. In MAPOS network, each end node has a unique HDLC address. As shown
  3071. in Figure 1, the address length is 8 bits. The LSB is always 1 which
  3072. indicates the end of the field. When a SONET switch receives an HDLC
  3073. frame, it forwards the frame based on the address in the frame
  3074. header.
  3075.  
  3076. In unicast, MSB is 0 and the rest of the bits are the port number to
  3077. which a node is connected. Since the LSB is always 1, the minimum and
  3078. maximum addresses are 0x01 and 0x7F, respectively. Address 0x01 is
  3079. reserved and is assigned to the control processor in a SONET switch.
  3080.  
  3081. In broadcast, MSB is 1 and the rest of the bits are all 1s. In
  3082. multicast, MSB is 1 and the rest of the bits, except for the LSB,
  3083. indicate the group address.
  3084.  
  3085. +-------------+-+
  3086. | | | | | | | | |
  3087. | |port number|1|
  3088. +-+-----------+-+
  3089. ^ ^
  3090. | |
  3091. | +------- EA bit (always 1)
  3092. |
  3093. 1 : broadcast, multicast
  3094. 0 : unicast
  3095.  
  3096. Figure 1 Address format
  3097.  
  3098. 2.2 Address in multi-switch environment
  3099.  
  3100. In a multi-switch environment, variable-length subnet addressing is
  3101. used. Each switch has a switch number that is unique within the
  3102. system. Subnetted node addresses consist of the switch number and the
  3103. port number to which a node is connected. The address format is "0
  3104. <switch number> <node number> 1" for a unicast address, "all 1" for
  3105. the broadcast address, and "1 <group address> 1" for a multicast
  3106. address.
  3107.  
  3108. The address 0x01 is reserved and is assigned to the control processor
  3109. in the "local" switch. That is, it indicates the switch itself to
  3110. which the node is connected. The addresses of the form "0 <switch
  3111. number> <all 0> 1" are reserved, and indicates the control processor
  3112. of the switch designated by the switch number.
  3113.  
  3114. In Figure 2, the switch numbers are two bits long. Node N1 is
  3115. connected to port 0x3 of switch S1 numbered 0x1 (01 in binary). Thus,
  3116.  
  3117.  
  3118.  
  3119. Murakami & Maruyama Informational [Page 2]
  3120. RFC 2173 MAPOS June 1997
  3121.  
  3122.  
  3123. the node address is 0 + 01 + 00011, that is, 00100011(0x23). Node N3
  3124. has an address 01001001(0x49), since the switch number of S2 is 0x2
  3125. (10 in binary) and the port number is 0x09. Note that all the port
  3126. numbers are odd because the LSBs are always 1.
  3127.  
  3128. +------+
  3129. | node |
  3130. | N1 |
  3131. +------+
  3132. | 00100011(0x23)
  3133. |
  3134. |0x3 |0x3
  3135. +------+ +---+----+ +---+----+ +------+
  3136. | node +----+ SONET +-------+ SONET +-----+ node |
  3137. | N2 | 0x5| Switch |0x9 0x5| Switch |0x9 | N3 |
  3138. +------+ | S1 | | S2 | +------+
  3139. 00100101(0x25) | 0x1 | | 0x2 | 01001001(0x49)
  3140. +---+----+ +---+----+
  3141. |0x7 |0x7
  3142.  
  3143.  
  3144. Figure 2 Addressing in Multiple Switch Environment
  3145.  
  3146. 4 NSP(Node-Switch Protocol)
  3147.  
  3148. This section describes the NSP protocol used for automatic node
  3149. address assignment.
  3150.  
  3151. 4.1 NSP protocol
  3152.  
  3153. NSP is introduced to provide an automatic node address assignment
  3154. function in MAPOS version 1. It reduces the administrative overhead
  3155. of node address configuration for each node and prevents troubles
  3156. such as address inconsistency and collision. When a node is connected
  3157. to a switch and receives SONET signal correctly, the node sends an
  3158. address request packet to the control processor in the local switch.
  3159. The destination address of this packet is 00000001(0x01). When the
  3160. control processor receives the packet, it replies with an address
  3161. assignment packet. The destination is the assigned node address. If
  3162. the node does not receive the address assignment packet within 5
  3163. seconds, it retransmits the address request packet. The
  3164. retransmission continues until the node successfully receives the
  3165. address assignment packet.
  3166.  
  3167. Whenever a node detects a transmission error such as carrier loss or
  3168. out-of-synchronization, it SHOULD send an address request packet to
  3169. the control processor and verify its current address. In addition, a
  3170. node MUST verify its address by sending address request packets every
  3171.  
  3172.  
  3173.  
  3174. Murakami & Maruyama Informational [Page 3]
  3175. RFC 2173 MAPOS June 1997
  3176.  
  3177.  
  3178. 30 seconds. The switch regards them as keep-alive packets and
  3179. utilizes them to detect the node's status. If it has not received a
  3180. request packet for more than 90 seconds, it assumes that the node
  3181. went down. In addition, it also assumes the node went down when a
  3182. switch detects a SONET signal failure.
  3183.  
  3184. 4.2 Packet Format
  3185.  
  3186. The HDLC protocol field of a NSP frame contains 0xFE03 (hexadecimal)
  3187. as defined by the "MAPOS Version 1 Assigned Numbers" [6]. The
  3188. information field contains the NSP packet as shown in Figure 3.
  3189.  
  3190.  
  3191. +-----------+------------+
  3192. I command I address I
  3193. +-----------+------------+
  3194. I<- 32bit ->I<- 32 bit ->I
  3195.  
  3196. Figure 3 NSP packet format
  3197.  
  3198. The command field is 32 bits long and has the following values (in
  3199. decimal);
  3200.  
  3201. 1 address request
  3202. 2 address assignment
  3203. 3 reject(error)
  3204.  
  3205. The length of the address field is 32bits. In address request
  3206. packets, the NSP address field SHOULD be filled with zeroes, although
  3207. the switch ignores it. In address assignment packets, the assigned
  3208. address is placed in the least significant byte of the field. The
  3209. rest of the field is padded with zeroes. When the switch can not
  3210. assign the address for some reason, the switch replies with a reject
  3211. command (the values is 3). The value of the address field is
  3212. undefined.
  3213.  
  3214. 4.3 Consideration for special cases
  3215.  
  3216. There are two special cases to consider. One is a point-to-point
  3217. connection without a switch. The other is loop-back, that is, direct
  3218. connection between the input and the output of the same port.
  3219.  
  3220. 4.3.1 point-to-point
  3221.  
  3222. In the case of a point-to-point connection shown in Figure 4, a node
  3223. sends an address request packet to the other node. The destination
  3224. address is 00000001(0x01), that is usually a control processor in a
  3225. switch. When a node receives the address request, it detects the
  3226.  
  3227.  
  3228.  
  3229. Murakami & Maruyama Informational [Page 4]
  3230. RFC 2173 MAPOS June 1997
  3231.  
  3232.  
  3233. point-to-point connection by examining both the destination address
  3234. and the command contained. Then, it MUST reply with an address
  3235. assignment packet. The assigned address MUST be 00000011(0x03). Since
  3236. both nodes send an address request to each other, both of them get
  3237. address 00000011(0x03). Since any address can be used in point-to-
  3238. point environment, there is no problem even if both of the nodes have
  3239. the same address.
  3240.  
  3241. ---- address request ----> 0x01
  3242. 0x03 <---- address assignment ----
  3243. +------+ +------+
  3244. | node +--------------------------------+ node |
  3245. +------+ +------+
  3246. 0x01 <---- address request ----
  3247. ---- address assignment ----> 0x03
  3248.  
  3249. Figure 4 Point-to-point connection
  3250.  
  3251. 4.3.2 loop-back
  3252.  
  3253. Another special case is loop-back where the output port of a node is
  3254. simply connected to its input port as shown in Figure 5. In this
  3255. case, the same mechanism as that for point-to-point can be applied
  3256. without modification. A node sends an address request packet
  3257. destined to 00000001(0x01). The node then receives the same packet.
  3258. Since the destination is 00000001(0x01), it replies with an address
  3259. assignment packet, containing the assigned address 00000011(0x03), to
  3260. the address 0000 0011(0x03). Thus, the node obtains the address
  3261. 00000011(0x03).
  3262.  
  3263. ---- address request ----> 0x01
  3264. +------+ --- address assignment --> 0x03
  3265. | +-------------->-----------------+
  3266. | node + |
  3267. | +--------------<-----------------+
  3268. +------+
  3269.  
  3270. Figure 5 Loop-back Configuration
  3271.  
  3272.  
  3273.  
  3274.  
  3275.  
  3276.  
  3277.  
  3278.  
  3279.  
  3280.  
  3281.  
  3282.  
  3283.  
  3284. Murakami & Maruyama Informational [Page 5]
  3285. RFC 2173 MAPOS June 1997
  3286.  
  3287.  
  3288. 5. Security Considerations
  3289.  
  3290. Security issues are not discussed in this memo.
  3291.  
  3292. References
  3293.  
  3294. [1] Murakami, K. and M. Maruyama, "MAPOS - Multiple Access Protocol
  3295. over SONET/SDH, Version 1," RFC-2171, June 1997.
  3296.  
  3297. [2] CCITT Recommendation G.707: Synchronous Digital Hierarchy Bit
  3298. Rates (1990).
  3299.  
  3300. [3] CCITT Recommendation G.708: Network Node Interface for
  3301. Synchronous Digital Hierarchy (1990).
  3302.  
  3303. [4] CCITT Recommendation G.709: Synchronous Multiplexing Structure
  3304. (1990).
  3305.  
  3306. [5] American National Standard for Telecommunications - Digital
  3307. Hierarchy - Optical Interface Rates and Formats Specification,
  3308. ANSI T1.105-1991.
  3309.  
  3310. [6] Maruyama, M. and K. Murakami, "MAPOS Version 1 Assigned
  3311. Numbers," RFC-2172, June, 1997.
  3312.  
  3313. Acknowledgements
  3314.  
  3315. The authors would like to acknowledge the contributions and
  3316. thoughtful suggestions of John P. Mullaney, Clark Bremer, Masayuki
  3317. Kobayashi, Paul Francis, Toshiaki Yoshida, and Takahiro Sajima.
  3318.  
  3319. Authors' Address
  3320.  
  3321. Ken Murakami
  3322. NTT Software Laboratories
  3323. 3-9-11, Midori-cho
  3324. Musashino-shi
  3325. Tokyo 180, Japan
  3326. E-mail: murakami@ntt-20.ecl.net
  3327.  
  3328. Mitsuru Maruyama
  3329. NTT Software Laboratories
  3330. 3-9-11, Midori-cho
  3331. Musashino-shi
  3332. Tokyo 180, Japan
  3333. E-mail: mitsuru@ntt-20.ecl.net
  3334.  
  3335.  
  3336.  
  3337.  
  3338.  
  3339. Murakami & Maruyama Informational [Page 6]
  3340.  
  3341.  
  3342.  
  3343.  
  3344.  
  3345.  
  3346.  
  3347.  
  3348.  
  3349. Network Working Group K. Murakami
  3350. Request for Comments: 2173 M. Maruyama
  3351. Category: Informational NTT Laboratories
  3352. June 1997
  3353.  
  3354.  
  3355. A MAPOS version 1 Extension - Node Switch Protocol
  3356.  
  3357. Status of this Memo
  3358.  
  3359. This memo provides information for the Internet community. This memo
  3360. does not specify an Internet standard of any kind. Distribution of
  3361. this memo is unlimited.
  3362.  
  3363. Abstract
  3364.  
  3365. This document describes a MAPOS extension, Node Switch Protocol, for
  3366. automatic node address assignment. MAPOS is a multiple access
  3367. protocol for transmission of network-protocol datagrams, encapsulated
  3368. in High-Level Data Link Control (HDLC) frames, over SONET/SDH. NSP
  3369. automates the HDLC address configuration of each node. Using NSP, a
  3370. node retrieves its HDLC address from the switch to which it is
  3371. connected.
  3372.  
  3373. 1. Introduction
  3374.  
  3375. MAPOS[1], Multiple Access Protocol over SONET(Synchronous Optical
  3376. Network)/SDH(Synchronous Digital Hierarchy)[2][3][4][5], is a
  3377. protocol for transmission of HDLC frames over SONET/SDH. A SONET
  3378. switch provides multiple access capability to each node. In MAPOS,
  3379. each node has a unique HDLC address within a switch. The address is
  3380. equivalent to the port number of the switch to which the node is
  3381. connected. This document describes an extension to MAPOS, Node
  3382. Switch Protocol, which enable automatic HDLC address assignment.
  3383. First, it explains the addressing of MAPOS. Then, it describes the
  3384. NSP protocol for automatic HDLC node address assignment.
  3385.  
  3386. 2. Node Address Format
  3387.  
  3388. This section describes MAPOS Version 1 address format in single and
  3389. multiple switch environment.
  3390.  
  3391.  
  3392.  
  3393.  
  3394.  
  3395.  
  3396.  
  3397.  
  3398.  
  3399.  
  3400. Murakami & Maruyama Informational [Page 1]
  3401. RFC 2173 MAPOS June 1997
  3402.  
  3403.  
  3404. 2.1 Address Format
  3405.  
  3406. In MAPOS network, each end node has a unique HDLC address. As shown
  3407. in Figure 1, the address length is 8 bits. The LSB is always 1 which
  3408. indicates the end of the field. When a SONET switch receives an HDLC
  3409. frame, it forwards the frame based on the address in the frame
  3410. header.
  3411.  
  3412. In unicast, MSB is 0 and the rest of the bits are the port number to
  3413. which a node is connected. Since the LSB is always 1, the minimum and
  3414. maximum addresses are 0x01 and 0x7F, respectively. Address 0x01 is
  3415. reserved and is assigned to the control processor in a SONET switch.
  3416.  
  3417. In broadcast, MSB is 1 and the rest of the bits are all 1s. In
  3418. multicast, MSB is 1 and the rest of the bits, except for the LSB,
  3419. indicate the group address.
  3420.  
  3421. +-------------+-+
  3422. | | | | | | | | |
  3423. | |port number|1|
  3424. +-+-----------+-+
  3425. ^ ^
  3426. | |
  3427. | +------- EA bit (always 1)
  3428. |
  3429. 1 : broadcast, multicast
  3430. 0 : unicast
  3431.  
  3432. Figure 1 Address format
  3433.  
  3434. 2.2 Address in multi-switch environment
  3435.  
  3436. In a multi-switch environment, variable-length subnet addressing is
  3437. used. Each switch has a switch number that is unique within the
  3438. system. Subnetted node addresses consist of the switch number and the
  3439. port number to which a node is connected. The address format is "0
  3440. <switch number> <node number> 1" for a unicast address, "all 1" for
  3441. the broadcast address, and "1 <group address> 1" for a multicast
  3442. address.
  3443.  
  3444. The address 0x01 is reserved and is assigned to the control processor
  3445. in the "local" switch. That is, it indicates the switch itself to
  3446. which the node is connected. The addresses of the form "0 <switch
  3447. number> <all 0> 1" are reserved, and indicates the control processor
  3448. of the switch designated by the switch number.
  3449.  
  3450. In Figure 2, the switch numbers are two bits long. Node N1 is
  3451. connected to port 0x3 of switch S1 numbered 0x1 (01 in binary). Thus,
  3452.  
  3453.  
  3454.  
  3455. Murakami & Maruyama Informational [Page 2]
  3456. RFC 2173 MAPOS June 1997
  3457.  
  3458.  
  3459. the node address is 0 + 01 + 00011, that is, 00100011(0x23). Node N3
  3460. has an address 01001001(0x49), since the switch number of S2 is 0x2
  3461. (10 in binary) and the port number is 0x09. Note that all the port
  3462. numbers are odd because the LSBs are always 1.
  3463.  
  3464. +------+
  3465. | node |
  3466. | N1 |
  3467. +------+
  3468. | 00100011(0x23)
  3469. |
  3470. |0x3 |0x3
  3471. +------+ +---+----+ +---+----+ +------+
  3472. | node +----+ SONET +-------+ SONET +-----+ node |
  3473. | N2 | 0x5| Switch |0x9 0x5| Switch |0x9 | N3 |
  3474. +------+ | S1 | | S2 | +------+
  3475. 00100101(0x25) | 0x1 | | 0x2 | 01001001(0x49)
  3476. +---+----+ +---+----+
  3477. |0x7 |0x7
  3478.  
  3479.  
  3480. Figure 2 Addressing in Multiple Switch Environment
  3481.  
  3482. 4 NSP(Node-Switch Protocol)
  3483.  
  3484. This section describes the NSP protocol used for automatic node
  3485. address assignment.
  3486.  
  3487. 4.1 NSP protocol
  3488.  
  3489. NSP is introduced to provide an automatic node address assignment
  3490. function in MAPOS version 1. It reduces the administrative overhead
  3491. of node address configuration for each node and prevents troubles
  3492. such as address inconsistency and collision. When a node is connected
  3493. to a switch and receives SONET signal correctly, the node sends an
  3494. address request packet to the control processor in the local switch.
  3495. The destination address of this packet is 00000001(0x01). When the
  3496. control processor receives the packet, it replies with an address
  3497. assignment packet. The destination is the assigned node address. If
  3498. the node does not receive the address assignment packet within 5
  3499. seconds, it retransmits the address request packet. The
  3500. retransmission continues until the node successfully receives the
  3501. address assignment packet.
  3502.  
  3503. Whenever a node detects a transmission error such as carrier loss or
  3504. out-of-synchronization, it SHOULD send an address request packet to
  3505. the control processor and verify its current address. In addition, a
  3506. node MUST verify its address by sending address request packets every
  3507.  
  3508.  
  3509.  
  3510. Murakami & Maruyama Informational [Page 3]
  3511. RFC 2173 MAPOS June 1997
  3512.  
  3513.  
  3514. 30 seconds. The switch regards them as keep-alive packets and
  3515. utilizes them to detect the node's status. If it has not received a
  3516. request packet for more than 90 seconds, it assumes that the node
  3517. went down. In addition, it also assumes the node went down when a
  3518. switch detects a SONET signal failure.
  3519.  
  3520. 4.2 Packet Format
  3521.  
  3522. The HDLC protocol field of a NSP frame contains 0xFE03 (hexadecimal)
  3523. as defined by the "MAPOS Version 1 Assigned Numbers" [6]. The
  3524. information field contains the NSP packet as shown in Figure 3.
  3525.  
  3526.  
  3527. +-----------+------------+
  3528. I command I address I
  3529. +-----------+------------+
  3530. I<- 32bit ->I<- 32 bit ->I
  3531.  
  3532. Figure 3 NSP packet format
  3533.  
  3534. The command field is 32 bits long and has the following values (in
  3535. decimal);
  3536.  
  3537. 1 address request
  3538. 2 address assignment
  3539. 3 reject(error)
  3540.  
  3541. The length of the address field is 32bits. In address request
  3542. packets, the NSP address field SHOULD be filled with zeroes, although
  3543. the switch ignores it. In address assignment packets, the assigned
  3544. address is placed in the least significant byte of the field. The
  3545. rest of the field is padded with zeroes. When the switch can not
  3546. assign the address for some reason, the switch replies with a reject
  3547. command (the values is 3). The value of the address field is
  3548. undefined.
  3549.  
  3550. 4.3 Consideration for special cases
  3551.  
  3552. There are two special cases to consider. One is a point-to-point
  3553. connection without a switch. The other is loop-back, that is, direct
  3554. connection between the input and the output of the same port.
  3555.  
  3556. 4.3.1 point-to-point
  3557.  
  3558. In the case of a point-to-point connection shown in Figure 4, a node
  3559. sends an address request packet to the other node. The destination
  3560. address is 00000001(0x01), that is usually a control processor in a
  3561. switch. When a node receives the address request, it detects the
  3562.  
  3563.  
  3564.  
  3565. Murakami & Maruyama Informational [Page 4]
  3566. RFC 2173 MAPOS June 1997
  3567.  
  3568.  
  3569. point-to-point connection by examining both the destination address
  3570. and the command contained. Then, it MUST reply with an address
  3571. assignment packet. The assigned address MUST be 00000011(0x03). Since
  3572. both nodes send an address request to each other, both of them get
  3573. address 00000011(0x03). Since any address can be used in point-to-
  3574. point environment, there is no problem even if both of the nodes have
  3575. the same address.
  3576.  
  3577. ---- address request ----> 0x01
  3578. 0x03 <---- address assignment ----
  3579. +------+ +------+
  3580. | node +--------------------------------+ node |
  3581. +------+ +------+
  3582. 0x01 <---- address request ----
  3583. ---- address assignment ----> 0x03
  3584.  
  3585. Figure 4 Point-to-point connection
  3586.  
  3587. 4.3.2 loop-back
  3588.  
  3589. Another special case is loop-back where the output port of a node is
  3590. simply connected to its input port as shown in Figure 5. In this
  3591. case, the same mechanism as that for point-to-point can be applied
  3592. without modification. A node sends an address request packet
  3593. destined to 00000001(0x01). The node then receives the same packet.
  3594. Since the destination is 00000001(0x01), it replies with an address
  3595. assignment packet, containing the assigned address 00000011(0x03), to
  3596. the address 0000 0011(0x03). Thus, the node obtains the address
  3597. 00000011(0x03).
  3598.  
  3599. ---- address request ----> 0x01
  3600. +------+ --- address assignment --> 0x03
  3601. | +-------------->-----------------+
  3602. | node + |
  3603. | +--------------<-----------------+
  3604. +------+
  3605.  
  3606. Figure 5 Loop-back Configuration
  3607.  
  3608.  
  3609.  
  3610.  
  3611.  
  3612.  
  3613.  
  3614.  
  3615.  
  3616.  
  3617.  
  3618.  
  3619.  
  3620. Murakami & Maruyama Informational [Page 5]
  3621. RFC 2173 MAPOS June 1997
  3622.  
  3623.  
  3624. 5. Security Considerations
  3625.  
  3626. Security issues are not discussed in this memo.
  3627.  
  3628. References
  3629.  
  3630. [1] Murakami, K. and M. Maruyama, "MAPOS - Multiple Access Protocol
  3631. over SONET/SDH, Version 1," RFC-2171, June 1997.
  3632.  
  3633. [2] CCITT Recommendation G.707: Synchronous Digital Hierarchy Bit
  3634. Rates (1990).
  3635.  
  3636. [3] CCITT Recommendation G.708: Network Node Interface for
  3637. Synchronous Digital Hierarchy (1990).
  3638.  
  3639. [4] CCITT Recommendation G.709: Synchronous Multiplexing Structure
  3640. (1990).
  3641.  
  3642. [5] American National Standard for Telecommunications - Digital
  3643. Hierarchy - Optical Interface Rates and Formats Specification,
  3644. ANSI T1.105-1991.
  3645.  
  3646. [6] Maruyama, M. and K. Murakami, "MAPOS Version 1 Assigned
  3647. Numbers," RFC-2172, June, 1997.
  3648.  
  3649. Acknowledgements
  3650.  
  3651. The authors would like to acknowledge the contributions and
  3652. thoughtful suggestions of John P. Mullaney, Clark Bremer, Masayuki
  3653. Kobayashi, Paul Francis, Toshiaki Yoshida, and Takahiro Sajima.
  3654.  
  3655. Authors' Address
  3656.  
  3657. Ken Murakami
  3658. NTT Software Laboratories
  3659. 3-9-11, Midori-cho
  3660. Musashino-shi
  3661. Tokyo 180, Japan
  3662. E-mail: murakami@ntt-20.ecl.net
  3663.  
  3664. Mitsuru Maruyama
  3665. NTT Software Laboratories
  3666. 3-9-11, Midori-cho
  3667. Musashino-shi
  3668. Tokyo 180, Japan
  3669. E-mail: mitsuru@ntt-20.ecl.net
  3670.  
  3671.  
  3672.  
  3673.  
  3674.  
  3675. Murakami & Maruyama Informational [Page 6]
  3676.  
  3677.  
  3678.  
  3679.  
  3680.  
  3681.  
  3682.  
  3683. Network Working Group K. Murakami
  3684. Request for Comments: 2173 M. Maruyama
  3685. Category: Informational NTT Laboratories
  3686. June 1997
  3687.  
  3688.  
  3689. A MAPOS version 1 Extension - Node Switch Protocol
  3690.  
  3691. Status of this Memo
  3692.  
  3693. This memo provides information for the Internet community. This memo
  3694. does not specify an Internet standard of any kind. Distribution of
  3695. this memo is unlimited.
  3696.  
  3697. Abstract
  3698.  
  3699. This document describes a MAPOS extension, Node Switch Protocol, for
  3700. automatic node address assignment. MAPOS is a multiple access
  3701. protocol for transmission of network-protocol datagrams, encapsulated
  3702. in High-Level Data Link Control (HDLC) frames, over SONET/SDH. NSP
  3703. automates the HDLC address configuration of each node. Using NSP, a
  3704. node retrieves its HDLC address from the switch to which it is
  3705. connected.
  3706.  
  3707. 1. Introduction
  3708.  
  3709. MAPOS[1], Multiple Access Protocol over SONET(Synchronous Optical
  3710. Network)/SDH(Synchronous Digital Hierarchy)[2][3][4][5], is a
  3711. protocol for transmission of HDLC frames over SONET/SDH. A SONET
  3712. switch provides multiple access capability to each node. In MAPOS,
  3713. each node has a unique HDLC address within a switch. The address is
  3714. equivalent to the port number of the switch to which the node is
  3715. connected. This document describes an extension to MAPOS, Node
  3716. Switch Protocol, which enable automatic HDLC address assignment.
  3717. First, it explains the addressing of MAPOS. Then, it describes the
  3718. NSP protocol for automatic HDLC node address assignment.
  3719.  
  3720. 2. Node Address Format
  3721.  
  3722. This section describes MAPOS Version 1 address format in single and
  3723. multiple switch environment.
  3724.  
  3725.  
  3726.  
  3727.  
  3728.  
  3729.  
  3730.  
  3731.  
  3732.  
  3733.  
  3734. Murakami & Maruyama Informational [Page 1]
  3735. RFC 2173 MAPOS June 1997
  3736.  
  3737.  
  3738. 2.1 Address Format
  3739.  
  3740. In MAPOS network, each end node has a unique HDLC address. As shown
  3741. in Figure 1, the address length is 8 bits. The LSB is always 1 which
  3742. indicates the end of the field. When a SONET switch receives an HDLC
  3743. frame, it forwards the frame based on the address in the frame
  3744. header.
  3745.  
  3746. In unicast, MSB is 0 and the rest of the bits are the port number to
  3747. which a node is connected. Since the LSB is always 1, the minimum and
  3748. maximum addresses are 0x01 and 0x7F, respectively. Address 0x01 is
  3749. reserved and is assigned to the control processor in a SONET switch.
  3750.  
  3751. In broadcast, MSB is 1 and the rest of the bits are all 1s. In
  3752. multicast, MSB is 1 and the rest of the bits, except for the LSB,
  3753. indicate the group address.
  3754.  
  3755. +-------------+-+
  3756. | | | | | | | | |
  3757. | |port number|1|
  3758. +-+-----------+-+
  3759. ^ ^
  3760. | |
  3761. | +------- EA bit (always 1)
  3762. |
  3763. 1 : broadcast, multicast
  3764. 0 : unicast
  3765.  
  3766. Figure 1 Address format
  3767.  
  3768. 2.2 Address in multi-switch environment
  3769.  
  3770. In a multi-switch environment, variable-length subnet addressing is
  3771. used. Each switch has a switch number that is unique within the
  3772. system. Subnetted node addresses consist of the switch number and the
  3773. port number to which a node is connected. The address format is "0
  3774. <switch number> <node number> 1" for a unicast address, "all 1" for
  3775. the broadcast address, and "1 <group address> 1" for a multicast
  3776. address.
  3777.  
  3778. The address 0x01 is reserved and is assigned to the control processor
  3779. in the "local" switch. That is, it indicates the switch itself to
  3780. which the node is connected. The addresses of the form "0 <switch
  3781. number> <all 0> 1" are reserved, and indicates the control processor
  3782. of the switch designated by the switch number.
  3783.  
  3784. In Figure 2, the switch numbers are two bits long. Node N1 is
  3785. connected to port 0x3 of switch S1 numbered 0x1 (01 in binary). Thus,
  3786.  
  3787.  
  3788.  
  3789. Murakami & Maruyama Informational [Page 2]
  3790. RFC 2173 MAPOS June 1997
  3791.  
  3792.  
  3793. the node address is 0 + 01 + 00011, that is, 00100011(0x23). Node N3
  3794. has an address 01001001(0x49), since the switch number of S2 is 0x2
  3795. (10 in binary) and the port number is 0x09. Note that all the port
  3796. numbers are odd because the LSBs are always 1.
  3797.  
  3798. +------+
  3799. | node |
  3800. | N1 |
  3801. +------+
  3802. | 00100011(0x23)
  3803. |
  3804. |0x3 |0x3
  3805. +------+ +---+----+ +---+----+ +------+
  3806. | node +----+ SONET +-------+ SONET +-----+ node |
  3807. | N2 | 0x5| Switch |0x9 0x5| Switch |0x9 | N3 |
  3808. +------+ | S1 | | S2 | +------+
  3809. 00100101(0x25) | 0x1 | | 0x2 | 01001001(0x49)
  3810. +---+----+ +---+----+
  3811. |0x7 |0x7
  3812.  
  3813.  
  3814. Figure 2 Addressing in Multiple Switch Environment
  3815.  
  3816. 4 NSP(Node-Switch Protocol)
  3817.  
  3818. This section describes the NSP protocol used for automatic node
  3819. address assignment.
  3820.  
  3821. 4.1 NSP protocol
  3822.  
  3823. NSP is introduced to provide an automatic node address assignment
  3824. function in MAPOS version 1. It reduces the administrative overhead
  3825. of node address configuration for each node and prevents troubles
  3826. such as address inconsistency and collision. When a node is connected
  3827. to a switch and receives SONET signal correctly, the node sends an
  3828. address request packet to the control processor in the local switch.
  3829. The destination address of this packet is 00000001(0x01). When the
  3830. control processor receives the packet, it replies with an address
  3831. assignment packet. The destination is the assigned node address. If
  3832. the node does not receive the address assignment packet within 5
  3833. seconds, it retransmits the address request packet. The
  3834. retransmission continues until the node successfully receives the
  3835. address assignment packet.
  3836.  
  3837. Whenever a node detects a transmission error such as carrier loss or
  3838. out-of-synchronization, it SHOULD send an address request packet to
  3839. the control processor and verify its current address. In addition, a
  3840. node MUST verify its address by sending address request packets every
  3841.  
  3842.  
  3843.  
  3844. Murakami & Maruyama Informational [Page 3]
  3845. RFC 2173 MAPOS June 1997
  3846.  
  3847.  
  3848. 30 seconds. The switch regards them as keep-alive packets and
  3849. utilizes them to detect the node's status. If it has not received a
  3850. request packet for more than 90 seconds, it assumes that the node
  3851. went down. In addition, it also assumes the node went down when a
  3852. switch detects a SONET signal failure.
  3853.  
  3854. 4.2 Packet Format
  3855.  
  3856. The HDLC protocol field of a NSP frame contains 0xFE03 (hexadecimal)
  3857. as defined by the "MAPOS Version 1 Assigned Numbers" [6]. The
  3858. information field contains the NSP packet as shown in Figure 3.
  3859.  
  3860.  
  3861. +-----------+------------+
  3862. I command I address I
  3863. +-----------+------------+
  3864. I<- 32bit ->I<- 32 bit ->I
  3865.  
  3866. Figure 3 NSP packet format
  3867.  
  3868. The command field is 32 bits long and has the following values (in
  3869. decimal);
  3870.  
  3871. 1 address request
  3872. 2 address assignment
  3873. 3 reject(error)
  3874.  
  3875. The length of the address field is 32bits. In address request
  3876. packets, the NSP address field SHOULD be filled with zeroes, although
  3877. the switch ignores it. In address assignment packets, the assigned
  3878. address is placed in the least significant byte of the field. The
  3879. rest of the field is padded with zeroes. When the switch can not
  3880. assign the address for some reason, the switch replies with a reject
  3881. command (the values is 3). The value of the address field is
  3882. undefined.
  3883.  
  3884. 4.3 Consideration for special cases
  3885.  
  3886. There are two special cases to consider. One is a point-to-point
  3887. connection without a switch. The other is loop-back, that is, direct
  3888. connection between the input and the output of the same port.
  3889.  
  3890. 4.3.1 point-to-point
  3891.  
  3892. In the case of a point-to-point connection shown in Figure 4, a node
  3893. sends an address request packet to the other node. The destination
  3894. address is 00000001(0x01), that is usually a control processor in a
  3895. switch. When a node receives the address request, it detects the
  3896.  
  3897.  
  3898.  
  3899. Murakami & Maruyama Informational [Page 4]
  3900. RFC 2173 MAPOS June 1997
  3901.  
  3902.  
  3903. point-to-point connection by examining both the destination address
  3904. and the command contained. Then, it MUST reply with an address
  3905. assignment packet. The assigned address MUST be 00000011(0x03). Since
  3906. both nodes send an address request to each other, both of them get
  3907. address 00000011(0x03). Since any address can be used in point-to-
  3908. point environment, there is no problem even if both of the nodes have
  3909. the same address.
  3910.  
  3911. ---- address request ----> 0x01
  3912. 0x03 <---- address assignment ----
  3913. +------+ +------+
  3914. | node +--------------------------------+ node |
  3915. +------+ +------+
  3916. 0x01 <---- address request ----
  3917. ---- address assignment ----> 0x03
  3918.  
  3919. Figure 4 Point-to-point connection
  3920.  
  3921. 4.3.2 loop-back
  3922.  
  3923. Another special case is loop-back where the output port of a node is
  3924. simply connected to its input port as shown in Figure 5. In this
  3925. case, the same mechanism as that for point-to-point can be applied
  3926. without modification. A node sends an address request packet
  3927. destined to 00000001(0x01). The node then receives the same packet.
  3928. Since the destination is 00000001(0x01), it replies with an address
  3929. assignment packet, containing the assigned address 00000011(0x03), to
  3930. the address 0000 0011(0x03). Thus, the node obtains the address
  3931. 00000011(0x03).
  3932.  
  3933. ---- address request ----> 0x01
  3934. +------+ --- address assignment --> 0x03
  3935. | +-------------->-----------------+
  3936. | node + |
  3937. | +--------------<-----------------+
  3938. +------+
  3939.  
  3940. Figure 5 Loop-back Configuration
  3941.  
  3942.  
  3943.  
  3944.  
  3945.  
  3946.  
  3947.  
  3948.  
  3949.  
  3950.  
  3951.  
  3952.  
  3953.  
  3954. Murakami & Maruyama Informational [Page 5]
  3955. RFC 2173 MAPOS June 1997
  3956.  
  3957.  
  3958. 5. Security Considerations
  3959.  
  3960. Security issues are not discussed in this memo.
  3961.  
  3962. References
  3963.  
  3964. [1] Murakami, K. and M. Maruyama, "MAPOS - Multiple Access Protocol
  3965. over SONET/SDH, Version 1," RFC-2171, June 1997.
  3966.  
  3967. [2] CCITT Recommendation G.707: Synchronous Digital Hierarchy Bit
  3968. Rates (1990).
  3969.  
  3970. [3] CCITT Recommendation G.708: Network Node Interface for
  3971. Synchronous Digital Hierarchy (1990).
  3972.  
  3973. [4] CCITT Recommendation G.709: Synchronous Multiplexing Structure
  3974. (1990).
  3975.  
  3976. [5] American National Standard for Telecommunications - Digital
  3977. Hierarchy - Optical Interface Rates and Formats Specification,
  3978. ANSI T1.105-1991.
  3979.  
  3980. [6] Maruyama, M. and K. Murakami, "MAPOS Version 1 Assigned
  3981. Numbers," RFC-2172, June, 1997.
  3982.  
  3983. Acknowledgements
  3984.  
  3985. The authors would like to acknowledge the contributions and
  3986. thoughtful suggestions of John P. Mullaney, Clark Bremer, Masayuki
  3987. Kobayashi, Paul Francis, Toshiaki Yoshida, and Takahiro Sajima.
  3988.  
  3989. Authors' Address
  3990.  
  3991. Ken Murakami
  3992. NTT Software Laboratories
  3993. 3-9-11, Midori-cho
  3994. Musashino-shi
  3995. Tokyo 180, Japan
  3996. E-mail: murakami@ntt-20.ecl.net
  3997.  
  3998. Mitsuru Maruyama
  3999. NTT Software Laboratories
  4000. 3-9-11, Midori-cho
  4001. Musashino-shi
  4002. Tokyo 180, Japan
  4003. E-mail: mitsuru@ntt-20.ecl.net
  4004.  
  4005.  
  4006.  
  4007.  
  4008.  
  4009. Murakami & Maruyama Informational [Page 6]
  4010.  
  4011.  
  4012.  
  4013.  
  4014.  
  4015.  
  4016.  
  4017. Network Working Group K. Murakami
  4018. Request for Comments: 2173 M. Maruyama
  4019. Category: Informational NTT Laboratories
  4020. June 1997
  4021.  
  4022.  
  4023. A MAPOS version 1 Extension - Node Switch Protocol
  4024.  
  4025. Status of this Memo
  4026.  
  4027. This memo provides information for the Internet community. This memo
  4028. does not specify an Internet standard of any kind. Distribution of
  4029. this memo is unlimited.
  4030.  
  4031. Abstract
  4032.  
  4033. This document describes a MAPOS extension, Node Switch Protocol, for
  4034. automatic node address assignment. MAPOS is a multiple access
  4035. protocol for transmission of network-protocol datagrams, encapsulated
  4036. in High-Level Data Link Control (HDLC) frames, over SONET/SDH. NSP
  4037. automates the HDLC address configuration of each node. Using NSP, a
  4038. node retrieves its HDLC address from the switch to which it is
  4039. connected.
  4040.  
  4041. 1. Introduction
  4042.  
  4043. MAPOS[1], Multiple Access Protocol over SONET(Synchronous Optical
  4044. Network)/SDH(Synchronous Digital Hierarchy)[2][3][4][5], is a
  4045. protocol for transmission of HDLC frames over SONET/SDH. A SONET
  4046. switch provides multiple access capability to each node. In MAPOS,
  4047. each node has a unique HDLC address within a switch. The address is
  4048. equivalent to the port number of the switch to which the node is
  4049. connected. This document describes an extension to MAPOS, Node
  4050. Switch Protocol, which enable automatic HDLC address assignment.
  4051. First, it explains the addressing of MAPOS. Then, it describes the
  4052. NSP protocol for automatic HDLC node address assignment.
  4053.  
  4054. 2. Node Address Format
  4055.  
  4056. This section describes MAPOS Version 1 address format in single and
  4057. multiple switch environment.
  4058.  
  4059.  
  4060.  
  4061.  
  4062.  
  4063.  
  4064.  
  4065.  
  4066.  
  4067.  
  4068. Murakami & Maruyama Informational [Page 1]
  4069. RFC 2173 MAPOS June 1997
  4070.  
  4071.  
  4072. 2.1 Address Format
  4073.  
  4074. In MAPOS network, each end node has a unique HDLC address. As shown
  4075. in Figure 1, the address length is 8 bits. The LSB is always 1 which
  4076. indicates the end of the field. When a SONET switch receives an HDLC
  4077. frame, it forwards the frame based on the address in the frame
  4078. header.
  4079.  
  4080. In unicast, MSB is 0 and the rest of the bits are the port number to
  4081. which a node is connected. Since the LSB is always 1, the minimum and
  4082. maximum addresses are 0x01 and 0x7F, respectively. Address 0x01 is
  4083. reserved and is assigned to the control processor in a SONET switch.
  4084.  
  4085. In broadcast, MSB is 1 and the rest of the bits are all 1s. In
  4086. multicast, MSB is 1 and the rest of the bits, except for the LSB,
  4087. indicate the group address.
  4088.  
  4089. +-------------+-+
  4090. | | | | | | | | |
  4091. | |port number|1|
  4092. +-+-----------+-+
  4093. ^ ^
  4094. | |
  4095. | +------- EA bit (always 1)
  4096. |
  4097. 1 : broadcast, multicast
  4098. 0 : unicast
  4099.  
  4100. Figure 1 Address format
  4101.  
  4102. 2.2 Address in multi-switch environment
  4103.  
  4104. In a multi-switch environment, variable-length subnet addressing is
  4105. used. Each switch has a switch number that is unique within the
  4106. system. Subnetted node addresses consist of the switch number and the
  4107. port number to which a node is connected. The address format is "0
  4108. <switch number> <node number> 1" for a unicast address, "all 1" for
  4109. the broadcast address, and "1 <group address> 1" for a multicast
  4110. address.
  4111.  
  4112. The address 0x01 is reserved and is assigned to the control processor
  4113. in the "local" switch. That is, it indicates the switch itself to
  4114. which the node is connected. The addresses of the form "0 <switch
  4115. number> <all 0> 1" are reserved, and indicates the control processor
  4116. of the switch designated by the switch number.
  4117.  
  4118. In Figure 2, the switch numbers are two bits long. Node N1 is
  4119. connected to port 0x3 of switch S1 numbered 0x1 (01 in binary). Thus,
  4120.  
  4121.  
  4122.  
  4123. Murakami & Maruyama Informational [Page 2]
  4124. RFC 2173 MAPOS June 1997
  4125.  
  4126.  
  4127. the node address is 0 + 01 + 00011, that is, 00100011(0x23). Node N3
  4128. has an address 01001001(0x49), since the switch number of S2 is 0x2
  4129. (10 in binary) and the port number is 0x09. Note that all the port
  4130. numbers are odd because the LSBs are always 1.
  4131.  
  4132. +------+
  4133. | node |
  4134. | N1 |
  4135. +------+
  4136. | 00100011(0x23)
  4137. |
  4138. |0x3 |0x3
  4139. +------+ +---+----+ +---+----+ +------+
  4140. | node +----+ SONET +-------+ SONET +-----+ node |
  4141. | N2 | 0x5| Switch |0x9 0x5| Switch |0x9 | N3 |
  4142. +------+ | S1 | | S2 | +------+
  4143. 00100101(0x25) | 0x1 | | 0x2 | 01001001(0x49)
  4144. +---+----+ +---+----+
  4145. |0x7 |0x7
  4146.  
  4147.  
  4148. Figure 2 Addressing in Multiple Switch Environment
  4149.  
  4150. 4 NSP(Node-Switch Protocol)
  4151.  
  4152. This section describes the NSP protocol used for automatic node
  4153. address assignment.
  4154.  
  4155. 4.1 NSP protocol
  4156.  
  4157. NSP is introduced to provide an automatic node address assignment
  4158. function in MAPOS version 1. It reduces the administrative overhead
  4159. of node address configuration for each node and prevents troubles
  4160. such as address inconsistency and collision. When a node is connected
  4161. to a switch and receives SONET signal correctly, the node sends an
  4162. address request packet to the control processor in the local switch.
  4163. The destination address of this packet is 00000001(0x01). When the
  4164. control processor receives the packet, it replies with an address
  4165. assignment packet. The destination is the assigned node address. If
  4166. the node does not receive the address assignment packet within 5
  4167. seconds, it retransmits the address request packet. The
  4168. retransmission continues until the node successfully receives the
  4169. address assignment packet.
  4170.  
  4171. Whenever a node detects a transmission error such as carrier loss or
  4172. out-of-synchronization, it SHOULD send an address request packet to
  4173. the control processor and verify its current address. In addition, a
  4174. node MUST verify its address by sending address request packets every
  4175.  
  4176.  
  4177.  
  4178. Murakami & Maruyama Informational [Page 3]
  4179. RFC 2173 MAPOS June 1997
  4180.  
  4181.  
  4182. 30 seconds. The switch regards them as keep-alive packets and
  4183. utilizes them to detect the node's status. If it has not received a
  4184. request packet for more than 90 seconds, it assumes that the node
  4185. went down. In addition, it also assumes the node went down when a
  4186. switch detects a SONET signal failure.
  4187.  
  4188. 4.2 Packet Format
  4189.  
  4190. The HDLC protocol field of a NSP frame contains 0xFE03 (hexadecimal)
  4191. as defined by the "MAPOS Version 1 Assigned Numbers" [6]. The
  4192. information field contains the NSP packet as shown in Figure 3.
  4193.  
  4194.  
  4195. +-----------+------------+
  4196. I command I address I
  4197. +-----------+------------+
  4198. I<- 32bit ->I<- 32 bit ->I
  4199.  
  4200. Figure 3 NSP packet format
  4201.  
  4202. The command field is 32 bits long and has the following values (in
  4203. decimal);
  4204.  
  4205. 1 address request
  4206. 2 address assignment
  4207. 3 reject(error)
  4208.  
  4209. The length of the address field is 32bits. In address request
  4210. packets, the NSP address field SHOULD be filled with zeroes, although
  4211. the switch ignores it. In address assignment packets, the assigned
  4212. address is placed in the least significant byte of the field. The
  4213. rest of the field is padded with zeroes. When the switch can not
  4214. assign the address for some reason, the switch replies with a reject
  4215. command (the values is 3). The value of the address field is
  4216. undefined.
  4217.  
  4218. 4.3 Consideration for special cases
  4219.  
  4220. There are two special cases to consider. One is a point-to-point
  4221. connection without a switch. The other is loop-back, that is, direct
  4222. connection between the input and the output of the same port.
  4223.  
  4224. 4.3.1 point-to-point
  4225.  
  4226. In the case of a point-to-point connection shown in Figure 4, a node
  4227. sends an address request packet to the other node. The destination
  4228. address is 00000001(0x01), that is usually a control processor in a
  4229. switch. When a node receives the address request, it detects the
  4230.  
  4231.  
  4232.  
  4233. Murakami & Maruyama Informational [Page 4]
  4234. RFC 2173 MAPOS June 1997
  4235.  
  4236.  
  4237. point-to-point connection by examining both the destination address
  4238. and the command contained. Then, it MUST reply with an address
  4239. assignment packet. The assigned address MUST be 00000011(0x03). Since
  4240. both nodes send an address request to each other, both of them get
  4241. address 00000011(0x03). Since any address can be used in point-to-
  4242. point environment, there is no problem even if both of the nodes have
  4243. the same address.
  4244.  
  4245. ---- address request ----> 0x01
  4246. 0x03 <---- address assignment ----
  4247. +------+ +------+
  4248. | node +--------------------------------+ node |
  4249. +------+ +------+
  4250. 0x01 <---- address request ----
  4251. ---- address assignment ----> 0x03
  4252.  
  4253. Figure 4 Point-to-point connection
  4254.  
  4255. 4.3.2 loop-back
  4256.  
  4257. Another special case is loop-back where the output port of a node is
  4258. simply connected to its input port as shown in Figure 5. In this
  4259. case, the same mechanism as that for point-to-point can be applied
  4260. without modification. A node sends an address request packet
  4261. destined to 00000001(0x01). The node then receives the same packet.
  4262. Since the destination is 00000001(0x01), it replies with an address
  4263. assignment packet, containing the assigned address 00000011(0x03), to
  4264. the address 0000 0011(0x03). Thus, the node obtains the address
  4265. 00000011(0x03).
  4266.  
  4267. ---- address request ----> 0x01
  4268. +------+ --- address assignment --> 0x03
  4269. | +-------------->-----------------+
  4270. | node + |
  4271. | +--------------<-----------------+
  4272. +------+
  4273.  
  4274. Figure 5 Loop-back Configuration
  4275.  
  4276.  
  4277.  
  4278.  
  4279.  
  4280.  
  4281.  
  4282.  
  4283.  
  4284.  
  4285.  
  4286.  
  4287.  
  4288. Murakami & Maruyama Informational [Page 5]
  4289. RFC 2173 MAPOS June 1997
  4290.  
  4291.  
  4292. 5. Security Considerations
  4293.  
  4294. Security issues are not discussed in this memo.
  4295.  
  4296. References
  4297.  
  4298. [1] Murakami, K. and M. Maruyama, "MAPOS - Multiple Access Protocol
  4299. over SONET/SDH, Version 1," RFC-2171, June 1997.
  4300.  
  4301. [2] CCITT Recommendation G.707: Synchronous Digital Hierarchy Bit
  4302. Rates (1990).
  4303.  
  4304. [3] CCITT Recommendation G.708: Network Node Interface for
  4305. Synchronous Digital Hierarchy (1990).
  4306.  
  4307. [4] CCITT Recommendation G.709: Synchronous Multiplexing Structure
  4308. (1990).
  4309.  
  4310. [5] American National Standard for Telecommunications - Digital
  4311. Hierarchy - Optical Interface Rates and Formats Specification,
  4312. ANSI T1.105-1991.
  4313.  
  4314. [6] Maruyama, M. and K. Murakami, "MAPOS Version 1 Assigned
  4315. Numbers," RFC-2172, June, 1997.
  4316.  
  4317. Acknowledgements
  4318.  
  4319. The authors would like to acknowledge the contributions and
  4320. thoughtful suggestions of John P. Mullaney, Clark Bremer, Masayuki
  4321. Kobayashi, Paul Francis, Toshiaki Yoshida, and Takahiro Sajima.
  4322.  
  4323. Authors' Address
  4324.  
  4325. Ken Murakami
  4326. NTT Software Laboratories
  4327. 3-9-11, Midori-cho
  4328. Musashino-shi
  4329. Tokyo 180, Japan
  4330. E-mail: murakami@ntt-20.ecl.net
  4331.  
  4332. Mitsuru Maruyama
  4333. NTT Software Laboratories
  4334. 3-9-11, Midori-cho
  4335. Musashino-shi
  4336. Tokyo 180, Japan
  4337. E-mail: mitsuru@ntt-20.ecl.net
  4338.  
  4339.  
  4340.  
  4341.  
  4342.  
  4343. Murakami & Maruyama Informational [Page 6]
  4344.  
  4345.  
  4346.  
  4347.  
  4348.  
  4349.  
  4350.  
  4351. Network Working Group K. Murakami
  4352. Request for Comments: 2173 M. Maruyama
  4353. Category: Informational NTT Laboratories
  4354. June 1997
  4355.  
  4356.  
  4357. A MAPOS version 1 Extension - Node Switch Protocol
  4358.  
  4359. Status of this Memo
  4360.  
  4361. This memo provides information for the Internet community. This memo
  4362. does not specify an Internet standard of any kind. Distribution of
  4363. this memo is unlimited.
  4364.  
  4365. Abstract
  4366.  
  4367. This document describes a MAPOS extension, Node Switch Protocol, for
  4368. automatic node address assignment. MAPOS is a multiple access
  4369. protocol for transmission of network-protocol datagrams, encapsulated
  4370. in High-Level Data Link Control (HDLC) frames, over SONET/SDH. NSP
  4371. automates the HDLC address configuration of each node. Using NSP, a
  4372. node retrieves its HDLC address from the switch to which it is
  4373. connected.
  4374.  
  4375. 1. Introduction
  4376.  
  4377. MAPOS[1], Multiple Access Protocol over SONET(Synchronous Optical
  4378. Network)/SDH(Synchronous Digital Hierarchy)[2][3][4][5], is a
  4379. protocol for transmission of HDLC frames over SONET/SDH. A SONET
  4380. switch provides multiple access capability to each node. In MAPOS,
  4381. each node has a unique HDLC address within a switch. The address is
  4382. equivalent to the port number of the switch to which the node is
  4383. connected. This document describes an extension to MAPOS, Node
  4384. Switch Protocol, which enable automatic HDLC address assignment.
  4385. First, it explains the addressing of MAPOS. Then, it describes the
  4386. NSP protocol for automatic HDLC node address assignment.
  4387.  
  4388. 2. Node Address Format
  4389.  
  4390. This section describes MAPOS Version 1 address format in single and
  4391. multiple switch environment.
  4392.  
  4393.  
  4394.  
  4395.  
  4396.  
  4397.  
  4398.  
  4399.  
  4400.  
  4401.  
  4402. Murakami & Maruyama Informational [Page 1]
  4403. RFC 2173 MAPOS June 1997
  4404.  
  4405.  
  4406. 2.1 Address Format
  4407.  
  4408. In MAPOS network, each end node has a unique HDLC address. As shown
  4409. in Figure 1, the address length is 8 bits. The LSB is always 1 which
  4410. indicates the end of the field. When a SONET switch receives an HDLC
  4411. frame, it forwards the frame based on the address in the frame
  4412. header.
  4413.  
  4414. In unicast, MSB is 0 and the rest of the bits are the port number to
  4415. which a node is connected. Since the LSB is always 1, the minimum and
  4416. maximum addresses are 0x01 and 0x7F, respectively. Address 0x01 is
  4417. reserved and is assigned to the control processor in a SONET switch.
  4418.  
  4419. In broadcast, MSB is 1 and the rest of the bits are all 1s. In
  4420. multicast, MSB is 1 and the rest of the bits, except for the LSB,
  4421. indicate the group address.
  4422.  
  4423. +-------------+-+
  4424. | | | | | | | | |
  4425. | |port number|1|
  4426. +-+-----------+-+
  4427. ^ ^
  4428. | |
  4429. | +------- EA bit (always 1)
  4430. |
  4431. 1 : broadcast, multicast
  4432. 0 : unicast
  4433.  
  4434. Figure 1 Address format
  4435.  
  4436. 2.2 Address in multi-switch environment
  4437.  
  4438. In a multi-switch environment, variable-length subnet addressing is
  4439. used. Each switch has a switch number that is unique within the
  4440. system. Subnetted node addresses consist of the switch number and the
  4441. port number to which a node is connected. The address format is "0
  4442. <switch number> <node number> 1" for a unicast address, "all 1" for
  4443. the broadcast address, and "1 <group address> 1" for a multicast
  4444. address.
  4445.  
  4446. The address 0x01 is reserved and is assigned to the control processor
  4447. in the "local" switch. That is, it indicates the switch itself to
  4448. which the node is connected. The addresses of the form "0 <switch
  4449. number> <all 0> 1" are reserved, and indicates the control processor
  4450. of the switch designated by the switch number.
  4451.  
  4452. In Figure 2, the switch numbers are two bits long. Node N1 is
  4453. connected to port 0x3 of switch S1 numbered 0x1 (01 in binary). Thus,
  4454.  
  4455.  
  4456.  
  4457. Murakami & Maruyama Informational [Page 2]
  4458. RFC 2173 MAPOS June 1997
  4459.  
  4460.  
  4461. the node address is 0 + 01 + 00011, that is, 00100011(0x23). Node N3
  4462. has an address 01001001(0x49), since the switch number of S2 is 0x2
  4463. (10 in binary) and the port number is 0x09. Note that all the port
  4464. numbers are odd because the LSBs are always 1.
  4465.  
  4466. +------+
  4467. | node |
  4468. | N1 |
  4469. +------+
  4470. | 00100011(0x23)
  4471. |
  4472. |0x3 |0x3
  4473. +------+ +---+----+ +---+----+ +------+
  4474. | node +----+ SONET +-------+ SONET +-----+ node |
  4475. | N2 | 0x5| Switch |0x9 0x5| Switch |0x9 | N3 |
  4476. +------+ | S1 | | S2 | +------+
  4477. 00100101(0x25) | 0x1 | | 0x2 | 01001001(0x49)
  4478. +---+----+ +---+----+
  4479. |0x7 |0x7
  4480.  
  4481.  
  4482. Figure 2 Addressing in Multiple Switch Environment
  4483.  
  4484. 4 NSP(Node-Switch Protocol)
  4485.  
  4486. This section describes the NSP protocol used for automatic node
  4487. address assignment.
  4488.  
  4489. 4.1 NSP protocol
  4490.  
  4491. NSP is introduced to provide an automatic node address assignment
  4492. function in MAPOS version 1. It reduces the administrative overhead
  4493. of node address configuration for each node and prevents troubles
  4494. such as address inconsistency and collision. When a node is connected
  4495. to a switch and receives SONET signal correctly, the node sends an
  4496. address request packet to the control processor in the local switch.
  4497. The destination address of this packet is 00000001(0x01). When the
  4498. control processor receives the packet, it replies with an address
  4499. assignment packet. The destination is the assigned node address. If
  4500. the node does not receive the address assignment packet within 5
  4501. seconds, it retransmits the address request packet. The
  4502. retransmission continues until the node successfully receives the
  4503. address assignment packet.
  4504.  
  4505. Whenever a node detects a transmission error such as carrier loss or
  4506. out-of-synchronization, it SHOULD send an address request packet to
  4507. the control processor and verify its current address. In addition, a
  4508. node MUST verify its address by sending address request packets every
  4509.  
  4510.  
  4511.  
  4512. Murakami & Maruyama Informational [Page 3]
  4513. RFC 2173 MAPOS June 1997
  4514.  
  4515.  
  4516. 30 seconds. The switch regards them as keep-alive packets and
  4517. utilizes them to detect the node's status. If it has not received a
  4518. request packet for more than 90 seconds, it assumes that the node
  4519. went down. In addition, it also assumes the node went down when a
  4520. switch detects a SONET signal failure.
  4521.  
  4522. 4.2 Packet Format
  4523.  
  4524. The HDLC protocol field of a NSP frame contains 0xFE03 (hexadecimal)
  4525. as defined by the "MAPOS Version 1 Assigned Numbers" [6]. The
  4526. information field contains the NSP packet as shown in Figure 3.
  4527.  
  4528.  
  4529. +-----------+------------+
  4530. I command I address I
  4531. +-----------+------------+
  4532. I<- 32bit ->I<- 32 bit ->I
  4533.  
  4534. Figure 3 NSP packet format
  4535.  
  4536. The command field is 32 bits long and has the following values (in
  4537. decimal);
  4538.  
  4539. 1 address request
  4540. 2 address assignment
  4541. 3 reject(error)
  4542.  
  4543. The length of the address field is 32bits. In address request
  4544. packets, the NSP address field SHOULD be filled with zeroes, although
  4545. the switch ignores it. In address assignment packets, the assigned
  4546. address is placed in the least significant byte of the field. The
  4547. rest of the field is padded with zeroes. When the switch can not
  4548. assign the address for some reason, the switch replies with a reject
  4549. command (the values is 3). The value of the address field is
  4550. undefined.
  4551.  
  4552. 4.3 Consideration for special cases
  4553.  
  4554. There are two special cases to consider. One is a point-to-point
  4555. connection without a switch. The other is loop-back, that is, direct
  4556. connection between the input and the output of the same port.
  4557.  
  4558. 4.3.1 point-to-point
  4559.  
  4560. In the case of a point-to-point connection shown in Figure 4, a node
  4561. sends an address request packet to the other node. The destination
  4562. address is 00000001(0x01), that is usually a control processor in a
  4563. switch. When a node receives the address request, it detects the
  4564.  
  4565.  
  4566.  
  4567. Murakami & Maruyama Informational [Page 4]
  4568. RFC 2173 MAPOS June 1997
  4569.  
  4570.  
  4571. point-to-point connection by examining both the destination address
  4572. and the command contained. Then, it MUST reply with an address
  4573. assignment packet. The assigned address MUST be 00000011(0x03). Since
  4574. both nodes send an address request to each other, both of them get
  4575. address 00000011(0x03). Since any address can be used in point-to-
  4576. point environment, there is no problem even if both of the nodes have
  4577. the same address.
  4578.  
  4579. ---- address request ----> 0x01
  4580. 0x03 <---- address assignment ----
  4581. +------+ +------+
  4582. | node +--------------------------------+ node |
  4583. +------+ +------+
  4584. 0x01 <---- address request ----
  4585. ---- address assignment ----> 0x03
  4586.  
  4587. Figure 4 Point-to-point connection
  4588.  
  4589. 4.3.2 loop-back
  4590.  
  4591. Another special case is loop-back where the output port of a node is
  4592. simply connected to its input port as shown in Figure 5. In this
  4593. case, the same mechanism as that for point-to-point can be applied
  4594. without modification. A node sends an address request packet
  4595. destined to 00000001(0x01). The node then receives the same packet.
  4596. Since the destination is 00000001(0x01), it replies with an address
  4597. assignment packet, containing the assigned address 00000011(0x03), to
  4598. the address 0000 0011(0x03). Thus, the node obtains the address
  4599. 00000011(0x03).
  4600.  
  4601. ---- address request ----> 0x01
  4602. +------+ --- address assignment --> 0x03
  4603. | +-------------->-----------------+
  4604. | node + |
  4605. | +--------------<-----------------+
  4606. +------+
  4607.  
  4608. Figure 5 Loop-back Configuration
  4609.  
  4610.  
  4611.  
  4612.  
  4613.  
  4614.  
  4615.  
  4616.  
  4617.  
  4618.  
  4619.  
  4620.  
  4621.  
  4622. Murakami & Maruyama Informational [Page 5]
  4623. RFC 2173 MAPOS June 1997
  4624.  
  4625.  
  4626. 5. Security Considerations
  4627.  
  4628. Security issues are not discussed in this memo.
  4629.  
  4630. References
  4631.  
  4632. [1] Murakami, K. and M. Maruyama, "MAPOS - Multiple Access Protocol
  4633. over SONET/SDH, Version 1," RFC-2171, June 1997.
  4634.  
  4635. [2] CCITT Recommendation G.707: Synchronous Digital Hierarchy Bit
  4636. Rates (1990).
  4637.  
  4638. [3] CCITT Recommendation G.708: Network Node Interface for
  4639. Synchronous Digital Hierarchy (1990).
  4640.  
  4641. [4] CCITT Recommendation G.709: Synchronous Multiplexing Structure
  4642. (1990).
  4643.  
  4644. [5] American National Standard for Telecommunications - Digital
  4645. Hierarchy - Optical Interface Rates and Formats Specification,
  4646. ANSI T1.105-1991.
  4647.  
  4648. [6] Maruyama, M. and K. Murakami, "MAPOS Version 1 Assigned
  4649. Numbers," RFC-2172, June, 1997.
  4650.  
  4651. Acknowledgements
  4652.  
  4653. The authors would like to acknowledge the contributions and
  4654. thoughtful suggestions of John P. Mullaney, Clark Bremer, Masayuki
  4655. Kobayashi, Paul Francis, Toshiaki Yoshida, and Takahiro Sajima.
  4656.  
  4657. Authors' Address
  4658.  
  4659. Ken Murakami
  4660. NTT Software Laboratories
  4661. 3-9-11, Midori-cho
  4662. Musashino-shi
  4663. Tokyo 180, Japan
  4664. E-mail: murakami@ntt-20.ecl.net
  4665.  
  4666. Mitsuru Maruyama
  4667. NTT Software Laboratories
  4668. 3-9-11, Midori-cho
  4669. Musashino-shi
  4670. Tokyo 180, Japan
  4671. E-mail: mitsuru@ntt-20.ecl.net
  4672.  
  4673.  
  4674.  
  4675.  
  4676.  
  4677. Murakami & Maruyama Informational [Page 6]
  4678.  
  4679.  
  4680.  
  4681.  
  4682.  
  4683.  
  4684.  
  4685. Network Working Group K. Murakami
  4686. Request for Comments: 2173 M. Maruyama
  4687. Category: Informational NTT Laboratories
  4688. June 1997
  4689.  
  4690.  
  4691. A MAPOS version 1 Extension - Node Switch Protocol
  4692.  
  4693. Status of this Memo
  4694.  
  4695. This memo provides information for the Internet community. This memo
  4696. does not specify an Internet standard of any kind. Distribution of
  4697. this memo is unlimited.
  4698.  
  4699. Abstract
  4700.  
  4701. This document describes a MAPOS extension, Node Switch Protocol, for
  4702. automatic node address assignment. MAPOS is a multiple access
  4703. protocol for transmission of network-protocol datagrams, encapsulated
  4704. in High-Level Data Link Control (HDLC) frames, over SONET/SDH. NSP
  4705. automates the HDLC address configuration of each node. Using NSP, a
  4706. node retrieves its HDLC address from the switch to which it is
  4707. connected.
  4708.  
  4709. 1. Introduction
  4710.  
  4711. MAPOS[1], Multiple Access Protocol over SONET(Synchronous Optical
  4712. Network)/SDH(Synchronous Digital Hierarchy)[2][3][4][5], is a
  4713. protocol for transmission of HDLC frames over SONET/SDH. A SONET
  4714. switch provides multiple access capability to each node. In MAPOS,
  4715. each node has a unique HDLC address within a switch. The address is
  4716. equivalent to the port number of the switch to which the node is
  4717. connected. This document describes an extension to MAPOS, Node
  4718. Switch Protocol, which enable automatic HDLC address assignment.
  4719. First, it explains the addressing of MAPOS. Then, it describes the
  4720. NSP protocol for automatic HDLC node address assignment.
  4721.  
  4722. 2. Node Address Format
  4723.  
  4724. This section describes MAPOS Version 1 address format in single and
  4725. multiple switch environment.
  4726.  
  4727.  
  4728.  
  4729.  
  4730.  
  4731.  
  4732.  
  4733.  
  4734.  
  4735.  
  4736. Murakami & Maruyama Informational [Page 1]
  4737. RFC 2173 MAPOS June 1997
  4738.  
  4739.  
  4740. 2.1 Address Format
  4741.  
  4742. In MAPOS network, each end node has a unique HDLC address. As shown
  4743. in Figure 1, the address length is 8 bits. The LSB is always 1 which
  4744. indicates the end of the field. When a SONET switch receives an HDLC
  4745. frame, it forwards the frame based on the address in the frame
  4746. header.
  4747.  
  4748. In unicast, MSB is 0 and the rest of the bits are the port number to
  4749. which a node is connected. Since the LSB is always 1, the minimum and
  4750. maximum addresses are 0x01 and 0x7F, respectively. Address 0x01 is
  4751. reserved and is assigned to the control processor in a SONET switch.
  4752.  
  4753. In broadcast, MSB is 1 and the rest of the bits are all 1s. In
  4754. multicast, MSB is 1 and the rest of the bits, except for the LSB,
  4755. indicate the group address.
  4756.  
  4757. +-------------+-+
  4758. | | | | | | | | |
  4759. | |port number|1|
  4760. +-+-----------+-+
  4761. ^ ^
  4762. | |
  4763. | +------- EA bit (always 1)
  4764. |
  4765. 1 : broadcast, multicast
  4766. 0 : unicast
  4767.  
  4768. Figure 1 Address format
  4769.  
  4770. 2.2 Address in multi-switch environment
  4771.  
  4772. In a multi-switch environment, variable-length subnet addressing is
  4773. used. Each switch has a switch number that is unique within the
  4774. system. Subnetted node addresses consist of the switch number and the
  4775. port number to which a node is connected. The address format is "0
  4776. <switch number> <node number> 1" for a unicast address, "all 1" for
  4777. the broadcast address, and "1 <group address> 1" for a multicast
  4778. address.
  4779.  
  4780. The address 0x01 is reserved and is assigned to the control processor
  4781. in the "local" switch. That is, it indicates the switch itself to
  4782. which the node is connected. The addresses of the form "0 <switch
  4783. number> <all 0> 1" are reserved, and indicates the control processor
  4784. of the switch designated by the switch number.
  4785.  
  4786. In Figure 2, the switch numbers are two bits long. Node N1 is
  4787. connected to port 0x3 of switch S1 numbered 0x1 (01 in binary). Thus,
  4788.  
  4789.  
  4790.  
  4791. Murakami & Maruyama Informational [Page 2]
  4792. RFC 2173 MAPOS June 1997
  4793.  
  4794.  
  4795. the node address is 0 + 01 + 00011, that is, 00100011(0x23). Node N3
  4796. has an address 01001001(0x49), since the switch number of S2 is 0x2
  4797. (10 in binary) and the port number is 0x09. Note that all the port
  4798. numbers are odd because the LSBs are always 1.
  4799.  
  4800. +------+
  4801. | node |
  4802. | N1 |
  4803. +------+
  4804. | 00100011(0x23)
  4805. |
  4806. |0x3 |0x3
  4807. +------+ +---+----+ +---+----+ +------+
  4808. | node +----+ SONET +-------+ SONET +-----+ node |
  4809. | N2 | 0x5| Switch |0x9 0x5| Switch |0x9 | N3 |
  4810. +------+ | S1 | | S2 | +------+
  4811. 00100101(0x25) | 0x1 | | 0x2 | 01001001(0x49)
  4812. +---+----+ +---+----+
  4813. |0x7 |0x7
  4814.  
  4815.  
  4816. Figure 2 Addressing in Multiple Switch Environment
  4817.  
  4818. 4 NSP(Node-Switch Protocol)
  4819.  
  4820. This section describes the NSP protocol used for automatic node
  4821. address assignment.
  4822.  
  4823. 4.1 NSP protocol
  4824.  
  4825. NSP is introduced to provide an automatic node address assignment
  4826. function in MAPOS version 1. It reduces the administrative overhead
  4827. of node address configuration for each node and prevents troubles
  4828. such as address inconsistency and collision. When a node is connected
  4829. to a switch and receives SONET signal correctly, the node sends an
  4830. address request packet to the control processor in the local switch.
  4831. The destination address of this packet is 00000001(0x01). When the
  4832. control processor receives the packet, it replies with an address
  4833. assignment packet. The destination is the assigned node address. If
  4834. the node does not receive the address assignment packet within 5
  4835. seconds, it retransmits the address request packet. The
  4836. retransmission continues until the node successfully receives the
  4837. address assignment packet.
  4838.  
  4839. Whenever a node detects a transmission error such as carrier loss or
  4840. out-of-synchronization, it SHOULD send an address request packet to
  4841. the control processor and verify its current address. In addition, a
  4842. node MUST verify its address by sending address request packets every
  4843.  
  4844.  
  4845.  
  4846. Murakami & Maruyama Informational [Page 3]
  4847. RFC 2173 MAPOS June 1997
  4848.  
  4849.  
  4850. 30 seconds. The switch regards them as keep-alive packets and
  4851. utilizes them to detect the node's status. If it has not received a
  4852. request packet for more than 90 seconds, it assumes that the node
  4853. went down. In addition, it also assumes the node went down when a
  4854. switch detects a SONET signal failure.
  4855.  
  4856. 4.2 Packet Format
  4857.  
  4858. The HDLC protocol field of a NSP frame contains 0xFE03 (hexadecimal)
  4859. as defined by the "MAPOS Version 1 Assigned Numbers" [6]. The
  4860. information field contains the NSP packet as shown in Figure 3.
  4861.  
  4862.  
  4863. +-----------+------------+
  4864. I command I address I
  4865. +-----------+------------+
  4866. I<- 32bit ->I<- 32 bit ->I
  4867.  
  4868. Figure 3 NSP packet format
  4869.  
  4870. The command field is 32 bits long and has the following values (in
  4871. decimal);
  4872.  
  4873. 1 address request
  4874. 2 address assignment
  4875. 3 reject(error)
  4876.  
  4877. The length of the address field is 32bits. In address request
  4878. packets, the NSP address field SHOULD be filled with zeroes, although
  4879. the switch ignores it. In address assignment packets, the assigned
  4880. address is placed in the least significant byte of the field. The
  4881. rest of the field is padded with zeroes. When the switch can not
  4882. assign the address for some reason, the switch replies with a reject
  4883. command (the values is 3). The value of the address field is
  4884. undefined.
  4885.  
  4886. 4.3 Consideration for special cases
  4887.  
  4888. There are two special cases to consider. One is a point-to-point
  4889. connection without a switch. The other is loop-back, that is, direct
  4890. connection between the input and the output of the same port.
  4891.  
  4892. 4.3.1 point-to-point
  4893.  
  4894. In the case of a point-to-point connection shown in Figure 4, a node
  4895. sends an address request packet to the other node. The destination
  4896. address is 00000001(0x01), that is usually a control processor in a
  4897. switch. When a node receives the address request, it detects the
  4898.  
  4899.  
  4900.  
  4901. Murakami & Maruyama Informational [Page 4]
  4902. RFC 2173 MAPOS June 1997
  4903.  
  4904.  
  4905. point-to-point connection by examining both the destination address
  4906. and the command contained. Then, it MUST reply with an address
  4907. assignment packet. The assigned address MUST be 00000011(0x03). Since
  4908. both nodes send an address request to each other, both of them get
  4909. address 00000011(0x03). Since any address can be used in point-to-
  4910. point environment, there is no problem even if both of the nodes have
  4911. the same address.
  4912.  
  4913. ---- address request ----> 0x01
  4914. 0x03 <---- address assignment ----
  4915. +------+ +------+
  4916. | node +--------------------------------+ node |
  4917. +------+ +------+
  4918. 0x01 <---- address request ----
  4919. ---- address assignment ----> 0x03
  4920.  
  4921. Figure 4 Point-to-point connection
  4922.  
  4923. 4.3.2 loop-back
  4924.  
  4925. Another special case is loop-back where the output port of a node is
  4926. simply connected to its input port as shown in Figure 5. In this
  4927. case, the same mechanism as that for point-to-point can be applied
  4928. without modification. A node sends an address request packet
  4929. destined to 00000001(0x01). The node then receives the same packet.
  4930. Since the destination is 00000001(0x01), it replies with an address
  4931. assignment packet, containing the assigned address 00000011(0x03), to
  4932. the address 0000 0011(0x03). Thus, the node obtains the address
  4933. 00000011(0x03).
  4934.  
  4935. ---- address request ----> 0x01
  4936. +------+ --- address assignment --> 0x03
  4937. | +-------------->-----------------+
  4938. | node + |
  4939. | +--------------<-----------------+
  4940. +------+
  4941.  
  4942. Figure 5 Loop-back Configuration
  4943.  
  4944.  
  4945.  
  4946.  
  4947.  
  4948.  
  4949.  
  4950.  
  4951.  
  4952.  
  4953.  
  4954.  
  4955.  
  4956. Murakami & Maruyama Informational [Page 5]
  4957. RFC 2173 MAPOS June 1997
  4958.  
  4959.  
  4960. 5. Security Considerations
  4961.  
  4962. Security issues are not discussed in this memo.
  4963.  
  4964. References
  4965.  
  4966. [1] Murakami, K. and M. Maruyama, "MAPOS - Multiple Access Protocol
  4967. over SONET/SDH, Version 1," RFC-2171, June 1997.
  4968.  
  4969. [2] CCITT Recommendation G.707: Synchronous Digital Hierarchy Bit
  4970. Rates (1990).
  4971.  
  4972. [3] CCITT Recommendation G.708: Network Node Interface for
  4973. Synchronous Digital Hierarchy (1990).
  4974.  
  4975. [4] CCITT Recommendation G.709: Synchronous Multiplexing Structure
  4976. (1990).
  4977.  
  4978. [5] American National Standard for Telecommunications - Digital
  4979. Hierarchy - Optical Interface Rates and Formats Specification,
  4980. ANSI T1.105-1991.
  4981.  
  4982. [6] Maruyama, M. and K. Murakami, "MAPOS Version 1 Assigned
  4983. Numbers," RFC-2172, June, 1997.
  4984.  
  4985. Acknowledgements
  4986.  
  4987. The authors would like to acknowledge the contributions and
  4988. thoughtful suggestions of John P. Mullaney, Clark Bremer, Masayuki
  4989. Kobayashi, Paul Francis, Toshiaki Yoshida, and Takahiro Sajima.
  4990.  
  4991. Authors' Address
  4992.  
  4993. Ken Murakami
  4994. NTT Software Laboratories
  4995. 3-9-11, Midori-cho
  4996. Musashino-shi
  4997. Tokyo 180, Japan
  4998. E-mail: murakami@ntt-20.ecl.net
  4999.  
  5000. Mitsuru Maruyama
  5001. NTT Software Laboratories
  5002. 3-9-11, Midori-cho
  5003. Musashino-shi
  5004. Tokyo 180, Japan
  5005. E-mail: mitsuru@ntt-20.ecl.net
  5006.  
  5007.  
  5008.  
  5009.  
  5010.  
  5011. Murakami & Maruyama Informational [Page 6]
  5012.  
  5013.  
  5014.  
  5015.  
  5016.  
  5017.  
  5018.  
  5019. Network Working Group K. Murakami
  5020. Request for Comments: 2173 M. Maruyama
  5021. Category: Informational NTT Laboratories
  5022. June 1997
  5023.  
  5024.  
  5025. A MAPOS version 1 Extension - Node Switch Protocol
  5026.  
  5027. Status of this Memo
  5028.  
  5029. This memo provides information for the Internet community. This memo
  5030. does not specify an Internet standard of any kind. Distribution of
  5031. this memo is unlimited.
  5032.  
  5033. Abstract
  5034.  
  5035. This document describes a MAPOS extension, Node Switch Protocol, for
  5036. automatic node address assignment. MAPOS is a multiple access
  5037. protocol for transmission of network-protocol datagrams, encapsulated
  5038. in High-Level Data Link Control (HDLC) frames, over SONET/SDH. NSP
  5039. automates the HDLC address configuration of each node. Using NSP, a
  5040. node retrieves its HDLC address from the switch to which it is
  5041. connected.
  5042.  
  5043. 1. Introduction
  5044.  
  5045. MAPOS[1], Multiple Access Protocol over SONET(Synchronous Optical
  5046. Network)/SDH(Synchronous Digital Hierarchy)[2][3][4][5], is a
  5047. protocol for transmission of HDLC frames over SONET/SDH. A SONET
  5048. switch provides multiple access capability to each node. In MAPOS,
  5049. each node has a unique HDLC address within a switch. The address is
  5050. equivalent to the port number of the switch to which the node is
  5051. connected. This document describes an extension to MAPOS, Node
  5052. Switch Protocol, which enable automatic HDLC address assignment.
  5053. First, it explains the addressing of MAPOS. Then, it describes the
  5054. NSP protocol for automatic HDLC node address assignment.
  5055.  
  5056. 2. Node Address Format
  5057.  
  5058. This section describes MAPOS Version 1 address format in single and
  5059. multiple switch environment.
  5060.  
  5061.  
  5062.  
  5063.  
  5064.  
  5065.  
  5066.  
  5067.  
  5068.  
  5069.  
  5070. Murakami & Maruyama Informational [Page 1]
  5071. RFC 2173 MAPOS June 1997
  5072.  
  5073.  
  5074. 2.1 Address Format
  5075.  
  5076. In MAPOS network, each end node has a unique HDLC address. As shown
  5077. in Figure 1, the address length is 8 bits. The LSB is always 1 which
  5078. indicates the end of the field. When a SONET switch receives an HDLC
  5079. frame, it forwards the frame based on the address in the frame
  5080. header.
  5081.  
  5082. In unicast, MSB is 0 and the rest of the bits are the port number to
  5083. which a node is connected. Since the LSB is always 1, the minimum and
  5084. maximum addresses are 0x01 and 0x7F, respectively. Address 0x01 is
  5085. reserved and is assigned to the control processor in a SONET switch.
  5086.  
  5087. In broadcast, MSB is 1 and the rest of the bits are all 1s. In
  5088. multicast, MSB is 1 and the rest of the bits, except for the LSB,
  5089. indicate the group address.
  5090.  
  5091. +-------------+-+
  5092. | | | | | | | | |
  5093. | |port number|1|
  5094. +-+-----------+-+
  5095. ^ ^
  5096. | |
  5097. | +------- EA bit (always 1)
  5098. |
  5099. 1 : broadcast, multicast
  5100. 0 : unicast
  5101.  
  5102. Figure 1 Address format
  5103.  
  5104. 2.2 Address in multi-switch environment
  5105.  
  5106. In a multi-switch environment, variable-length subnet addressing is
  5107. used. Each switch has a switch number that is unique within the
  5108. system. Subnetted node addresses consist of the switch number and the
  5109. port number to which a node is connected. The address format is "0
  5110. <switch number> <node number> 1" for a unicast address, "all 1" for
  5111. the broadcast address, and "1 <group address> 1" for a multicast
  5112. address.
  5113.  
  5114. The address 0x01 is reserved and is assigned to the control processor
  5115. in the "local" switch. That is, it indicates the switch itself to
  5116. which the node is connected. The addresses of the form "0 <switch
  5117. number> <all 0> 1" are reserved, and indicates the control processor
  5118. of the switch designated by the switch number.
  5119.  
  5120. In Figure 2, the switch numbers are two bits long. Node N1 is
  5121. connected to port 0x3 of switch S1 numbered 0x1 (01 in binary). Thus,
  5122.  
  5123.  
  5124.  
  5125. Murakami & Maruyama Informational [Page 2]
  5126. RFC 2173 MAPOS June 1997
  5127.  
  5128.  
  5129. the node address is 0 + 01 + 00011, that is, 00100011(0x23). Node N3
  5130. has an address 01001001(0x49), since the switch number of S2 is 0x2
  5131. (10 in binary) and the port number is 0x09. Note that all the port
  5132. numbers are odd because the LSBs are always 1.
  5133.  
  5134. +------+
  5135. | node |
  5136. | N1 |
  5137. +------+
  5138. | 00100011(0x23)
  5139. |
  5140. |0x3 |0x3
  5141. +------+ +---+----+ +---+----+ +------+
  5142. | node +----+ SONET +-------+ SONET +-----+ node |
  5143. | N2 | 0x5| Switch |0x9 0x5| Switch |0x9 | N3 |
  5144. +------+ | S1 | | S2 | +------+
  5145. 00100101(0x25) | 0x1 | | 0x2 | 01001001(0x49)
  5146. +---+----+ +---+----+
  5147. |0x7 |0x7
  5148.  
  5149.  
  5150. Figure 2 Addressing in Multiple Switch Environment
  5151.  
  5152. 4 NSP(Node-Switch Protocol)
  5153.  
  5154. This section describes the NSP protocol used for automatic node
  5155. address assignment.
  5156.  
  5157. 4.1 NSP protocol
  5158.  
  5159. NSP is introduced to provide an automatic node address assignment
  5160. function in MAPOS version 1. It reduces the administrative overhead
  5161. of node address configuration for each node and prevents troubles
  5162. such as address inconsistency and collision. When a node is connected
  5163. to a switch and receives SONET signal correctly, the node sends an
  5164. address request packet to the control processor in the local switch.
  5165. The destination address of this packet is 00000001(0x01). When the
  5166. control processor receives the packet, it replies with an address
  5167. assignment packet. The destination is the assigned node address. If
  5168. the node does not receive the address assignment packet within 5
  5169. seconds, it retransmits the address request packet. The
  5170. retransmission continues until the node successfully receives the
  5171. address assignment packet.
  5172.  
  5173. Whenever a node detects a transmission error such as carrier loss or
  5174. out-of-synchronization, it SHOULD send an address request packet to
  5175. the control processor and verify its current address. In addition, a
  5176. node MUST verify its address by sending address request packets every
  5177.  
  5178.  
  5179.  
  5180. Murakami & Maruyama Informational [Page 3]
  5181. RFC 2173 MAPOS June 1997
  5182.  
  5183.  
  5184. 30 seconds. The switch regards them as keep-alive packets and
  5185. utilizes them to detect the node's status. If it has not received a
  5186. request packet for more than 90 seconds, it assumes that the node
  5187. went down. In addition, it also assumes the node went down when a
  5188. switch detects a SONET signal failure.
  5189.  
  5190. 4.2 Packet Format
  5191.  
  5192. The HDLC protocol field of a NSP frame contains 0xFE03 (hexadecimal)
  5193. as defined by the "MAPOS Version 1 Assigned Numbers" [6]. The
  5194. information field contains the NSP packet as shown in Figure 3.
  5195.  
  5196.  
  5197. +-----------+------------+
  5198. I command I address I
  5199. +-----------+------------+
  5200. I<- 32bit ->I<- 32 bit ->I
  5201.  
  5202. Figure 3 NSP packet format
  5203.  
  5204. The command field is 32 bits long and has the following values (in
  5205. decimal);
  5206.  
  5207. 1 address request
  5208. 2 address assignment
  5209. 3 reject(error)
  5210.  
  5211. The length of the address field is 32bits. In address request
  5212. packets, the NSP address field SHOULD be filled with zeroes, although
  5213. the switch ignores it. In address assignment packets, the assigned
  5214. address is placed in the least significant byte of the field. The
  5215. rest of the field is padded with zeroes. When the switch can not
  5216. assign the address for some reason, the switch replies with a reject
  5217. command (the values is 3). The value of the address field is
  5218. undefined.
  5219.  
  5220. 4.3 Consideration for special cases
  5221.  
  5222. There are two special cases to consider. One is a point-to-point
  5223. connection without a switch. The other is loop-back, that is, direct
  5224. connection between the input and the output of the same port.
  5225.  
  5226. 4.3.1 point-to-point
  5227.  
  5228. In the case of a point-to-point connection shown in Figure 4, a node
  5229. sends an address request packet to the other node. The destination
  5230. address is 00000001(0x01), that is usually a control processor in a
  5231. switch. When a node receives the address request, it detects the
  5232.  
  5233.  
  5234.  
  5235. Murakami & Maruyama Informational [Page 4]
  5236. RFC 2173 MAPOS June 1997
  5237.  
  5238.  
  5239. point-to-point connection by examining both the destination address
  5240. and the command contained. Then, it MUST reply with an address
  5241. assignment packet. The assigned address MUST be 00000011(0x03). Since
  5242. both nodes send an address request to each other, both of them get
  5243. address 00000011(0x03). Since any address can be used in point-to-
  5244. point environment, there is no problem even if both of the nodes have
  5245. the same address.
  5246.  
  5247. ---- address request ----> 0x01
  5248. 0x03 <---- address assignment ----
  5249. +------+ +------+
  5250. | node +--------------------------------+ node |
  5251. +------+ +------+
  5252. 0x01 <---- address request ----
  5253. ---- address assignment ----> 0x03
  5254.  
  5255. Figure 4 Point-to-point connection
  5256.  
  5257. 4.3.2 loop-back
  5258.  
  5259. Another special case is loop-back where the output port of a node is
  5260. simply connected to its input port as shown in Figure 5. In this
  5261. case, the same mechanism as that for point-to-point can be applied
  5262. without modification. A node sends an address request packet
  5263. destined to 00000001(0x01). The node then receives the same packet.
  5264. Since the destination is 00000001(0x01), it replies with an address
  5265. assignment packet, containing the assigned address 00000011(0x03), to
  5266. the address 0000 0011(0x03). Thus, the node obtains the address
  5267. 00000011(0x03).
  5268.  
  5269. ---- address request ----> 0x01
  5270. +------+ --- address assignment --> 0x03
  5271. | +-------------->-----------------+
  5272. | node + |
  5273. | +--------------<-----------------+
  5274. +------+
  5275.  
  5276. Figure 5 Loop-back Configuration
  5277.  
  5278.  
  5279.  
  5280.  
  5281.  
  5282.  
  5283.  
  5284.  
  5285.  
  5286.  
  5287.  
  5288.  
  5289.  
  5290. Murakami & Maruyama Informational [Page 5]
  5291. RFC 2173 MAPOS June 1997
  5292.  
  5293.  
  5294. 5. Security Considerations
  5295.  
  5296. Security issues are not discussed in this memo.
  5297.  
  5298. References
  5299.  
  5300. [1] Murakami, K. and M. Maruyama, "MAPOS - Multiple Access Protocol
  5301. over SONET/SDH, Version 1," RFC-2171, June 1997.
  5302.  
  5303. [2] CCITT Recommendation G.707: Synchronous Digital Hierarchy Bit
  5304. Rates (1990).
  5305.  
  5306. [3] CCITT Recommendation G.708: Network Node Interface for
  5307. Synchronous Digital Hierarchy (1990).
  5308.  
  5309. [4] CCITT Recommendation G.709: Synchronous Multiplexing Structure
  5310. (1990).
  5311.  
  5312. [5] American National Standard for Telecommunications - Digital
  5313. Hierarchy - Optical Interface Rates and Formats Specification,
  5314. ANSI T1.105-1991.
  5315.  
  5316. [6] Maruyama, M. and K. Murakami, "MAPOS Version 1 Assigned
  5317. Numbers," RFC-2172, June, 1997.
  5318.  
  5319. Acknowledgements
  5320.  
  5321. The authors would like to acknowledge the contributions and
  5322. thoughtful suggestions of John P. Mullaney, Clark Bremer, Masayuki
  5323. Kobayashi, Paul Francis, Toshiaki Yoshida, and Takahiro Sajima.
  5324.  
  5325. Authors' Address
  5326.  
  5327. Ken Murakami
  5328. NTT Software Laboratories
  5329. 3-9-11, Midori-cho
  5330. Musashino-shi
  5331. Tokyo 180, Japan
  5332. E-mail: murakami@ntt-20.ecl.net
  5333.  
  5334. Mitsuru Maruyama
  5335. NTT Software Laboratories
  5336. 3-9-11, Midori-cho
  5337. Musashino-shi
  5338. Tokyo 180, Japan
  5339. E-mail: mitsuru@ntt-20.ecl.net
  5340.  
  5341.  
  5342.  
  5343.  
  5344.  
  5345. Murakami & Maruyama Informational [Page 6]
  5346.  
  5347.  
  5348.  
  5349.  
  5350.  
  5351.  
  5352.  
  5353. Network Working Group K. Murakami
  5354. Request for Comments: 2173 M. Maruyama
  5355. Category: Informational NTT Laboratories
  5356. June 1997
  5357.  
  5358.  
  5359. A MAPOS version 1 Extension - Node Switch Protocol
  5360.  
  5361. Status of this Memo
  5362.  
  5363. This memo provides information for the Internet community. This memo
  5364. does not specify an Internet standard of any kind. Distribution of
  5365. this memo is unlimited.
  5366.  
  5367. Abstract
  5368.  
  5369. This document describes a MAPOS extension, Node Switch Protocol, for
  5370. automatic node address assignment. MAPOS is a multiple access
  5371. protocol for transmission of network-protocol datagrams, encapsulated
  5372. in High-Level Data Link Control (HDLC) frames, over SONET/SDH. NSP
  5373. automates the HDLC address configuration of each node. Using NSP, a
  5374. node retrieves its HDLC address from the switch to which it is
  5375. connected.
  5376.  
  5377. 1. Introduction
  5378.  
  5379. MAPOS[1], Multiple Access Protocol over SONET(Synchronous Optical
  5380. Network)/SDH(Synchronous Digital Hierarchy)[2][3][4][5], is a
  5381. protocol for transmission of HDLC frames over SONET/SDH. A SONET
  5382. switch provides multiple access capability to each node. In MAPOS,
  5383. each node has a unique HDLC address within a switch. The address is
  5384. equivalent to the port number of the switch to which the node is
  5385. connected. This document describes an extension to MAPOS, Node
  5386. Switch Protocol, which enable automatic HDLC address assignment.
  5387. First, it explains the addressing of MAPOS. Then, it describes the
  5388. NSP protocol for automatic HDLC node address assignment.
  5389.  
  5390. 2. Node Address Format
  5391.  
  5392. This section describes MAPOS Version 1 address format in single and
  5393. multiple switch environment.
  5394.  
  5395.  
  5396.  
  5397.  
  5398.  
  5399.  
  5400.  
  5401.  
  5402.  
  5403.  
  5404. Murakami & Maruyama Informational [Page 1]
  5405. RFC 2173 MAPOS June 1997
  5406.  
  5407.  
  5408. 2.1 Address Format
  5409.  
  5410. In MAPOS network, each end node has a unique HDLC address. As shown
  5411. in Figure 1, the address length is 8 bits. The LSB is always 1 which
  5412. indicates the end of the field. When a SONET switch receives an HDLC
  5413. frame, it forwards the frame based on the address in the frame
  5414. header.
  5415.  
  5416. In unicast, MSB is 0 and the rest of the bits are the port number to
  5417. which a node is connected. Since the LSB is always 1, the minimum and
  5418. maximum addresses are 0x01 and 0x7F, respectively. Address 0x01 is
  5419. reserved and is assigned to the control processor in a SONET switch.
  5420.  
  5421. In broadcast, MSB is 1 and the rest of the bits are all 1s. In
  5422. multicast, MSB is 1 and the rest of the bits, except for the LSB,
  5423. indicate the group address.
  5424.  
  5425. +-------------+-+
  5426. | | | | | | | | |
  5427. | |port number|1|
  5428. +-+-----------+-+
  5429. ^ ^
  5430. | |
  5431. | +------- EA bit (always 1)
  5432. |
  5433. 1 : broadcast, multicast
  5434. 0 : unicast
  5435.  
  5436. Figure 1 Address format
  5437.  
  5438. 2.2 Address in multi-switch environment
  5439.  
  5440. In a multi-switch environment, variable-length subnet addressing is
  5441. used. Each switch has a switch number that is unique within the
  5442. system. Subnetted node addresses consist of the switch number and the
  5443. port number to which a node is connected. The address format is "0
  5444. <switch number> <node number> 1" for a unicast address, "all 1" for
  5445. the broadcast address, and "1 <group address> 1" for a multicast
  5446. address.
  5447.  
  5448. The address 0x01 is reserved and is assigned to the control processor
  5449. in the "local" switch. That is, it indicates the switch itself to
  5450. which the node is connected. The addresses of the form "0 <switch
  5451. number> <all 0> 1" are reserved, and indicates the control processor
  5452. of the switch designated by the switch number.
  5453.  
  5454. In Figure 2, the switch numbers are two bits long. Node N1 is
  5455. connected to port 0x3 of switch S1 numbered 0x1 (01 in binary). Thus,
  5456.  
  5457.  
  5458.  
  5459. Murakami & Maruyama Informational [Page 2]
  5460. RFC 2173 MAPOS June 1997
  5461.  
  5462.  
  5463. the node address is 0 + 01 + 00011, that is, 00100011(0x23). Node N3
  5464. has an address 01001001(0x49), since the switch number of S2 is 0x2
  5465. (10 in binary) and the port number is 0x09. Note that all the port
  5466. numbers are odd because the LSBs are always 1.
  5467.  
  5468. +------+
  5469. | node |
  5470. | N1 |
  5471. +------+
  5472. | 00100011(0x23)
  5473. |
  5474. |0x3 |0x3
  5475. +------+ +---+----+ +---+----+ +------+
  5476. | node +----+ SONET +-------+ SONET +-----+ node |
  5477. | N2 | 0x5| Switch |0x9 0x5| Switch |0x9 | N3 |
  5478. +------+ | S1 | | S2 | +------+
  5479. 00100101(0x25) | 0x1 | | 0x2 | 01001001(0x49)
  5480. +---+----+ +---+----+
  5481. |0x7 |0x7
  5482.  
  5483.  
  5484. Figure 2 Addressing in Multiple Switch Environment
  5485.  
  5486. 4 NSP(Node-Switch Protocol)
  5487.  
  5488. This section describes the NSP protocol used for automatic node
  5489. address assignment.
  5490.  
  5491. 4.1 NSP protocol
  5492.  
  5493. NSP is introduced to provide an automatic node address assignment
  5494. function in MAPOS version 1. It reduces the administrative overhead
  5495. of node address configuration for each node and prevents troubles
  5496. such as address inconsistency and collision. When a node is connected
  5497. to a switch and receives SONET signal correctly, the node sends an
  5498. address request packet to the control processor in the local switch.
  5499. The destination address of this packet is 00000001(0x01). When the
  5500. control processor receives the packet, it replies with an address
  5501. assignment packet. The destination is the assigned node address. If
  5502. the node does not receive the address assignment packet within 5
  5503. seconds, it retransmits the address request packet. The
  5504. retransmission continues until the node successfully receives the
  5505. address assignment packet.
  5506.  
  5507. Whenever a node detects a transmission error such as carrier loss or
  5508. out-of-synchronization, it SHOULD send an address request packet to
  5509. the control processor and verify its current address. In addition, a
  5510. node MUST verify its address by sending address request packets every
  5511.  
  5512.  
  5513.  
  5514. Murakami & Maruyama Informational [Page 3]
  5515. RFC 2173 MAPOS June 1997
  5516.  
  5517.  
  5518. 30 seconds. The switch regards them as keep-alive packets and
  5519. utilizes them to detect the node's status. If it has not received a
  5520. request packet for more than 90 seconds, it assumes that the node
  5521. went down. In addition, it also assumes the node went down when a
  5522. switch detects a SONET signal failure.
  5523.  
  5524. 4.2 Packet Format
  5525.  
  5526. The HDLC protocol field of a NSP frame contains 0xFE03 (hexadecimal)
  5527. as defined by the "MAPOS Version 1 Assigned Numbers" [6]. The
  5528. information field contains the NSP packet as shown in Figure 3.
  5529.  
  5530.  
  5531. +-----------+------------+
  5532. I command I address I
  5533. +-----------+------------+
  5534. I<- 32bit ->I<- 32 bit ->I
  5535.  
  5536. Figure 3 NSP packet format
  5537.  
  5538. The command field is 32 bits long and has the following values (in
  5539. decimal);
  5540.  
  5541. 1 address request
  5542. 2 address assignment
  5543. 3 reject(error)
  5544.  
  5545. The length of the address field is 32bits. In address request
  5546. packets, the NSP address field SHOULD be filled with zeroes, although
  5547. the switch ignores it. In address assignment packets, the assigned
  5548. address is placed in the least significant byte of the field. The
  5549. rest of the field is padded with zeroes. When the switch can not
  5550. assign the address for some reason, the switch replies with a reject
  5551. command (the values is 3). The value of the address field is
  5552. undefined.
  5553.  
  5554. 4.3 Consideration for special cases
  5555.  
  5556. There are two special cases to consider. One is a point-to-point
  5557. connection without a switch. The other is loop-back, that is, direct
  5558. connection between the input and the output of the same port.
  5559.  
  5560. 4.3.1 point-to-point
  5561.  
  5562. In the case of a point-to-point connection shown in Figure 4, a node
  5563. sends an address request packet to the other node. The destination
  5564. address is 00000001(0x01), that is usually a control processor in a
  5565. switch. When a node receives the address request, it detects the
  5566.  
  5567.  
  5568.  
  5569. Murakami & Maruyama Informational [Page 4]
  5570. RFC 2173 MAPOS June 1997
  5571.  
  5572.  
  5573. point-to-point connection by examining both the destination address
  5574. and the command contained. Then, it MUST reply with an address
  5575. assignment packet. The assigned address MUST be 00000011(0x03). Since
  5576. both nodes send an address request to each other, both of them get
  5577. address 00000011(0x03). Since any address can be used in point-to-
  5578. point environment, there is no problem even if both of the nodes have
  5579. the same address.
  5580.  
  5581. ---- address request ----> 0x01
  5582. 0x03 <---- address assignment ----
  5583. +------+ +------+
  5584. | node +--------------------------------+ node |
  5585. +------+ +------+
  5586. 0x01 <---- address request ----
  5587. ---- address assignment ----> 0x03
  5588.  
  5589. Figure 4 Point-to-point connection
  5590.  
  5591. 4.3.2 loop-back
  5592.  
  5593. Another special case is loop-back where the output port of a node is
  5594. simply connected to its input port as shown in Figure 5. In this
  5595. case, the same mechanism as that for point-to-point can be applied
  5596. without modification. A node sends an address request packet
  5597. destined to 00000001(0x01). The node then receives the same packet.
  5598. Since the destination is 00000001(0x01), it replies with an address
  5599. assignment packet, containing the assigned address 00000011(0x03), to
  5600. the address 0000 0011(0x03). Thus, the node obtains the address
  5601. 00000011(0x03).
  5602.  
  5603. ---- address request ----> 0x01
  5604. +------+ --- address assignment --> 0x03
  5605. | +-------------->-----------------+
  5606. | node + |
  5607. | +--------------<-----------------+
  5608. +------+
  5609.  
  5610. Figure 5 Loop-back Configuration
  5611.  
  5612.  
  5613.  
  5614.  
  5615.  
  5616.  
  5617.  
  5618.  
  5619.  
  5620.  
  5621.  
  5622.  
  5623.  
  5624. Murakami & Maruyama Informational [Page 5]
  5625. RFC 2173 MAPOS June 1997
  5626.  
  5627.  
  5628. 5. Security Considerations
  5629.  
  5630. Security issues are not discussed in this memo.
  5631.  
  5632. References
  5633.  
  5634. [1] Murakami, K. and M. Maruyama, "MAPOS - Multiple Access Protocol
  5635. over SONET/SDH, Version 1," RFC-2171, June 1997.
  5636.  
  5637. [2] CCITT Recommendation G.707: Synchronous Digital Hierarchy Bit
  5638. Rates (1990).
  5639.  
  5640. [3] CCITT Recommendation G.708: Network Node Interface for
  5641. Synchronous Digital Hierarchy (1990).
  5642.  
  5643. [4] CCITT Recommendation G.709: Synchronous Multiplexing Structure
  5644. (1990).
  5645.  
  5646. [5] American National Standard for Telecommunications - Digital
  5647. Hierarchy - Optical Interface Rates and Formats Specification,
  5648. ANSI T1.105-1991.
  5649.  
  5650. [6] Maruyama, M. and K. Murakami, "MAPOS Version 1 Assigned
  5651. Numbers," RFC-2172, June, 1997.
  5652.  
  5653. Acknowledgements
  5654.  
  5655. The authors would like to acknowledge the contributions and
  5656. thoughtful suggestions of John P. Mullaney, Clark Bremer, Masayuki
  5657. Kobayashi, Paul Francis, Toshiaki Yoshida, and Takahiro Sajima.
  5658.  
  5659. Authors' Address
  5660.  
  5661. Ken Murakami
  5662. NTT Software Laboratories
  5663. 3-9-11, Midori-cho
  5664. Musashino-shi
  5665. Tokyo 180, Japan
  5666. E-mail: murakami@ntt-20.ecl.net
  5667.  
  5668. Mitsuru Maruyama
  5669. NTT Software Laboratories
  5670. 3-9-11, Midori-cho
  5671. Musashino-shi
  5672. Tokyo 180, Japan
  5673. E-mail: mitsuru@ntt-20.ecl.net
  5674.  
  5675.  
  5676.  
  5677.  
  5678.  
  5679. Murakami & Maruyama Informational [Page 6]
  5680.  
  5681.  
  5682.  
  5683.  
  5684.  
  5685.  
  5686.  
  5687. Network Working Group K. Murakami
  5688. Request for Comments: 2173 M. Maruyama
  5689. Category: Informational NTT Laboratories
  5690. June 1997
  5691.  
  5692.  
  5693. A MAPOS version 1 Extension - Node Switch Protocol
  5694.  
  5695. Status of this Memo
  5696.  
  5697. This memo provides information for the Internet community. This memo
  5698. does not specify an Internet standard of any kind. Distribution of
  5699. this memo is unlimited.
  5700.  
  5701. Abstract
  5702.  
  5703. This document describes a MAPOS extension, Node Switch Protocol, for
  5704. automatic node address assignment. MAPOS is a multiple access
  5705. protocol for transmission of network-protocol datagrams, encapsulated
  5706. in High-Level Data Link Control (HDLC) frames, over SONET/SDH. NSP
  5707. automates the HDLC address configuration of each node. Using NSP, a
  5708. node retrieves its HDLC address from the switch to which it is
  5709. connected.
  5710.  
  5711. 1. Introduction
  5712.  
  5713. MAPOS[1], Multiple Access Protocol over SONET(Synchronous Optical
  5714. Network)/SDH(Synchronous Digital Hierarchy)[2][3][4][5], is a
  5715. protocol for transmission of HDLC frames over SONET/SDH. A SONET
  5716. switch provides multiple access capability to each node. In MAPOS,
  5717. each node has a unique HDLC address within a switch. The address is
  5718. equivalent to the port number of the switch to which the node is
  5719. connected. This document describes an extension to MAPOS, Node
  5720. Switch Protocol, which enable automatic HDLC address assignment.
  5721. First, it explains the addressing of MAPOS. Then, it describes the
  5722. NSP protocol for automatic HDLC node address assignment.
  5723.  
  5724. 2. Node Address Format
  5725.  
  5726. This section describes MAPOS Version 1 address format in single and
  5727. multiple switch environment.
  5728.  
  5729.  
  5730.  
  5731.  
  5732.  
  5733.  
  5734.  
  5735.  
  5736.  
  5737.  
  5738. Murakami & Maruyama Informational [Page 1]
  5739. RFC 2173 MAPOS June 1997
  5740.  
  5741.  
  5742. 2.1 Address Format
  5743.  
  5744. In MAPOS network, each end node has a unique HDLC address. As shown
  5745. in Figure 1, the address length is 8 bits. The LSB is always 1 which
  5746. indicates the end of the field. When a SONET switch receives an HDLC
  5747. frame, it forwards the frame based on the address in the frame
  5748. header.
  5749.  
  5750. In unicast, MSB is 0 and the rest of the bits are the port number to
  5751. which a node is connected. Since the LSB is always 1, the minimum and
  5752. maximum addresses are 0x01 and 0x7F, respectively. Address 0x01 is
  5753. reserved and is assigned to the control processor in a SONET switch.
  5754.  
  5755. In broadcast, MSB is 1 and the rest of the bits are all 1s. In
  5756. multicast, MSB is 1 and the rest of the bits, except for the LSB,
  5757. indicate the group address.
  5758.  
  5759. +-------------+-+
  5760. | | | | | | | | |
  5761. | |port number|1|
  5762. +-+-----------+-+
  5763. ^ ^
  5764. | |
  5765. | +------- EA bit (always 1)
  5766. |
  5767. 1 : broadcast, multicast
  5768. 0 : unicast
  5769.  
  5770. Figure 1 Address format
  5771.  
  5772. 2.2 Address in multi-switch environment
  5773.  
  5774. In a multi-switch environment, variable-length subnet addressing is
  5775. used. Each switch has a switch number that is unique within the
  5776. system. Subnetted node addresses consist of the switch number and the
  5777. port number to which a node is connected. The address format is "0
  5778. <switch number> <node number> 1" for a unicast address, "all 1" for
  5779. the broadcast address, and "1 <group address> 1" for a multicast
  5780. address.
  5781.  
  5782. The address 0x01 is reserved and is assigned to the control processor
  5783. in the "local" switch. That is, it indicates the switch itself to
  5784. which the node is connected. The addresses of the form "0 <switch
  5785. number> <all 0> 1" are reserved, and indicates the control processor
  5786. of the switch designated by the switch number.
  5787.  
  5788. In Figure 2, the switch numbers are two bits long. Node N1 is
  5789. connected to port 0x3 of switch S1 numbered 0x1 (01 in binary). Thus,
  5790.  
  5791.  
  5792.  
  5793. Murakami & Maruyama Informational [Page 2]
  5794. RFC 2173 MAPOS June 1997
  5795.  
  5796.  
  5797. the node address is 0 + 01 + 00011, that is, 00100011(0x23). Node N3
  5798. has an address 01001001(0x49), since the switch number of S2 is 0x2
  5799. (10 in binary) and the port number is 0x09. Note that all the port
  5800. numbers are odd because the LSBs are always 1.
  5801.  
  5802. +------+
  5803. | node |
  5804. | N1 |
  5805. +------+
  5806. | 00100011(0x23)
  5807. |
  5808. |0x3 |0x3
  5809. +------+ +---+----+ +---+----+ +------+
  5810. | node +----+ SONET +-------+ SONET +-----+ node |
  5811. | N2 | 0x5| Switch |0x9 0x5| Switch |0x9 | N3 |
  5812. +------+ | S1 | | S2 | +------+
  5813. 00100101(0x25) | 0x1 | | 0x2 | 01001001(0x49)
  5814. +---+----+ +---+----+
  5815. |0x7 |0x7
  5816.  
  5817.  
  5818. Figure 2 Addressing in Multiple Switch Environment
  5819.  
  5820. 4 NSP(Node-Switch Protocol)
  5821.  
  5822. This section describes the NSP protocol used for automatic node
  5823. address assignment.
  5824.  
  5825. 4.1 NSP protocol
  5826.  
  5827. NSP is introduced to provide an automatic node address assignment
  5828. function in MAPOS version 1. It reduces the administrative overhead
  5829. of node address configuration for each node and prevents troubles
  5830. such as address inconsistency and collision. When a node is connected
  5831. to a switch and receives SONET signal correctly, the node sends an
  5832. address request packet to the control processor in the local switch.
  5833. The destination address of this packet is 00000001(0x01). When the
  5834. control processor receives the packet, it replies with an address
  5835. assignment packet. The destination is the assigned node address. If
  5836. the node does not receive the address assignment packet within 5
  5837. seconds, it retransmits the address request packet. The
  5838. retransmission continues until the node successfully receives the
  5839. address assignment packet.
  5840.  
  5841. Whenever a node detects a transmission error such as carrier loss or
  5842. out-of-synchronization, it SHOULD send an address request packet to
  5843. the control processor and verify its current address. In addition, a
  5844. node MUST verify its address by sending address request packets every
  5845.  
  5846.  
  5847.  
  5848. Murakami & Maruyama Informational [Page 3]
  5849. RFC 2173 MAPOS June 1997
  5850.  
  5851.  
  5852. 30 seconds. The switch regards them as keep-alive packets and
  5853. utilizes them to detect the node's status. If it has not received a
  5854. request packet for more than 90 seconds, it assumes that the node
  5855. went down. In addition, it also assumes the node went down when a
  5856. switch detects a SONET signal failure.
  5857.  
  5858. 4.2 Packet Format
  5859.  
  5860. The HDLC protocol field of a NSP frame contains 0xFE03 (hexadecimal)
  5861. as defined by the "MAPOS Version 1 Assigned Numbers" [6]. The
  5862. information field contains the NSP packet as shown in Figure 3.
  5863.  
  5864.  
  5865. +-----------+------------+
  5866. I command I address I
  5867. +-----------+------------+
  5868. I<- 32bit ->I<- 32 bit ->I
  5869.  
  5870. Figure 3 NSP packet format
  5871.  
  5872. The command field is 32 bits long and has the following values (in
  5873. decimal);
  5874.  
  5875. 1 address request
  5876. 2 address assignment
  5877. 3 reject(error)
  5878.  
  5879. The length of the address field is 32bits. In address request
  5880. packets, the NSP address field SHOULD be filled with zeroes, although
  5881. the switch ignores it. In address assignment packets, the assigned
  5882. address is placed in the least significant byte of the field. The
  5883. rest of the field is padded with zeroes. When the switch can not
  5884. assign the address for some reason, the switch replies with a reject
  5885. command (the values is 3). The value of the address field is
  5886. undefined.
  5887.  
  5888. 4.3 Consideration for special cases
  5889.  
  5890. There are two special cases to consider. One is a point-to-point
  5891. connection without a switch. The other is loop-back, that is, direct
  5892. connection between the input and the output of the same port.
  5893.  
  5894. 4.3.1 point-to-point
  5895.  
  5896. In the case of a point-to-point connection shown in Figure 4, a node
  5897. sends an address request packet to the other node. The destination
  5898. address is 00000001(0x01), that is usually a control processor in a
  5899. switch. When a node receives the address request, it detects the
  5900.  
  5901.  
  5902.  
  5903. Murakami & Maruyama Informational [Page 4]
  5904. RFC 2173 MAPOS June 1997
  5905.  
  5906.  
  5907. point-to-point connection by examining both the destination address
  5908. and the command contained. Then, it MUST reply with an address
  5909. assignment packet. The assigned address MUST be 00000011(0x03). Since
  5910. both nodes send an address request to each other, both of them get
  5911. address 00000011(0x03). Since any address can be used in point-to-
  5912. point environment, there is no problem even if both of the nodes have
  5913. the same address.
  5914.  
  5915. ---- address request ----> 0x01
  5916. 0x03 <---- address assignment ----
  5917. +------+ +------+
  5918. | node +--------------------------------+ node |
  5919. +------+ +------+
  5920. 0x01 <---- address request ----
  5921. ---- address assignment ----> 0x03
  5922.  
  5923. Figure 4 Point-to-point connection
  5924.  
  5925. 4.3.2 loop-back
  5926.  
  5927. Another special case is loop-back where the output port of a node is
  5928. simply connected to its input port as shown in Figure 5. In this
  5929. case, the same mechanism as that for point-to-point can be applied
  5930. without modification. A node sends an address request packet
  5931. destined to 00000001(0x01). The node then receives the same packet.
  5932. Since the destination is 00000001(0x01), it replies with an address
  5933. assignment packet, containing the assigned address 00000011(0x03), to
  5934. the address 0000 0011(0x03). Thus, the node obtains the address
  5935. 00000011(0x03).
  5936.  
  5937. ---- address request ----> 0x01
  5938. +------+ --- address assignment --> 0x03
  5939. | +-------------->-----------------+
  5940. | node + |
  5941. | +--------------<-----------------+
  5942. +------+
  5943.  
  5944. Figure 5 Loop-back Configuration
  5945.  
  5946.  
  5947.  
  5948.  
  5949.  
  5950.  
  5951.  
  5952.  
  5953.  
  5954.  
  5955.  
  5956.  
  5957.  
  5958. Murakami & Maruyama Informational [Page 5]
  5959. RFC 2173 MAPOS June 1997
  5960.  
  5961.  
  5962. 5. Security Considerations
  5963.  
  5964. Security issues are not discussed in this memo.
  5965.  
  5966. References
  5967.  
  5968. [1] Murakami, K. and M. Maruyama, "MAPOS - Multiple Access Protocol
  5969. over SONET/SDH, Version 1," RFC-2171, June 1997.
  5970.  
  5971. [2] CCITT Recommendation G.707: Synchronous Digital Hierarchy Bit
  5972. Rates (1990).
  5973.  
  5974. [3] CCITT Recommendation G.708: Network Node Interface for
  5975. Synchronous Digital Hierarchy (1990).
  5976.  
  5977. [4] CCITT Recommendation G.709: Synchronous Multiplexing Structure
  5978. (1990).
  5979.  
  5980. [5] American National Standard for Telecommunications - Digital
  5981. Hierarchy - Optical Interface Rates and Formats Specification,
  5982. ANSI T1.105-1991.
  5983.  
  5984. [6] Maruyama, M. and K. Murakami, "MAPOS Version 1 Assigned
  5985. Numbers," RFC-2172, June, 1997.
  5986.  
  5987. Acknowledgements
  5988.  
  5989. The authors would like to acknowledge the contributions and
  5990. thoughtful suggestions of John P. Mullaney, Clark Bremer, Masayuki
  5991. Kobayashi, Paul Francis, Toshiaki Yoshida, and Takahiro Sajima.
  5992.  
  5993. Authors' Address
  5994.  
  5995. Ken Murakami
  5996. NTT Software Laboratories
  5997. 3-9-11, Midori-cho
  5998. Musashino-shi
  5999. Tokyo 180, Japan
  6000. E-mail: murakami@ntt-20.ecl.net
  6001.  
  6002. Mitsuru Maruyama
  6003. NTT Software Laboratories
  6004. 3-9-11, Midori-cho
  6005. Musashino-shi
  6006. Tokyo 180, Japan
  6007. E-mail: mitsuru@ntt-20.ecl.net
  6008.  
  6009.  
  6010.  
  6011.  
  6012.  
  6013. Murakami & Maruyama Informational [Page 6]
  6014.  
  6015.  
  6016.  
  6017.  
  6018.  
  6019.  
  6020.  
  6021. Network Working Group K. Murakami
  6022. Request for Comments: 2173 M. Maruyama
  6023. Category: Informational NTT Laboratories
  6024. June 1997
  6025.  
  6026.  
  6027. A MAPOS version 1 Extension - Node Switch Protocol
  6028.  
  6029. Status of this Memo
  6030.  
  6031. This memo provides information for the Internet community. This memo
  6032. does not specify an Internet standard of any kind. Distribution of
  6033. this memo is unlimited.
  6034.  
  6035. Abstract
  6036.  
  6037. This document describes a MAPOS extension, Node Switch Protocol, for
  6038. automatic node address assignment. MAPOS is a multiple access
  6039. protocol for transmission of network-protocol datagrams, encapsulated
  6040. in High-Level Data Link Control (HDLC) frames, over SONET/SDH. NSP
  6041. automates the HDLC address configuration of each node. Using NSP, a
  6042. node retrieves its HDLC address from the switch to which it is
  6043. connected.
  6044.  
  6045. 1. Introduction
  6046.  
  6047. MAPOS[1], Multiple Access Protocol over SONET(Synchronous Optical
  6048. Network)/SDH(Synchronous Digital Hierarchy)[2][3][4][5], is a
  6049. protocol for transmission of HDLC frames over SONET/SDH. A SONET
  6050. switch provides multiple access capability to each node. In MAPOS,
  6051. each node has a unique HDLC address within a switch. The address is
  6052. equivalent to the port number of the switch to which the node is
  6053. connected. This document describes an extension to MAPOS, Node
  6054. Switch Protocol, which enable automatic HDLC address assignment.
  6055. First, it explains the addressing of MAPOS. Then, it describes the
  6056. NSP protocol for automatic HDLC node address assignment.
  6057.  
  6058. 2. Node Address Format
  6059.  
  6060. This section describes MAPOS Version 1 address format in single and
  6061. multiple switch environment.
  6062.  
  6063.  
  6064.  
  6065.  
  6066.  
  6067.  
  6068.  
  6069.  
  6070.  
  6071.  
  6072. Murakami & Maruyama Informational [Page 1]
  6073. RFC 2173 MAPOS June 1997
  6074.  
  6075.  
  6076. 2.1 Address Format
  6077.  
  6078. In MAPOS network, each end node has a unique HDLC address. As shown
  6079. in Figure 1, the address length is 8 bits. The LSB is always 1 which
  6080. indicates the end of the field. When a SONET switch receives an HDLC
  6081. frame, it forwards the frame based on the address in the frame
  6082. header.
  6083.  
  6084. In unicast, MSB is 0 and the rest of the bits are the port number to
  6085. which a node is connected. Since the LSB is always 1, the minimum and
  6086. maximum addresses are 0x01 and 0x7F, respectively. Address 0x01 is
  6087. reserved and is assigned to the control processor in a SONET switch.
  6088.  
  6089. In broadcast, MSB is 1 and the rest of the bits are all 1s. In
  6090. multicast, MSB is 1 and the rest of the bits, except for the LSB,
  6091. indicate the group address.
  6092.  
  6093. +-------------+-+
  6094. | | | | | | | | |
  6095. | |port number|1|
  6096. +-+-----------+-+
  6097. ^ ^
  6098. | |
  6099. | +------- EA bit (always 1)
  6100. |
  6101. 1 : broadcast, multicast
  6102. 0 : unicast
  6103.  
  6104. Figure 1 Address format
  6105.  
  6106. 2.2 Address in multi-switch environment
  6107.  
  6108. In a multi-switch environment, variable-length subnet addressing is
  6109. used. Each switch has a switch number that is unique within the
  6110. system. Subnetted node addresses consist of the switch number and the
  6111. port number to which a node is connected. The address format is "0
  6112. <switch number> <node number> 1" for a unicast address, "all 1" for
  6113. the broadcast address, and "1 <group address> 1" for a multicast
  6114. address.
  6115.  
  6116. The address 0x01 is reserved and is assigned to the control processor
  6117. in the "local" switch. That is, it indicates the switch itself to
  6118. which the node is connected. The addresses of the form "0 <switch
  6119. number> <all 0> 1" are reserved, and indicates the control processor
  6120. of the switch designated by the switch number.
  6121.  
  6122. In Figure 2, the switch numbers are two bits long. Node N1 is
  6123. connected to port 0x3 of switch S1 numbered 0x1 (01 in binary). Thus,
  6124.  
  6125.  
  6126.  
  6127. Murakami & Maruyama Informational [Page 2]
  6128. RFC 2173 MAPOS June 1997
  6129.  
  6130.  
  6131. the node address is 0 + 01 + 00011, that is, 00100011(0x23). Node N3
  6132. has an address 01001001(0x49), since the switch number of S2 is 0x2
  6133. (10 in binary) and the port number is 0x09. Note that all the port
  6134. numbers are odd because the LSBs are always 1.
  6135.  
  6136. +------+
  6137. | node |
  6138. | N1 |
  6139. +------+
  6140. | 00100011(0x23)
  6141. |
  6142. |0x3 |0x3
  6143. +------+ +---+----+ +---+----+ +------+
  6144. | node +----+ SONET +-------+ SONET +-----+ node |
  6145. | N2 | 0x5| Switch |0x9 0x5| Switch |0x9 | N3 |
  6146. +------+ | S1 | | S2 | +------+
  6147. 00100101(0x25) | 0x1 | | 0x2 | 01001001(0x49)
  6148. +---+----+ +---+----+
  6149. |0x7 |0x7
  6150.  
  6151.  
  6152. Figure 2 Addressing in Multiple Switch Environment
  6153.  
  6154. 4 NSP(Node-Switch Protocol)
  6155.  
  6156. This section describes the NSP protocol used for automatic node
  6157. address assignment.
  6158.  
  6159. 4.1 NSP protocol
  6160.  
  6161. NSP is introduced to provide an automatic node address assignment
  6162. function in MAPOS version 1. It reduces the administrative overhead
  6163. of node address configuration for each node and prevents troubles
  6164. such as address inconsistency and collision. When a node is connected
  6165. to a switch and receives SONET signal correctly, the node sends an
  6166. address request packet to the control processor in the local switch.
  6167. The destination address of this packet is 00000001(0x01). When the
  6168. control processor receives the packet, it replies with an address
  6169. assignment packet. The destination is the assigned node address. If
  6170. the node does not receive the address assignment packet within 5
  6171. seconds, it retransmits the address request packet. The
  6172. retransmission continues until the node successfully receives the
  6173. address assignment packet.
  6174.  
  6175. Whenever a node detects a transmission error such as carrier loss or
  6176. out-of-synchronization, it SHOULD send an address request packet to
  6177. the control processor and verify its current address. In addition, a
  6178. node MUST verify its address by sending address request packets every
  6179.  
  6180.  
  6181.  
  6182. Murakami & Maruyama Informational [Page 3]
  6183. RFC 2173 MAPOS June 1997
  6184.  
  6185.  
  6186. 30 seconds. The switch regards them as keep-alive packets and
  6187. utilizes them to detect the node's status. If it has not received a
  6188. request packet for more than 90 seconds, it assumes that the node
  6189. went down. In addition, it also assumes the node went down when a
  6190. switch detects a SONET signal failure.
  6191.  
  6192. 4.2 Packet Format
  6193.  
  6194. The HDLC protocol field of a NSP frame contains 0xFE03 (hexadecimal)
  6195. as defined by the "MAPOS Version 1 Assigned Numbers" [6]. The
  6196. information field contains the NSP packet as shown in Figure 3.
  6197.  
  6198.  
  6199. +-----------+------------+
  6200. I command I address I
  6201. +-----------+------------+
  6202. I<- 32bit ->I<- 32 bit ->I
  6203.  
  6204. Figure 3 NSP packet format
  6205.  
  6206. The command field is 32 bits long and has the following values (in
  6207. decimal);
  6208.  
  6209. 1 address request
  6210. 2 address assignment
  6211. 3 reject(error)
  6212.  
  6213. The length of the address field is 32bits. In address request
  6214. packets, the NSP address field SHOULD be filled with zeroes, although
  6215. the switch ignores it. In address assignment packets, the assigned
  6216. address is placed in the least significant byte of the field. The
  6217. rest of the field is padded with zeroes. When the switch can not
  6218. assign the address for some reason, the switch replies with a reject
  6219. command (the values is 3). The value of the address field is
  6220. undefined.
  6221.  
  6222. 4.3 Consideration for special cases
  6223.  
  6224. There are two special cases to consider. One is a point-to-point
  6225. connection without a switch. The other is loop-back, that is, direct
  6226. connection between the input and the output of the same port.
  6227.  
  6228. 4.3.1 point-to-point
  6229.  
  6230. In the case of a point-to-point connection shown in Figure 4, a node
  6231. sends an address request packet to the other node. The destination
  6232. address is 00000001(0x01), that is usually a control processor in a
  6233. switch. When a node receives the address request, it detects the
  6234.  
  6235.  
  6236.  
  6237. Murakami & Maruyama Informational [Page 4]
  6238. RFC 2173 MAPOS June 1997
  6239.  
  6240.  
  6241. point-to-point connection by examining both the destination address
  6242. and the command contained. Then, it MUST reply with an address
  6243. assignment packet. The assigned address MUST be 00000011(0x03). Since
  6244. both nodes send an address request to each other, both of them get
  6245. address 00000011(0x03). Since any address can be used in point-to-
  6246. point environment, there is no problem even if both of the nodes have
  6247. the same address.
  6248.  
  6249. ---- address request ----> 0x01
  6250. 0x03 <---- address assignment ----
  6251. +------+ +------+
  6252. | node +--------------------------------+ node |
  6253. +------+ +------+
  6254. 0x01 <---- address request ----
  6255. ---- address assignment ----> 0x03
  6256.  
  6257. Figure 4 Point-to-point connection
  6258.  
  6259. 4.3.2 loop-back
  6260.  
  6261. Another special case is loop-back where the output port of a node is
  6262. simply connected to its input port as shown in Figure 5. In this
  6263. case, the same mechanism as that for point-to-point can be applied
  6264. without modification. A node sends an address request packet
  6265. destined to 00000001(0x01). The node then receives the same packet.
  6266. Since the destination is 00000001(0x01), it replies with an address
  6267. assignment packet, containing the assigned address 00000011(0x03), to
  6268. the address 0000 0011(0x03). Thus, the node obtains the address
  6269. 00000011(0x03).
  6270.  
  6271. ---- address request ----> 0x01
  6272. +------+ --- address assignment --> 0x03
  6273. | +-------------->-----------------+
  6274. | node + |
  6275. | +--------------<-----------------+
  6276. +------+
  6277.  
  6278. Figure 5 Loop-back Configuration
  6279.  
  6280.  
  6281.  
  6282.  
  6283.  
  6284.  
  6285.  
  6286.  
  6287.  
  6288.  
  6289.  
  6290.  
  6291.  
  6292. Murakami & Maruyama Informational [Page 5]
  6293. RFC 2173 MAPOS June 1997
  6294.  
  6295.  
  6296. 5. Security Considerations
  6297.  
  6298. Security issues are not discussed in this memo.
  6299.  
  6300. References
  6301.  
  6302. [1] Murakami, K. and M. Maruyama, "MAPOS - Multiple Access Protocol
  6303. over SONET/SDH, Version 1," RFC-2171, June 1997.
  6304.  
  6305. [2] CCITT Recommendation G.707: Synchronous Digital Hierarchy Bit
  6306. Rates (1990).
  6307.  
  6308. [3] CCITT Recommendation G.708: Network Node Interface for
  6309. Synchronous Digital Hierarchy (1990).
  6310.  
  6311. [4] CCITT Recommendation G.709: Synchronous Multiplexing Structure
  6312. (1990).
  6313.  
  6314. [5] American National Standard for Telecommunications - Digital
  6315. Hierarchy - Optical Interface Rates and Formats Specification,
  6316. ANSI T1.105-1991.
  6317.  
  6318. [6] Maruyama, M. and K. Murakami, "MAPOS Version 1 Assigned
  6319. Numbers," RFC-2172, June, 1997.
  6320.  
  6321. Acknowledgements
  6322.  
  6323. The authors would like to acknowledge the contributions and
  6324. thoughtful suggestions of John P. Mullaney, Clark Bremer, Masayuki
  6325. Kobayashi, Paul Francis, Toshiaki Yoshida, and Takahiro Sajima.
  6326.  
  6327. Authors' Address
  6328.  
  6329. Ken Murakami
  6330. NTT Software Laboratories
  6331. 3-9-11, Midori-cho
  6332. Musashino-shi
  6333. Tokyo 180, Japan
  6334. E-mail: murakami@ntt-20.ecl.net
  6335.  
  6336. Mitsuru Maruyama
  6337. NTT Software Laboratories
  6338. 3-9-11, Midori-cho
  6339. Musashino-shi
  6340. Tokyo 180, Japan
  6341. E-mail: mitsuru@ntt-20.ecl.net
  6342.  
  6343.  
  6344.  
  6345.  
  6346.  
  6347. Murakami & Maruyama Informational [Page 6]
  6348.  
  6349.  
  6350.  
  6351.  
  6352.  
  6353.  
  6354.  
  6355. Network Working Group K. Murakami
  6356. Request for Comments: 2173 M. Maruyama
  6357. Category: Informational NTT Laboratories
  6358. June 1997
  6359.  
  6360.  
  6361. A MAPOS version 1 Extension - Node Switch Protocol
  6362.  
  6363. Status of this Memo
  6364.  
  6365. This memo provides information for the Internet community. This memo
  6366. does not specify an Internet standard of any kind. Distribution of
  6367. this memo is unlimited.
  6368.  
  6369. Abstract
  6370.  
  6371. This document describes a MAPOS extension, Node Switch Protocol, for
  6372. automatic node address assignment. MAPOS is a multiple access
  6373. protocol for transmission of network-protocol datagrams, encapsulated
  6374. in High-Level Data Link Control (HDLC) frames, over SONET/SDH. NSP
  6375. automates the HDLC address configuration of each node. Using NSP, a
  6376. node retrieves its HDLC address from the switch to which it is
  6377. connected.
  6378.  
  6379. 1. Introduction
  6380.  
  6381. MAPOS[1], Multiple Access Protocol over SONET(Synchronous Optical
  6382. Network)/SDH(Synchronous Digital Hierarchy)[2][3][4][5], is a
  6383. protocol for transmission of HDLC frames over SONET/SDH. A SONET
  6384. switch provides multiple access capability to each node. In MAPOS,
  6385. each node has a unique HDLC address within a switch. The address is
  6386. equivalent to the port number of the switch to which the node is
  6387. connected. This document describes an extension to MAPOS, Node
  6388. Switch Protocol, which enable automatic HDLC address assignment.
  6389. First, it explains the addressing of MAPOS. Then, it describes the
  6390. NSP protocol for automatic HDLC node address assignment.
  6391.  
  6392. 2. Node Address Format
  6393.  
  6394. This section describes MAPOS Version 1 address format in single and
  6395. multiple switch environment.
  6396.  
  6397.  
  6398.  
  6399.  
  6400.  
  6401.  
  6402.  
  6403.  
  6404.  
  6405.  
  6406. Murakami & Maruyama Informational [Page 1]
  6407. RFC 2173 MAPOS June 1997
  6408.  
  6409.  
  6410. 2.1 Address Format
  6411.  
  6412. In MAPOS network, each end node has a unique HDLC address. As shown
  6413. in Figure 1, the address length is 8 bits. The LSB is always 1 which
  6414. indicates the end of the field. When a SONET switch receives an HDLC
  6415. frame, it forwards the frame based on the address in the frame
  6416. header.
  6417.  
  6418. In unicast, MSB is 0 and the rest of the bits are the port number to
  6419. which a node is connected. Since the LSB is always 1, the minimum and
  6420. maximum addresses are 0x01 and 0x7F, respectively. Address 0x01 is
  6421. reserved and is assigned to the control processor in a SONET switch.
  6422.  
  6423. In broadcast, MSB is 1 and the rest of the bits are all 1s. In
  6424. multicast, MSB is 1 and the rest of the bits, except for the LSB,
  6425. indicate the group address.
  6426.  
  6427. +-------------+-+
  6428. | | | | | | | | |
  6429. | |port number|1|
  6430. +-+-----------+-+
  6431. ^ ^
  6432. | |
  6433. | +------- EA bit (always 1)
  6434. |
  6435. 1 : broadcast, multicast
  6436. 0 : unicast
  6437.  
  6438. Figure 1 Address format
  6439.  
  6440. 2.2 Address in multi-switch environment
  6441.  
  6442. In a multi-switch environment, variable-length subnet addressing is
  6443. used. Each switch has a switch number that is unique within the
  6444. system. Subnetted node addresses consist of the switch number and the
  6445. port number to which a node is connected. The address format is "0
  6446. <switch number> <node number> 1" for a unicast address, "all 1" for
  6447. the broadcast address, and "1 <group address> 1" for a multicast
  6448. address.
  6449.  
  6450. The address 0x01 is reserved and is assigned to the control processor
  6451. in the "local" switch. That is, it indicates the switch itself to
  6452. which the node is connected. The addresses of the form "0 <switch
  6453. number> <all 0> 1" are reserved, and indicates the control processor
  6454. of the switch designated by the switch number.
  6455.  
  6456. In Figure 2, the switch numbers are two bits long. Node N1 is
  6457. connected to port 0x3 of switch S1 numbered 0x1 (01 in binary). Thus,
  6458.  
  6459.  
  6460.  
  6461. Murakami & Maruyama Informational [Page 2]
  6462. RFC 2173 MAPOS June 1997
  6463.  
  6464.  
  6465. the node address is 0 + 01 + 00011, that is, 00100011(0x23). Node N3
  6466. has an address 01001001(0x49), since the switch number of S2 is 0x2
  6467. (10 in binary) and the port number is 0x09. Note that all the port
  6468. numbers are odd because the LSBs are always 1.
  6469.  
  6470. +------+
  6471. | node |
  6472. | N1 |
  6473. +------+
  6474. | 00100011(0x23)
  6475. |
  6476. |0x3 |0x3
  6477. +------+ +---+----+ +---+----+ +------+
  6478. | node +----+ SONET +-------+ SONET +-----+ node |
  6479. | N2 | 0x5| Switch |0x9 0x5| Switch |0x9 | N3 |
  6480. +------+ | S1 | | S2 | +------+
  6481. 00100101(0x25) | 0x1 | | 0x2 | 01001001(0x49)
  6482. +---+----+ +---+----+
  6483. |0x7 |0x7
  6484.  
  6485.  
  6486. Figure 2 Addressing in Multiple Switch Environment
  6487.  
  6488. 4 NSP(Node-Switch Protocol)
  6489.  
  6490. This section describes the NSP protocol used for automatic node
  6491. address assignment.
  6492.  
  6493. 4.1 NSP protocol
  6494.  
  6495. NSP is introduced to provide an automatic node address assignment
  6496. function in MAPOS version 1. It reduces the administrative overhead
  6497. of node address configuration for each node and prevents troubles
  6498. such as address inconsistency and collision. When a node is connected
  6499. to a switch and receives SONET signal correctly, the node sends an
  6500. address request packet to the control processor in the local switch.
  6501. The destination address of this packet is 00000001(0x01). When the
  6502. control processor receives the packet, it replies with an address
  6503. assignment packet. The destination is the assigned node address. If
  6504. the node does not receive the address assignment packet within 5
  6505. seconds, it retransmits the address request packet. The
  6506. retransmission continues until the node successfully receives the
  6507. address assignment packet.
  6508.  
  6509. Whenever a node detects a transmission error such as carrier loss or
  6510. out-of-synchronization, it SHOULD send an address request packet to
  6511. the control processor and verify its current address. In addition, a
  6512. node MUST verify its address by sending address request packets every
  6513.  
  6514.  
  6515.  
  6516. Murakami & Maruyama Informational [Page 3]
  6517. RFC 2173 MAPOS June 1997
  6518.  
  6519.  
  6520. 30 seconds. The switch regards them as keep-alive packets and
  6521. utilizes them to detect the node's status. If it has not received a
  6522. request packet for more than 90 seconds, it assumes that the node
  6523. went down. In addition, it also assumes the node went down when a
  6524. switch detects a SONET signal failure.
  6525.  
  6526. 4.2 Packet Format
  6527.  
  6528. The HDLC protocol field of a NSP frame contains 0xFE03 (hexadecimal)
  6529. as defined by the "MAPOS Version 1 Assigned Numbers" [6]. The
  6530. information field contains the NSP packet as shown in Figure 3.
  6531.  
  6532.  
  6533. +-----------+------------+
  6534. I command I address I
  6535. +-----------+------------+
  6536. I<- 32bit ->I<- 32 bit ->I
  6537.  
  6538. Figure 3 NSP packet format
  6539.  
  6540. The command field is 32 bits long and has the following values (in
  6541. decimal);
  6542.  
  6543. 1 address request
  6544. 2 address assignment
  6545. 3 reject(error)
  6546.  
  6547. The length of the address field is 32bits. In address request
  6548. packets, the NSP address field SHOULD be filled with zeroes, although
  6549. the switch ignores it. In address assignment packets, the assigned
  6550. address is placed in the least significant byte of the field. The
  6551. rest of the field is padded with zeroes. When the switch can not
  6552. assign the address for some reason, the switch replies with a reject
  6553. command (the values is 3). The value of the address field is
  6554. undefined.
  6555.  
  6556. 4.3 Consideration for special cases
  6557.  
  6558. There are two special cases to consider. One is a point-to-point
  6559. connection without a switch. The other is loop-back, that is, direct
  6560. connection between the input and the output of the same port.
  6561.  
  6562. 4.3.1 point-to-point
  6563.  
  6564. In the case of a point-to-point connection shown in Figure 4, a node
  6565. sends an address request packet to the other node. The destination
  6566. address is 00000001(0x01), that is usually a control processor in a
  6567. switch. When a node receives the address request, it detects the
  6568.  
  6569.  
  6570.  
  6571. Murakami & Maruyama Informational [Page 4]
  6572. RFC 2173 MAPOS June 1997
  6573.  
  6574.  
  6575. point-to-point connection by examining both the destination address
  6576. and the command contained. Then, it MUST reply with an address
  6577. assignment packet. The assigned address MUST be 00000011(0x03). Since
  6578. both nodes send an address request to each other, both of them get
  6579. address 00000011(0x03). Since any address can be used in point-to-
  6580. point environment, there is no problem even if both of the nodes have
  6581. the same address.
  6582.  
  6583. ---- address request ----> 0x01
  6584. 0x03 <---- address assignment ----
  6585. +------+ +------+
  6586. | node +--------------------------------+ node |
  6587. +------+ +------+
  6588. 0x01 <---- address request ----
  6589. ---- address assignment ----> 0x03
  6590.  
  6591. Figure 4 Point-to-point connection
  6592.  
  6593. 4.3.2 loop-back
  6594.  
  6595. Another special case is loop-back where the output port of a node is
  6596. simply connected to its input port as shown in Figure 5. In this
  6597. case, the same mechanism as that for point-to-point can be applied
  6598. without modification. A node sends an address request packet
  6599. destined to 00000001(0x01). The node then receives the same packet.
  6600. Since the destination is 00000001(0x01), it replies with an address
  6601. assignment packet, containing the assigned address 00000011(0x03), to
  6602. the address 0000 0011(0x03). Thus, the node obtains the address
  6603. 00000011(0x03).
  6604.  
  6605. ---- address request ----> 0x01
  6606. +------+ --- address assignment --> 0x03
  6607. | +-------------->-----------------+
  6608. | node + |
  6609. | +--------------<-----------------+
  6610. +------+
  6611.  
  6612. Figure 5 Loop-back Configuration
  6613.  
  6614.  
  6615.  
  6616.  
  6617.  
  6618.  
  6619.  
  6620.  
  6621.  
  6622.  
  6623.  
  6624.  
  6625.  
  6626. Murakami & Maruyama Informational [Page 5]
  6627. RFC 2173 MAPOS June 1997
  6628.  
  6629.  
  6630. 5. Security Considerations
  6631.  
  6632. Security issues are not discussed in this memo.
  6633.  
  6634. References
  6635.  
  6636. [1] Murakami, K. and M. Maruyama, "MAPOS - Multiple Access Protocol
  6637. over SONET/SDH, Version 1," RFC-2171, June 1997.
  6638.  
  6639. [2] CCITT Recommendation G.707: Synchronous Digital Hierarchy Bit
  6640. Rates (1990).
  6641.  
  6642. [3] CCITT Recommendation G.708: Network Node Interface for
  6643. Synchronous Digital Hierarchy (1990).
  6644.  
  6645. [4] CCITT Recommendation G.709: Synchronous Multiplexing Structure
  6646. (1990).
  6647.  
  6648. [5] American National Standard for Telecommunications - Digital
  6649. Hierarchy - Optical Interface Rates and Formats Specification,
  6650. ANSI T1.105-1991.
  6651.  
  6652. [6] Maruyama, M. and K. Murakami, "MAPOS Version 1 Assigned
  6653. Numbers," RFC-2172, June, 1997.
  6654.  
  6655. Acknowledgements
  6656.  
  6657. The authors would like to acknowledge the contributions and
  6658. thoughtful suggestions of John P. Mullaney, Clark Bremer, Masayuki
  6659. Kobayashi, Paul Francis, Toshiaki Yoshida, and Takahiro Sajima.
  6660.  
  6661. Authors' Address
  6662.  
  6663. Ken Murakami
  6664. NTT Software Laboratories
  6665. 3-9-11, Midori-cho
  6666. Musashino-shi
  6667. Tokyo 180, Japan
  6668. E-mail: murakami@ntt-20.ecl.net
  6669.  
  6670. Mitsuru Maruyama
  6671. NTT Software Laboratories
  6672. 3-9-11, Midori-cho
  6673. Musashino-shi
  6674. Tokyo 180, Japan
  6675. E-mail: mitsuru@ntt-20.ecl.net
  6676.  
  6677.  
  6678.  
  6679.  
  6680.  
  6681. Murakami & Maruyama Informational [Page 6]
  6682.  
  6683.  
  6684.  
  6685.  
  6686.  
  6687.  
  6688.  
  6689.  
  6690.  
  6691. Network Working Group K. Murakami
  6692. Request for Comments: 2173 M. Maruyama
  6693. Category: Informational NTT Laboratories
  6694. June 1997
  6695.  
  6696.  
  6697. A MAPOS version 1 Extension - Node Switch Protocol
  6698.  
  6699. Status of this Memo
  6700.  
  6701. This memo provides information for the Internet community. This memo
  6702. does not specify an Internet standard of any kind. Distribution of
  6703. this memo is unlimited.
  6704.  
  6705. Abstract
  6706.  
  6707. This document describes a MAPOS extension, Node Switch Protocol, for
  6708. automatic node address assignment. MAPOS is a multiple access
  6709. protocol for transmission of network-protocol datagrams, encapsulated
  6710. in High-Level Data Link Control (HDLC) frames, over SONET/SDH. NSP
  6711. automates the HDLC address configuration of each node. Using NSP, a
  6712. node retrieves its HDLC address from the switch to which it is
  6713. connected.
  6714.  
  6715. 1. Introduction
  6716.  
  6717. MAPOS[1], Multiple Access Protocol over SONET(Synchronous Optical
  6718. Network)/SDH(Synchronous Digital Hierarchy)[2][3][4][5], is a
  6719. protocol for transmission of HDLC frames over SONET/SDH. A SONET
  6720. switch provides multiple access capability to each node. In MAPOS,
  6721. each node has a unique HDLC address within a switch. The address is
  6722. equivalent to the port number of the switch to which the node is
  6723. connected. This document describes an extension to MAPOS, Node
  6724. Switch Protocol, which enable automatic HDLC address assignment.
  6725. First, it explains the addressing of MAPOS. Then, it describes the
  6726. NSP protocol for automatic HDLC node address assignment.
  6727.  
  6728. 2. Node Address Format
  6729.  
  6730. This section describes MAPOS Version 1 address format in single and
  6731. multiple switch environment.
  6732.  
  6733.  
  6734.  
  6735.  
  6736.  
  6737.  
  6738.  
  6739.  
  6740.  
  6741.  
  6742. Murakami & Maruyama Informational [Page 1]
  6743. RFC 2173 MAPOS June 1997
  6744.  
  6745.  
  6746. 2.1 Address Format
  6747.  
  6748. In MAPOS network, each end node has a unique HDLC address. As shown
  6749. in Figure 1, the address length is 8 bits. The LSB is always 1 which
  6750. indicates the end of the field. When a SONET switch receives an HDLC
  6751. frame, it forwards the frame based on the address in the frame
  6752. header.
  6753.  
  6754. In unicast, MSB is 0 and the rest of the bits are the port number to
  6755. which a node is connected. Since the LSB is always 1, the minimum and
  6756. maximum addresses are 0x01 and 0x7F, respectively. Address 0x01 is
  6757. reserved and is assigned to the control processor in a SONET switch.
  6758.  
  6759. In broadcast, MSB is 1 and the rest of the bits are all 1s. In
  6760. multicast, MSB is 1 and the rest of the bits, except for the LSB,
  6761. indicate the group address.
  6762.  
  6763. +-------------+-+
  6764. | | | | | | | | |
  6765. | |port number|1|
  6766. +-+-----------+-+
  6767. ^ ^
  6768. | |
  6769. | +------- EA bit (always 1)
  6770. |
  6771. 1 : broadcast, multicast
  6772. 0 : unicast
  6773.  
  6774. Figure 1 Address format
  6775.  
  6776. 2.2 Address in multi-switch environment
  6777.  
  6778. In a multi-switch environment, variable-length subnet addressing is
  6779. used. Each switch has a switch number that is unique within the
  6780. system. Subnetted node addresses consist of the switch number and the
  6781. port number to which a node is connected. The address format is "0
  6782. <switch number> <node number> 1" for a unicast address, "all 1" for
  6783. the broadcast address, and "1 <group address> 1" for a multicast
  6784. address.
  6785.  
  6786. The address 0x01 is reserved and is assigned to the control processor
  6787. in the "local" switch. That is, it indicates the switch itself to
  6788. which the node is connected. The addresses of the form "0 <switch
  6789. number> <all 0> 1" are reserved, and indicates the control processor
  6790. of the switch designated by the switch number.
  6791.  
  6792. In Figure 2, the switch numbers are two bits long. Node N1 is
  6793. connected to port 0x3 of switch S1 numbered 0x1 (01 in binary). Thus,
  6794.  
  6795.  
  6796.  
  6797. Murakami & Maruyama Informational [Page 2]
  6798. RFC 2173 MAPOS June 1997
  6799.  
  6800.  
  6801. the node address is 0 + 01 + 00011, that is, 00100011(0x23). Node N3
  6802. has an address 01001001(0x49), since the switch number of S2 is 0x2
  6803. (10 in binary) and the port number is 0x09. Note that all the port
  6804. numbers are odd because the LSBs are always 1.
  6805.  
  6806. +------+
  6807. | node |
  6808. | N1 |
  6809. +------+
  6810. | 00100011(0x23)
  6811. |
  6812. |0x3 |0x3
  6813. +------+ +---+----+ +---+----+ +------+
  6814. | node +----+ SONET +-------+ SONET +-----+ node |
  6815. | N2 | 0x5| Switch |0x9 0x5| Switch |0x9 | N3 |
  6816. +------+ | S1 | | S2 | +------+
  6817. 00100101(0x25) | 0x1 | | 0x2 | 01001001(0x49)
  6818. +---+----+ +---+----+
  6819. |0x7 |0x7
  6820.  
  6821.  
  6822. Figure 2 Addressing in Multiple Switch Environment
  6823.  
  6824. 4 NSP(Node-Switch Protocol)
  6825.  
  6826. This section describes the NSP protocol used for automatic node
  6827. address assignment.
  6828.  
  6829. 4.1 NSP protocol
  6830.  
  6831. NSP is introduced to provide an automatic node address assignment
  6832. function in MAPOS version 1. It reduces the administrative overhead
  6833. of node address configuration for each node and prevents troubles
  6834. such as address inconsistency and collision. When a node is connected
  6835. to a switch and receives SONET signal correctly, the node sends an
  6836. address request packet to the control processor in the local switch.
  6837. The destination address of this packet is 00000001(0x01). When the
  6838. control processor receives the packet, it replies with an address
  6839. assignment packet. The destination is the assigned node address. If
  6840. the node does not receive the address assignment packet within 5
  6841. seconds, it retransmits the address request packet. The
  6842. retransmission continues until the node successfully receives the
  6843. address assignment packet.
  6844.  
  6845. Whenever a node detects a transmission error such as carrier loss or
  6846. out-of-synchronization, it SHOULD send an address request packet to
  6847. the control processor and verify its current address. In addition, a
  6848. node MUST verify its address by sending address request packets every
  6849.  
  6850.  
  6851.  
  6852. Murakami & Maruyama Informational [Page 3]
  6853. RFC 2173 MAPOS June 1997
  6854.  
  6855.  
  6856. 30 seconds. The switch regards them as keep-alive packets and
  6857. utilizes them to detect the node's status. If it has not received a
  6858. request packet for more than 90 seconds, it assumes that the node
  6859. went down. In addition, it also assumes the node went down when a
  6860. switch detects a SONET signal failure.
  6861.  
  6862. 4.2 Packet Format
  6863.  
  6864. The HDLC protocol field of a NSP frame contains 0xFE03 (hexadecimal)
  6865. as defined by the "MAPOS Version 1 Assigned Numbers" [6]. The
  6866. information field contains the NSP packet as shown in Figure 3.
  6867.  
  6868.  
  6869. +-----------+------------+
  6870. I command I address I
  6871. +-----------+------------+
  6872. I<- 32bit ->I<- 32 bit ->I
  6873.  
  6874. Figure 3 NSP packet format
  6875.  
  6876. The command field is 32 bits long and has the following values (in
  6877. decimal);
  6878.  
  6879. 1 address request
  6880. 2 address assignment
  6881. 3 reject(error)
  6882.  
  6883. The length of the address field is 32bits. In address request
  6884. packets, the NSP address field SHOULD be filled with zeroes, although
  6885. the switch ignores it. In address assignment packets, the assigned
  6886. address is placed in the least significant byte of the field. The
  6887. rest of the field is padded with zeroes. When the switch can not
  6888. assign the address for some reason, the switch replies with a reject
  6889. command (the values is 3). The value of the address field is
  6890. undefined.
  6891.  
  6892. 4.3 Consideration for special cases
  6893.  
  6894. There are two special cases to consider. One is a point-to-point
  6895. connection without a switch. The other is loop-back, that is, direct
  6896. connection between the input and the output of the same port.
  6897.  
  6898. 4.3.1 point-to-point
  6899.  
  6900. In the case of a point-to-point connection shown in Figure 4, a node
  6901. sends an address request packet to the other node. The destination
  6902. address is 00000001(0x01), that is usually a control processor in a
  6903. switch. When a node receives the address request, it detects the
  6904.  
  6905.  
  6906.  
  6907. Murakami & Maruyama Informational [Page 4]
  6908. RFC 2173 MAPOS June 1997
  6909.  
  6910.  
  6911. point-to-point connection by examining both the destination address
  6912. and the command contained. Then, it MUST reply with an address
  6913. assignment packet. The assigned address MUST be 00000011(0x03). Since
  6914. both nodes send an address request to each other, both of them get
  6915. address 00000011(0x03). Since any address can be used in point-to-
  6916. point environment, there is no problem even if both of the nodes have
  6917. the same address.
  6918.  
  6919. ---- address request ----> 0x01
  6920. 0x03 <---- address assignment ----
  6921. +------+ +------+
  6922. | node +--------------------------------+ node |
  6923. +------+ +------+
  6924. 0x01 <---- address request ----
  6925. ---- address assignment ----> 0x03
  6926.  
  6927. Figure 4 Point-to-point connection
  6928.  
  6929. 4.3.2 loop-back
  6930.  
  6931. Another special case is loop-back where the output port of a node is
  6932. simply connected to its input port as shown in Figure 5. In this
  6933. case, the same mechanism as that for point-to-point can be applied
  6934. without modification. A node sends an address request packet
  6935. destined to 00000001(0x01). The node then receives the same packet.
  6936. Since the destination is 00000001(0x01), it replies with an address
  6937. assignment packet, containing the assigned address 00000011(0x03), to
  6938. the address 0000 0011(0x03). Thus, the node obtains the address
  6939. 00000011(0x03).
  6940.  
  6941. ---- address request ----> 0x01
  6942. +------+ --- address assignment --> 0x03
  6943. | +-------------->-----------------+
  6944. | node + |
  6945. | +--------------<-----------------+
  6946. +------+
  6947.  
  6948. Figure 5 Loop-back Configuration
  6949.  
  6950.  
  6951.  
  6952.  
  6953.  
  6954.  
  6955.  
  6956.  
  6957.  
  6958.  
  6959.  
  6960.  
  6961.  
  6962. Murakami & Maruyama Informational [Page 5]
  6963. RFC 2173 MAPOS June 1997
  6964.  
  6965.  
  6966. 5. Security Considerations
  6967.  
  6968. Security issues are not discussed in this memo.
  6969.  
  6970. References
  6971.  
  6972. [1] Murakami, K. and M. Maruyama, "MAPOS - Multiple Access Protocol
  6973. over SONET/SDH, Version 1," RFC-2171, June 1997.
  6974.  
  6975. [2] CCITT Recommendation G.707: Synchronous Digital Hierarchy Bit
  6976. Rates (1990).
  6977.  
  6978. [3] CCITT Recommendation G.708: Network Node Interface for
  6979. Synchronous Digital Hierarchy (1990).
  6980.  
  6981. [4] CCITT Recommendation G.709: Synchronous Multiplexing Structure
  6982. (1990).
  6983.  
  6984. [5] American National Standard for Telecommunications - Digital
  6985. Hierarchy - Optical Interface Rates and Formats Specification,
  6986. ANSI T1.105-1991.
  6987.  
  6988. [6] Maruyama, M. and K. Murakami, "MAPOS Version 1 Assigned
  6989. Numbers," RFC-2172, June, 1997.
  6990.  
  6991. Acknowledgements
  6992.  
  6993. The authors would like to acknowledge the contributions and
  6994. thoughtful suggestions of John P. Mullaney, Clark Bremer, Masayuki
  6995. Kobayashi, Paul Francis, Toshiaki Yoshida, and Takahiro Sajima.
  6996.  
  6997. Authors' Address
  6998.  
  6999. Ken Murakami
  7000. NTT Software Laboratories
  7001. 3-9-11, Midori-cho
  7002. Musashino-shi
  7003. Tokyo 180, Japan
  7004. E-mail: murakami@ntt-20.ecl.net
  7005.  
  7006. Mitsuru Maruyama
  7007. NTT Software Laboratories
  7008. 3-9-11, Midori-cho
  7009. Musashino-shi
  7010. Tokyo 180, Japan
  7011. E-mail: mitsuru@ntt-20.ecl.net
  7012.  
  7013.  
  7014.  
  7015.  
  7016.  
  7017. Murakami & Maruyama Informational [Page 6]
  7018.  
  7019.  
  7020.  
  7021.  
  7022.  
  7023.  
  7024.  
  7025. Network Working Group K. Murakami
  7026. Request for Comments: 2173 M. Maruyama
  7027. Category: Informational NTT Laboratories
  7028. June 1997
  7029.  
  7030.  
  7031. A MAPOS version 1 Extension - Node Switch Protocol
  7032.  
  7033. Status of this Memo
  7034.  
  7035. This memo provides information for the Internet community. This memo
  7036. does not specify an Internet standard of any kind. Distribution of
  7037. this memo is unlimited.
  7038.  
  7039. Abstract
  7040.  
  7041. This document describes a MAPOS extension, Node Switch Protocol, for
  7042. automatic node address assignment. MAPOS is a multiple access
  7043. protocol for transmission of network-protocol datagrams, encapsulated
  7044. in High-Level Data Link Control (HDLC) frames, over SONET/SDH. NSP
  7045. automates the HDLC address configuration of each node. Using NSP, a
  7046. node retrieves its HDLC address from the switch to which it is
  7047. connected.
  7048.  
  7049. 1. Introduction
  7050.  
  7051. MAPOS[1], Multiple Access Protocol over SONET(Synchronous Optical
  7052. Network)/SDH(Synchronous Digital Hierarchy)[2][3][4][5], is a
  7053. protocol for transmission of HDLC frames over SONET/SDH. A SONET
  7054. switch provides multiple access capability to each node. In MAPOS,
  7055. each node has a unique HDLC address within a switch. The address is
  7056. equivalent to the port number of the switch to which the node is
  7057. connected. This document describes an extension to MAPOS, Node
  7058. Switch Protocol, which enable automatic HDLC address assignment.
  7059. First, it explains the addressing of MAPOS. Then, it describes the
  7060. NSP protocol for automatic HDLC node address assignment.
  7061.  
  7062. 2. Node Address Format
  7063.  
  7064. This section describes MAPOS Version 1 address format in single and
  7065. multiple switch environment.
  7066.  
  7067.  
  7068.  
  7069.  
  7070.  
  7071.  
  7072.  
  7073.  
  7074.  
  7075.  
  7076. Murakami & Maruyama Informational [Page 1]
  7077. RFC 2173 MAPOS June 1997
  7078.  
  7079.  
  7080. 2.1 Address Format
  7081.  
  7082. In MAPOS network, each end node has a unique HDLC address. As shown
  7083. in Figure 1, the address length is 8 bits. The LSB is always 1 which
  7084. indicates the end of the field. When a SONET switch receives an HDLC
  7085. frame, it forwards the frame based on the address in the frame
  7086. header.
  7087.  
  7088. In unicast, MSB is 0 and the rest of the bits are the port number to
  7089. which a node is connected. Since the LSB is always 1, the minimum and
  7090. maximum addresses are 0x01 and 0x7F, respectively. Address 0x01 is
  7091. reserved and is assigned to the control processor in a SONET switch.
  7092.  
  7093. In broadcast, MSB is 1 and the rest of the bits are all 1s. In
  7094. multicast, MSB is 1 and the rest of the bits, except for the LSB,
  7095. indicate the group address.
  7096.  
  7097. +-------------+-+
  7098. | | | | | | | | |
  7099. | |port number|1|
  7100. +-+-----------+-+
  7101. ^ ^
  7102. | |
  7103. | +------- EA bit (always 1)
  7104. |
  7105. 1 : broadcast, multicast
  7106. 0 : unicast
  7107.  
  7108. Figure 1 Address format
  7109.  
  7110. 2.2 Address in multi-switch environment
  7111.  
  7112. In a multi-switch environment, variable-length subnet addressing is
  7113. used. Each switch has a switch number that is unique within the
  7114. system. Subnetted node addresses consist of the switch number and the
  7115. port number to which a node is connected. The address format is "0
  7116. <switch number> <node number> 1" for a unicast address, "all 1" for
  7117. the broadcast address, and "1 <group address> 1" for a multicast
  7118. address.
  7119.  
  7120. The address 0x01 is reserved and is assigned to the control processor
  7121. in the "local" switch. That is, it indicates the switch itself to
  7122. which the node is connected. The addresses of the form "0 <switch
  7123. number> <all 0> 1" are reserved, and indicates the control processor
  7124. of the switch designated by the switch number.
  7125.  
  7126. In Figure 2, the switch numbers are two bits long. Node N1 is
  7127. connected to port 0x3 of switch S1 numbered 0x1 (01 in binary). Thus,
  7128.  
  7129.  
  7130.  
  7131. Murakami & Maruyama Informational [Page 2]
  7132. RFC 2173 MAPOS June 1997
  7133.  
  7134.  
  7135. the node address is 0 + 01 + 00011, that is, 00100011(0x23). Node N3
  7136. has an address 01001001(0x49), since the switch number of S2 is 0x2
  7137. (10 in binary) and the port number is 0x09. Note that all the port
  7138. numbers are odd because the LSBs are always 1.
  7139.  
  7140. +------+
  7141. | node |
  7142. | N1 |
  7143. +------+
  7144. | 00100011(0x23)
  7145. |
  7146. |0x3 |0x3
  7147. +------+ +---+----+ +---+----+ +------+
  7148. | node +----+ SONET +-------+ SONET +-----+ node |
  7149. | N2 | 0x5| Switch |0x9 0x5| Switch |0x9 | N3 |
  7150. +------+ | S1 | | S2 | +------+
  7151. 00100101(0x25) | 0x1 | | 0x2 | 01001001(0x49)
  7152. +---+----+ +---+----+
  7153. |0x7 |0x7
  7154.  
  7155.  
  7156. Figure 2 Addressing in Multiple Switch Environment
  7157.  
  7158. 4 NSP(Node-Switch Protocol)
  7159.  
  7160. This section describes the NSP protocol used for automatic node
  7161. address assignment.
  7162.  
  7163. 4.1 NSP protocol
  7164.  
  7165. NSP is introduced to provide an automatic node address assignment
  7166. function in MAPOS version 1. It reduces the administrative overhead
  7167. of node address configuration for each node and prevents troubles
  7168. such as address inconsistency and collision. When a node is connected
  7169. to a switch and receives SONET signal correctly, the node sends an
  7170. address request packet to the control processor in the local switch.
  7171. The destination address of this packet is 00000001(0x01). When the
  7172. control processor receives the packet, it replies with an address
  7173. assignment packet. The destination is the assigned node address. If
  7174. the node does not receive the address assignment packet within 5
  7175. seconds, it retransmits the address request packet. The
  7176. retransmission continues until the node successfully receives the
  7177. address assignment packet.
  7178.  
  7179. Whenever a node detects a transmission error such as carrier loss or
  7180. out-of-synchronization, it SHOULD send an address request packet to
  7181. the control processor and verify its current address. In addition, a
  7182. node MUST verify its address by sending address request packets every
  7183.  
  7184.  
  7185.  
  7186. Murakami & Maruyama Informational [Page 3]
  7187. RFC 2173 MAPOS June 1997
  7188.  
  7189.  
  7190. 30 seconds. The switch regards them as keep-alive packets and
  7191. utilizes them to detect the node's status. If it has not received a
  7192. request packet for more than 90 seconds, it assumes that the node
  7193. went down. In addition, it also assumes the node went down when a
  7194. switch detects a SONET signal failure.
  7195.  
  7196. 4.2 Packet Format
  7197.  
  7198. The HDLC protocol field of a NSP frame contains 0xFE03 (hexadecimal)
  7199. as defined by the "MAPOS Version 1 Assigned Numbers" [6]. The
  7200. information field contains the NSP packet as shown in Figure 3.
  7201.  
  7202.  
  7203. +-----------+------------+
  7204. I command I address I
  7205. +-----------+------------+
  7206. I<- 32bit ->I<- 32 bit ->I
  7207.  
  7208. Figure 3 NSP packet format
  7209.  
  7210. The command field is 32 bits long and has the following values (in
  7211. decimal);
  7212.  
  7213. 1 address request
  7214. 2 address assignment
  7215. 3 reject(error)
  7216.  
  7217. The length of the address field is 32bits. In address request
  7218. packets, the NSP address field SHOULD be filled with zeroes, although
  7219. the switch ignores it. In address assignment packets, the assigned
  7220. address is placed in the least significant byte of the field. The
  7221. rest of the field is padded with zeroes. When the switch can not
  7222. assign the address for some reason, the switch replies with a reject
  7223. command (the values is 3). The value of the address field is
  7224. undefined.
  7225.  
  7226. 4.3 Consideration for special cases
  7227.  
  7228. There are two special cases to consider. One is a point-to-point
  7229. connection without a switch. The other is loop-back, that is, direct
  7230. connection between the input and the output of the same port.
  7231.  
  7232. 4.3.1 point-to-point
  7233.  
  7234. In the case of a point-to-point connection shown in Figure 4, a node
  7235. sends an address request packet to the other node. The destination
  7236. address is 00000001(0x01), that is usually a control processor in a
  7237. switch. When a node receives the address request, it detects the
  7238.  
  7239.  
  7240.  
  7241. Murakami & Maruyama Informational [Page 4]
  7242. RFC 2173 MAPOS June 1997
  7243.  
  7244.  
  7245. point-to-point connection by examining both the destination address
  7246. and the command contained. Then, it MUST reply with an address
  7247. assignment packet. The assigned address MUST be 00000011(0x03). Since
  7248. both nodes send an address request to each other, both of them get
  7249. address 00000011(0x03). Since any address can be used in point-to-
  7250. point environment, there is no problem even if both of the nodes have
  7251. the same address.
  7252.  
  7253. ---- address request ----> 0x01
  7254. 0x03 <---- address assignment ----
  7255. +------+ +------+
  7256. | node +--------------------------------+ node |
  7257. +------+ +------+
  7258. 0x01 <---- address request ----
  7259. ---- address assignment ----> 0x03
  7260.  
  7261. Figure 4 Point-to-point connection
  7262.  
  7263. 4.3.2 loop-back
  7264.  
  7265. Another special case is loop-back where the output port of a node is
  7266. simply connected to its input port as shown in Figure 5. In this
  7267. case, the same mechanism as that for point-to-point can be applied
  7268. without modification. A node sends an address request packet
  7269. destined to 00000001(0x01). The node then receives the same packet.
  7270. Since the destination is 00000001(0x01), it replies with an address
  7271. assignment packet, containing the assigned address 00000011(0x03), to
  7272. the address 0000 0011(0x03). Thus, the node obtains the address
  7273. 00000011(0x03).
  7274.  
  7275. ---- address request ----> 0x01
  7276. +------+ --- address assignment --> 0x03
  7277. | +-------------->-----------------+
  7278. | node + |
  7279. | +--------------<-----------------+
  7280. +------+
  7281.  
  7282. Figure 5 Loop-back Configuration
  7283.  
  7284.  
  7285.  
  7286.  
  7287.  
  7288.  
  7289.  
  7290.  
  7291.  
  7292.  
  7293.  
  7294.  
  7295.  
  7296. Murakami & Maruyama Informational [Page 5]
  7297. RFC 2173 MAPOS June 1997
  7298.  
  7299.  
  7300. 5. Security Considerations
  7301.  
  7302. Security issues are not discussed in this memo.
  7303.  
  7304. References
  7305.  
  7306. [1] Murakami, K. and M. Maruyama, "MAPOS - Multiple Access Protocol
  7307. over SONET/SDH, Version 1," RFC-2171, June 1997.
  7308.  
  7309. [2] CCITT Recommendation G.707: Synchronous Digital Hierarchy Bit
  7310. Rates (1990).
  7311.  
  7312. [3] CCITT Recommendation G.708: Network Node Interface for
  7313. Synchronous Digital Hierarchy (1990).
  7314.  
  7315. [4] CCITT Recommendation G.709: Synchronous Multiplexing Structure
  7316. (1990).
  7317.  
  7318. [5] American National Standard for Telecommunications - Digital
  7319. Hierarchy - Optical Interface Rates and Formats Specification,
  7320. ANSI T1.105-1991.
  7321.  
  7322. [6] Maruyama, M. and K. Murakami, "MAPOS Version 1 Assigned
  7323. Numbers," RFC-2172, June, 1997.
  7324.  
  7325. Acknowledgements
  7326.  
  7327. The authors would like to acknowledge the contributions and
  7328. thoughtful suggestions of John P. Mullaney, Clark Bremer, Masayuki
  7329. Kobayashi, Paul Francis, Toshiaki Yoshida, and Takahiro Sajima.
  7330.  
  7331. Authors' Address
  7332.  
  7333. Ken Murakami
  7334. NTT Software Laboratories
  7335. 3-9-11, Midori-cho
  7336. Musashino-shi
  7337. Tokyo 180, Japan
  7338. E-mail: murakami@ntt-20.ecl.net
  7339.  
  7340. Mitsuru Maruyama
  7341. NTT Software Laboratories
  7342. 3-9-11, Midori-cho
  7343. Musashino-shi
  7344. Tokyo 180, Japan
  7345. E-mail: mitsuru@ntt-20.ecl.net
  7346.  
  7347.  
  7348.  
  7349.  
  7350.  
  7351. Murakami & Maruyama Informational [Page 6]
  7352.  
  7353.  
  7354.  
  7355.  
  7356.  
  7357.  
  7358.  
  7359. Network Working Group K. Murakami
  7360. Request for Comments: 2173 M. Maruyama
  7361. Category: Informational NTT Laboratories
  7362. June 1997
  7363.  
  7364.  
  7365. A MAPOS version 1 Extension - Node Switch Protocol
  7366.  
  7367. Status of this Memo
  7368.  
  7369. This memo provides information for the Internet community. This memo
  7370. does not specify an Internet standard of any kind. Distribution of
  7371. this memo is unlimited.
  7372.  
  7373. Abstract
  7374.  
  7375. This document describes a MAPOS extension, Node Switch Protocol, for
  7376. automatic node address assignment. MAPOS is a multiple access
  7377. protocol for transmission of network-protocol datagrams, encapsulated
  7378. in High-Level Data Link Control (HDLC) frames, over SONET/SDH. NSP
  7379. automates the HDLC address configuration of each node. Using NSP, a
  7380. node retrieves its HDLC address from the switch to which it is
  7381. connected.
  7382.  
  7383. 1. Introduction
  7384.  
  7385. MAPOS[1], Multiple Access Protocol over SONET(Synchronous Optical
  7386. Network)/SDH(Synchronous Digital Hierarchy)[2][3][4][5], is a
  7387. protocol for transmission of HDLC frames over SONET/SDH. A SONET
  7388. switch provides multiple access capability to each node. In MAPOS,
  7389. each node has a unique HDLC address within a switch. The address is
  7390. equivalent to the port number of the switch to which the node is
  7391. connected. This document describes an extension to MAPOS, Node
  7392. Switch Protocol, which enable automatic HDLC address assignment.
  7393. First, it explains the addressing of MAPOS. Then, it describes the
  7394. NSP protocol for automatic HDLC node address assignment.
  7395.  
  7396. 2. Node Address Format
  7397.  
  7398. This section describes MAPOS Version 1 address format in single and
  7399. multiple switch environment.
  7400.  
  7401.  
  7402.  
  7403.  
  7404.  
  7405.  
  7406.  
  7407.  
  7408.  
  7409.  
  7410. Murakami & Maruyama Informational [Page 1]
  7411. RFC 2173 MAPOS June 1997
  7412.  
  7413.  
  7414. 2.1 Address Format
  7415.  
  7416. In MAPOS network, each end node has a unique HDLC address. As shown
  7417. in Figure 1, the address length is 8 bits. The LSB is always 1 which
  7418. indicates the end of the field. When a SONET switch receives an HDLC
  7419. frame, it forwards the frame based on the address in the frame
  7420. header.
  7421.  
  7422. In unicast, MSB is 0 and the rest of the bits are the port number to
  7423. which a node is connected. Since the LSB is always 1, the minimum and
  7424. maximum addresses are 0x01 and 0x7F, respectively. Address 0x01 is
  7425. reserved and is assigned to the control processor in a SONET switch.
  7426.  
  7427. In broadcast, MSB is 1 and the rest of the bits are all 1s. In
  7428. multicast, MSB is 1 and the rest of the bits, except for the LSB,
  7429. indicate the group address.
  7430.  
  7431. +-------------+-+
  7432. | | | | | | | | |
  7433. | |port number|1|
  7434. +-+-----------+-+
  7435. ^ ^
  7436. | |
  7437. | +------- EA bit (always 1)
  7438. |
  7439. 1 : broadcast, multicast
  7440. 0 : unicast
  7441.  
  7442. Figure 1 Address format
  7443.  
  7444. 2.2 Address in multi-switch environment
  7445.  
  7446. In a multi-switch environment, variable-length subnet addressing is
  7447. used. Each switch has a switch number that is unique within the
  7448. system. Subnetted node addresses consist of the switch number and the
  7449. port number to which a node is connected. The address format is "0
  7450. <switch number> <node number> 1" for a unicast address, "all 1" for
  7451. the broadcast address, and "1 <group address> 1" for a multicast
  7452. address.
  7453.  
  7454. The address 0x01 is reserved and is assigned to the control processor
  7455. in the "local" switch. That is, it indicates the switch itself to
  7456. which the node is connected. The addresses of the form "0 <switch
  7457. number> <all 0> 1" are reserved, and indicates the control processor
  7458. of the switch designated by the switch number.
  7459.  
  7460. In Figure 2, the switch numbers are two bits long. Node N1 is
  7461. connected to port 0x3 of switch S1 numbered 0x1 (01 in binary). Thus,
  7462.  
  7463.  
  7464.  
  7465. Murakami & Maruyama Informational [Page 2]
  7466. RFC 2173 MAPOS June 1997
  7467.  
  7468.  
  7469. the node address is 0 + 01 + 00011, that is, 00100011(0x23). Node N3
  7470. has an address 01001001(0x49), since the switch number of S2 is 0x2
  7471. (10 in binary) and the port number is 0x09. Note that all the port
  7472. numbers are odd because the LSBs are always 1.
  7473.  
  7474. +------+
  7475. | node |
  7476. | N1 |
  7477. +------+
  7478. | 00100011(0x23)
  7479. |
  7480. |0x3 |0x3
  7481. +------+ +---+----+ +---+----+ +------+
  7482. | node +----+ SONET +-------+ SONET +-----+ node |
  7483. | N2 | 0x5| Switch |0x9 0x5| Switch |0x9 | N3 |
  7484. +------+ | S1 | | S2 | +------+
  7485. 00100101(0x25) | 0x1 | | 0x2 | 01001001(0x49)
  7486. +---+----+ +---+----+
  7487. |0x7 |0x7
  7488.  
  7489.  
  7490. Figure 2 Addressing in Multiple Switch Environment
  7491.  
  7492. 4 NSP(Node-Switch Protocol)
  7493.  
  7494. This section describes the NSP protocol used for automatic node
  7495. address assignment.
  7496.  
  7497. 4.1 NSP protocol
  7498.  
  7499. NSP is introduced to provide an automatic node address assignment
  7500. function in MAPOS version 1. It reduces the administrative overhead
  7501. of node address configuration for each node and prevents troubles
  7502. such as address inconsistency and collision. When a node is connected
  7503. to a switch and receives SONET signal correctly, the node sends an
  7504. address request packet to the control processor in the local switch.
  7505. The destination address of this packet is 00000001(0x01). When the
  7506. control processor receives the packet, it replies with an address
  7507. assignment packet. The destination is the assigned node address. If
  7508. the node does not receive the address assignment packet within 5
  7509. seconds, it retransmits the address request packet. The
  7510. retransmission continues until the node successfully receives the
  7511. address assignment packet.
  7512.  
  7513. Whenever a node detects a transmission error such as carrier loss or
  7514. out-of-synchronization, it SHOULD send an address request packet to
  7515. the control processor and verify its current address. In addition, a
  7516. node MUST verify its address by sending address request packets every
  7517.  
  7518.  
  7519.  
  7520. Murakami & Maruyama Informational [Page 3]
  7521. RFC 2173 MAPOS June 1997
  7522.  
  7523.  
  7524. 30 seconds. The switch regards them as keep-alive packets and
  7525. utilizes them to detect the node's status. If it has not received a
  7526. request packet for more than 90 seconds, it assumes that the node
  7527. went down. In addition, it also assumes the node went down when a
  7528. switch detects a SONET signal failure.
  7529.  
  7530. 4.2 Packet Format
  7531.  
  7532. The HDLC protocol field of a NSP frame contains 0xFE03 (hexadecimal)
  7533. as defined by the "MAPOS Version 1 Assigned Numbers" [6]. The
  7534. information field contains the NSP packet as shown in Figure 3.
  7535.  
  7536.  
  7537. +-----------+------------+
  7538. I command I address I
  7539. +-----------+------------+
  7540. I<- 32bit ->I<- 32 bit ->I
  7541.  
  7542. Figure 3 NSP packet format
  7543.  
  7544. The command field is 32 bits long and has the following values (in
  7545. decimal);
  7546.  
  7547. 1 address request
  7548. 2 address assignment
  7549. 3 reject(error)
  7550.  
  7551. The length of the address field is 32bits. In address request
  7552. packets, the NSP address field SHOULD be filled with zeroes, although
  7553. the switch ignores it. In address assignment packets, the assigned
  7554. address is placed in the least significant byte of the field. The
  7555. rest of the field is padded with zeroes. When the switch can not
  7556. assign the address for some reason, the switch replies with a reject
  7557. command (the values is 3). The value of the address field is
  7558. undefined.
  7559.  
  7560. 4.3 Consideration for special cases
  7561.  
  7562. There are two special cases to consider. One is a point-to-point
  7563. connection without a switch. The other is loop-back, that is, direct
  7564. connection between the input and the output of the same port.
  7565.  
  7566. 4.3.1 point-to-point
  7567.  
  7568. In the case of a point-to-point connection shown in Figure 4, a node
  7569. sends an address request packet to the other node. The destination
  7570. address is 00000001(0x01), that is usually a control processor in a
  7571. switch. When a node receives the address request, it detects the
  7572.  
  7573.  
  7574.  
  7575. Murakami & Maruyama Informational [Page 4]
  7576. RFC 2173 MAPOS June 1997
  7577.  
  7578.  
  7579. point-to-point connection by examining both the destination address
  7580. and the command contained. Then, it MUST reply with an address
  7581. assignment packet. The assigned address MUST be 00000011(0x03). Since
  7582. both nodes send an address request to each other, both of them get
  7583. address 00000011(0x03). Since any address can be used in point-to-
  7584. point environment, there is no problem even if both of the nodes have
  7585. the same address.
  7586.  
  7587. ---- address request ----> 0x01
  7588. 0x03 <---- address assignment ----
  7589. +------+ +------+
  7590. | node +--------------------------------+ node |
  7591. +------+ +------+
  7592. 0x01 <---- address request ----
  7593. ---- address assignment ----> 0x03
  7594.  
  7595. Figure 4 Point-to-point connection
  7596.  
  7597. 4.3.2 loop-back
  7598.  
  7599. Another special case is loop-back where the output port of a node is
  7600. simply connected to its input port as shown in Figure 5. In this
  7601. case, the same mechanism as that for point-to-point can be applied
  7602. without modification. A node sends an address request packet
  7603. destined to 00000001(0x01). The node then receives the same packet.
  7604. Since the destination is 00000001(0x01), it replies with an address
  7605. assignment packet, containing the assigned address 00000011(0x03), to
  7606. the address 0000 0011(0x03). Thus, the node obtains the address
  7607. 00000011(0x03).
  7608.  
  7609. ---- address request ----> 0x01
  7610. +------+ --- address assignment --> 0x03
  7611. | +-------------->-----------------+
  7612. | node + |
  7613. | +--------------<-----------------+
  7614. +------+
  7615.  
  7616. Figure 5 Loop-back Configuration
  7617.  
  7618.  
  7619.  
  7620.  
  7621.  
  7622.  
  7623.  
  7624.  
  7625.  
  7626.  
  7627.  
  7628.  
  7629.  
  7630. Murakami & Maruyama Informational [Page 5]
  7631. RFC 2173 MAPOS June 1997
  7632.  
  7633.  
  7634. 5. Security Considerations
  7635.  
  7636. Security issues are not discussed in this memo.
  7637.  
  7638. References
  7639.  
  7640. [1] Murakami, K. and M. Maruyama, "MAPOS - Multiple Access Protocol
  7641. over SONET/SDH, Version 1," RFC-2171, June 1997.
  7642.  
  7643. [2] CCITT Recommendation G.707: Synchronous Digital Hierarchy Bit
  7644. Rates (1990).
  7645.  
  7646. [3] CCITT Recommendation G.708: Network Node Interface for
  7647. Synchronous Digital Hierarchy (1990).
  7648.  
  7649. [4] CCITT Recommendation G.709: Synchronous Multiplexing Structure
  7650. (1990).
  7651.  
  7652. [5] American National Standard for Telecommunications - Digital
  7653. Hierarchy - Optical Interface Rates and Formats Specification,
  7654. ANSI T1.105-1991.
  7655.  
  7656. [6] Maruyama, M. and K. Murakami, "MAPOS Version 1 Assigned
  7657. Numbers," RFC-2172, June, 1997.
  7658.  
  7659. Acknowledgements
  7660.  
  7661. The authors would like to acknowledge the contributions and
  7662. thoughtful suggestions of John P. Mullaney, Clark Bremer, Masayuki
  7663. Kobayashi, Paul Francis, Toshiaki Yoshida, and Takahiro Sajima.
  7664.  
  7665. Authors' Address
  7666.  
  7667. Ken Murakami
  7668. NTT Software Laboratories
  7669. 3-9-11, Midori-cho
  7670. Musashino-shi
  7671. Tokyo 180, Japan
  7672. E-mail: murakami@ntt-20.ecl.net
  7673.  
  7674. Mitsuru Maruyama
  7675. NTT Software Laboratories
  7676. 3-9-11, Midori-cho
  7677. Musashino-shi
  7678. Tokyo 180, Japan
  7679. E-mail: mitsuru@ntt-20.ecl.net
  7680.  
  7681.  
  7682.  
  7683.  
  7684.  
  7685. Murakami & Maruyama Informational [Page 6]
  7686.  
  7687.  
  7688.  
  7689.  
  7690.  
  7691.  
  7692.  
  7693. Network Working Group K. Murakami
  7694. Request for Comments: 2173 M. Maruyama
  7695. Category: Informational NTT Laboratories
  7696. June 1997
  7697.  
  7698.  
  7699. A MAPOS version 1 Extension - Node Switch Protocol
  7700.  
  7701. Status of this Memo
  7702.  
  7703. This memo provides information for the Internet community. This memo
  7704. does not specify an Internet standard of any kind. Distribution of
  7705. this memo is unlimited.
  7706.  
  7707. Abstract
  7708.  
  7709. This document describes a MAPOS extension, Node Switch Protocol, for
  7710. automatic node address assignment. MAPOS is a multiple access
  7711. protocol for transmission of network-protocol datagrams, encapsulated
  7712. in High-Level Data Link Control (HDLC) frames, over SONET/SDH. NSP
  7713. automates the HDLC address configuration of each node. Using NSP, a
  7714. node retrieves its HDLC address from the switch to which it is
  7715. connected.
  7716.  
  7717. 1. Introduction
  7718.  
  7719. MAPOS[1], Multiple Access Protocol over SONET(Synchronous Optical
  7720. Network)/SDH(Synchronous Digital Hierarchy)[2][3][4][5], is a
  7721. protocol for transmission of HDLC frames over SONET/SDH. A SONET
  7722. switch provides multiple access capability to each node. In MAPOS,
  7723. each node has a unique HDLC address within a switch. The address is
  7724. equivalent to the port number of the switch to which the node is
  7725. connected. This document describes an extension to MAPOS, Node
  7726. Switch Protocol, which enable automatic HDLC address assignment.
  7727. First, it explains the addressing of MAPOS. Then, it describes the
  7728. NSP protocol for automatic HDLC node address assignment.
  7729.  
  7730. 2. Node Address Format
  7731.  
  7732. This section describes MAPOS Version 1 address format in single and
  7733. multiple switch environment.
  7734.  
  7735.  
  7736.  
  7737.  
  7738.  
  7739.  
  7740.  
  7741.  
  7742.  
  7743.  
  7744. Murakami & Maruyama Informational [Page 1]
  7745. RFC 2173 MAPOS June 1997
  7746.  
  7747.  
  7748. 2.1 Address Format
  7749.  
  7750. In MAPOS network, each end node has a unique HDLC address. As shown
  7751. in Figure 1, the address length is 8 bits. The LSB is always 1 which
  7752. indicates the end of the field. When a SONET switch receives an HDLC
  7753. frame, it forwards the frame based on the address in the frame
  7754. header.
  7755.  
  7756. In unicast, MSB is 0 and the rest of the bits are the port number to
  7757. which a node is connected. Since the LSB is always 1, the minimum and
  7758. maximum addresses are 0x01 and 0x7F, respectively. Address 0x01 is
  7759. reserved and is assigned to the control processor in a SONET switch.
  7760.  
  7761. In broadcast, MSB is 1 and the rest of the bits are all 1s. In
  7762. multicast, MSB is 1 and the rest of the bits, except for the LSB,
  7763. indicate the group address.
  7764.  
  7765. +-------------+-+
  7766. | | | | | | | | |
  7767. | |port number|1|
  7768. +-+-----------+-+
  7769. ^ ^
  7770. | |
  7771. | +------- EA bit (always 1)
  7772. |
  7773. 1 : broadcast, multicast
  7774. 0 : unicast
  7775.  
  7776. Figure 1 Address format
  7777.  
  7778. 2.2 Address in multi-switch environment
  7779.  
  7780. In a multi-switch environment, variable-length subnet addressing is
  7781. used. Each switch has a switch number that is unique within the
  7782. system. Subnetted node addresses consist of the switch number and the
  7783. port number to which a node is connected. The address format is "0
  7784. <switch number> <node number> 1" for a unicast address, "all 1" for
  7785. the broadcast address, and "1 <group address> 1" for a multicast
  7786. address.
  7787.  
  7788. The address 0x01 is reserved and is assigned to the control processor
  7789. in the "local" switch. That is, it indicates the switch itself to
  7790. which the node is connected. The addresses of the form "0 <switch
  7791. number> <all 0> 1" are reserved, and indicates the control processor
  7792. of the switch designated by the switch number.
  7793.  
  7794. In Figure 2, the switch numbers are two bits long. Node N1 is
  7795. connected to port 0x3 of switch S1 numbered 0x1 (01 in binary). Thus,
  7796.  
  7797.  
  7798.  
  7799. Murakami & Maruyama Informational [Page 2]
  7800. RFC 2173 MAPOS June 1997
  7801.  
  7802.  
  7803. the node address is 0 + 01 + 00011, that is, 00100011(0x23). Node N3
  7804. has an address 01001001(0x49), since the switch number of S2 is 0x2
  7805. (10 in binary) and the port number is 0x09. Note that all the port
  7806. numbers are odd because the LSBs are always 1.
  7807.  
  7808. +------+
  7809. | node |
  7810. | N1 |
  7811. +------+
  7812. | 00100011(0x23)
  7813. |
  7814. |0x3 |0x3
  7815. +------+ +---+----+ +---+----+ +------+
  7816. | node +----+ SONET +-------+ SONET +-----+ node |
  7817. | N2 | 0x5| Switch |0x9 0x5| Switch |0x9 | N3 |
  7818. +------+ | S1 | | S2 | +------+
  7819. 00100101(0x25) | 0x1 | | 0x2 | 01001001(0x49)
  7820. +---+----+ +---+----+
  7821. |0x7 |0x7
  7822.  
  7823.  
  7824. Figure 2 Addressing in Multiple Switch Environment
  7825.  
  7826. 4 NSP(Node-Switch Protocol)
  7827.  
  7828. This section describes the NSP protocol used for automatic node
  7829. address assignment.
  7830.  
  7831. 4.1 NSP protocol
  7832.  
  7833. NSP is introduced to provide an automatic node address assignment
  7834. function in MAPOS version 1. It reduces the administrative overhead
  7835. of node address configuration for each node and prevents troubles
  7836. such as address inconsistency and collision. When a node is connected
  7837. to a switch and receives SONET signal correctly, the node sends an
  7838. address request packet to the control processor in the local switch.
  7839. The destination address of this packet is 00000001(0x01). When the
  7840. control processor receives the packet, it replies with an address
  7841. assignment packet. The destination is the assigned node address. If
  7842. the node does not receive the address assignment packet within 5
  7843. seconds, it retransmits the address request packet. The
  7844. retransmission continues until the node successfully receives the
  7845. address assignment packet.
  7846.  
  7847. Whenever a node detects a transmission error such as carrier loss or
  7848. out-of-synchronization, it SHOULD send an address request packet to
  7849. the control processor and verify its current address. In addition, a
  7850. node MUST verify its address by sending address request packets every
  7851.  
  7852.  
  7853.  
  7854. Murakami & Maruyama Informational [Page 3]
  7855. RFC 2173 MAPOS June 1997
  7856.  
  7857.  
  7858. 30 seconds. The switch regards them as keep-alive packets and
  7859. utilizes them to detect the node's status. If it has not received a
  7860. request packet for more than 90 seconds, it assumes that the node
  7861. went down. In addition, it also assumes the node went down when a
  7862. switch detects a SONET signal failure.
  7863.  
  7864. 4.2 Packet Format
  7865.  
  7866. The HDLC protocol field of a NSP frame contains 0xFE03 (hexadecimal)
  7867. as defined by the "MAPOS Version 1 Assigned Numbers" [6]. The
  7868. information field contains the NSP packet as shown in Figure 3.
  7869.  
  7870.  
  7871. +-----------+------------+
  7872. I command I address I
  7873. +-----------+------------+
  7874. I<- 32bit ->I<- 32 bit ->I
  7875.  
  7876. Figure 3 NSP packet format
  7877.  
  7878. The command field is 32 bits long and has the following values (in
  7879. decimal);
  7880.  
  7881. 1 address request
  7882. 2 address assignment
  7883. 3 reject(error)
  7884.  
  7885. The length of the address field is 32bits. In address request
  7886. packets, the NSP address field SHOULD be filled with zeroes, although
  7887. the switch ignores it. In address assignment packets, the assigned
  7888. address is placed in the least significant byte of the field. The
  7889. rest of the field is padded with zeroes. When the switch can not
  7890. assign the address for some reason, the switch replies with a reject
  7891. command (the values is 3). The value of the address field is
  7892. undefined.
  7893.  
  7894. 4.3 Consideration for special cases
  7895.  
  7896. There are two special cases to consider. One is a point-to-point
  7897. connection without a switch. The other is loop-back, that is, direct
  7898. connection between the input and the output of the same port.
  7899.  
  7900. 4.3.1 point-to-point
  7901.  
  7902. In the case of a point-to-point connection shown in Figure 4, a node
  7903. sends an address request packet to the other node. The destination
  7904. address is 00000001(0x01), that is usually a control processor in a
  7905. switch. When a node receives the address request, it detects the
  7906.  
  7907.  
  7908.  
  7909. Murakami & Maruyama Informational [Page 4]
  7910. RFC 2173 MAPOS June 1997
  7911.  
  7912.  
  7913. point-to-point connection by examining both the destination address
  7914. and the command contained. Then, it MUST reply with an address
  7915. assignment packet. The assigned address MUST be 00000011(0x03). Since
  7916. both nodes send an address request to each other, both of them get
  7917. address 00000011(0x03). Since any address can be used in point-to-
  7918. point environment, there is no problem even if both of the nodes have
  7919. the same address.
  7920.  
  7921. ---- address request ----> 0x01
  7922. 0x03 <---- address assignment ----
  7923. +------+ +------+
  7924. | node +--------------------------------+ node |
  7925. +------+ +------+
  7926. 0x01 <---- address request ----
  7927. ---- address assignment ----> 0x03
  7928.  
  7929. Figure 4 Point-to-point connection
  7930.  
  7931. 4.3.2 loop-back
  7932.  
  7933. Another special case is loop-back where the output port of a node is
  7934. simply connected to its input port as shown in Figure 5. In this
  7935. case, the same mechanism as that for point-to-point can be applied
  7936. without modification. A node sends an address request packet
  7937. destined to 00000001(0x01). The node then receives the same packet.
  7938. Since the destination is 00000001(0x01), it replies with an address
  7939. assignment packet, containing the assigned address 00000011(0x03), to
  7940. the address 0000 0011(0x03). Thus, the node obtains the address
  7941. 00000011(0x03).
  7942.  
  7943. ---- address request ----> 0x01
  7944. +------+ --- address assignment --> 0x03
  7945. | +-------------->-----------------+
  7946. | node + |
  7947. | +--------------<-----------------+
  7948. +------+
  7949.  
  7950. Figure 5 Loop-back Configuration
  7951.  
  7952.  
  7953.  
  7954.  
  7955.  
  7956.  
  7957.  
  7958.  
  7959.  
  7960.  
  7961.  
  7962.  
  7963.  
  7964. Murakami & Maruyama Informational [Page 5]
  7965. RFC 2173 MAPOS June 1997
  7966.  
  7967.  
  7968. 5. Security Considerations
  7969.  
  7970. Security issues are not discussed in this memo.
  7971.  
  7972. References
  7973.  
  7974. [1] Murakami, K. and M. Maruyama, "MAPOS - Multiple Access Protocol
  7975. over SONET/SDH, Version 1," RFC-2171, June 1997.
  7976.  
  7977. [2] CCITT Recommendation G.707: Synchronous Digital Hierarchy Bit
  7978. Rates (1990).
  7979.  
  7980. [3] CCITT Recommendation G.708: Network Node Interface for
  7981. Synchronous Digital Hierarchy (1990).
  7982.  
  7983. [4] CCITT Recommendation G.709: Synchronous Multiplexing Structure
  7984. (1990).
  7985.  
  7986. [5] American National Standard for Telecommunications - Digital
  7987. Hierarchy - Optical Interface Rates and Formats Specification,
  7988. ANSI T1.105-1991.
  7989.  
  7990. [6] Maruyama, M. and K. Murakami, "MAPOS Version 1 Assigned
  7991. Numbers," RFC-2172, June, 1997.
  7992.  
  7993. Acknowledgements
  7994.  
  7995. The authors would like to acknowledge the contributions and
  7996. thoughtful suggestions of John P. Mullaney, Clark Bremer, Masayuki
  7997. Kobayashi, Paul Francis, Toshiaki Yoshida, and Takahiro Sajima.
  7998.  
  7999. Authors' Address
  8000.  
  8001. Ken Murakami
  8002. NTT Software Laboratories
  8003. 3-9-11, Midori-cho
  8004. Musashino-shi
  8005. Tokyo 180, Japan
  8006. E-mail: murakami@ntt-20.ecl.net
  8007.  
  8008. Mitsuru Maruyama
  8009. NTT Software Laboratories
  8010. 3-9-11, Midori-cho
  8011. Musashino-shi
  8012. Tokyo 180, Japan
  8013. E-mail: mitsuru@ntt-20.ecl.net
  8014.  
  8015.  
  8016.  
  8017.  
  8018.  
  8019. Murakami & Maruyama Informational [Page 6]
  8020.  
  8021.  
  8022.  
  8023.  
  8024.  
  8025.  
  8026.  
  8027. Network Working Group K. Murakami
  8028. Request for Comments: 2173 M. Maruyama
  8029. Category: Informational NTT Laboratories
  8030. June 1997
  8031.  
  8032.  
  8033. A MAPOS version 1 Extension - Node Switch Protocol
  8034.  
  8035. Status of this Memo
  8036.  
  8037. This memo provides information for the Internet community. This memo
  8038. does not specify an Internet standard of any kind. Distribution of
  8039. this memo is unlimited.
  8040.  
  8041. Abstract
  8042.  
  8043. This document describes a MAPOS extension, Node Switch Protocol, for
  8044. automatic node address assignment. MAPOS is a multiple access
  8045. protocol for transmission of network-protocol datagrams, encapsulated
  8046. in High-Level Data Link Control (HDLC) frames, over SONET/SDH. NSP
  8047. automates the HDLC address configuration of each node. Using NSP, a
  8048. node retrieves its HDLC address from the switch to which it is
  8049. connected.
  8050.  
  8051. 1. Introduction
  8052.  
  8053. MAPOS[1], Multiple Access Protocol over SONET(Synchronous Optical
  8054. Network)/SDH(Synchronous Digital Hierarchy)[2][3][4][5], is a
  8055. protocol for transmission of HDLC frames over SONET/SDH. A SONET
  8056. switch provides multiple access capability to each node. In MAPOS,
  8057. each node has a unique HDLC address within a switch. The address is
  8058. equivalent to the port number of the switch to which the node is
  8059. connected. This document describes an extension to MAPOS, Node
  8060. Switch Protocol, which enable automatic HDLC address assignment.
  8061. First, it explains the addressing of MAPOS. Then, it describes the
  8062. NSP protocol for automatic HDLC node address assignment.
  8063.  
  8064. 2. Node Address Format
  8065.  
  8066. This section describes MAPOS Version 1 address format in single and
  8067. multiple switch environment.
  8068.  
  8069.  
  8070.  
  8071.  
  8072.  
  8073.  
  8074.  
  8075.  
  8076.  
  8077.  
  8078. Murakami & Maruyama Informational [Page 1]
  8079. RFC 2173 MAPOS June 1997
  8080.  
  8081.  
  8082. 2.1 Address Format
  8083.  
  8084. In MAPOS network, each end node has a unique HDLC address. As shown
  8085. in Figure 1, the address length is 8 bits. The LSB is always 1 which
  8086. indicates the end of the field. When a SONET switch receives an HDLC
  8087. frame, it forwards the frame based on the address in the frame
  8088. header.
  8089.  
  8090. In unicast, MSB is 0 and the rest of the bits are the port number to
  8091. which a node is connected. Since the LSB is always 1, the minimum and
  8092. maximum addresses are 0x01 and 0x7F, respectively. Address 0x01 is
  8093. reserved and is assigned to the control processor in a SONET switch.
  8094.  
  8095. In broadcast, MSB is 1 and the rest of the bits are all 1s. In
  8096. multicast, MSB is 1 and the rest of the bits, except for the LSB,
  8097. indicate the group address.
  8098.  
  8099. +-------------+-+
  8100. | | | | | | | | |
  8101. | |port number|1|
  8102. +-+-----------+-+
  8103. ^ ^
  8104. | |
  8105. | +------- EA bit (always 1)
  8106. |
  8107. 1 : broadcast, multicast
  8108. 0 : unicast
  8109.  
  8110. Figure 1 Address format
  8111.  
  8112. 2.2 Address in multi-switch environment
  8113.  
  8114. In a multi-switch environment, variable-length subnet addressing is
  8115. used. Each switch has a switch number that is unique within the
  8116. system. Subnetted node addresses consist of the switch number and the
  8117. port number to which a node is connected. The address format is "0
  8118. <switch number> <node number> 1" for a unicast address, "all 1" for
  8119. the broadcast address, and "1 <group address> 1" for a multicast
  8120. address.
  8121.  
  8122. The address 0x01 is reserved and is assigned to the control processor
  8123. in the "local" switch. That is, it indicates the switch itself to
  8124. which the node is connected. The addresses of the form "0 <switch
  8125. number> <all 0> 1" are reserved, and indicates the control processor
  8126. of the switch designated by the switch number.
  8127.  
  8128. In Figure 2, the switch numbers are two bits long. Node N1 is
  8129. connected to port 0x3 of switch S1 numbered 0x1 (01 in binary). Thus,
  8130.  
  8131.  
  8132.  
  8133. Murakami & Maruyama Informational [Page 2]
  8134. RFC 2173 MAPOS June 1997
  8135.  
  8136.  
  8137. the node address is 0 + 01 + 00011, that is, 00100011(0x23). Node N3
  8138. has an address 01001001(0x49), since the switch number of S2 is 0x2
  8139. (10 in binary) and the port number is 0x09. Note that all the port
  8140. numbers are odd because the LSBs are always 1.
  8141.  
  8142. +------+
  8143. | node |
  8144. | N1 |
  8145. +------+
  8146. | 00100011(0x23)
  8147. |
  8148. |0x3 |0x3
  8149. +------+ +---+----+ +---+----+ +------+
  8150. | node +----+ SONET +-------+ SONET +-----+ node |
  8151. | N2 | 0x5| Switch |0x9 0x5| Switch |0x9 | N3 |
  8152. +------+ | S1 | | S2 | +------+
  8153. 00100101(0x25) | 0x1 | | 0x2 | 01001001(0x49)
  8154. +---+----+ +---+----+
  8155. |0x7 |0x7
  8156.  
  8157.  
  8158. Figure 2 Addressing in Multiple Switch Environment
  8159.  
  8160. 4 NSP(Node-Switch Protocol)
  8161.  
  8162. This section describes the NSP protocol used for automatic node
  8163. address assignment.
  8164.  
  8165. 4.1 NSP protocol
  8166.  
  8167. NSP is introduced to provide an automatic node address assignment
  8168. function in MAPOS version 1. It reduces the administrative overhead
  8169. of node address configuration for each node and prevents troubles
  8170. such as address inconsistency and collision. When a node is connected
  8171. to a switch and receives SONET signal correctly, the node sends an
  8172. address request packet to the control processor in the local switch.
  8173. The destination address of this packet is 00000001(0x01). When the
  8174. control processor receives the packet, it replies with an address
  8175. assignment packet. The destination is the assigned node address. If
  8176. the node does not receive the address assignment packet within 5
  8177. seconds, it retransmits the address request packet. The
  8178. retransmission continues until the node successfully receives the
  8179. address assignment packet.
  8180.  
  8181. Whenever a node detects a transmission error such as carrier loss or
  8182. out-of-synchronization, it SHOULD send an address request packet to
  8183. the control processor and verify its current address. In addition, a
  8184. node MUST verify its address by sending address request packets every
  8185.  
  8186.  
  8187.  
  8188. Murakami & Maruyama Informational [Page 3]
  8189. RFC 2173 MAPOS June 1997
  8190.  
  8191.  
  8192. 30 seconds. The switch regards them as keep-alive packets and
  8193. utilizes them to detect the node's status. If it has not received a
  8194. request packet for more than 90 seconds, it assumes that the node
  8195. went down. In addition, it also assumes the node went down when a
  8196. switch detects a SONET signal failure.
  8197.  
  8198. 4.2 Packet Format
  8199.  
  8200. The HDLC protocol field of a NSP frame contains 0xFE03 (hexadecimal)
  8201. as defined by the "MAPOS Version 1 Assigned Numbers" [6]. The
  8202. information field contains the NSP packet as shown in Figure 3.
  8203.  
  8204.  
  8205. +-----------+------------+
  8206. I command I address I
  8207. +-----------+------------+
  8208. I<- 32bit ->I<- 32 bit ->I
  8209.  
  8210. Figure 3 NSP packet format
  8211.  
  8212. The command field is 32 bits long and has the following values (in
  8213. decimal);
  8214.  
  8215. 1 address request
  8216. 2 address assignment
  8217. 3 reject(error)
  8218.  
  8219. The length of the address field is 32bits. In address request
  8220. packets, the NSP address field SHOULD be filled with zeroes, although
  8221. the switch ignores it. In address assignment packets, the assigned
  8222. address is placed in the least significant byte of the field. The
  8223. rest of the field is padded with zeroes. When the switch can not
  8224. assign the address for some reason, the switch replies with a reject
  8225. command (the values is 3). The value of the address field is
  8226. undefined.
  8227.  
  8228. 4.3 Consideration for special cases
  8229.  
  8230. There are two special cases to consider. One is a point-to-point
  8231. connection without a switch. The other is loop-back, that is, direct
  8232. connection between the input and the output of the same port.
  8233.  
  8234. 4.3.1 point-to-point
  8235.  
  8236. In the case of a point-to-point connection shown in Figure 4, a node
  8237. sends an address request packet to the other node. The destination
  8238. address is 00000001(0x01), that is usually a control processor in a
  8239. switch. When a node receives the address request, it detects the
  8240.  
  8241.  
  8242.  
  8243. Murakami & Maruyama Informational [Page 4]
  8244. RFC 2173 MAPOS June 1997
  8245.  
  8246.  
  8247. point-to-point connection by examining both the destination address
  8248. and the command contained. Then, it MUST reply with an address
  8249. assignment packet. The assigned address MUST be 00000011(0x03). Since
  8250. both nodes send an address request to each other, both of them get
  8251. address 00000011(0x03). Since any address can be used in point-to-
  8252. point environment, there is no problem even if both of the nodes have
  8253. the same address.
  8254.  
  8255. ---- address request ----> 0x01
  8256. 0x03 <---- address assignment ----
  8257. +------+ +------+
  8258. | node +--------------------------------+ node |
  8259. +------+ +------+
  8260. 0x01 <---- address request ----
  8261. ---- address assignment ----> 0x03
  8262.  
  8263. Figure 4 Point-to-point connection
  8264.  
  8265. 4.3.2 loop-back
  8266.  
  8267. Another special case is loop-back where the output port of a node is
  8268. simply connected to its input port as shown in Figure 5. In this
  8269. case, the same mechanism as that for point-to-point can be applied
  8270. without modification. A node sends an address request packet
  8271. destined to 00000001(0x01). The node then receives the same packet.
  8272. Since the destination is 00000001(0x01), it replies with an address
  8273. assignment packet, containing the assigned address 00000011(0x03), to
  8274. the address 0000 0011(0x03). Thus, the node obtains the address
  8275. 00000011(0x03).
  8276.  
  8277. ---- address request ----> 0x01
  8278. +------+ --- address assignment --> 0x03
  8279. | +-------------->-----------------+
  8280. | node + |
  8281. | +--------------<-----------------+
  8282. +------+
  8283.  
  8284. Figure 5 Loop-back Configuration
  8285.  
  8286.  
  8287.  
  8288.  
  8289.  
  8290.  
  8291.  
  8292.  
  8293.  
  8294.  
  8295.  
  8296.  
  8297.  
  8298. Murakami & Maruyama Informational [Page 5]
  8299. RFC 2173 MAPOS June 1997
  8300.  
  8301.  
  8302. 5. Security Considerations
  8303.  
  8304. Security issues are not discussed in this memo.
  8305.  
  8306. References
  8307.  
  8308. [1] Murakami, K. and M. Maruyama, "MAPOS - Multiple Access Protocol
  8309. over SONET/SDH, Version 1," RFC-2171, June 1997.
  8310.  
  8311. [2] CCITT Recommendation G.707: Synchronous Digital Hierarchy Bit
  8312. Rates (1990).
  8313.  
  8314. [3] CCITT Recommendation G.708: Network Node Interface for
  8315. Synchronous Digital Hierarchy (1990).
  8316.  
  8317. [4] CCITT Recommendation G.709: Synchronous Multiplexing Structure
  8318. (1990).
  8319.  
  8320. [5] American National Standard for Telecommunications - Digital
  8321. Hierarchy - Optical Interface Rates and Formats Specification,
  8322. ANSI T1.105-1991.
  8323.  
  8324. [6] Maruyama, M. and K. Murakami, "MAPOS Version 1 Assigned
  8325. Numbers," RFC-2172, June, 1997.
  8326.  
  8327. Acknowledgements
  8328.  
  8329. The authors would like to acknowledge the contributions and
  8330. thoughtful suggestions of John P. Mullaney, Clark Bremer, Masayuki
  8331. Kobayashi, Paul Francis, Toshiaki Yoshida, and Takahiro Sajima.
  8332.  
  8333. Authors' Address
  8334.  
  8335. Ken Murakami
  8336. NTT Software Laboratories
  8337. 3-9-11, Midori-cho
  8338. Musashino-shi
  8339. Tokyo 180, Japan
  8340. E-mail: murakami@ntt-20.ecl.net
  8341.  
  8342. Mitsuru Maruyama
  8343. NTT Software Laboratories
  8344. 3-9-11, Midori-cho
  8345. Musashino-shi
  8346. Tokyo 180, Japan
  8347. E-mail: mitsuru@ntt-20.ecl.net
  8348.  
  8349.  
  8350.  
  8351.  
  8352.  
  8353. Murakami & Maruyama Informational [Page 6]
  8354.  
  8355.  
  8356.  
  8357.  
  8358.  
  8359.  
  8360.  
  8361. Network Working Group K. Murakami
  8362. Request for Comments: 2173 M. Maruyama
  8363. Category: Informational NTT Laboratories
  8364. June 1997
  8365.  
  8366.  
  8367. A MAPOS version 1 Extension - Node Switch Protocol
  8368.  
  8369. Status of this Memo
  8370.  
  8371. This memo provides information for the Internet community. This memo
  8372. does not specify an Internet standard of any kind. Distribution of
  8373. this memo is unlimited.
  8374.  
  8375. Abstract
  8376.  
  8377. This document describes a MAPOS extension, Node Switch Protocol, for
  8378. automatic node address assignment. MAPOS is a multiple access
  8379. protocol for transmission of network-protocol datagrams, encapsulated
  8380. in High-Level Data Link Control (HDLC) frames, over SONET/SDH. NSP
  8381. automates the HDLC address configuration of each node. Using NSP, a
  8382. node retrieves its HDLC address from the switch to which it is
  8383. connected.
  8384.  
  8385. 1. Introduction
  8386.  
  8387. MAPOS[1], Multiple Access Protocol over SONET(Synchronous Optical
  8388. Network)/SDH(Synchronous Digital Hierarchy)[2][3][4][5], is a
  8389. protocol for transmission of HDLC frames over SONET/SDH. A SONET
  8390. switch provides multiple access capability to each node. In MAPOS,
  8391. each node has a unique HDLC address within a switch. The address is
  8392. equivalent to the port number of the switch to which the node is
  8393. connected. This document describes an extension to MAPOS, Node
  8394. Switch Protocol, which enable automatic HDLC address assignment.
  8395. First, it explains the addressing of MAPOS. Then, it describes the
  8396. NSP protocol for automatic HDLC node address assignment.
  8397.  
  8398. 2. Node Address Format
  8399.  
  8400. This section describes MAPOS Version 1 address format in single and
  8401. multiple switch environment.
  8402.  
  8403.  
  8404.  
  8405.  
  8406.  
  8407.  
  8408.  
  8409.  
  8410.  
  8411.  
  8412. Murakami & Maruyama Informational [Page 1]
  8413. RFC 2173 MAPOS June 1997
  8414.  
  8415.  
  8416. 2.1 Address Format
  8417.  
  8418. In MAPOS network, each end node has a unique HDLC address. As shown
  8419. in Figure 1, the address length is 8 bits. The LSB is always 1 which
  8420. indicates the end of the field. When a SONET switch receives an HDLC
  8421. frame, it forwards the frame based on the address in the frame
  8422. header.
  8423.  
  8424. In unicast, MSB is 0 and the rest of the bits are the port number to
  8425. which a node is connected. Since the LSB is always 1, the minimum and
  8426. maximum addresses are 0x01 and 0x7F, respectively. Address 0x01 is
  8427. reserved and is assigned to the control processor in a SONET switch.
  8428.  
  8429. In broadcast, MSB is 1 and the rest of the bits are all 1s. In
  8430. multicast, MSB is 1 and the rest of the bits, except for the LSB,
  8431. indicate the group address.
  8432.  
  8433. +-------------+-+
  8434. | | | | | | | | |
  8435. | |port number|1|
  8436. +-+-----------+-+
  8437. ^ ^
  8438. | |
  8439. | +------- EA bit (always 1)
  8440. |
  8441. 1 : broadcast, multicast
  8442. 0 : unicast
  8443.  
  8444. Figure 1 Address format
  8445.  
  8446. 2.2 Address in multi-switch environment
  8447.  
  8448. In a multi-switch environment, variable-length subnet addressing is
  8449. used. Each switch has a switch number that is unique within the
  8450. system. Subnetted node addresses consist of the switch number and the
  8451. port number to which a node is connected. The address format is "0
  8452. <switch number> <node number> 1" for a unicast address, "all 1" for
  8453. the broadcast address, and "1 <group address> 1" for a multicast
  8454. address.
  8455.  
  8456. The address 0x01 is reserved and is assigned to the control processor
  8457. in the "local" switch. That is, it indicates the switch itself to
  8458. which the node is connected. The addresses of the form "0 <switch
  8459. number> <all 0> 1" are reserved, and indicates the control processor
  8460. of the switch designated by the switch number.
  8461.  
  8462. In Figure 2, the switch numbers are two bits long. Node N1 is
  8463. connected to port 0x3 of switch S1 numbered 0x1 (01 in binary). Thus,
  8464.  
  8465.  
  8466.  
  8467. Murakami & Maruyama Informational [Page 2]
  8468. RFC 2173 MAPOS June 1997
  8469.  
  8470.  
  8471. the node address is 0 + 01 + 00011, that is, 00100011(0x23). Node N3
  8472. has an address 01001001(0x49), since the switch number of S2 is 0x2
  8473. (10 in binary) and the port number is 0x09. Note that all the port
  8474. numbers are odd because the LSBs are always 1.
  8475.  
  8476. +------+
  8477. | node |
  8478. | N1 |
  8479. +------+
  8480. | 00100011(0x23)
  8481. |
  8482. |0x3 |0x3
  8483. +------+ +---+----+ +---+----+ +------+
  8484. | node +----+ SONET +-------+ SONET +-----+ node |
  8485. | N2 | 0x5| Switch |0x9 0x5| Switch |0x9 | N3 |
  8486. +------+ | S1 | | S2 | +------+
  8487. 00100101(0x25) | 0x1 | | 0x2 | 01001001(0x49)
  8488. +---+----+ +---+----+
  8489. |0x7 |0x7
  8490.  
  8491.  
  8492. Figure 2 Addressing in Multiple Switch Environment
  8493.  
  8494. 4 NSP(Node-Switch Protocol)
  8495.  
  8496. This section describes the NSP protocol used for automatic node
  8497. address assignment.
  8498.  
  8499. 4.1 NSP protocol
  8500.  
  8501. NSP is introduced to provide an automatic node address assignment
  8502. function in MAPOS version 1. It reduces the administrative overhead
  8503. of node address configuration for each node and prevents troubles
  8504. such as address inconsistency and collision. When a node is connected
  8505. to a switch and receives SONET signal correctly, the node sends an
  8506. address request packet to the control processor in the local switch.
  8507. The destination address of this packet is 00000001(0x01). When the
  8508. control processor receives the packet, it replies with an address
  8509. assignment packet. The destination is the assigned node address. If
  8510. the node does not receive the address assignment packet within 5
  8511. seconds, it retransmits the address request packet. The
  8512. retransmission continues until the node successfully receives the
  8513. address assignment packet.
  8514.  
  8515. Whenever a node detects a transmission error such as carrier loss or
  8516. out-of-synchronization, it SHOULD send an address request packet to
  8517. the control processor and verify its current address. In addition, a
  8518. node MUST verify its address by sending address request packets every
  8519.  
  8520.  
  8521.  
  8522. Murakami & Maruyama Informational [Page 3]
  8523. RFC 2173 MAPOS June 1997
  8524.  
  8525.  
  8526. 30 seconds. The switch regards them as keep-alive packets and
  8527. utilizes them to detect the node's status. If it has not received a
  8528. request packet for more than 90 seconds, it assumes that the node
  8529. went down. In addition, it also assumes the node went down when a
  8530. switch detects a SONET signal failure.
  8531.  
  8532. 4.2 Packet Format
  8533.  
  8534. The HDLC protocol field of a NSP frame contains 0xFE03 (hexadecimal)
  8535. as defined by the "MAPOS Version 1 Assigned Numbers" [6]. The
  8536. information field contains the NSP packet as shown in Figure 3.
  8537.  
  8538.  
  8539. +-----------+------------+
  8540. I command I address I
  8541. +-----------+------------+
  8542. I<- 32bit ->I<- 32 bit ->I
  8543.  
  8544. Figure 3 NSP packet format
  8545.  
  8546. The command field is 32 bits long and has the following values (in
  8547. decimal);
  8548.  
  8549. 1 address request
  8550. 2 address assignment
  8551. 3 reject(error)
  8552.  
  8553. The length of the address field is 32bits. In address request
  8554. packets, the NSP address field SHOULD be filled with zeroes, although
  8555. the switch ignores it. In address assignment packets, the assigned
  8556. address is placed in the least significant byte of the field. The
  8557. rest of the field is padded with zeroes. When the switch can not
  8558. assign the address for some reason, the switch replies with a reject
  8559. command (the values is 3). The value of the address field is
  8560. undefined.
  8561.  
  8562. 4.3 Consideration for special cases
  8563.  
  8564. There are two special cases to consider. One is a point-to-point
  8565. connection without a switch. The other is loop-back, that is, direct
  8566. connection between the input and the output of the same port.
  8567.  
  8568. 4.3.1 point-to-point
  8569.  
  8570. In the case of a point-to-point connection shown in Figure 4, a node
  8571. sends an address request packet to the other node. The destination
  8572. address is 00000001(0x01), that is usually a control processor in a
  8573. switch. When a node receives the address request, it detects the
  8574.  
  8575.  
  8576.  
  8577. Murakami & Maruyama Informational [Page 4]
  8578. RFC 2173 MAPOS June 1997
  8579.  
  8580.  
  8581. point-to-point connection by examining both the destination address
  8582. and the command contained. Then, it MUST reply with an address
  8583. assignment packet. The assigned address MUST be 00000011(0x03). Since
  8584. both nodes send an address request to each other, both of them get
  8585. address 00000011(0x03). Since any address can be used in point-to-
  8586. point environment, there is no problem even if both of the nodes have
  8587. the same address.
  8588.  
  8589. ---- address request ----> 0x01
  8590. 0x03 <---- address assignment ----
  8591. +------+ +------+
  8592. | node +--------------------------------+ node |
  8593. +------+ +------+
  8594. 0x01 <---- address request ----
  8595. ---- address assignment ----> 0x03
  8596.  
  8597. Figure 4 Point-to-point connection
  8598.  
  8599. 4.3.2 loop-back
  8600.  
  8601. Another special case is loop-back where the output port of a node is
  8602. simply connected to its input port as shown in Figure 5. In this
  8603. case, the same mechanism as that for point-to-point can be applied
  8604. without modification. A node sends an address request packet
  8605. destined to 00000001(0x01). The node then receives the same packet.
  8606. Since the destination is 00000001(0x01), it replies with an address
  8607. assignment packet, containing the assigned address 00000011(0x03), to
  8608. the address 0000 0011(0x03). Thus, the node obtains the address
  8609. 00000011(0x03).
  8610.  
  8611. ---- address request ----> 0x01
  8612. +------+ --- address assignment --> 0x03
  8613. | +-------------->-----------------+
  8614. | node + |
  8615. | +--------------<-----------------+
  8616. +------+
  8617.  
  8618. Figure 5 Loop-back Configuration
  8619.  
  8620.  
  8621.  
  8622.  
  8623.  
  8624.  
  8625.  
  8626.  
  8627.  
  8628.  
  8629.  
  8630.  
  8631.  
  8632. Murakami & Maruyama Informational [Page 5]
  8633. RFC 2173 MAPOS June 1997
  8634.  
  8635.  
  8636. 5. Security Considerations
  8637.  
  8638. Security issues are not discussed in this memo.
  8639.  
  8640. References
  8641.  
  8642. [1] Murakami, K. and M. Maruyama, "MAPOS - Multiple Access Protocol
  8643. over SONET/SDH, Version 1," RFC-2171, June 1997.
  8644.  
  8645. [2] CCITT Recommendation G.707: Synchronous Digital Hierarchy Bit
  8646. Rates (1990).
  8647.  
  8648. [3] CCITT Recommendation G.708: Network Node Interface for
  8649. Synchronous Digital Hierarchy (1990).
  8650.  
  8651. [4] CCITT Recommendation G.709: Synchronous Multiplexing Structure
  8652. (1990).
  8653.  
  8654. [5] American National Standard for Telecommunications - Digital
  8655. Hierarchy - Optical Interface Rates and Formats Specification,
  8656. ANSI T1.105-1991.
  8657.  
  8658. [6] Maruyama, M. and K. Murakami, "MAPOS Version 1 Assigned
  8659. Numbers," RFC-2172, June, 1997.
  8660.  
  8661. Acknowledgements
  8662.  
  8663. The authors would like to acknowledge the contributions and
  8664. thoughtful suggestions of John P. Mullaney, Clark Bremer, Masayuki
  8665. Kobayashi, Paul Francis, Toshiaki Yoshida, and Takahiro Sajima.
  8666.  
  8667. Authors' Address
  8668.  
  8669. Ken Murakami
  8670. NTT Software Laboratories
  8671. 3-9-11, Midori-cho
  8672. Musashino-shi
  8673. Tokyo 180, Japan
  8674. E-mail: murakami@ntt-20.ecl.net
  8675.  
  8676. Mitsuru Maruyama
  8677. NTT Software Laboratories
  8678. 3-9-11, Midori-cho
  8679. Musashino-shi
  8680. Tokyo 180, Japan
  8681. E-mail: mitsuru@ntt-20.ecl.net
  8682.  
  8683.  
  8684.  
  8685.  
  8686.  
  8687. Murakami & Maruyama Informational [Page 6]
  8688.  
  8689.  
  8690.  
  8691.  
  8692.  
  8693.  
  8694.  
  8695. Network Working Group K. Murakami
  8696. Request for Comments: 2173 M. Maruyama
  8697. Category: Informational NTT Laboratories
  8698. June 1997
  8699.  
  8700.  
  8701. A MAPOS version 1 Extension - Node Switch Protocol
  8702.  
  8703. Status of this Memo
  8704.  
  8705. This memo provides information for the Internet community. This memo
  8706. does not specify an Internet standard of any kind. Distribution of
  8707. this memo is unlimited.
  8708.  
  8709. Abstract
  8710.  
  8711. This document describes a MAPOS extension, Node Switch Protocol, for
  8712. automatic node address assignment. MAPOS is a multiple access
  8713. protocol for transmission of network-protocol datagrams, encapsulated
  8714. in High-Level Data Link Control (HDLC) frames, over SONET/SDH. NSP
  8715. automates the HDLC address configuration of each node. Using NSP, a
  8716. node retrieves its HDLC address from the switch to which it is
  8717. connected.
  8718.  
  8719. 1. Introduction
  8720.  
  8721. MAPOS[1], Multiple Access Protocol over SONET(Synchronous Optical
  8722. Network)/SDH(Synchronous Digital Hierarchy)[2][3][4][5], is a
  8723. protocol for transmission of HDLC frames over SONET/SDH. A SONET
  8724. switch provides multiple access capability to each node. In MAPOS,
  8725. each node has a unique HDLC address within a switch. The address is
  8726. equivalent to the port number of the switch to which the node is
  8727. connected. This document describes an extension to MAPOS, Node
  8728. Switch Protocol, which enable automatic HDLC address assignment.
  8729. First, it explains the addressing of MAPOS. Then, it describes the
  8730. NSP protocol for automatic HDLC node address assignment.
  8731.  
  8732. 2. Node Address Format
  8733.  
  8734. This section describes MAPOS Version 1 address format in single and
  8735. multiple switch environment.
  8736.  
  8737.  
  8738.  
  8739.  
  8740.  
  8741.  
  8742.  
  8743.  
  8744.  
  8745.  
  8746. Murakami & Maruyama Informational [Page 1]
  8747. RFC 2173 MAPOS June 1997
  8748.  
  8749.  
  8750. 2.1 Address Format
  8751.  
  8752. In MAPOS network, each end node has a unique HDLC address. As shown
  8753. in Figure 1, the address length is 8 bits. The LSB is always 1 which
  8754. indicates the end of the field. When a SONET switch receives an HDLC
  8755. frame, it forwards the frame based on the address in the frame
  8756. header.
  8757.  
  8758. In unicast, MSB is 0 and the rest of the bits are the port number to
  8759. which a node is connected. Since the LSB is always 1, the minimum and
  8760. maximum addresses are 0x01 and 0x7F, respectively. Address 0x01 is
  8761. reserved and is assigned to the control processor in a SONET switch.
  8762.  
  8763. In broadcast, MSB is 1 and the rest of the bits are all 1s. In
  8764. multicast, MSB is 1 and the rest of the bits, except for the LSB,
  8765. indicate the group address.
  8766.  
  8767. +-------------+-+
  8768. | | | | | | | | |
  8769. | |port number|1|
  8770. +-+-----------+-+
  8771. ^ ^
  8772. | |
  8773. | +------- EA bit (always 1)
  8774. |
  8775. 1 : broadcast, multicast
  8776. 0 : unicast
  8777.  
  8778. Figure 1 Address format
  8779.  
  8780. 2.2 Address in multi-switch environment
  8781.  
  8782. In a multi-switch environment, variable-length subnet addressing is
  8783. used. Each switch has a switch number that is unique within the
  8784. system. Subnetted node addresses consist of the switch number and the
  8785. port number to which a node is connected. The address format is "0
  8786. <switch number> <node number> 1" for a unicast address, "all 1" for
  8787. the broadcast address, and "1 <group address> 1" for a multicast
  8788. address.
  8789.  
  8790. The address 0x01 is reserved and is assigned to the control processor
  8791. in the "local" switch. That is, it indicates the switch itself to
  8792. which the node is connected. The addresses of the form "0 <switch
  8793. number> <all 0> 1" are reserved, and indicates the control processor
  8794. of the switch designated by the switch number.
  8795.  
  8796. In Figure 2, the switch numbers are two bits long. Node N1 is
  8797. connected to port 0x3 of switch S1 numbered 0x1 (01 in binary). Thus,
  8798.  
  8799.  
  8800.  
  8801. Murakami & Maruyama Informational [Page 2]
  8802. RFC 2173 MAPOS June 1997
  8803.  
  8804.  
  8805. the node address is 0 + 01 + 00011, that is, 00100011(0x23). Node N3
  8806. has an address 01001001(0x49), since the switch number of S2 is 0x2
  8807. (10 in binary) and the port number is 0x09. Note that all the port
  8808. numbers are odd because the LSBs are always 1.
  8809.  
  8810. +------+
  8811. | node |
  8812. | N1 |
  8813. +------+
  8814. | 00100011(0x23)
  8815. |
  8816. |0x3 |0x3
  8817. +------+ +---+----+ +---+----+ +------+
  8818. | node +----+ SONET +-------+ SONET +-----+ node |
  8819. | N2 | 0x5| Switch |0x9 0x5| Switch |0x9 | N3 |
  8820. +------+ | S1 | | S2 | +------+
  8821. 00100101(0x25) | 0x1 | | 0x2 | 01001001(0x49)
  8822. +---+----+ +---+----+
  8823. |0x7 |0x7
  8824.  
  8825.  
  8826. Figure 2 Addressing in Multiple Switch Environment
  8827.  
  8828. 4 NSP(Node-Switch Protocol)
  8829.  
  8830. This section describes the NSP protocol used for automatic node
  8831. address assignment.
  8832.  
  8833. 4.1 NSP protocol
  8834.  
  8835. NSP is introduced to provide an automatic node address assignment
  8836. function in MAPOS version 1. It reduces the administrative overhead
  8837. of node address configuration for each node and prevents troubles
  8838. such as address inconsistency and collision. When a node is connected
  8839. to a switch and receives SONET signal correctly, the node sends an
  8840. address request packet to the control processor in the local switch.
  8841. The destination address of this packet is 00000001(0x01). When the
  8842. control processor receives the packet, it replies with an address
  8843. assignment packet. The destination is the assigned node address. If
  8844. the node does not receive the address assignment packet within 5
  8845. seconds, it retransmits the address request packet. The
  8846. retransmission continues until the node successfully receives the
  8847. address assignment packet.
  8848.  
  8849. Whenever a node detects a transmission error such as carrier loss or
  8850. out-of-synchronization, it SHOULD send an address request packet to
  8851. the control processor and verify its current address. In addition, a
  8852. node MUST verify its address by sending address request packets every
  8853.  
  8854.  
  8855.  
  8856. Murakami & Maruyama Informational [Page 3]
  8857. RFC 2173 MAPOS June 1997
  8858.  
  8859.  
  8860. 30 seconds. The switch regards them as keep-alive packets and
  8861. utilizes them to detect the node's status. If it has not received a
  8862. request packet for more than 90 seconds, it assumes that the node
  8863. went down. In addition, it also assumes the node went down when a
  8864. switch detects a SONET signal failure.
  8865.  
  8866. 4.2 Packet Format
  8867.  
  8868. The HDLC protocol field of a NSP frame contains 0xFE03 (hexadecimal)
  8869. as defined by the "MAPOS Version 1 Assigned Numbers" [6]. The
  8870. information field contains the NSP packet as shown in Figure 3.
  8871.  
  8872.  
  8873. +-----------+------------+
  8874. I command I address I
  8875. +-----------+------------+
  8876. I<- 32bit ->I<- 32 bit ->I
  8877.  
  8878. Figure 3 NSP packet format
  8879.  
  8880. The command field is 32 bits long and has the following values (in
  8881. decimal);
  8882.  
  8883. 1 address request
  8884. 2 address assignment
  8885. 3 reject(error)
  8886.  
  8887. The length of the address field is 32bits. In address request
  8888. packets, the NSP address field SHOULD be filled with zeroes, although
  8889. the switch ignores it. In address assignment packets, the assigned
  8890. address is placed in the least significant byte of the field. The
  8891. rest of the field is padded with zeroes. When the switch can not
  8892. assign the address for some reason, the switch replies with a reject
  8893. command (the values is 3). The value of the address field is
  8894. undefined.
  8895.  
  8896. 4.3 Consideration for special cases
  8897.  
  8898. There are two special cases to consider. One is a point-to-point
  8899. connection without a switch. The other is loop-back, that is, direct
  8900. connection between the input and the output of the same port.
  8901.  
  8902. 4.3.1 point-to-point
  8903.  
  8904. In the case of a point-to-point connection shown in Figure 4, a node
  8905. sends an address request packet to the other node. The destination
  8906. address is 00000001(0x01), that is usually a control processor in a
  8907. switch. When a node receives the address request, it detects the
  8908.  
  8909.  
  8910.  
  8911. Murakami & Maruyama Informational [Page 4]
  8912. RFC 2173 MAPOS June 1997
  8913.  
  8914.  
  8915. point-to-point connection by examining both the destination address
  8916. and the command contained. Then, it MUST reply with an address
  8917. assignment packet. The assigned address MUST be 00000011(0x03). Since
  8918. both nodes send an address request to each other, both of them get
  8919. address 00000011(0x03). Since any address can be used in point-to-
  8920. point environment, there is no problem even if both of the nodes have
  8921. the same address.
  8922.  
  8923. ---- address request ----> 0x01
  8924. 0x03 <---- address assignment ----
  8925. +------+ +------+
  8926. | node +--------------------------------+ node |
  8927. +------+ +------+
  8928. 0x01 <---- address request ----
  8929. ---- address assignment ----> 0x03
  8930.  
  8931. Figure 4 Point-to-point connection
  8932.  
  8933. 4.3.2 loop-back
  8934.  
  8935. Another special case is loop-back where the output port of a node is
  8936. simply connected to its input port as shown in Figure 5. In this
  8937. case, the same mechanism as that for point-to-point can be applied
  8938. without modification. A node sends an address request packet
  8939. destined to 00000001(0x01). The node then receives the same packet.
  8940. Since the destination is 00000001(0x01), it replies with an address
  8941. assignment packet, containing the assigned address 00000011(0x03), to
  8942. the address 0000 0011(0x03). Thus, the node obtains the address
  8943. 00000011(0x03).
  8944.  
  8945. ---- address request ----> 0x01
  8946. +------+ --- address assignment --> 0x03
  8947. | +-------------->-----------------+
  8948. | node + |
  8949. | +--------------<-----------------+
  8950. +------+
  8951.  
  8952. Figure 5 Loop-back Configuration
  8953.  
  8954.  
  8955.  
  8956.  
  8957.  
  8958.  
  8959.  
  8960.  
  8961.  
  8962.  
  8963.  
  8964.  
  8965.  
  8966. Murakami & Maruyama Informational [Page 5]
  8967. RFC 2173 MAPOS June 1997
  8968.  
  8969.  
  8970. 5. Security Considerations
  8971.  
  8972. Security issues are not discussed in this memo.
  8973.  
  8974. References
  8975.  
  8976. [1] Murakami, K. and M. Maruyama, "MAPOS - Multiple Access Protocol
  8977. over SONET/SDH, Version 1," RFC-2171, June 1997.
  8978.  
  8979. [2] CCITT Recommendation G.707: Synchronous Digital Hierarchy Bit
  8980. Rates (1990).
  8981.  
  8982. [3] CCITT Recommendation G.708: Network Node Interface for
  8983. Synchronous Digital Hierarchy (1990).
  8984.  
  8985. [4] CCITT Recommendation G.709: Synchronous Multiplexing Structure
  8986. (1990).
  8987.  
  8988. [5] American National Standard for Telecommunications - Digital
  8989. Hierarchy - Optical Interface Rates and Formats Specification,
  8990. ANSI T1.105-1991.
  8991.  
  8992. [6] Maruyama, M. and K. Murakami, "MAPOS Version 1 Assigned
  8993. Numbers," RFC-2172, June, 1997.
  8994.  
  8995. Acknowledgements
  8996.  
  8997. The authors would like to acknowledge the contributions and
  8998. thoughtful suggestions of John P. Mullaney, Clark Bremer, Masayuki
  8999. Kobayashi, Paul Francis, Toshiaki Yoshida, and Takahiro Sajima.
  9000.  
  9001. Authors' Address
  9002.  
  9003. Ken Murakami
  9004. NTT Software Laboratories
  9005. 3-9-11, Midori-cho
  9006. Musashino-shi
  9007. Tokyo 180, Japan
  9008. E-mail: murakami@ntt-20.ecl.net
  9009.  
  9010. Mitsuru Maruyama
  9011. NTT Software Laboratories
  9012. 3-9-11, Midori-cho
  9013. Musashino-shi
  9014. Tokyo 180, Japan
  9015. E-mail: mitsuru@ntt-20.ecl.net
  9016.  
  9017.  
  9018.  
  9019.  
  9020.  
  9021. Murakami & Maruyama Informational [Page 6]
  9022.  
  9023.  
  9024.  
  9025.  
  9026.  
  9027.  
  9028.  
  9029. Network Working Group K. Murakami
  9030. Request for Comments: 2173 M. Maruyama
  9031. Category: Informational NTT Laboratories
  9032. June 1997
  9033.  
  9034.  
  9035. A MAPOS version 1 Extension - Node Switch Protocol
  9036.  
  9037. Status of this Memo
  9038.  
  9039. This memo provides information for the Internet community. This memo
  9040. does not specify an Internet standard of any kind. Distribution of
  9041. this memo is unlimited.
  9042.  
  9043. Abstract
  9044.  
  9045. This document describes a MAPOS extension, Node Switch Protocol, for
  9046. automatic node address assignment. MAPOS is a multiple access
  9047. protocol for transmission of network-protocol datagrams, encapsulated
  9048. in High-Level Data Link Control (HDLC) frames, over SONET/SDH. NSP
  9049. automates the HDLC address configuration of each node. Using NSP, a
  9050. node retrieves its HDLC address from the switch to which it is
  9051. connected.
  9052.  
  9053. 1. Introduction
  9054.  
  9055. MAPOS[1], Multiple Access Protocol over SONET(Synchronous Optical
  9056. Network)/SDH(Synchronous Digital Hierarchy)[2][3][4][5], is a
  9057. protocol for transmission of HDLC frames over SONET/SDH. A SONET
  9058. switch provides multiple access capability to each node. In MAPOS,
  9059. each node has a unique HDLC address within a switch. The address is
  9060. equivalent to the port number of the switch to which the node is
  9061. connected. This document describes an extension to MAPOS, Node
  9062. Switch Protocol, which enable automatic HDLC address assignment.
  9063. First, it explains the addressing of MAPOS. Then, it describes the
  9064. NSP protocol for automatic HDLC node address assignment.
  9065.  
  9066. 2. Node Address Format
  9067.  
  9068. This section describes MAPOS Version 1 address format in single and
  9069. multiple switch environment.
  9070.  
  9071.  
  9072.  
  9073.  
  9074.  
  9075.  
  9076.  
  9077.  
  9078.  
  9079.  
  9080. Murakami & Maruyama Informational [Page 1]
  9081. RFC 2173 MAPOS June 1997
  9082.  
  9083.  
  9084. 2.1 Address Format
  9085.  
  9086. In MAPOS network, each end node has a unique HDLC address. As shown
  9087. in Figure 1, the address length is 8 bits. The LSB is always 1 which
  9088. indicates the end of the field. When a SONET switch receives an HDLC
  9089. frame, it forwards the frame based on the address in the frame
  9090. header.
  9091.  
  9092. In unicast, MSB is 0 and the rest of the bits are the port number to
  9093. which a node is connected. Since the LSB is always 1, the minimum and
  9094. maximum addresses are 0x01 and 0x7F, respectively. Address 0x01 is
  9095. reserved and is assigned to the control processor in a SONET switch.
  9096.  
  9097. In broadcast, MSB is 1 and the rest of the bits are all 1s. In
  9098. multicast, MSB is 1 and the rest of the bits, except for the LSB,
  9099. indicate the group address.
  9100.  
  9101. +-------------+-+
  9102. | | | | | | | | |
  9103. | |port number|1|
  9104. +-+-----------+-+
  9105. ^ ^
  9106. | |
  9107. | +------- EA bit (always 1)
  9108. |
  9109. 1 : broadcast, multicast
  9110. 0 : unicast
  9111.  
  9112. Figure 1 Address format
  9113.  
  9114. 2.2 Address in multi-switch environment
  9115.  
  9116. In a multi-switch environment, variable-length subnet addressing is
  9117. used. Each switch has a switch number that is unique within the
  9118. system. Subnetted node addresses consist of the switch number and the
  9119. port number to which a node is connected. The address format is "0
  9120. <switch number> <node number> 1" for a unicast address, "all 1" for
  9121. the broadcast address, and "1 <group address> 1" for a multicast
  9122. address.
  9123.  
  9124. The address 0x01 is reserved and is assigned to the control processor
  9125. in the "local" switch. That is, it indicates the switch itself to
  9126. which the node is connected. The addresses of the form "0 <switch
  9127. number> <all 0> 1" are reserved, and indicates the control processor
  9128. of the switch designated by the switch number.
  9129.  
  9130. In Figure 2, the switch numbers are two bits long. Node N1 is
  9131. connected to port 0x3 of switch S1 numbered 0x1 (01 in binary). Thus,
  9132.  
  9133.  
  9134.  
  9135. Murakami & Maruyama Informational [Page 2]
  9136. RFC 2173 MAPOS June 1997
  9137.  
  9138.  
  9139. the node address is 0 + 01 + 00011, that is, 00100011(0x23). Node N3
  9140. has an address 01001001(0x49), since the switch number of S2 is 0x2
  9141. (10 in binary) and the port number is 0x09. Note that all the port
  9142. numbers are odd because the LSBs are always 1.
  9143.  
  9144. +------+
  9145. | node |
  9146. | N1 |
  9147. +------+
  9148. | 00100011(0x23)
  9149. |
  9150. |0x3 |0x3
  9151. +------+ +---+----+ +---+----+ +------+
  9152. | node +----+ SONET +-------+ SONET +-----+ node |
  9153. | N2 | 0x5| Switch |0x9 0x5| Switch |0x9 | N3 |
  9154. +------+ | S1 | | S2 | +------+
  9155. 00100101(0x25) | 0x1 | | 0x2 | 01001001(0x49)
  9156. +---+----+ +---+----+
  9157. |0x7 |0x7
  9158.  
  9159.  
  9160. Figure 2 Addressing in Multiple Switch Environment
  9161.  
  9162. 4 NSP(Node-Switch Protocol)
  9163.  
  9164. This section describes the NSP protocol used for automatic node
  9165. address assignment.
  9166.  
  9167. 4.1 NSP protocol
  9168.  
  9169. NSP is introduced to provide an automatic node address assignment
  9170. function in MAPOS version 1. It reduces the administrative overhead
  9171. of node address configuration for each node and prevents troubles
  9172. such as address inconsistency and collision. When a node is connected
  9173. to a switch and receives SONET signal correctly, the node sends an
  9174. address request packet to the control processor in the local switch.
  9175. The destination address of this packet is 00000001(0x01). When the
  9176. control processor receives the packet, it replies with an address
  9177. assignment packet. The destination is the assigned node address. If
  9178. the node does not receive the address assignment packet within 5
  9179. seconds, it retransmits the address request packet. The
  9180. retransmission continues until the node successfully receives the
  9181. address assignment packet.
  9182.  
  9183. Whenever a node detects a transmission error such as carrier loss or
  9184. out-of-synchronization, it SHOULD send an address request packet to
  9185. the control processor and verify its current address. In addition, a
  9186. node MUST verify its address by sending address request packets every
  9187.  
  9188.  
  9189.  
  9190. Murakami & Maruyama Informational [Page 3]
  9191. RFC 2173 MAPOS June 1997
  9192.  
  9193.  
  9194. 30 seconds. The switch regards them as keep-alive packets and
  9195. utilizes them to detect the node's status. If it has not received a
  9196. request packet for more than 90 seconds, it assumes that the node
  9197. went down. In addition, it also assumes the node went down when a
  9198. switch detects a SONET signal failure.
  9199.  
  9200. 4.2 Packet Format
  9201.  
  9202. The HDLC protocol field of a NSP frame contains 0xFE03 (hexadecimal)
  9203. as defined by the "MAPOS Version 1 Assigned Numbers" [6]. The
  9204. information field contains the NSP packet as shown in Figure 3.
  9205.  
  9206.  
  9207. +-----------+------------+
  9208. I command I address I
  9209. +-----------+------------+
  9210. I<- 32bit ->I<- 32 bit ->I
  9211.  
  9212. Figure 3 NSP packet format
  9213.  
  9214. The command field is 32 bits long and has the following values (in
  9215. decimal);
  9216.  
  9217. 1 address request
  9218. 2 address assignment
  9219. 3 reject(error)
  9220.  
  9221. The length of the address field is 32bits. In address request
  9222. packets, the NSP address field SHOULD be filled with zeroes, although
  9223. the switch ignores it. In address assignment packets, the assigned
  9224. address is placed in the least significant byte of the field. The
  9225. rest of the field is padded with zeroes. When the switch can not
  9226. assign the address for some reason, the switch replies with a reject
  9227. command (the values is 3). The value of the address field is
  9228. undefined.
  9229.  
  9230. 4.3 Consideration for special cases
  9231.  
  9232. There are two special cases to consider. One is a point-to-point
  9233. connection without a switch. The other is loop-back, that is, direct
  9234. connection between the input and the output of the same port.
  9235.  
  9236. 4.3.1 point-to-point
  9237.  
  9238. In the case of a point-to-point connection shown in Figure 4, a node
  9239. sends an address request packet to the other node. The destination
  9240. address is 00000001(0x01), that is usually a control processor in a
  9241. switch. When a node receives the address request, it detects the
  9242.  
  9243.  
  9244.  
  9245. Murakami & Maruyama Informational [Page 4]
  9246. RFC 2173 MAPOS June 1997
  9247.  
  9248.  
  9249. point-to-point connection by examining both the destination address
  9250. and the command contained. Then, it MUST reply with an address
  9251. assignment packet. The assigned address MUST be 00000011(0x03). Since
  9252. both nodes send an address request to each other, both of them get
  9253. address 00000011(0x03). Since any address can be used in point-to-
  9254. point environment, there is no problem even if both of the nodes have
  9255. the same address.
  9256.  
  9257. ---- address request ----> 0x01
  9258. 0x03 <---- address assignment ----
  9259. +------+ +------+
  9260. | node +--------------------------------+ node |
  9261. +------+ +------+
  9262. 0x01 <---- address request ----
  9263. ---- address assignment ----> 0x03
  9264.  
  9265. Figure 4 Point-to-point connection
  9266.  
  9267. 4.3.2 loop-back
  9268.  
  9269. Another special case is loop-back where the output port of a node is
  9270. simply connected to its input port as shown in Figure 5. In this
  9271. case, the same mechanism as that for point-to-point can be applied
  9272. without modification. A node sends an address request packet
  9273. destined to 00000001(0x01). The node then receives the same packet.
  9274. Since the destination is 00000001(0x01), it replies with an address
  9275. assignment packet, containing the assigned address 00000011(0x03), to
  9276. the address 0000 0011(0x03). Thus, the node obtains the address
  9277. 00000011(0x03).
  9278.  
  9279. ---- address request ----> 0x01
  9280. +------+ --- address assignment --> 0x03
  9281. | +-------------->-----------------+
  9282. | node + |
  9283. | +--------------<-----------------+
  9284. +------+
  9285.  
  9286. Figure 5 Loop-back Configuration
  9287.  
  9288.  
  9289.  
  9290.  
  9291.  
  9292.  
  9293.  
  9294.  
  9295.  
  9296.  
  9297.  
  9298.  
  9299.  
  9300. Murakami & Maruyama Informational [Page 5]
  9301. RFC 2173 MAPOS June 1997
  9302.  
  9303.  
  9304. 5. Security Considerations
  9305.  
  9306. Security issues are not discussed in this memo.
  9307.  
  9308. References
  9309.  
  9310. [1] Murakami, K. and M. Maruyama, "MAPOS - Multiple Access Protocol
  9311. over SONET/SDH, Version 1," RFC-2171, June 1997.
  9312.  
  9313. [2] CCITT Recommendation G.707: Synchronous Digital Hierarchy Bit
  9314. Rates (1990).
  9315.  
  9316. [3] CCITT Recommendation G.708: Network Node Interface for
  9317. Synchronous Digital Hierarchy (1990).
  9318.  
  9319. [4] CCITT Recommendation G.709: Synchronous Multiplexing Structure
  9320. (1990).
  9321.  
  9322. [5] American National Standard for Telecommunications - Digital
  9323. Hierarchy - Optical Interface Rates and Formats Specification,
  9324. ANSI T1.105-1991.
  9325.  
  9326. [6] Maruyama, M. and K. Murakami, "MAPOS Version 1 Assigned
  9327. Numbers," RFC-2172, June, 1997.
  9328.  
  9329. Acknowledgements
  9330.  
  9331. The authors would like to acknowledge the contributions and
  9332. thoughtful suggestions of John P. Mullaney, Clark Bremer, Masayuki
  9333. Kobayashi, Paul Francis, Toshiaki Yoshida, and Takahiro Sajima.
  9334.  
  9335. Authors' Address
  9336.  
  9337. Ken Murakami
  9338. NTT Software Laboratories
  9339. 3-9-11, Midori-cho
  9340. Musashino-shi
  9341. Tokyo 180, Japan
  9342. E-mail: murakami@ntt-20.ecl.net
  9343.  
  9344. Mitsuru Maruyama
  9345. NTT Software Laboratories
  9346. 3-9-11, Midori-cho
  9347. Musashino-shi
  9348. Tokyo 180, Japan
  9349. E-mail: mitsuru@ntt-20.ecl.net
  9350.  
  9351.  
  9352.  
  9353.  
  9354.  
  9355. Murakami & Maruyama Informational [Page 6]
  9356.  
  9357.  
  9358.  
  9359.  
  9360.  
  9361.  
  9362.  
  9363. Network Working Group K. Murakami
  9364. Request for Comments: 2173 M. Maruyama
  9365. Category: Informational NTT Laboratories
  9366. June 1997
  9367.  
  9368.  
  9369. A MAPOS version 1 Extension - Node Switch Protocol
  9370.  
  9371. Status of this Memo
  9372.  
  9373. This memo provides information for the Internet community. This memo
  9374. does not specify an Internet standard of any kind. Distribution of
  9375. this memo is unlimited.
  9376.  
  9377. Abstract
  9378.  
  9379. This document describes a MAPOS extension, Node Switch Protocol, for
  9380. automatic node address assignment. MAPOS is a multiple access
  9381. protocol for transmission of network-protocol datagrams, encapsulated
  9382. in High-Level Data Link Control (HDLC) frames, over SONET/SDH. NSP
  9383. automates the HDLC address configuration of each node. Using NSP, a
  9384. node retrieves its HDLC address from the switch to which it is
  9385. connected.
  9386.  
  9387. 1. Introduction
  9388.  
  9389. MAPOS[1], Multiple Access Protocol over SONET(Synchronous Optical
  9390. Network)/SDH(Synchronous Digital Hierarchy)[2][3][4][5], is a
  9391. protocol for transmission of HDLC frames over SONET/SDH. A SONET
  9392. switch provides multiple access capability to each node. In MAPOS,
  9393. each node has a unique HDLC address within a switch. The address is
  9394. equivalent to the port number of the switch to which the node is
  9395. connected. This document describes an extension to MAPOS, Node
  9396. Switch Protocol, which enable automatic HDLC address assignment.
  9397. First, it explains the addressing of MAPOS. Then, it describes the
  9398. NSP protocol for automatic HDLC node address assignment.
  9399.  
  9400. 2. Node Address Format
  9401.  
  9402. This section describes MAPOS Version 1 address format in single and
  9403. multiple switch environment.
  9404.  
  9405.  
  9406.  
  9407.  
  9408.  
  9409.  
  9410.  
  9411.  
  9412.  
  9413.  
  9414. Murakami & Maruyama Informational [Page 1]
  9415. RFC 2173 MAPOS June 1997
  9416.  
  9417.  
  9418. 2.1 Address Format
  9419.  
  9420. In MAPOS network, each end node has a unique HDLC address. As shown
  9421. in Figure 1, the address length is 8 bits. The LSB is always 1 which
  9422. indicates the end of the field. When a SONET switch receives an HDLC
  9423. frame, it forwards the frame based on the address in the frame
  9424. header.
  9425.  
  9426. In unicast, MSB is 0 and the rest of the bits are the port number to
  9427. which a node is connected. Since the LSB is always 1, the minimum and
  9428. maximum addresses are 0x01 and 0x7F, respectively. Address 0x01 is
  9429. reserved and is assigned to the control processor in a SONET switch.
  9430.  
  9431. In broadcast, MSB is 1 and the rest of the bits are all 1s. In
  9432. multicast, MSB is 1 and the rest of the bits, except for the LSB,
  9433. indicate the group address.
  9434.  
  9435. +-------------+-+
  9436. | | | | | | | | |
  9437. | |port number|1|
  9438. +-+-----------+-+
  9439. ^ ^
  9440. | |
  9441. | +------- EA bit (always 1)
  9442. |
  9443. 1 : broadcast, multicast
  9444. 0 : unicast
  9445.  
  9446. Figure 1 Address format
  9447.  
  9448. 2.2 Address in multi-switch environment
  9449.  
  9450. In a multi-switch environment, variable-length subnet addressing is
  9451. used. Each switch has a switch number that is unique within the
  9452. system. Subnetted node addresses consist of the switch number and the
  9453. port number to which a node is connected. The address format is "0
  9454. <switch number> <node number> 1" for a unicast address, "all 1" for
  9455. the broadcast address, and "1 <group address> 1" for a multicast
  9456. address.
  9457.  
  9458. The address 0x01 is reserved and is assigned to the control processor
  9459. in the "local" switch. That is, it indicates the switch itself to
  9460. which the node is connected. The addresses of the form "0 <switch
  9461. number> <all 0> 1" are reserved, and indicates the control processor
  9462. of the switch designated by the switch number.
  9463.  
  9464. In Figure 2, the switch numbers are two bits long. Node N1 is
  9465. connected to port 0x3 of switch S1 numbered 0x1 (01 in binary). Thus,
  9466.  
  9467.  
  9468.  
  9469. Murakami & Maruyama Informational [Page 2]
  9470. RFC 2173 MAPOS June 1997
  9471.  
  9472.  
  9473. the node address is 0 + 01 + 00011, that is, 00100011(0x23). Node N3
  9474. has an address 01001001(0x49), since the switch number of S2 is 0x2
  9475. (10 in binary) and the port number is 0x09. Note that all the port
  9476. numbers are odd because the LSBs are always 1.
  9477.  
  9478. +------+
  9479. | node |
  9480. | N1 |
  9481. +------+
  9482. | 00100011(0x23)
  9483. |
  9484. |0x3 |0x3
  9485. +------+ +---+----+ +---+----+ +------+
  9486. | node +----+ SONET +-------+ SONET +-----+ node |
  9487. | N2 | 0x5| Switch |0x9 0x5| Switch |0x9 | N3 |
  9488. +------+ | S1 | | S2 | +------+
  9489. 00100101(0x25) | 0x1 | | 0x2 | 01001001(0x49)
  9490. +---+----+ +---+----+
  9491. |0x7 |0x7
  9492.  
  9493.  
  9494. Figure 2 Addressing in Multiple Switch Environment
  9495.  
  9496. 4 NSP(Node-Switch Protocol)
  9497.  
  9498. This section describes the NSP protocol used for automatic node
  9499. address assignment.
  9500.  
  9501. 4.1 NSP protocol
  9502.  
  9503. NSP is introduced to provide an automatic node address assignment
  9504. function in MAPOS version 1. It reduces the administrative overhead
  9505. of node address configuration for each node and prevents troubles
  9506. such as address inconsistency and collision. When a node is connected
  9507. to a switch and receives SONET signal correctly, the node sends an
  9508. address request packet to the control processor in the local switch.
  9509. The destination address of this packet is 00000001(0x01). When the
  9510. control processor receives the packet, it replies with an address
  9511. assignment packet. The destination is the assigned node address. If
  9512. the node does not receive the address assignment packet within 5
  9513. seconds, it retransmits the address request packet. The
  9514. retransmission continues until the node successfully receives the
  9515. address assignment packet.
  9516.  
  9517. Whenever a node detects a transmission error such as carrier loss or
  9518. out-of-synchronization, it SHOULD send an address request packet to
  9519. the control processor and verify its current address. In addition, a
  9520. node MUST verify its address by sending address request packets every
  9521.  
  9522.  
  9523.  
  9524. Murakami & Maruyama Informational [Page 3]
  9525. RFC 2173 MAPOS June 1997
  9526.  
  9527.  
  9528. 30 seconds. The switch regards them as keep-alive packets and
  9529. utilizes them to detect the node's status. If it has not received a
  9530. request packet for more than 90 seconds, it assumes that the node
  9531. went down. In addition, it also assumes the node went down when a
  9532. switch detects a SONET signal failure.
  9533.  
  9534. 4.2 Packet Format
  9535.  
  9536. The HDLC protocol field of a NSP frame contains 0xFE03 (hexadecimal)
  9537. as defined by the "MAPOS Version 1 Assigned Numbers" [6]. The
  9538. information field contains the NSP packet as shown in Figure 3.
  9539.  
  9540.  
  9541. +-----------+------------+
  9542. I command I address I
  9543. +-----------+------------+
  9544. I<- 32bit ->I<- 32 bit ->I
  9545.  
  9546. Figure 3 NSP packet format
  9547.  
  9548. The command field is 32 bits long and has the following values (in
  9549. decimal);
  9550.  
  9551. 1 address request
  9552. 2 address assignment
  9553. 3 reject(error)
  9554.  
  9555. The length of the address field is 32bits. In address request
  9556. packets, the NSP address field SHOULD be filled with zeroes, although
  9557. the switch ignores it. In address assignment packets, the assigned
  9558. address is placed in the least significant byte of the field. The
  9559. rest of the field is padded with zeroes. When the switch can not
  9560. assign the address for some reason, the switch replies with a reject
  9561. command (the values is 3). The value of the address field is
  9562. undefined.
  9563.  
  9564. 4.3 Consideration for special cases
  9565.  
  9566. There are two special cases to consider. One is a point-to-point
  9567. connection without a switch. The other is loop-back, that is, direct
  9568. connection between the input and the output of the same port.
  9569.  
  9570. 4.3.1 point-to-point
  9571.  
  9572. In the case of a point-to-point connection shown in Figure 4, a node
  9573. sends an address request packet to the other node. The destination
  9574. address is 00000001(0x01), that is usually a control processor in a
  9575. switch. When a node receives the address request, it detects the
  9576.  
  9577.  
  9578.  
  9579. Murakami & Maruyama Informational [Page 4]
  9580. RFC 2173 MAPOS June 1997
  9581.  
  9582.  
  9583. point-to-point connection by examining both the destination address
  9584. and the command contained. Then, it MUST reply with an address
  9585. assignment packet. The assigned address MUST be 00000011(0x03). Since
  9586. both nodes send an address request to each other, both of them get
  9587. address 00000011(0x03). Since any address can be used in point-to-
  9588. point environment, there is no problem even if both of the nodes have
  9589. the same address.
  9590.  
  9591. ---- address request ----> 0x01
  9592. 0x03 <---- address assignment ----
  9593. +------+ +------+
  9594. | node +--------------------------------+ node |
  9595. +------+ +------+
  9596. 0x01 <---- address request ----
  9597. ---- address assignment ----> 0x03
  9598.  
  9599. Figure 4 Point-to-point connection
  9600.  
  9601. 4.3.2 loop-back
  9602.  
  9603. Another special case is loop-back where the output port of a node is
  9604. simply connected to its input port as shown in Figure 5. In this
  9605. case, the same mechanism as that for point-to-point can be applied
  9606. without modification. A node sends an address request packet
  9607. destined to 00000001(0x01). The node then receives the same packet.
  9608. Since the destination is 00000001(0x01), it replies with an address
  9609. assignment packet, containing the assigned address 00000011(0x03), to
  9610. the address 0000 0011(0x03). Thus, the node obtains the address
  9611. 00000011(0x03).
  9612.  
  9613. ---- address request ----> 0x01
  9614. +------+ --- address assignment --> 0x03
  9615. | +-------------->-----------------+
  9616. | node + |
  9617. | +--------------<-----------------+
  9618. +------+
  9619.  
  9620. Figure 5 Loop-back Configuration
  9621.  
  9622.  
  9623.  
  9624.  
  9625.  
  9626.  
  9627.  
  9628.  
  9629.  
  9630.  
  9631.  
  9632.  
  9633.  
  9634. Murakami & Maruyama Informational [Page 5]
  9635. RFC 2173 MAPOS June 1997
  9636.  
  9637.  
  9638. 5. Security Considerations
  9639.  
  9640. Security issues are not discussed in this memo.
  9641.  
  9642. References
  9643.  
  9644. [1] Murakami, K. and M. Maruyama, "MAPOS - Multiple Access Protocol
  9645. over SONET/SDH, Version 1," RFC-2171, June 1997.
  9646.  
  9647. [2] CCITT Recommendation G.707: Synchronous Digital Hierarchy Bit
  9648. Rates (1990).
  9649.  
  9650. [3] CCITT Recommendation G.708: Network Node Interface for
  9651. Synchronous Digital Hierarchy (1990).
  9652.  
  9653. [4] CCITT Recommendation G.709: Synchronous Multiplexing Structure
  9654. (1990).
  9655.  
  9656. [5] American National Standard for Telecommunications - Digital
  9657. Hierarchy - Optical Interface Rates and Formats Specification,
  9658. ANSI T1.105-1991.
  9659.  
  9660. [6] Maruyama, M. and K. Murakami, "MAPOS Version 1 Assigned
  9661. Numbers," RFC-2172, June, 1997.
  9662.  
  9663. Acknowledgements
  9664.  
  9665. The authors would like to acknowledge the contributions and
  9666. thoughtful suggestions of John P. Mullaney, Clark Bremer, Masayuki
  9667. Kobayashi, Paul Francis, Toshiaki Yoshida, and Takahiro Sajima.
  9668.  
  9669. Authors' Address
  9670.  
  9671. Ken Murakami
  9672. NTT Software Laboratories
  9673. 3-9-11, Midori-cho
  9674. Musashino-shi
  9675. Tokyo 180, Japan
  9676. E-mail: murakami@ntt-20.ecl.net
  9677.  
  9678. Mitsuru Maruyama
  9679. NTT Software Laboratories
  9680. 3-9-11, Midori-cho
  9681. Musashino-shi
  9682. Tokyo 180, Japan
  9683. E-mail: mitsuru@ntt-20.ecl.net
  9684.  
  9685.  
  9686.  
  9687.  
  9688.  
  9689. Murakami & Maruyama Informational [Page 6]
  9690.  
  9691.  
  9692.  
  9693.  
  9694.  
  9695.  
  9696.  
  9697. Network Working Group K. Murakami
  9698. Request for Comments: 2173 M. Maruyama
  9699. Category: Informational NTT Laboratories
  9700. June 1997
  9701.  
  9702.  
  9703. A MAPOS version 1 Extension - Node Switch Protocol
  9704.  
  9705. Status of this Memo
  9706.  
  9707. This memo provides information for the Internet community. This memo
  9708. does not specify an Internet standard of any kind. Distribution of
  9709. this memo is unlimited.
  9710.  
  9711. Abstract
  9712.  
  9713. This document describes a MAPOS extension, Node Switch Protocol, for
  9714. automatic node address assignment. MAPOS is a multiple access
  9715. protocol for transmission of network-protocol datagrams, encapsulated
  9716. in High-Level Data Link Control (HDLC) frames, over SONET/SDH. NSP
  9717. automates the HDLC address configuration of each node. Using NSP, a
  9718. node retrieves its HDLC address from the switch to which it is
  9719. connected.
  9720.  
  9721. 1. Introduction
  9722.  
  9723. MAPOS[1], Multiple Access Protocol over SONET(Synchronous Optical
  9724. Network)/SDH(Synchronous Digital Hierarchy)[2][3][4][5], is a
  9725. protocol for transmission of HDLC frames over SONET/SDH. A SONET
  9726. switch provides multiple access capability to each node. In MAPOS,
  9727. each node has a unique HDLC address within a switch. The address is
  9728. equivalent to the port number of the switch to which the node is
  9729. connected. This document describes an extension to MAPOS, Node
  9730. Switch Protocol, which enable automatic HDLC address assignment.
  9731. First, it explains the addressing of MAPOS. Then, it describes the
  9732. NSP protocol for automatic HDLC node address assignment.
  9733.  
  9734. 2. Node Address Format
  9735.  
  9736. This section describes MAPOS Version 1 address format in single and
  9737. multiple switch environment.
  9738.  
  9739.  
  9740.  
  9741.  
  9742.  
  9743.  
  9744.  
  9745.  
  9746.  
  9747.  
  9748. Murakami & Maruyama Informational [Page 1]
  9749. RFC 2173 MAPOS June 1997
  9750.  
  9751.  
  9752. 2.1 Address Format
  9753.  
  9754. In MAPOS network, each end node has a unique HDLC address. As shown
  9755. in Figure 1, the address length is 8 bits. The LSB is always 1 which
  9756. indicates the end of the field. When a SONET switch receives an HDLC
  9757. frame, it forwards the frame based on the address in the frame
  9758. header.
  9759.  
  9760. In unicast, MSB is 0 and the rest of the bits are the port number to
  9761. which a node is connected. Since the LSB is always 1, the minimum and
  9762. maximum addresses are 0x01 and 0x7F, respectively. Address 0x01 is
  9763. reserved and is assigned to the control processor in a SONET switch.
  9764.  
  9765. In broadcast, MSB is 1 and the rest of the bits are all 1s. In
  9766. multicast, MSB is 1 and the rest of the bits, except for the LSB,
  9767. indicate the group address.
  9768.  
  9769. +-------------+-+
  9770. | | | | | | | | |
  9771. | |port number|1|
  9772. +-+-----------+-+
  9773. ^ ^
  9774. | |
  9775. | +------- EA bit (always 1)
  9776. |
  9777. 1 : broadcast, multicast
  9778. 0 : unicast
  9779.  
  9780. Figure 1 Address format
  9781.  
  9782. 2.2 Address in multi-switch environment
  9783.  
  9784. In a multi-switch environment, variable-length subnet addressing is
  9785. used. Each switch has a switch number that is unique within the
  9786. system. Subnetted node addresses consist of the switch number and the
  9787. port number to which a node is connected. The address format is "0
  9788. <switch number> <node number> 1" for a unicast address, "all 1" for
  9789. the broadcast address, and "1 <group address> 1" for a multicast
  9790. address.
  9791.  
  9792. The address 0x01 is reserved and is assigned to the control processor
  9793. in the "local" switch. That is, it indicates the switch itself to
  9794. which the node is connected. The addresses of the form "0 <switch
  9795. number> <all 0> 1" are reserved, and indicates the control processor
  9796. of the switch designated by the switch number.
  9797.  
  9798. In Figure 2, the switch numbers are two bits long. Node N1 is
  9799. connected to port 0x3 of switch S1 numbered 0x1 (01 in binary). Thus,
  9800.  
  9801.  
  9802.  
  9803. Murakami & Maruyama Informational [Page 2]
  9804. RFC 2173 MAPOS June 1997
  9805.  
  9806.  
  9807. the node address is 0 + 01 + 00011, that is, 00100011(0x23). Node N3
  9808. has an address 01001001(0x49), since the switch number of S2 is 0x2
  9809. (10 in binary) and the port number is 0x09. Note that all the port
  9810. numbers are odd because the LSBs are always 1.
  9811.  
  9812. +------+
  9813. | node |
  9814. | N1 |
  9815. +------+
  9816. | 00100011(0x23)
  9817. |
  9818. |0x3 |0x3
  9819. +------+ +---+----+ +---+----+ +------+
  9820. | node +----+ SONET +-------+ SONET +-----+ node |
  9821. | N2 | 0x5| Switch |0x9 0x5| Switch |0x9 | N3 |
  9822. +------+ | S1 | | S2 | +------+
  9823. 00100101(0x25) | 0x1 | | 0x2 | 01001001(0x49)
  9824. +---+----+ +---+----+
  9825. |0x7 |0x7
  9826.  
  9827.  
  9828. Figure 2 Addressing in Multiple Switch Environment
  9829.  
  9830. 4 NSP(Node-Switch Protocol)
  9831.  
  9832. This section describes the NSP protocol used for automatic node
  9833. address assignment.
  9834.  
  9835. 4.1 NSP protocol
  9836.  
  9837. NSP is introduced to provide an automatic node address assignment
  9838. function in MAPOS version 1. It reduces the administrative overhead
  9839. of node address configuration for each node and prevents troubles
  9840. such as address inconsistency and collision. When a node is connected
  9841. to a switch and receives SONET signal correctly, the node sends an
  9842. address request packet to the control processor in the local switch.
  9843. The destination address of this packet is 00000001(0x01). When the
  9844. control processor receives the packet, it replies with an address
  9845. assignment packet. The destination is the assigned node address. If
  9846. the node does not receive the address assignment packet within 5
  9847. seconds, it retransmits the address request packet. The
  9848. retransmission continues until the node successfully receives the
  9849. address assignment packet.
  9850.  
  9851. Whenever a node detects a transmission error such as carrier loss or
  9852. out-of-synchronization, it SHOULD send an address request packet to
  9853. the control processor and verify its current address. In addition, a
  9854. node MUST verify its address by sending address request packets every
  9855.  
  9856.  
  9857.  
  9858. Murakami & Maruyama Informational [Page 3]
  9859. RFC 2173 MAPOS June 1997
  9860.  
  9861.  
  9862. 30 seconds. The switch regards them as keep-alive packets and
  9863. utilizes them to detect the node's status. If it has not received a
  9864. request packet for more than 90 seconds, it assumes that the node
  9865. went down. In addition, it also assumes the node went down when a
  9866. switch detects a SONET signal failure.
  9867.  
  9868. 4.2 Packet Format
  9869.  
  9870. The HDLC protocol field of a NSP frame contains 0xFE03 (hexadecimal)
  9871. as defined by the "MAPOS Version 1 Assigned Numbers" [6]. The
  9872. information field contains the NSP packet as shown in Figure 3.
  9873.  
  9874.  
  9875. +-----------+------------+
  9876. I command I address I
  9877. +-----------+------------+
  9878. I<- 32bit ->I<- 32 bit ->I
  9879.  
  9880. Figure 3 NSP packet format
  9881.  
  9882. The command field is 32 bits long and has the following values (in
  9883. decimal);
  9884.  
  9885. 1 address request
  9886. 2 address assignment
  9887. 3 reject(error)
  9888.  
  9889. The length of the address field is 32bits. In address request
  9890. packets, the NSP address field SHOULD be filled with zeroes, although
  9891. the switch ignores it. In address assignment packets, the assigned
  9892. address is placed in the least significant byte of the field. The
  9893. rest of the field is padded with zeroes. When the switch can not
  9894. assign the address for some reason, the switch replies with a reject
  9895. command (the values is 3). The value of the address field is
  9896. undefined.
  9897.  
  9898. 4.3 Consideration for special cases
  9899.  
  9900. There are two special cases to consider. One is a point-to-point
  9901. connection without a switch. The other is loop-back, that is, direct
  9902. connection between the input and the output of the same port.
  9903.  
  9904. 4.3.1 point-to-point
  9905.  
  9906. In the case of a point-to-point connection shown in Figure 4, a node
  9907. sends an address request packet to the other node. The destination
  9908. address is 00000001(0x01), that is usually a control processor in a
  9909. switch. When a node receives the address request, it detects the
  9910.  
  9911.  
  9912.  
  9913. Murakami & Maruyama Informational [Page 4]
  9914. RFC 2173 MAPOS June 1997
  9915.  
  9916.  
  9917. point-to-point connection by examining both the destination address
  9918. and the command contained. Then, it MUST reply with an address
  9919. assignment packet. The assigned address MUST be 00000011(0x03). Since
  9920. both nodes send an address request to each other, both of them get
  9921. address 00000011(0x03). Since any address can be used in point-to-
  9922. point environment, there is no problem even if both of the nodes have
  9923. the same address.
  9924.  
  9925. ---- address request ----> 0x01
  9926. 0x03 <---- address assignment ----
  9927. +------+ +------+
  9928. | node +--------------------------------+ node |
  9929. +------+ +------+
  9930. 0x01 <---- address request ----
  9931. ---- address assignment ----> 0x03
  9932.  
  9933. Figure 4 Point-to-point connection
  9934.  
  9935. 4.3.2 loop-back
  9936.  
  9937. Another special case is loop-back where the output port of a node is
  9938. simply connected to its input port as shown in Figure 5. In this
  9939. case, the same mechanism as that for point-to-point can be applied
  9940. without modification. A node sends an address request packet
  9941. destined to 00000001(0x01). The node then receives the same packet.
  9942. Since the destination is 00000001(0x01), it replies with an address
  9943. assignment packet, containing the assigned address 00000011(0x03), to
  9944. the address 0000 0011(0x03). Thus, the node obtains the address
  9945. 00000011(0x03).
  9946.  
  9947. ---- address request ----> 0x01
  9948. +------+ --- address assignment --> 0x03
  9949. | +-------------->-----------------+
  9950. | node + |
  9951. | +--------------<-----------------+
  9952. +------+
  9953.  
  9954. Figure 5 Loop-back Configuration
  9955.  
  9956.  
  9957.  
  9958.  
  9959.  
  9960.  
  9961.  
  9962.  
  9963.  
  9964.  
  9965.  
  9966.  
  9967.  
  9968. Murakami & Maruyama Informational [Page 5]
  9969. RFC 2173 MAPOS June 1997
  9970.  
  9971.  
  9972. 5. Security Considerations
  9973.  
  9974. Security issues are not discussed in this memo.
  9975.  
  9976. References
  9977.  
  9978. [1] Murakami, K. and M. Maruyama, "MAPOS - Multiple Access Protocol
  9979. over SONET/SDH, Version 1," RFC-2171, June 1997.
  9980.  
  9981. [2] CCITT Recommendation G.707: Synchronous Digital Hierarchy Bit
  9982. Rates (1990).
  9983.  
  9984. [3] CCITT Recommendation G.708: Network Node Interface for
  9985. Synchronous Digital Hierarchy (1990).
  9986.  
  9987. [4] CCITT Recommendation G.709: Synchronous Multiplexing Structure
  9988. (1990).
  9989.  
  9990. [5] American National Standard for Telecommunications - Digital
  9991. Hierarchy - Optical Interface Rates and Formats Specification,
  9992. ANSI T1.105-1991.
  9993.  
  9994. [6] Maruyama, M. and K. Murakami, "MAPOS Version 1 Assigned
  9995. Numbers," RFC-2172, June, 1997.
  9996.  
  9997. Acknowledgements
  9998.  
  9999. The authors would like to acknowledge the contributions and
  10000. thoughtful suggestions of John P. Mullaney, Clark Bremer, Masayuki
  10001. Kobayashi, Paul Francis, Toshiaki Yoshida, and Takahiro Sajima.
  10002.  
  10003. Authors' Address
  10004.  
  10005. Ken Murakami
  10006. NTT Software Laboratories
  10007. 3-9-11, Midori-cho
  10008. Musashino-shi
  10009. Tokyo 180, Japan
  10010. E-mail: murakami@ntt-20.ecl.net
  10011.  
  10012. Mitsuru Maruyama
  10013. NTT Software Laboratories
  10014. 3-9-11, Midori-cho
  10015. Musashino-shi
  10016. Tokyo 180, Japan
  10017. E-mail: mitsuru@ntt-20.ecl.net
  10018.  
  10019.  
  10020.  
  10021.  
  10022.  
  10023. Murakami & Maruyama Informational [Page 6]
  10024.  
  10025.  
  10026.  
  10027.  
  10028.  
  10029.  
  10030.  
  10031.  
  10032.  
  10033. Network Working Group K. Murakami
  10034. Request for Comments: 2173 M. Maruyama
  10035. Category: Informational NTT Laboratories
  10036. June 1997
  10037.  
  10038.  
  10039. A MAPOS version 1 Extension - Node Switch Protocol
  10040.  
  10041. Status of this Memo
  10042.  
  10043. This memo provides information for the Internet community. This memo
  10044. does not specify an Internet standard of any kind. Distribution of
  10045. this memo is unlimited.
  10046.  
  10047. Abstract
  10048.  
  10049. This document describes a MAPOS extension, Node Switch Protocol, for
  10050. automatic node address assignment. MAPOS is a multiple access
  10051. protocol for transmission of network-protocol datagrams, encapsulated
  10052. in High-Level Data Link Control (HDLC) frames, over SONET/SDH. NSP
  10053. automates the HDLC address configuration of each node. Using NSP, a
  10054. node retrieves its HDLC address from the switch to which it is
  10055. connected.
  10056.  
  10057. 1. Introduction
  10058.  
  10059. MAPOS[1], Multiple Access Protocol over SONET(Synchronous Optical
  10060. Network)/SDH(Synchronous Digital Hierarchy)[2][3][4][5], is a
  10061. protocol for transmission of HDLC frames over SONET/SDH. A SONET
  10062. switch provides multiple access capability to each node. In MAPOS,
  10063. each node has a unique HDLC address within a switch. The address is
  10064. equivalent to the port number of the switch to which the node is
  10065. connected. This document describes an extension to MAPOS, Node
  10066. Switch Protocol, which enable automatic HDLC address assignment.
  10067. First, it explains the addressing of MAPOS. Then, it describes the
  10068. NSP protocol for automatic HDLC node address assignment.
  10069.  
  10070. 2. Node Address Format
  10071.  
  10072. This section describes MAPOS Version 1 address format in single and
  10073. multiple switch environment.
  10074.  
  10075.  
  10076.  
  10077.  
  10078.  
  10079.  
  10080.  
  10081.  
  10082.  
  10083.  
  10084. Murakami & Maruyama Informational [Page 1]
  10085. RFC 2173 MAPOS June 1997
  10086.  
  10087.  
  10088. 2.1 Address Format
  10089.  
  10090. In MAPOS network, each end node has a unique HDLC address. As shown
  10091. in Figure 1, the address length is 8 bits. The LSB is always 1 which
  10092. indicates the end of the field. When a SONET switch receives an HDLC
  10093. frame, it forwards the frame based on the address in the frame
  10094. header.
  10095.  
  10096. In unicast, MSB is 0 and the rest of the bits are the port number to
  10097. which a node is connected. Since the LSB is always 1, the minimum and
  10098. maximum addresses are 0x01 and 0x7F, respectively. Address 0x01 is
  10099. reserved and is assigned to the control processor in a SONET switch.
  10100.  
  10101. In broadcast, MSB is 1 and the rest of the bits are all 1s. In
  10102. multicast, MSB is 1 and the rest of the bits, except for the LSB,
  10103. indicate the group address.
  10104.  
  10105. +-------------+-+
  10106. | | | | | | | | |
  10107. | |port number|1|
  10108. +-+-----------+-+
  10109. ^ ^
  10110. | |
  10111. | +------- EA bit (always 1)
  10112. |
  10113. 1 : broadcast, multicast
  10114. 0 : unicast
  10115.  
  10116. Figure 1 Address format
  10117.  
  10118. 2.2 Address in multi-switch environment
  10119.  
  10120. In a multi-switch environment, variable-length subnet addressing is
  10121. used. Each switch has a switch number that is unique within the
  10122. system. Subnetted node addresses consist of the switch number and the
  10123. port number to which a node is connected. The address format is "0
  10124. <switch number> <node number> 1" for a unicast address, "all 1" for
  10125. the broadcast address, and "1 <group address> 1" for a multicast
  10126. address.
  10127.  
  10128. The address 0x01 is reserved and is assigned to the control processor
  10129. in the "local" switch. That is, it indicates the switch itself to
  10130. which the node is connected. The addresses of the form "0 <switch
  10131. number> <all 0> 1" are reserved, and indicates the control processor
  10132. of the switch designated by the switch number.
  10133.  
  10134. In Figure 2, the switch numbers are two bits long. Node N1 is
  10135. connected to port 0x3 of switch S1 numbered 0x1 (01 in binary). Thus,
  10136.  
  10137.  
  10138.  
  10139. Murakami & Maruyama Informational [Page 2]
  10140. RFC 2173 MAPOS June 1997
  10141.  
  10142.  
  10143. the node address is 0 + 01 + 00011, that is, 00100011(0x23). Node N3
  10144. has an address 01001001(0x49), since the switch number of S2 is 0x2
  10145. (10 in binary) and the port number is 0x09. Note that all the port
  10146. numbers are odd because the LSBs are always 1.
  10147.  
  10148. +------+
  10149. | node |
  10150. | N1 |
  10151. +------+
  10152. | 00100011(0x23)
  10153. |
  10154. |0x3 |0x3
  10155. +------+ +---+----+ +---+----+ +------+
  10156. | node +----+ SONET +-------+ SONET +-----+ node |
  10157. | N2 | 0x5| Switch |0x9 0x5| Switch |0x9 | N3 |
  10158. +------+ | S1 | | S2 | +------+
  10159. 00100101(0x25) | 0x1 | | 0x2 | 01001001(0x49)
  10160. +---+----+ +---+----+
  10161. |0x7 |0x7
  10162.  
  10163.  
  10164. Figure 2 Addressing in Multiple Switch Environment
  10165.  
  10166. 4 NSP(Node-Switch Protocol)
  10167.  
  10168. This section describes the NSP protocol used for automatic node
  10169. address assignment.
  10170.  
  10171. 4.1 NSP protocol
  10172.  
  10173. NSP is introduced to provide an automatic node address assignment
  10174. function in MAPOS version 1. It reduces the administrative overhead
  10175. of node address configuration for each node and prevents troubles
  10176. such as address inconsistency and collision. When a node is connected
  10177. to a switch and receives SONET signal correctly, the node sends an
  10178. address request packet to the control processor in the local switch.
  10179. The destination address of this packet is 00000001(0x01). When the
  10180. control processor receives the packet, it replies with an address
  10181. assignment packet. The destination is the assigned node address. If
  10182. the node does not receive the address assignment packet within 5
  10183. seconds, it retransmits the address request packet. The
  10184. retransmission continues until the node successfully receives the
  10185. address assignment packet.
  10186.  
  10187. Whenever a node detects a transmission error such as carrier loss or
  10188. out-of-synchronization, it SHOULD send an address request packet to
  10189. the control processor and verify its current address. In addition, a
  10190. node MUST verify its address by sending address request packets every
  10191.  
  10192.  
  10193.  
  10194. Murakami & Maruyama Informational [Page 3]
  10195. RFC 2173 MAPOS June 1997
  10196.  
  10197.  
  10198. 30 seconds. The switch regards them as keep-alive packets and
  10199. utilizes them to detect the node's status. If it has not received a
  10200. request packet for more than 90 seconds, it assumes that the node
  10201. went down. In addition, it also assumes the node went down when a
  10202. switch detects a SONET signal failure.
  10203.  
  10204. 4.2 Packet Format
  10205.  
  10206. The HDLC protocol field of a NSP frame contains 0xFE03 (hexadecimal)
  10207. as defined by the "MAPOS Version 1 Assigned Numbers" [6]. The
  10208. information field contains the NSP packet as shown in Figure 3.
  10209.  
  10210.  
  10211. +-----------+------------+
  10212. I command I address I
  10213. +-----------+------------+
  10214. I<- 32bit ->I<- 32 bit ->I
  10215.  
  10216. Figure 3 NSP packet format
  10217.  
  10218. The command field is 32 bits long and has the following values (in
  10219. decimal);
  10220.  
  10221. 1 address request
  10222. 2 address assignment
  10223. 3 reject(error)
  10224.  
  10225. The length of the address field is 32bits. In address request
  10226. packets, the NSP address field SHOULD be filled with zeroes, although
  10227. the switch ignores it. In address assignment packets, the assigned
  10228. address is placed in the least significant byte of the field. The
  10229. rest of the field is padded with zeroes. When the switch can not
  10230. assign the address for some reason, the switch replies with a reject
  10231. command (the values is 3). The value of the address field is
  10232. undefined.
  10233.  
  10234. 4.3 Consideration for special cases
  10235.  
  10236. There are two special cases to consider. One is a point-to-point
  10237. connection without a switch. The other is loop-back, that is, direct
  10238. connection between the input and the output of the same port.
  10239.  
  10240. 4.3.1 point-to-point
  10241.  
  10242. In the case of a point-to-point connection shown in Figure 4, a node
  10243. sends an address request packet to the other node. The destination
  10244. address is 00000001(0x01), that is usually a control processor in a
  10245. switch. When a node receives the address request, it detects the
  10246.  
  10247.  
  10248.  
  10249. Murakami & Maruyama Informational [Page 4]
  10250. RFC 2173 MAPOS June 1997
  10251.  
  10252.  
  10253. point-to-point connection by examining both the destination address
  10254. and the command contained. Then, it MUST reply with an address
  10255. assignment packet. The assigned address MUST be 00000011(0x03). Since
  10256. both nodes send an address request to each other, both of them get
  10257. address 00000011(0x03). Since any address can be used in point-to-
  10258. point environment, there is no problem even if both of the nodes have
  10259. the same address.
  10260.  
  10261. ---- address request ----> 0x01
  10262. 0x03 <---- address assignment ----
  10263. +------+ +------+
  10264. | node +--------------------------------+ node |
  10265. +------+ +------+
  10266. 0x01 <---- address request ----
  10267. ---- address assignment ----> 0x03
  10268.  
  10269. Figure 4 Point-to-point connection
  10270.  
  10271. 4.3.2 loop-back
  10272.  
  10273. Another special case is loop-back where the output port of a node is
  10274. simply connected to its input port as shown in Figure 5. In this
  10275. case, the same mechanism as that for point-to-point can be applied
  10276. without modification. A node sends an address request packet
  10277. destined to 00000001(0x01). The node then receives the same packet.
  10278. Since the destination is 00000001(0x01), it replies with an address
  10279. assignment packet, containing the assigned address 00000011(0x03), to
  10280. the address 0000 0011(0x03). Thus, the node obtains the address
  10281. 00000011(0x03).
  10282.  
  10283. ---- address request ----> 0x01
  10284. +------+ --- address assignment --> 0x03
  10285. | +-------------->-----------------+
  10286. | node + |
  10287. | +--------------<-----------------+
  10288. +------+
  10289.  
  10290. Figure 5 Loop-back Configuration
  10291.  
  10292.  
  10293.  
  10294.  
  10295.  
  10296.  
  10297.  
  10298.  
  10299.  
  10300.  
  10301.  
  10302.  
  10303.  
  10304. Murakami & Maruyama Informational [Page 5]
  10305. RFC 2173 MAPOS June 1997
  10306.  
  10307.  
  10308. 5. Security Considerations
  10309.  
  10310. Security issues are not discussed in this memo.
  10311.  
  10312. References
  10313.  
  10314. [1] Murakami, K. and M. Maruyama, "MAPOS - Multiple Access Protocol
  10315. over SONET/SDH, Version 1," RFC-2171, June 1997.
  10316.  
  10317. [2] CCITT Recommendation G.707: Synchronous Digital Hierarchy Bit
  10318. Rates (1990).
  10319.  
  10320. [3] CCITT Recommendation G.708: Network Node Interface for
  10321. Synchronous Digital Hierarchy (1990).
  10322.  
  10323. [4] CCITT Recommendation G.709: Synchronous Multiplexing Structure
  10324. (1990).
  10325.  
  10326. [5] American National Standard for Telecommunications - Digital
  10327. Hierarchy - Optical Interface Rates and Formats Specification,
  10328. ANSI T1.105-1991.
  10329.  
  10330. [6] Maruyama, M. and K. Murakami, "MAPOS Version 1 Assigned
  10331. Numbers," RFC-2172, June, 1997.
  10332.  
  10333. Acknowledgements
  10334.  
  10335. The authors would like to acknowledge the contributions and
  10336. thoughtful suggestions of John P. Mullaney, Clark Bremer, Masayuki
  10337. Kobayashi, Paul Francis, Toshiaki Yoshida, and Takahiro Sajima.
  10338.  
  10339. Authors' Address
  10340.  
  10341. Ken Murakami
  10342. NTT Software Laboratories
  10343. 3-9-11, Midori-cho
  10344. Musashino-shi
  10345. Tokyo 180, Japan
  10346. E-mail: murakami@ntt-20.ecl.net
  10347.  
  10348. Mitsuru Maruyama
  10349. NTT Software Laboratories
  10350. 3-9-11, Midori-cho
  10351. Musashino-shi
  10352. Tokyo 180, Japan
  10353. E-mail: mitsuru@ntt-20.ecl.net
  10354.  
  10355.  
  10356.  
  10357.  
  10358.  
  10359. Murakami & Maruyama Informational [Page 6]
  10360.  
  10361.  
  10362.  
  10363.  
  10364.  
  10365.  
  10366.  
  10367. Network Working Group K. Murakami
  10368. Request for Comments: 2173 M. Maruyama
  10369. Category: Informational NTT Laboratories
  10370. June 1997
  10371.  
  10372.  
  10373. A MAPOS version 1 Extension - Node Switch Protocol
  10374.  
  10375. Status of this Memo
  10376.  
  10377. This memo provides information for the Internet community. This memo
  10378. does not specify an Internet standard of any kind. Distribution of
  10379. this memo is unlimited.
  10380.  
  10381. Abstract
  10382.  
  10383. This document describes a MAPOS extension, Node Switch Protocol, for
  10384. automatic node address assignment. MAPOS is a multiple access
  10385. protocol for transmission of network-protocol datagrams, encapsulated
  10386. in High-Level Data Link Control (HDLC) frames, over SONET/SDH. NSP
  10387. automates the HDLC address configuration of each node. Using NSP, a
  10388. node retrieves its HDLC address from the switch to which it is
  10389. connected.
  10390.  
  10391. 1. Introduction
  10392.  
  10393. MAPOS[1], Multiple Access Protocol over SONET(Synchronous Optical
  10394. Network)/SDH(Synchronous Digital Hierarchy)[2][3][4][5], is a
  10395. protocol for transmission of HDLC frames over SONET/SDH. A SONET
  10396. switch provides multiple access capability to each node. In MAPOS,
  10397. each node has a unique HDLC address within a switch. The address is
  10398. equivalent to the port number of the switch to which the node is
  10399. connected. This document describes an extension to MAPOS, Node
  10400. Switch Protocol, which enable automatic HDLC address assignment.
  10401. First, it explains the addressing of MAPOS. Then, it describes the
  10402. NSP protocol for automatic HDLC node address assignment.
  10403.  
  10404. 2. Node Address Format
  10405.  
  10406. This section describes MAPOS Version 1 address format in single and
  10407. multiple switch environment.
  10408.  
  10409.  
  10410.  
  10411.  
  10412.  
  10413.  
  10414.  
  10415.  
  10416.  
  10417.  
  10418. Murakami & Maruyama Informational [Page 1]
  10419. RFC 2173 MAPOS June 1997
  10420.  
  10421.  
  10422. 2.1 Address Format
  10423.  
  10424. In MAPOS network, each end node has a unique HDLC address. As shown
  10425. in Figure 1, the address length is 8 bits. The LSB is always 1 which
  10426. indicates the end of the field. When a SONET switch receives an HDLC
  10427. frame, it forwards the frame based on the address in the frame
  10428. header.
  10429.  
  10430. In unicast, MSB is 0 and the rest of the bits are the port number to
  10431. which a node is connected. Since the LSB is always 1, the minimum and
  10432. maximum addresses are 0x01 and 0x7F, respectively. Address 0x01 is
  10433. reserved and is assigned to the control processor in a SONET switch.
  10434.  
  10435. In broadcast, MSB is 1 and the rest of the bits are all 1s. In
  10436. multicast, MSB is 1 and the rest of the bits, except for the LSB,
  10437. indicate the group address.
  10438.  
  10439. +-------------+-+
  10440. | | | | | | | | |
  10441. | |port number|1|
  10442. +-+-----------+-+
  10443. ^ ^
  10444. | |
  10445. | +------- EA bit (always 1)
  10446. |
  10447. 1 : broadcast, multicast
  10448. 0 : unicast
  10449.  
  10450. Figure 1 Address format
  10451.  
  10452. 2.2 Address in multi-switch environment
  10453.  
  10454. In a multi-switch environment, variable-length subnet addressing is
  10455. used. Each switch has a switch number that is unique within the
  10456. system. Subnetted node addresses consist of the switch number and the
  10457. port number to which a node is connected. The address format is "0
  10458. <switch number> <node number> 1" for a unicast address, "all 1" for
  10459. the broadcast address, and "1 <group address> 1" for a multicast
  10460. address.
  10461.  
  10462. The address 0x01 is reserved and is assigned to the control processor
  10463. in the "local" switch. That is, it indicates the switch itself to
  10464. which the node is connected. The addresses of the form "0 <switch
  10465. number> <all 0> 1" are reserved, and indicates the control processor
  10466. of the switch designated by the switch number.
  10467.  
  10468. In Figure 2, the switch numbers are two bits long. Node N1 is
  10469. connected to port 0x3 of switch S1 numbered 0x1 (01 in binary). Thus,
  10470.  
  10471.  
  10472.  
  10473. Murakami & Maruyama Informational [Page 2]
  10474. RFC 2173 MAPOS June 1997
  10475.  
  10476.  
  10477. the node address is 0 + 01 + 00011, that is, 00100011(0x23). Node N3
  10478. has an address 01001001(0x49), since the switch number of S2 is 0x2
  10479. (10 in binary) and the port number is 0x09. Note that all the port
  10480. numbers are odd because the LSBs are always 1.
  10481.  
  10482. +------+
  10483. | node |
  10484. | N1 |
  10485. +------+
  10486. | 00100011(0x23)
  10487. |
  10488. |0x3 |0x3
  10489. +------+ +---+----+ +---+----+ +------+
  10490. | node +----+ SONET +-------+ SONET +-----+ node |
  10491. | N2 | 0x5| Switch |0x9 0x5| Switch |0x9 | N3 |
  10492. +------+ | S1 | | S2 | +------+
  10493. 00100101(0x25) | 0x1 | | 0x2 | 01001001(0x49)
  10494. +---+----+ +---+----+
  10495. |0x7 |0x7
  10496.  
  10497.  
  10498. Figure 2 Addressing in Multiple Switch Environment
  10499.  
  10500. 4 NSP(Node-Switch Protocol)
  10501.  
  10502. This section describes the NSP protocol used for automatic node
  10503. address assignment.
  10504.  
  10505. 4.1 NSP protocol
  10506.  
  10507. NSP is introduced to provide an automatic node address assignment
  10508. function in MAPOS version 1. It reduces the administrative overhead
  10509. of node address configuration for each node and prevents troubles
  10510. such as address inconsistency and collision. When a node is connected
  10511. to a switch and receives SONET signal correctly, the node sends an
  10512. address request packet to the control processor in the local switch.
  10513. The destination address of this packet is 00000001(0x01). When the
  10514. control processor receives the packet, it replies with an address
  10515. assignment packet. The destination is the assigned node address. If
  10516. the node does not receive the address assignment packet within 5
  10517. seconds, it retransmits the address request packet. The
  10518. retransmission continues until the node successfully receives the
  10519. address assignment packet.
  10520.  
  10521. Whenever a node detects a transmission error such as carrier loss or
  10522. out-of-synchronization, it SHOULD send an address request packet to
  10523. the control processor and verify its current address. In addition, a
  10524. node MUST verify its address by sending address request packets every
  10525.  
  10526.  
  10527.  
  10528. Murakami & Maruyama Informational [Page 3]
  10529. RFC 2173 MAPOS June 1997
  10530.  
  10531.  
  10532. 30 seconds. The switch regards them as keep-alive packets and
  10533. utilizes them to detect the node's status. If it has not received a
  10534. request packet for more than 90 seconds, it assumes that the node
  10535. went down. In addition, it also assumes the node went down when a
  10536. switch detects a SONET signal failure.
  10537.  
  10538. 4.2 Packet Format
  10539.  
  10540. The HDLC protocol field of a NSP frame contains 0xFE03 (hexadecimal)
  10541. as defined by the "MAPOS Version 1 Assigned Numbers" [6]. The
  10542. information field contains the NSP packet as shown in Figure 3.
  10543.  
  10544.  
  10545. +-----------+------------+
  10546. I command I address I
  10547. +-----------+------------+
  10548. I<- 32bit ->I<- 32 bit ->I
  10549.  
  10550. Figure 3 NSP packet format
  10551.  
  10552. The command field is 32 bits long and has the following values (in
  10553. decimal);
  10554.  
  10555. 1 address request
  10556. 2 address assignment
  10557. 3 reject(error)
  10558.  
  10559. The length of the address field is 32bits. In address request
  10560. packets, the NSP address field SHOULD be filled with zeroes, although
  10561. the switch ignores it. In address assignment packets, the assigned
  10562. address is placed in the least significant byte of the field. The
  10563. rest of the field is padded with zeroes. When the switch can not
  10564. assign the address for some reason, the switch replies with a reject
  10565. command (the values is 3). The value of the address field is
  10566. undefined.
  10567.  
  10568. 4.3 Consideration for special cases
  10569.  
  10570. There are two special cases to consider. One is a point-to-point
  10571. connection without a switch. The other is loop-back, that is, direct
  10572. connection between the input and the output of the same port.
  10573.  
  10574. 4.3.1 point-to-point
  10575.  
  10576. In the case of a point-to-point connection shown in Figure 4, a node
  10577. sends an address request packet to the other node. The destination
  10578. address is 00000001(0x01), that is usually a control processor in a
  10579. switch. When a node receives the address request, it detects the
  10580.  
  10581.  
  10582.  
  10583. Murakami & Maruyama Informational [Page 4]
  10584. RFC 2173 MAPOS June 1997
  10585.  
  10586.  
  10587. point-to-point connection by examining both the destination address
  10588. and the command contained. Then, it MUST reply with an address
  10589. assignment packet. The assigned address MUST be 00000011(0x03). Since
  10590. both nodes send an address request to each other, both of them get
  10591. address 00000011(0x03). Since any address can be used in point-to-
  10592. point environment, there is no problem even if both of the nodes have
  10593. the same address.
  10594.  
  10595. ---- address request ----> 0x01
  10596. 0x03 <---- address assignment ----
  10597. +------+ +------+
  10598. | node +--------------------------------+ node |
  10599. +------+ +------+
  10600. 0x01 <---- address request ----
  10601. ---- address assignment ----> 0x03
  10602.  
  10603. Figure 4 Point-to-point connection
  10604.  
  10605. 4.3.2 loop-back
  10606.  
  10607. Another special case is loop-back where the output port of a node is
  10608. simply connected to its input port as shown in Figure 5. In this
  10609. case, the same mechanism as that for point-to-point can be applied
  10610. without modification. A node sends an address request packet
  10611. destined to 00000001(0x01). The node then receives the same packet.
  10612. Since the destination is 00000001(0x01), it replies with an address
  10613. assignment packet, containing the assigned address 00000011(0x03), to
  10614. the address 0000 0011(0x03). Thus, the node obtains the address
  10615. 00000011(0x03).
  10616.  
  10617. ---- address request ----> 0x01
  10618. +------+ --- address assignment --> 0x03
  10619. | +-------------->-----------------+
  10620. | node + |
  10621. | +--------------<-----------------+
  10622. +------+
  10623.  
  10624. Figure 5 Loop-back Configuration
  10625.  
  10626.  
  10627.  
  10628.  
  10629.  
  10630.  
  10631.  
  10632.  
  10633.  
  10634.  
  10635.  
  10636.  
  10637.  
  10638. Murakami & Maruyama Informational [Page 5]
  10639. RFC 2173 MAPOS June 1997
  10640.  
  10641.  
  10642. 5. Security Considerations
  10643.  
  10644. Security issues are not discussed in this memo.
  10645.  
  10646. References
  10647.  
  10648. [1] Murakami, K. and M. Maruyama, "MAPOS - Multiple Access Protocol
  10649. over SONET/SDH, Version 1," RFC-2171, June 1997.
  10650.  
  10651. [2] CCITT Recommendation G.707: Synchronous Digital Hierarchy Bit
  10652. Rates (1990).
  10653.  
  10654. [3] CCITT Recommendation G.708: Network Node Interface for
  10655. Synchronous Digital Hierarchy (1990).
  10656.  
  10657. [4] CCITT Recommendation G.709: Synchronous Multiplexing Structure
  10658. (1990).
  10659.  
  10660. [5] American National Standard for Telecommunications - Digital
  10661. Hierarchy - Optical Interface Rates and Formats Specification,
  10662. ANSI T1.105-1991.
  10663.  
  10664. [6] Maruyama, M. and K. Murakami, "MAPOS Version 1 Assigned
  10665. Numbers," RFC-2172, June, 1997.
  10666.  
  10667. Acknowledgements
  10668.  
  10669. The authors would like to acknowledge the contributions and
  10670. thoughtful suggestions of John P. Mullaney, Clark Bremer, Masayuki
  10671. Kobayashi, Paul Francis, Toshiaki Yoshida, and Takahiro Sajima.
  10672.  
  10673. Authors' Address
  10674.  
  10675. Ken Murakami
  10676. NTT Software Laboratories
  10677. 3-9-11, Midori-cho
  10678. Musashino-shi
  10679. Tokyo 180, Japan
  10680. E-mail: murakami@ntt-20.ecl.net
  10681.  
  10682. Mitsuru Maruyama
  10683. NTT Software Laboratories
  10684. 3-9-11, Midori-cho
  10685. Musashino-shi
  10686. Tokyo 180, Japan
  10687. E-mail: mitsuru@ntt-20.ecl.net
  10688.  
  10689.  
  10690.  
  10691.  
  10692.  
  10693. Murakami & Maruyama Informational [Page 6]
  10694.  
  10695.  
  10696.  
  10697.  
  10698.  
  10699.  
  10700.  
  10701. Network Working Group K. Murakami
  10702. Request for Comments: 2173 M. Maruyama
  10703. Category: Informational NTT Laboratories
  10704. June 1997
  10705.  
  10706.  
  10707. A MAPOS version 1 Extension - Node Switch Protocol
  10708.  
  10709. Status of this Memo
  10710.  
  10711. This memo provides information for the Internet community. This memo
  10712. does not specify an Internet standard of any kind. Distribution of
  10713. this memo is unlimited.
  10714.  
  10715. Abstract
  10716.  
  10717. This document describes a MAPOS extension, Node Switch Protocol, for
  10718. automatic node address assignment. MAPOS is a multiple access
  10719. protocol for transmission of network-protocol datagrams, encapsulated
  10720. in High-Level Data Link Control (HDLC) frames, over SONET/SDH. NSP
  10721. automates the HDLC address configuration of each node. Using NSP, a
  10722. node retrieves its HDLC address from the switch to which it is
  10723. connected.
  10724.  
  10725. 1. Introduction
  10726.  
  10727. MAPOS[1], Multiple Access Protocol over SONET(Synchronous Optical
  10728. Network)/SDH(Synchronous Digital Hierarchy)[2][3][4][5], is a
  10729. protocol for transmission of HDLC frames over SONET/SDH. A SONET
  10730. switch provides multiple access capability to each node. In MAPOS,
  10731. each node has a unique HDLC address within a switch. The address is
  10732. equivalent to the port number of the switch to which the node is
  10733. connected. This document describes an extension to MAPOS, Node
  10734. Switch Protocol, which enable automatic HDLC address assignment.
  10735. First, it explains the addressing of MAPOS. Then, it describes the
  10736. NSP protocol for automatic HDLC node address assignment.
  10737.  
  10738. 2. Node Address Format
  10739.  
  10740. This section describes MAPOS Version 1 address format in single and
  10741. multiple switch environment.
  10742.  
  10743.  
  10744.  
  10745.  
  10746.  
  10747.  
  10748.  
  10749.  
  10750.  
  10751.  
  10752. Murakami & Maruyama Informational [Page 1]
  10753. RFC 2173 MAPOS June 1997
  10754.  
  10755.  
  10756. 2.1 Address Format
  10757.  
  10758. In MAPOS network, each end node has a unique HDLC address. As shown
  10759. in Figure 1, the address length is 8 bits. The LSB is always 1 which
  10760. indicates the end of the field. When a SONET switch receives an HDLC
  10761. frame, it forwards the frame based on the address in the frame
  10762. header.
  10763.  
  10764. In unicast, MSB is 0 and the rest of the bits are the port number to
  10765. which a node is connected. Since the LSB is always 1, the minimum and
  10766. maximum addresses are 0x01 and 0x7F, respectively. Address 0x01 is
  10767. reserved and is assigned to the control processor in a SONET switch.
  10768.  
  10769. In broadcast, MSB is 1 and the rest of the bits are all 1s. In
  10770. multicast, MSB is 1 and the rest of the bits, except for the LSB,
  10771. indicate the group address.
  10772.  
  10773. +-------------+-+
  10774. | | | | | | | | |
  10775. | |port number|1|
  10776. +-+-----------+-+
  10777. ^ ^
  10778. | |
  10779. | +------- EA bit (always 1)
  10780. |
  10781. 1 : broadcast, multicast
  10782. 0 : unicast
  10783.  
  10784. Figure 1 Address format
  10785.  
  10786. 2.2 Address in multi-switch environment
  10787.  
  10788. In a multi-switch environment, variable-length subnet addressing is
  10789. used. Each switch has a switch number that is unique within the
  10790. system. Subnetted node addresses consist of the switch number and the
  10791. port number to which a node is connected. The address format is "0
  10792. <switch number> <node number> 1" for a unicast address, "all 1" for
  10793. the broadcast address, and "1 <group address> 1" for a multicast
  10794. address.
  10795.  
  10796. The address 0x01 is reserved and is assigned to the control processor
  10797. in the "local" switch. That is, it indicates the switch itself to
  10798. which the node is connected. The addresses of the form "0 <switch
  10799. number> <all 0> 1" are reserved, and indicates the control processor
  10800. of the switch designated by the switch number.
  10801.  
  10802. In Figure 2, the switch numbers are two bits long. Node N1 is
  10803. connected to port 0x3 of switch S1 numbered 0x1 (01 in binary). Thus,
  10804.  
  10805.  
  10806.  
  10807. Murakami & Maruyama Informational [Page 2]
  10808. RFC 2173 MAPOS June 1997
  10809.  
  10810.  
  10811. the node address is 0 + 01 + 00011, that is, 00100011(0x23). Node N3
  10812. has an address 01001001(0x49), since the switch number of S2 is 0x2
  10813. (10 in binary) and the port number is 0x09. Note that all the port
  10814. numbers are odd because the LSBs are always 1.
  10815.  
  10816. +------+
  10817. | node |
  10818. | N1 |
  10819. +------+
  10820. | 00100011(0x23)
  10821. |
  10822. |0x3 |0x3
  10823. +------+ +---+----+ +---+----+ +------+
  10824. | node +----+ SONET +-------+ SONET +-----+ node |
  10825. | N2 | 0x5| Switch |0x9 0x5| Switch |0x9 | N3 |
  10826. +------+ | S1 | | S2 | +------+
  10827. 00100101(0x25) | 0x1 | | 0x2 | 01001001(0x49)
  10828. +---+----+ +---+----+
  10829. |0x7 |0x7
  10830.  
  10831.  
  10832. Figure 2 Addressing in Multiple Switch Environment
  10833.  
  10834. 4 NSP(Node-Switch Protocol)
  10835.  
  10836. This section describes the NSP protocol used for automatic node
  10837. address assignment.
  10838.  
  10839. 4.1 NSP protocol
  10840.  
  10841. NSP is introduced to provide an automatic node address assignment
  10842. function in MAPOS version 1. It reduces the administrative overhead
  10843. of node address configuration for each node and prevents troubles
  10844. such as address inconsistency and collision. When a node is connected
  10845. to a switch and receives SONET signal correctly, the node sends an
  10846. address request packet to the control processor in the local switch.
  10847. The destination address of this packet is 00000001(0x01). When the
  10848. control processor receives the packet, it replies with an address
  10849. assignment packet. The destination is the assigned node address. If
  10850. the node does not receive the address assignment packet within 5
  10851. seconds, it retransmits the address request packet. The
  10852. retransmission continues until the node successfully receives the
  10853. address assignment packet.
  10854.  
  10855. Whenever a node detects a transmission error such as carrier loss or
  10856. out-of-synchronization, it SHOULD send an address request packet to
  10857. the control processor and verify its current address. In addition, a
  10858. node MUST verify its address by sending address request packets every
  10859.  
  10860.  
  10861.  
  10862. Murakami & Maruyama Informational [Page 3]
  10863. RFC 2173 MAPOS June 1997
  10864.  
  10865.  
  10866. 30 seconds. The switch regards them as keep-alive packets and
  10867. utilizes them to detect the node's status. If it has not received a
  10868. request packet for more than 90 seconds, it assumes that the node
  10869. went down. In addition, it also assumes the node went down when a
  10870. switch detects a SONET signal failure.
  10871.  
  10872. 4.2 Packet Format
  10873.  
  10874. The HDLC protocol field of a NSP frame contains 0xFE03 (hexadecimal)
  10875. as defined by the "MAPOS Version 1 Assigned Numbers" [6]. The
  10876. information field contains the NSP packet as shown in Figure 3.
  10877.  
  10878.  
  10879. +-----------+------------+
  10880. I command I address I
  10881. +-----------+------------+
  10882. I<- 32bit ->I<- 32 bit ->I
  10883.  
  10884. Figure 3 NSP packet format
  10885.  
  10886. The command field is 32 bits long and has the following values (in
  10887. decimal);
  10888.  
  10889. 1 address request
  10890. 2 address assignment
  10891. 3 reject(error)
  10892.  
  10893. The length of the address field is 32bits. In address request
  10894. packets, the NSP address field SHOULD be filled with zeroes, although
  10895. the switch ignores it. In address assignment packets, the assigned
  10896. address is placed in the least significant byte of the field. The
  10897. rest of the field is padded with zeroes. When the switch can not
  10898. assign the address for some reason, the switch replies with a reject
  10899. command (the values is 3). The value of the address field is
  10900. undefined.
  10901.  
  10902. 4.3 Consideration for special cases
  10903.  
  10904. There are two special cases to consider. One is a point-to-point
  10905. connection without a switch. The other is loop-back, that is, direct
  10906. connection between the input and the output of the same port.
  10907.  
  10908. 4.3.1 point-to-point
  10909.  
  10910. In the case of a point-to-point connection shown in Figure 4, a node
  10911. sends an address request packet to the other node. The destination
  10912. address is 00000001(0x01), that is usually a control processor in a
  10913. switch. When a node receives the address request, it detects the
  10914.  
  10915.  
  10916.  
  10917. Murakami & Maruyama Informational [Page 4]
  10918. RFC 2173 MAPOS June 1997
  10919.  
  10920.  
  10921. point-to-point connection by examining both the destination address
  10922. and the command contained. Then, it MUST reply with an address
  10923. assignment packet. The assigned address MUST be 00000011(0x03). Since
  10924. both nodes send an address request to each other, both of them get
  10925. address 00000011(0x03). Since any address can be used in point-to-
  10926. point environment, there is no problem even if both of the nodes have
  10927. the same address.
  10928.  
  10929. ---- address request ----> 0x01
  10930. 0x03 <---- address assignment ----
  10931. +------+ +------+
  10932. | node +--------------------------------+ node |
  10933. +------+ +------+
  10934. 0x01 <---- address request ----
  10935. ---- address assignment ----> 0x03
  10936.  
  10937. Figure 4 Point-to-point connection
  10938.  
  10939. 4.3.2 loop-back
  10940.  
  10941. Another special case is loop-back where the output port of a node is
  10942. simply connected to its input port as shown in Figure 5. In this
  10943. case, the same mechanism as that for point-to-point can be applied
  10944. without modification. A node sends an address request packet
  10945. destined to 00000001(0x01). The node then receives the same packet.
  10946. Since the destination is 00000001(0x01), it replies with an address
  10947. assignment packet, containing the assigned address 00000011(0x03), to
  10948. the address 0000 0011(0x03). Thus, the node obtains the address
  10949. 00000011(0x03).
  10950.  
  10951. ---- address request ----> 0x01
  10952. +------+ --- address assignment --> 0x03
  10953. | +-------------->-----------------+
  10954. | node + |
  10955. | +--------------<-----------------+
  10956. +------+
  10957.  
  10958. Figure 5 Loop-back Configuration
  10959.  
  10960.  
  10961.  
  10962.  
  10963.  
  10964.  
  10965.  
  10966.  
  10967.  
  10968.  
  10969.  
  10970.  
  10971.  
  10972. Murakami & Maruyama Informational [Page 5]
  10973. RFC 2173 MAPOS June 1997
  10974.  
  10975.  
  10976. 5. Security Considerations
  10977.  
  10978. Security issues are not discussed in this memo.
  10979.  
  10980. References
  10981.  
  10982. [1] Murakami, K. and M. Maruyama, "MAPOS - Multiple Access Protocol
  10983. over SONET/SDH, Version 1," RFC-2171, June 1997.
  10984.  
  10985. [2] CCITT Recommendation G.707: Synchronous Digital Hierarchy Bit
  10986. Rates (1990).
  10987.  
  10988. [3] CCITT Recommendation G.708: Network Node Interface for
  10989. Synchronous Digital Hierarchy (1990).
  10990.  
  10991. [4] CCITT Recommendation G.709: Synchronous Multiplexing Structure
  10992. (1990).
  10993.  
  10994. [5] American National Standard for Telecommunications - Digital
  10995. Hierarchy - Optical Interface Rates and Formats Specification,
  10996. ANSI T1.105-1991.
  10997.  
  10998. [6] Maruyama, M. and K. Murakami, "MAPOS Version 1 Assigned
  10999. Numbers," RFC-2172, June, 1997.
  11000.  
  11001. Acknowledgements
  11002.  
  11003. The authors would like to acknowledge the contributions and
  11004. thoughtful suggestions of John P. Mullaney, Clark Bremer, Masayuki
  11005. Kobayashi, Paul Francis, Toshiaki Yoshida, and Takahiro Sajima.
  11006.  
  11007. Authors' Address
  11008.  
  11009. Ken Murakami
  11010. NTT Software Laboratories
  11011. 3-9-11, Midori-cho
  11012. Musashino-shi
  11013. Tokyo 180, Japan
  11014. E-mail: murakami@ntt-20.ecl.net
  11015.  
  11016. Mitsuru Maruyama
  11017. NTT Software Laboratories
  11018. 3-9-11, Midori-cho
  11019. Musashino-shi
  11020. Tokyo 180, Japan
  11021. E-mail: mitsuru@ntt-20.ecl.net
  11022.  
  11023.  
  11024.  
  11025.  
  11026.  
  11027. Murakami & Maruyama Informational [Page 6]
  11028.  
  11029.  
  11030.  
  11031.  
  11032.  
  11033.  
  11034.  
  11035. Network Working Group K. Murakami
  11036. Request for Comments: 2173 M. Maruyama
  11037. Category: Informational NTT Laboratories
  11038. June 1997
  11039.  
  11040.  
  11041. A MAPOS version 1 Extension - Node Switch Protocol
  11042.  
  11043. Status of this Memo
  11044.  
  11045. This memo provides information for the Internet community. This memo
  11046. does not specify an Internet standard of any kind. Distribution of
  11047. this memo is unlimited.
  11048.  
  11049. Abstract
  11050.  
  11051. This document describes a MAPOS extension, Node Switch Protocol, for
  11052. automatic node address assignment. MAPOS is a multiple access
  11053. protocol for transmission of network-protocol datagrams, encapsulated
  11054. in High-Level Data Link Control (HDLC) frames, over SONET/SDH. NSP
  11055. automates the HDLC address configuration of each node. Using NSP, a
  11056. node retrieves its HDLC address from the switch to which it is
  11057. connected.
  11058.  
  11059. 1. Introduction
  11060.  
  11061. MAPOS[1], Multiple Access Protocol over SONET(Synchronous Optical
  11062. Network)/SDH(Synchronous Digital Hierarchy)[2][3][4][5], is a
  11063. protocol for transmission of HDLC frames over SONET/SDH. A SONET
  11064. switch provides multiple access capability to each node. In MAPOS,
  11065. each node has a unique HDLC address within a switch. The address is
  11066. equivalent to the port number of the switch to which the node is
  11067. connected. This document describes an extension to MAPOS, Node
  11068. Switch Protocol, which enable automatic HDLC address assignment.
  11069. First, it explains the addressing of MAPOS. Then, it describes the
  11070. NSP protocol for automatic HDLC node address assignment.
  11071.  
  11072. 2. Node Address Format
  11073.  
  11074. This section describes MAPOS Version 1 address format in single and
  11075. multiple switch environment.
  11076.  
  11077.  
  11078.  
  11079.  
  11080.  
  11081.  
  11082.  
  11083.  
  11084.  
  11085.  
  11086. Murakami & Maruyama Informational [Page 1]
  11087. RFC 2173 MAPOS June 1997
  11088.  
  11089.  
  11090. 2.1 Address Format
  11091.  
  11092. In MAPOS network, each end node has a unique HDLC address. As shown
  11093. in Figure 1, the address length is 8 bits. The LSB is always 1 which
  11094. indicates the end of the field. When a SONET switch receives an HDLC
  11095. frame, it forwards the frame based on the address in the frame
  11096. header.
  11097.  
  11098. In unicast, MSB is 0 and the rest of the bits are the port number to
  11099. which a node is connected. Since the LSB is always 1, the minimum and
  11100. maximum addresses are 0x01 and 0x7F, respectively. Address 0x01 is
  11101. reserved and is assigned to the control processor in a SONET switch.
  11102.  
  11103. In broadcast, MSB is 1 and the rest of the bits are all 1s. In
  11104. multicast, MSB is 1 and the rest of the bits, except for the LSB,
  11105. indicate the group address.
  11106.  
  11107. +-------------+-+
  11108. | | | | | | | | |
  11109. | |port number|1|
  11110. +-+-----------+-+
  11111. ^ ^
  11112. | |
  11113. | +------- EA bit (always 1)
  11114. |
  11115. 1 : broadcast, multicast
  11116. 0 : unicast
  11117.  
  11118. Figure 1 Address format
  11119.  
  11120. 2.2 Address in multi-switch environment
  11121.  
  11122. In a multi-switch environment, variable-length subnet addressing is
  11123. used. Each switch has a switch number that is unique within the
  11124. system. Subnetted node addresses consist of the switch number and the
  11125. port number to which a node is connected. The address format is "0
  11126. <switch number> <node number> 1" for a unicast address, "all 1" for
  11127. the broadcast address, and "1 <group address> 1" for a multicast
  11128. address.
  11129.  
  11130. The address 0x01 is reserved and is assigned to the control processor
  11131. in the "local" switch. That is, it indicates the switch itself to
  11132. which the node is connected. The addresses of the form "0 <switch
  11133. number> <all 0> 1" are reserved, and indicates the control processor
  11134. of the switch designated by the switch number.
  11135.  
  11136. In Figure 2, the switch numbers are two bits long. Node N1 is
  11137. connected to port 0x3 of switch S1 numbered 0x1 (01 in binary). Thus,
  11138.  
  11139.  
  11140.  
  11141. Murakami & Maruyama Informational [Page 2]
  11142. RFC 2173 MAPOS June 1997
  11143.  
  11144.  
  11145. the node address is 0 + 01 + 00011, that is, 00100011(0x23). Node N3
  11146. has an address 01001001(0x49), since the switch number of S2 is 0x2
  11147. (10 in binary) and the port number is 0x09. Note that all the port
  11148. numbers are odd because the LSBs are always 1.
  11149.  
  11150. +------+
  11151. | node |
  11152. | N1 |
  11153. +------+
  11154. | 00100011(0x23)
  11155. |
  11156. |0x3 |0x3
  11157. +------+ +---+----+ +---+----+ +------+
  11158. | node +----+ SONET +-------+ SONET +-----+ node |
  11159. | N2 | 0x5| Switch |0x9 0x5| Switch |0x9 | N3 |
  11160. +------+ | S1 | | S2 | +------+
  11161. 00100101(0x25) | 0x1 | | 0x2 | 01001001(0x49)
  11162. +---+----+ +---+----+
  11163. |0x7 |0x7
  11164.  
  11165.  
  11166. Figure 2 Addressing in Multiple Switch Environment
  11167.  
  11168. 4 NSP(Node-Switch Protocol)
  11169.  
  11170. This section describes the NSP protocol used for automatic node
  11171. address assignment.
  11172.  
  11173. 4.1 NSP protocol
  11174.  
  11175. NSP is introduced to provide an automatic node address assignment
  11176. function in MAPOS version 1. It reduces the administrative overhead
  11177. of node address configuration for each node and prevents troubles
  11178. such as address inconsistency and collision. When a node is connected
  11179. to a switch and receives SONET signal correctly, the node sends an
  11180. address request packet to the control processor in the local switch.
  11181. The destination address of this packet is 00000001(0x01). When the
  11182. control processor receives the packet, it replies with an address
  11183. assignment packet. The destination is the assigned node address. If
  11184. the node does not receive the address assignment packet within 5
  11185. seconds, it retransmits the address request packet. The
  11186. retransmission continues until the node successfully receives the
  11187. address assignment packet.
  11188.  
  11189. Whenever a node detects a transmission error such as carrier loss or
  11190. out-of-synchronization, it SHOULD send an address request packet to
  11191. the control processor and verify its current address. In addition, a
  11192. node MUST verify its address by sending address request packets every
  11193.  
  11194.  
  11195.  
  11196. Murakami & Maruyama Informational [Page 3]
  11197. RFC 2173 MAPOS June 1997
  11198.  
  11199.  
  11200. 30 seconds. The switch regards them as keep-alive packets and
  11201. utilizes them to detect the node's status. If it has not received a
  11202. request packet for more than 90 seconds, it assumes that the node
  11203. went down. In addition, it also assumes the node went down when a
  11204. switch detects a SONET signal failure.
  11205.  
  11206. 4.2 Packet Format
  11207.  
  11208. The HDLC protocol field of a NSP frame contains 0xFE03 (hexadecimal)
  11209. as defined by the "MAPOS Version 1 Assigned Numbers" [6]. The
  11210. information field contains the NSP packet as shown in Figure 3.
  11211.  
  11212.  
  11213. +-----------+------------+
  11214. I command I address I
  11215. +-----------+------------+
  11216. I<- 32bit ->I<- 32 bit ->I
  11217.  
  11218. Figure 3 NSP packet format
  11219.  
  11220. The command field is 32 bits long and has the following values (in
  11221. decimal);
  11222.  
  11223. 1 address request
  11224. 2 address assignment
  11225. 3 reject(error)
  11226.  
  11227. The length of the address field is 32bits. In address request
  11228. packets, the NSP address field SHOULD be filled with zeroes, although
  11229. the switch ignores it. In address assignment packets, the assigned
  11230. address is placed in the least significant byte of the field. The
  11231. rest of the field is padded with zeroes. When the switch can not
  11232. assign the address for some reason, the switch replies with a reject
  11233. command (the values is 3). The value of the address field is
  11234. undefined.
  11235.  
  11236. 4.3 Consideration for special cases
  11237.  
  11238. There are two special cases to consider. One is a point-to-point
  11239. connection without a switch. The other is loop-back, that is, direct
  11240. connection between the input and the output of the same port.
  11241.  
  11242. 4.3.1 point-to-point
  11243.  
  11244. In the case of a point-to-point connection shown in Figure 4, a node
  11245. sends an address request packet to the other node. The destination
  11246. address is 00000001(0x01), that is usually a control processor in a
  11247. switch. When a node receives the address request, it detects the
  11248.  
  11249.  
  11250.  
  11251. Murakami & Maruyama Informational [Page 4]
  11252. RFC 2173 MAPOS June 1997
  11253.  
  11254.  
  11255. point-to-point connection by examining both the destination address
  11256. and the command contained. Then, it MUST reply with an address
  11257. assignment packet. The assigned address MUST be 00000011(0x03). Since
  11258. both nodes send an address request to each other, both of them get
  11259. address 00000011(0x03). Since any address can be used in point-to-
  11260. point environment, there is no problem even if both of the nodes have
  11261. the same address.
  11262.  
  11263. ---- address request ----> 0x01
  11264. 0x03 <---- address assignment ----
  11265. +------+ +------+
  11266. | node +--------------------------------+ node |
  11267. +------+ +------+
  11268. 0x01 <---- address request ----
  11269. ---- address assignment ----> 0x03
  11270.  
  11271. Figure 4 Point-to-point connection
  11272.  
  11273. 4.3.2 loop-back
  11274.  
  11275. Another special case is loop-back where the output port of a node is
  11276. simply connected to its input port as shown in Figure 5. In this
  11277. case, the same mechanism as that for point-to-point can be applied
  11278. without modification. A node sends an address request packet
  11279. destined to 00000001(0x01). The node then receives the same packet.
  11280. Since the destination is 00000001(0x01), it replies with an address
  11281. assignment packet, containing the assigned address 00000011(0x03), to
  11282. the address 0000 0011(0x03). Thus, the node obtains the address
  11283. 00000011(0x03).
  11284.  
  11285. ---- address request ----> 0x01
  11286. +------+ --- address assignment --> 0x03
  11287. | +-------------->-----------------+
  11288. | node + |
  11289. | +--------------<-----------------+
  11290. +------+
  11291.  
  11292. Figure 5 Loop-back Configuration
  11293.  
  11294.  
  11295.  
  11296.  
  11297.  
  11298.  
  11299.  
  11300.  
  11301.  
  11302.  
  11303.  
  11304.  
  11305.  
  11306. Murakami & Maruyama Informational [Page 5]
  11307. RFC 2173 MAPOS June 1997
  11308.  
  11309.  
  11310. 5. Security Considerations
  11311.  
  11312. Security issues are not discussed in this memo.
  11313.  
  11314. References
  11315.  
  11316. [1] Murakami, K. and M. Maruyama, "MAPOS - Multiple Access Protocol
  11317. over SONET/SDH, Version 1," RFC-2171, June 1997.
  11318.  
  11319. [2] CCITT Recommendation G.707: Synchronous Digital Hierarchy Bit
  11320. Rates (1990).
  11321.  
  11322. [3] CCITT Recommendation G.708: Network Node Interface for
  11323. Synchronous Digital Hierarchy (1990).
  11324.  
  11325. [4] CCITT Recommendation G.709: Synchronous Multiplexing Structure
  11326. (1990).
  11327.  
  11328. [5] American National Standard for Telecommunications - Digital
  11329. Hierarchy - Optical Interface Rates and Formats Specification,
  11330. ANSI T1.105-1991.
  11331.  
  11332. [6] Maruyama, M. and K. Murakami, "MAPOS Version 1 Assigned
  11333. Numbers," RFC-2172, June, 1997.
  11334.  
  11335. Acknowledgements
  11336.  
  11337. The authors would like to acknowledge the contributions and
  11338. thoughtful suggestions of John P. Mullaney, Clark Bremer, Masayuki
  11339. Kobayashi, Paul Francis, Toshiaki Yoshida, and Takahiro Sajima.
  11340.  
  11341. Authors' Address
  11342.  
  11343. Ken Murakami
  11344. NTT Software Laboratories
  11345. 3-9-11, Midori-cho
  11346. Musashino-shi
  11347. Tokyo 180, Japan
  11348. E-mail: murakami@ntt-20.ecl.net
  11349.  
  11350. Mitsuru Maruyama
  11351. NTT Software Laboratories
  11352. 3-9-11, Midori-cho
  11353. Musashino-shi
  11354. Tokyo 180, Japan
  11355. E-mail: mitsuru@ntt-20.ecl.net
  11356.  
  11357.  
  11358.  
  11359.  
  11360.  
  11361. Murakami & Maruyama Informational [Page 6]
  11362.  
  11363.  
  11364.  
  11365.  
  11366.  
  11367.  
  11368.  
  11369. Network Working Group K. Murakami
  11370. Request for Comments: 2173 M. Maruyama
  11371. Category: Informational NTT Laboratories
  11372. June 1997
  11373.  
  11374.  
  11375. A MAPOS version 1 Extension - Node Switch Protocol
  11376.  
  11377. Status of this Memo
  11378.  
  11379. This memo provides information for the Internet community. This memo
  11380. does not specify an Internet standard of any kind. Distribution of
  11381. this memo is unlimited.
  11382.  
  11383. Abstract
  11384.  
  11385. This document describes a MAPOS extension, Node Switch Protocol, for
  11386. automatic node address assignment. MAPOS is a multiple access
  11387. protocol for transmission of network-protocol datagrams, encapsulated
  11388. in High-Level Data Link Control (HDLC) frames, over SONET/SDH. NSP
  11389. automates the HDLC address configuration of each node. Using NSP, a
  11390. node retrieves its HDLC address from the switch to which it is
  11391. connected.
  11392.  
  11393. 1. Introduction
  11394.  
  11395. MAPOS[1], Multiple Access Protocol over SONET(Synchronous Optical
  11396. Network)/SDH(Synchronous Digital Hierarchy)[2][3][4][5], is a
  11397. protocol for transmission of HDLC frames over SONET/SDH. A SONET
  11398. switch provides multiple access capability to each node. In MAPOS,
  11399. each node has a unique HDLC address within a switch. The address is
  11400. equivalent to the port number of the switch to which the node is
  11401. connected. This document describes an extension to MAPOS, Node
  11402. Switch Protocol, which enable automatic HDLC address assignment.
  11403. First, it explains the addressing of MAPOS. Then, it describes the
  11404. NSP protocol for automatic HDLC node address assignment.
  11405.  
  11406. 2. Node Address Format
  11407.  
  11408. This section describes MAPOS Version 1 address format in single and
  11409. multiple switch environment.
  11410.  
  11411.  
  11412.  
  11413.  
  11414.  
  11415.  
  11416.  
  11417.  
  11418.  
  11419.  
  11420. Murakami & Maruyama Informational [Page 1]
  11421. RFC 2173 MAPOS June 1997
  11422.  
  11423.  
  11424. 2.1 Address Format
  11425.  
  11426. In MAPOS network, each end node has a unique HDLC address. As shown
  11427. in Figure 1, the address length is 8 bits. The LSB is always 1 which
  11428. indicates the end of the field. When a SONET switch receives an HDLC
  11429. frame, it forwards the frame based on the address in the frame
  11430. header.
  11431.  
  11432. In unicast, MSB is 0 and the rest of the bits are the port number to
  11433. which a node is connected. Since the LSB is always 1, the minimum and
  11434. maximum addresses are 0x01 and 0x7F, respectively. Address 0x01 is
  11435. reserved and is assigned to the control processor in a SONET switch.
  11436.  
  11437. In broadcast, MSB is 1 and the rest of the bits are all 1s. In
  11438. multicast, MSB is 1 and the rest of the bits, except for the LSB,
  11439. indicate the group address.
  11440.  
  11441. +-------------+-+
  11442. | | | | | | | | |
  11443. | |port number|1|
  11444. +-+-----------+-+
  11445. ^ ^
  11446. | |
  11447. | +------- EA bit (always 1)
  11448. |
  11449. 1 : broadcast, multicast
  11450. 0 : unicast
  11451.  
  11452. Figure 1 Address format
  11453.  
  11454. 2.2 Address in multi-switch environment
  11455.  
  11456. In a multi-switch environment, variable-length subnet addressing is
  11457. used. Each switch has a switch number that is unique within the
  11458. system. Subnetted node addresses consist of the switch number and the
  11459. port number to which a node is connected. The address format is "0
  11460. <switch number> <node number> 1" for a unicast address, "all 1" for
  11461. the broadcast address, and "1 <group address> 1" for a multicast
  11462. address.
  11463.  
  11464. The address 0x01 is reserved and is assigned to the control processor
  11465. in the "local" switch. That is, it indicates the switch itself to
  11466. which the node is connected. The addresses of the form "0 <switch
  11467. number> <all 0> 1" are reserved, and indicates the control processor
  11468. of the switch designated by the switch number.
  11469.  
  11470. In Figure 2, the switch numbers are two bits long. Node N1 is
  11471. connected to port 0x3 of switch S1 numbered 0x1 (01 in binary). Thus,
  11472.  
  11473.  
  11474.  
  11475. Murakami & Maruyama Informational [Page 2]
  11476. RFC 2173 MAPOS June 1997
  11477.  
  11478.  
  11479. the node address is 0 + 01 + 00011, that is, 00100011(0x23). Node N3
  11480. has an address 01001001(0x49), since the switch number of S2 is 0x2
  11481. (10 in binary) and the port number is 0x09. Note that all the port
  11482. numbers are odd because the LSBs are always 1.
  11483.  
  11484. +------+
  11485. | node |
  11486. | N1 |
  11487. +------+
  11488. | 00100011(0x23)
  11489. |
  11490. |0x3 |0x3
  11491. +------+ +---+----+ +---+----+ +------+
  11492. | node +----+ SONET +-------+ SONET +-----+ node |
  11493. | N2 | 0x5| Switch |0x9 0x5| Switch |0x9 | N3 |
  11494. +------+ | S1 | | S2 | +------+
  11495. 00100101(0x25) | 0x1 | | 0x2 | 01001001(0x49)
  11496. +---+----+ +---+----+
  11497. |0x7 |0x7
  11498.  
  11499.  
  11500. Figure 2 Addressing in Multiple Switch Environment
  11501.  
  11502. 4 NSP(Node-Switch Protocol)
  11503.  
  11504. This section describes the NSP protocol used for automatic node
  11505. address assignment.
  11506.  
  11507. 4.1 NSP protocol
  11508.  
  11509. NSP is introduced to provide an automatic node address assignment
  11510. function in MAPOS version 1. It reduces the administrative overhead
  11511. of node address configuration for each node and prevents troubles
  11512. such as address inconsistency and collision. When a node is connected
  11513. to a switch and receives SONET signal correctly, the node sends an
  11514. address request packet to the control processor in the local switch.
  11515. The destination address of this packet is 00000001(0x01). When the
  11516. control processor receives the packet, it replies with an address
  11517. assignment packet. The destination is the assigned node address. If
  11518. the node does not receive the address assignment packet within 5
  11519. seconds, it retransmits the address request packet. The
  11520. retransmission continues until the node successfully receives the
  11521. address assignment packet.
  11522.  
  11523. Whenever a node detects a transmission error such as carrier loss or
  11524. out-of-synchronization, it SHOULD send an address request packet to
  11525. the control processor and verify its current address. In addition, a
  11526. node MUST verify its address by sending address request packets every
  11527.  
  11528.  
  11529.  
  11530. Murakami & Maruyama Informational [Page 3]
  11531. RFC 2173 MAPOS June 1997
  11532.  
  11533.  
  11534. 30 seconds. The switch regards them as keep-alive packets and
  11535. utilizes them to detect the node's status. If it has not received a
  11536. request packet for more than 90 seconds, it assumes that the node
  11537. went down. In addition, it also assumes the node went down when a
  11538. switch detects a SONET signal failure.
  11539.  
  11540. 4.2 Packet Format
  11541.  
  11542. The HDLC protocol field of a NSP frame contains 0xFE03 (hexadecimal)
  11543. as defined by the "MAPOS Version 1 Assigned Numbers" [6]. The
  11544. information field contains the NSP packet as shown in Figure 3.
  11545.  
  11546.  
  11547. +-----------+------------+
  11548. I command I address I
  11549. +-----------+------------+
  11550. I<- 32bit ->I<- 32 bit ->I
  11551.  
  11552. Figure 3 NSP packet format
  11553.  
  11554. The command field is 32 bits long and has the following values (in
  11555. decimal);
  11556.  
  11557. 1 address request
  11558. 2 address assignment
  11559. 3 reject(error)
  11560.  
  11561. The length of the address field is 32bits. In address request
  11562. packets, the NSP address field SHOULD be filled with zeroes, although
  11563. the switch ignores it. In address assignment packets, the assigned
  11564. address is placed in the least significant byte of the field. The
  11565. rest of the field is padded with zeroes. When the switch can not
  11566. assign the address for some reason, the switch replies with a reject
  11567. command (the values is 3). The value of the address field is
  11568. undefined.
  11569.  
  11570. 4.3 Consideration for special cases
  11571.  
  11572. There are two special cases to consider. One is a point-to-point
  11573. connection without a switch. The other is loop-back, that is, direct
  11574. connection between the input and the output of the same port.
  11575.  
  11576. 4.3.1 point-to-point
  11577.  
  11578. In the case of a point-to-point connection shown in Figure 4, a node
  11579. sends an address request packet to the other node. The destination
  11580. address is 00000001(0x01), that is usually a control processor in a
  11581. switch. When a node receives the address request, it detects the
  11582.  
  11583.  
  11584.  
  11585. Murakami & Maruyama Informational [Page 4]
  11586. RFC 2173 MAPOS June 1997
  11587.  
  11588.  
  11589. point-to-point connection by examining both the destination address
  11590. and the command contained. Then, it MUST reply with an address
  11591. assignment packet. The assigned address MUST be 00000011(0x03). Since
  11592. both nodes send an address request to each other, both of them get
  11593. address 00000011(0x03). Since any address can be used in point-to-
  11594. point environment, there is no problem even if both of the nodes have
  11595. the same address.
  11596.  
  11597. ---- address request ----> 0x01
  11598. 0x03 <---- address assignment ----
  11599. +------+ +------+
  11600. | node +--------------------------------+ node |
  11601. +------+ +------+
  11602. 0x01 <---- address request ----
  11603. ---- address assignment ----> 0x03
  11604.  
  11605. Figure 4 Point-to-point connection
  11606.  
  11607. 4.3.2 loop-back
  11608.  
  11609. Another special case is loop-back where the output port of a node is
  11610. simply connected to its input port as shown in Figure 5. In this
  11611. case, the same mechanism as that for point-to-point can be applied
  11612. without modification. A node sends an address request packet
  11613. destined to 00000001(0x01). The node then receives the same packet.
  11614. Since the destination is 00000001(0x01), it replies with an address
  11615. assignment packet, containing the assigned address 00000011(0x03), to
  11616. the address 0000 0011(0x03). Thus, the node obtains the address
  11617. 00000011(0x03).
  11618.  
  11619. ---- address request ----> 0x01
  11620. +------+ --- address assignment --> 0x03
  11621. | +-------------->-----------------+
  11622. | node + |
  11623. | +--------------<-----------------+
  11624. +------+
  11625.  
  11626. Figure 5 Loop-back Configuration
  11627.  
  11628.  
  11629.  
  11630.  
  11631.  
  11632.  
  11633.  
  11634.  
  11635.  
  11636.  
  11637.  
  11638.  
  11639.  
  11640. Murakami & Maruyama Informational [Page 5]
  11641. RFC 2173 MAPOS June 1997
  11642.  
  11643.  
  11644. 5. Security Considerations
  11645.  
  11646. Security issues are not discussed in this memo.
  11647.  
  11648. References
  11649.  
  11650. [1] Murakami, K. and M. Maruyama, "MAPOS - Multiple Access Protocol
  11651. over SONET/SDH, Version 1," RFC-2171, June 1997.
  11652.  
  11653. [2] CCITT Recommendation G.707: Synchronous Digital Hierarchy Bit
  11654. Rates (1990).
  11655.  
  11656. [3] CCITT Recommendation G.708: Network Node Interface for
  11657. Synchronous Digital Hierarchy (1990).
  11658.  
  11659. [4] CCITT Recommendation G.709: Synchronous Multiplexing Structure
  11660. (1990).
  11661.  
  11662. [5] American National Standard for Telecommunications - Digital
  11663. Hierarchy - Optical Interface Rates and Formats Specification,
  11664. ANSI T1.105-1991.
  11665.  
  11666. [6] Maruyama, M. and K. Murakami, "MAPOS Version 1 Assigned
  11667. Numbers," RFC-2172, June, 1997.
  11668.  
  11669. Acknowledgements
  11670.  
  11671. The authors would like to acknowledge the contributions and
  11672. thoughtful suggestions of John P. Mullaney, Clark Bremer, Masayuki
  11673. Kobayashi, Paul Francis, Toshiaki Yoshida, and Takahiro Sajima.
  11674.  
  11675. Authors' Address
  11676.  
  11677. Ken Murakami
  11678. NTT Software Laboratories
  11679. 3-9-11, Midori-cho
  11680. Musashino-shi
  11681. Tokyo 180, Japan
  11682. E-mail: murakami@ntt-20.ecl.net
  11683.  
  11684. Mitsuru Maruyama
  11685. NTT Software Laboratories
  11686. 3-9-11, Midori-cho
  11687. Musashino-shi
  11688. Tokyo 180, Japan
  11689. E-mail: mitsuru@ntt-20.ecl.net
  11690.  
  11691.  
  11692.  
  11693.  
  11694.  
  11695. Murakami & Maruyama Informational [Page 6]
  11696.  
  11697.  
  11698.  
  11699.  
  11700.  
  11701.  
  11702.  
  11703. Network Working Group K. Murakami
  11704. Request for Comments: 2173 M. Maruyama
  11705. Category: Informational NTT Laboratories
  11706. June 1997
  11707.  
  11708.  
  11709. A MAPOS version 1 Extension - Node Switch Protocol
  11710.  
  11711. Status of this Memo
  11712.  
  11713. This memo provides information for the Internet community. This memo
  11714. does not specify an Internet standard of any kind. Distribution of
  11715. this memo is unlimited.
  11716.  
  11717. Abstract
  11718.  
  11719. This document describes a MAPOS extension, Node Switch Protocol, for
  11720. automatic node address assignment. MAPOS is a multiple access
  11721. protocol for transmission of network-protocol datagrams, encapsulated
  11722. in High-Level Data Link Control (HDLC) frames, over SONET/SDH. NSP
  11723. automates the HDLC address configuration of each node. Using NSP, a
  11724. node retrieves its HDLC address from the switch to which it is
  11725. connected.
  11726.  
  11727. 1. Introduction
  11728.  
  11729. MAPOS[1], Multiple Access Protocol over SONET(Synchronous Optical
  11730. Network)/SDH(Synchronous Digital Hierarchy)[2][3][4][5], is a
  11731. protocol for transmission of HDLC frames over SONET/SDH. A SONET
  11732. switch provides multiple access capability to each node. In MAPOS,
  11733. each node has a unique HDLC address within a switch. The address is
  11734. equivalent to the port number of the switch to which the node is
  11735. connected. This document describes an extension to MAPOS, Node
  11736. Switch Protocol, which enable automatic HDLC address assignment.
  11737. First, it explains the addressing of MAPOS. Then, it describes the
  11738. NSP protocol for automatic HDLC node address assignment.
  11739.  
  11740. 2. Node Address Format
  11741.  
  11742. This section describes MAPOS Version 1 address format in single and
  11743. multiple switch environment.
  11744.  
  11745.  
  11746.  
  11747.  
  11748.  
  11749.  
  11750.  
  11751.  
  11752.  
  11753.  
  11754. Murakami & Maruyama Informational [Page 1]
  11755. RFC 2173 MAPOS June 1997
  11756.  
  11757.  
  11758. 2.1 Address Format
  11759.  
  11760. In MAPOS network, each end node has a unique HDLC address. As shown
  11761. in Figure 1, the address length is 8 bits. The LSB is always 1 which
  11762. indicates the end of the field. When a SONET switch receives an HDLC
  11763. frame, it forwards the frame based on the address in the frame
  11764. header.
  11765.  
  11766. In unicast, MSB is 0 and the rest of the bits are the port number to
  11767. which a node is connected. Since the LSB is always 1, the minimum and
  11768. maximum addresses are 0x01 and 0x7F, respectively. Address 0x01 is
  11769. reserved and is assigned to the control processor in a SONET switch.
  11770.  
  11771. In broadcast, MSB is 1 and the rest of the bits are all 1s. In
  11772. multicast, MSB is 1 and the rest of the bits, except for the LSB,
  11773. indicate the group address.
  11774.  
  11775. +-------------+-+
  11776. | | | | | | | | |
  11777. | |port number|1|
  11778. +-+-----------+-+
  11779. ^ ^
  11780. | |
  11781. | +------- EA bit (always 1)
  11782. |
  11783. 1 : broadcast, multicast
  11784. 0 : unicast
  11785.  
  11786. Figure 1 Address format
  11787.  
  11788. 2.2 Address in multi-switch environment
  11789.  
  11790. In a multi-switch environment, variable-length subnet addressing is
  11791. used. Each switch has a switch number that is unique within the
  11792. system. Subnetted node addresses consist of the switch number and the
  11793. port number to which a node is connected. The address format is "0
  11794. <switch number> <node number> 1" for a unicast address, "all 1" for
  11795. the broadcast address, and "1 <group address> 1" for a multicast
  11796. address.
  11797.  
  11798. The address 0x01 is reserved and is assigned to the control processor
  11799. in the "local" switch. That is, it indicates the switch itself to
  11800. which the node is connected. The addresses of the form "0 <switch
  11801. number> <all 0> 1" are reserved, and indicates the control processor
  11802. of the switch designated by the switch number.
  11803.  
  11804. In Figure 2, the switch numbers are two bits long. Node N1 is
  11805. connected to port 0x3 of switch S1 numbered 0x1 (01 in binary). Thus,
  11806.  
  11807.  
  11808.  
  11809. Murakami & Maruyama Informational [Page 2]
  11810. RFC 2173 MAPOS June 1997
  11811.  
  11812.  
  11813. the node address is 0 + 01 + 00011, that is, 00100011(0x23). Node N3
  11814. has an address 01001001(0x49), since the switch number of S2 is 0x2
  11815. (10 in binary) and the port number is 0x09. Note that all the port
  11816. numbers are odd because the LSBs are always 1.
  11817.  
  11818. +------+
  11819. | node |
  11820. | N1 |
  11821. +------+
  11822. | 00100011(0x23)
  11823. |
  11824. |0x3 |0x3
  11825. +------+ +---+----+ +---+----+ +------+
  11826. | node +----+ SONET +-------+ SONET +-----+ node |
  11827. | N2 | 0x5| Switch |0x9 0x5| Switch |0x9 | N3 |
  11828. +------+ | S1 | | S2 | +------+
  11829. 00100101(0x25) | 0x1 | | 0x2 | 01001001(0x49)
  11830. +---+----+ +---+----+
  11831. |0x7 |0x7
  11832.  
  11833.  
  11834. Figure 2 Addressing in Multiple Switch Environment
  11835.  
  11836. 4 NSP(Node-Switch Protocol)
  11837.  
  11838. This section describes the NSP protocol used for automatic node
  11839. address assignment.
  11840.  
  11841. 4.1 NSP protocol
  11842.  
  11843. NSP is introduced to provide an automatic node address assignment
  11844. function in MAPOS version 1. It reduces the administrative overhead
  11845. of node address configuration for each node and prevents troubles
  11846. such as address inconsistency and collision. When a node is connected
  11847. to a switch and receives SONET signal correctly, the node sends an
  11848. address request packet to the control processor in the local switch.
  11849. The destination address of this packet is 00000001(0x01). When the
  11850. control processor receives the packet, it replies with an address
  11851. assignment packet. The destination is the assigned node address. If
  11852. the node does not receive the address assignment packet within 5
  11853. seconds, it retransmits the address request packet. The
  11854. retransmission continues until the node successfully receives the
  11855. address assignment packet.
  11856.  
  11857. Whenever a node detects a transmission error such as carrier loss or
  11858. out-of-synchronization, it SHOULD send an address request packet to
  11859. the control processor and verify its current address. In addition, a
  11860. node MUST verify its address by sending address request packets every
  11861.  
  11862.  
  11863.  
  11864. Murakami & Maruyama Informational [Page 3]
  11865. RFC 2173 MAPOS June 1997
  11866.  
  11867.  
  11868. 30 seconds. The switch regards them as keep-alive packets and
  11869. utilizes them to detect the node's status. If it has not received a
  11870. request packet for more than 90 seconds, it assumes that the node
  11871. went down. In addition, it also assumes the node went down when a
  11872. switch detects a SONET signal failure.
  11873.  
  11874. 4.2 Packet Format
  11875.  
  11876. The HDLC protocol field of a NSP frame contains 0xFE03 (hexadecimal)
  11877. as defined by the "MAPOS Version 1 Assigned Numbers" [6]. The
  11878. information field contains the NSP packet as shown in Figure 3.
  11879.  
  11880.  
  11881. +-----------+------------+
  11882. I command I address I
  11883. +-----------+------------+
  11884. I<- 32bit ->I<- 32 bit ->I
  11885.  
  11886. Figure 3 NSP packet format
  11887.  
  11888. The command field is 32 bits long and has the following values (in
  11889. decimal);
  11890.  
  11891. 1 address request
  11892. 2 address assignment
  11893. 3 reject(error)
  11894.  
  11895. The length of the address field is 32bits. In address request
  11896. packets, the NSP address field SHOULD be filled with zeroes, although
  11897. the switch ignores it. In address assignment packets, the assigned
  11898. address is placed in the least significant byte of the field. The
  11899. rest of the field is padded with zeroes. When the switch can not
  11900. assign the address for some reason, the switch replies with a reject
  11901. command (the values is 3). The value of the address field is
  11902. undefined.
  11903.  
  11904. 4.3 Consideration for special cases
  11905.  
  11906. There are two special cases to consider. One is a point-to-point
  11907. connection without a switch. The other is loop-back, that is, direct
  11908. connection between the input and the output of the same port.
  11909.  
  11910. 4.3.1 point-to-point
  11911.  
  11912. In the case of a point-to-point connection shown in Figure 4, a node
  11913. sends an address request packet to the other node. The destination
  11914. address is 00000001(0x01), that is usually a control processor in a
  11915. switch. When a node receives the address request, it detects the
  11916.  
  11917.  
  11918.  
  11919. Murakami & Maruyama Informational [Page 4]
  11920. RFC 2173 MAPOS June 1997
  11921.  
  11922.  
  11923. point-to-point connection by examining both the destination address
  11924. and the command contained. Then, it MUST reply with an address
  11925. assignment packet. The assigned address MUST be 00000011(0x03). Since
  11926. both nodes send an address request to each other, both of them get
  11927. address 00000011(0x03). Since any address can be used in point-to-
  11928. point environment, there is no problem even if both of the nodes have
  11929. the same address.
  11930.  
  11931. ---- address request ----> 0x01
  11932. 0x03 <---- address assignment ----
  11933. +------+ +------+
  11934. | node +--------------------------------+ node |
  11935. +------+ +------+
  11936. 0x01 <---- address request ----
  11937. ---- address assignment ----> 0x03
  11938.  
  11939. Figure 4 Point-to-point connection
  11940.  
  11941. 4.3.2 loop-back
  11942.  
  11943. Another special case is loop-back where the output port of a node is
  11944. simply connected to its input port as shown in Figure 5. In this
  11945. case, the same mechanism as that for point-to-point can be applied
  11946. without modification. A node sends an address request packet
  11947. destined to 00000001(0x01). The node then receives the same packet.
  11948. Since the destination is 00000001(0x01), it replies with an address
  11949. assignment packet, containing the assigned address 00000011(0x03), to
  11950. the address 0000 0011(0x03). Thus, the node obtains the address
  11951. 00000011(0x03).
  11952.  
  11953. ---- address request ----> 0x01
  11954. +------+ --- address assignment --> 0x03
  11955. | +-------------->-----------------+
  11956. | node + |
  11957. | +--------------<-----------------+
  11958. +------+
  11959.  
  11960. Figure 5 Loop-back Configuration
  11961.  
  11962.  
  11963.  
  11964.  
  11965.  
  11966.  
  11967.  
  11968.  
  11969.  
  11970.  
  11971.  
  11972.  
  11973.  
  11974. Murakami & Maruyama Informational [Page 5]
  11975. RFC 2173 MAPOS June 1997
  11976.  
  11977.  
  11978. 5. Security Considerations
  11979.  
  11980. Security issues are not discussed in this memo.
  11981.  
  11982. References
  11983.  
  11984. [1] Murakami, K. and M. Maruyama, "MAPOS - Multiple Access Protocol
  11985. over SONET/SDH, Version 1," RFC-2171, June 1997.
  11986.  
  11987. [2] CCITT Recommendation G.707: Synchronous Digital Hierarchy Bit
  11988. Rates (1990).
  11989.  
  11990. [3] CCITT Recommendation G.708: Network Node Interface for
  11991. Synchronous Digital Hierarchy (1990).
  11992.  
  11993. [4] CCITT Recommendation G.709: Synchronous Multiplexing Structure
  11994. (1990).
  11995.  
  11996. [5] American National Standard for Telecommunications - Digital
  11997. Hierarchy - Optical Interface Rates and Formats Specification,
  11998. ANSI T1.105-1991.
  11999.  
  12000. [6] Maruyama, M. and K. Murakami, "MAPOS Version 1 Assigned
  12001. Numbers," RFC-2172, June, 1997.
  12002.  
  12003. Acknowledgements
  12004.  
  12005. The authors would like to acknowledge the contributions and
  12006. thoughtful suggestions of John P. Mullaney, Clark Bremer, Masayuki
  12007. Kobayashi, Paul Francis, Toshiaki Yoshida, and Takahiro Sajima.
  12008.  
  12009. Authors' Address
  12010.  
  12011. Ken Murakami
  12012. NTT Software Laboratories
  12013. 3-9-11, Midori-cho
  12014. Musashino-shi
  12015. Tokyo 180, Japan
  12016. E-mail: murakami@ntt-20.ecl.net
  12017.  
  12018. Mitsuru Maruyama
  12019. NTT Software Laboratories
  12020. 3-9-11, Midori-cho
  12021. Musashino-shi
  12022. Tokyo 180, Japan
  12023. E-mail: mitsuru@ntt-20.ecl.net
  12024.  
  12025.  
  12026.  
  12027.  
  12028.  
  12029. Murakami & Maruyama Informational [Page 6]
  12030.  
  12031.  
  12032.  
  12033.  
  12034.  
  12035.  
  12036.  
  12037. Network Working Group K. Murakami
  12038. Request for Comments: 2173 M. Maruyama
  12039. Category: Informational NTT Laboratories
  12040. June 1997
  12041.  
  12042.  
  12043. A MAPOS version 1 Extension - Node Switch Protocol
  12044.  
  12045. Status of this Memo
  12046.  
  12047. This memo provides information for the Internet community. This memo
  12048. does not specify an Internet standard of any kind. Distribution of
  12049. this memo is unlimited.
  12050.  
  12051. Abstract
  12052.  
  12053. This document describes a MAPOS extension, Node Switch Protocol, for
  12054. automatic node address assignment. MAPOS is a multiple access
  12055. protocol for transmission of network-protocol datagrams, encapsulated
  12056. in High-Level Data Link Control (HDLC) frames, over SONET/SDH. NSP
  12057. automates the HDLC address configuration of each node. Using NSP, a
  12058. node retrieves its HDLC address from the switch to which it is
  12059. connected.
  12060.  
  12061. 1. Introduction
  12062.  
  12063. MAPOS[1], Multiple Access Protocol over SONET(Synchronous Optical
  12064. Network)/SDH(Synchronous Digital Hierarchy)[2][3][4][5], is a
  12065. protocol for transmission of HDLC frames over SONET/SDH. A SONET
  12066. switch provides multiple access capability to each node. In MAPOS,
  12067. each node has a unique HDLC address within a switch. The address is
  12068. equivalent to the port number of the switch to which the node is
  12069. connected. This document describes an extension to MAPOS, Node
  12070. Switch Protocol, which enable automatic HDLC address assignment.
  12071. First, it explains the addressing of MAPOS. Then, it describes the
  12072. NSP protocol for automatic HDLC node address assignment.
  12073.  
  12074. 2. Node Address Format
  12075.  
  12076. This section describes MAPOS Version 1 address format in single and
  12077. multiple switch environment.
  12078.  
  12079.  
  12080.  
  12081.  
  12082.  
  12083.  
  12084.  
  12085.  
  12086.  
  12087.  
  12088. Murakami & Maruyama Informational [Page 1]
  12089. RFC 2173 MAPOS June 1997
  12090.  
  12091.  
  12092. 2.1 Address Format
  12093.  
  12094. In MAPOS network, each end node has a unique HDLC address. As shown
  12095. in Figure 1, the address length is 8 bits. The LSB is always 1 which
  12096. indicates the end of the field. When a SONET switch receives an HDLC
  12097. frame, it forwards the frame based on the address in the frame
  12098. header.
  12099.  
  12100. In unicast, MSB is 0 and the rest of the bits are the port number to
  12101. which a node is connected. Since the LSB is always 1, the minimum and
  12102. maximum addresses are 0x01 and 0x7F, respectively. Address 0x01 is
  12103. reserved and is assigned to the control processor in a SONET switch.
  12104.  
  12105. In broadcast, MSB is 1 and the rest of the bits are all 1s. In
  12106. multicast, MSB is 1 and the rest of the bits, except for the LSB,
  12107. indicate the group address.
  12108.  
  12109. +-------------+-+
  12110. | | | | | | | | |
  12111. | |port number|1|
  12112. +-+-----------+-+
  12113. ^ ^
  12114. | |
  12115. | +------- EA bit (always 1)
  12116. |
  12117. 1 : broadcast, multicast
  12118. 0 : unicast
  12119.  
  12120. Figure 1 Address format
  12121.  
  12122. 2.2 Address in multi-switch environment
  12123.  
  12124. In a multi-switch environment, variable-length subnet addressing is
  12125. used. Each switch has a switch number that is unique within the
  12126. system. Subnetted node addresses consist of the switch number and the
  12127. port number to which a node is connected. The address format is "0
  12128. <switch number> <node number> 1" for a unicast address, "all 1" for
  12129. the broadcast address, and "1 <group address> 1" for a multicast
  12130. address.
  12131.  
  12132. The address 0x01 is reserved and is assigned to the control processor
  12133. in the "local" switch. That is, it indicates the switch itself to
  12134. which the node is connected. The addresses of the form "0 <switch
  12135. number> <all 0> 1" are reserved, and indicates the control processor
  12136. of the switch designated by the switch number.
  12137.  
  12138. In Figure 2, the switch numbers are two bits long. Node N1 is
  12139. connected to port 0x3 of switch S1 numbered 0x1 (01 in binary). Thus,
  12140.  
  12141.  
  12142.  
  12143. Murakami & Maruyama Informational [Page 2]
  12144. RFC 2173 MAPOS June 1997
  12145.  
  12146.  
  12147. the node address is 0 + 01 + 00011, that is, 00100011(0x23). Node N3
  12148. has an address 01001001(0x49), since the switch number of S2 is 0x2
  12149. (10 in binary) and the port number is 0x09. Note that all the port
  12150. numbers are odd because the LSBs are always 1.
  12151.  
  12152. +------+
  12153. | node |
  12154. | N1 |
  12155. +------+
  12156. | 00100011(0x23)
  12157. |
  12158. |0x3 |0x3
  12159. +------+ +---+----+ +---+----+ +------+
  12160. | node +----+ SONET +-------+ SONET +-----+ node |
  12161. | N2 | 0x5| Switch |0x9 0x5| Switch |0x9 | N3 |
  12162. +------+ | S1 | | S2 | +------+
  12163. 00100101(0x25) | 0x1 | | 0x2 | 01001001(0x49)
  12164. +---+----+ +---+----+
  12165. |0x7 |0x7
  12166.  
  12167.  
  12168. Figure 2 Addressing in Multiple Switch Environment
  12169.  
  12170. 4 NSP(Node-Switch Protocol)
  12171.  
  12172. This section describes the NSP protocol used for automatic node
  12173. address assignment.
  12174.  
  12175. 4.1 NSP protocol
  12176.  
  12177. NSP is introduced to provide an automatic node address assignment
  12178. function in MAPOS version 1. It reduces the administrative overhead
  12179. of node address configuration for each node and prevents troubles
  12180. such as address inconsistency and collision. When a node is connected
  12181. to a switch and receives SONET signal correctly, the node sends an
  12182. address request packet to the control processor in the local switch.
  12183. The destination address of this packet is 00000001(0x01). When the
  12184. control processor receives the packet, it replies with an address
  12185. assignment packet. The destination is the assigned node address. If
  12186. the node does not receive the address assignment packet within 5
  12187. seconds, it retransmits the address request packet. The
  12188. retransmission continues until the node successfully receives the
  12189. address assignment packet.
  12190.  
  12191. Whenever a node detects a transmission error such as carrier loss or
  12192. out-of-synchronization, it SHOULD send an address request packet to
  12193. the control processor and verify its current address. In addition, a
  12194. node MUST verify its address by sending address request packets every
  12195.  
  12196.  
  12197.  
  12198. Murakami & Maruyama Informational [Page 3]
  12199. RFC 2173 MAPOS June 1997
  12200.  
  12201.  
  12202. 30 seconds. The switch regards them as keep-alive packets and
  12203. utilizes them to detect the node's status. If it has not received a
  12204. request packet for more than 90 seconds, it assumes that the node
  12205. went down. In addition, it also assumes the node went down when a
  12206. switch detects a SONET signal failure.
  12207.  
  12208. 4.2 Packet Format
  12209.  
  12210. The HDLC protocol field of a NSP frame contains 0xFE03 (hexadecimal)
  12211. as defined by the "MAPOS Version 1 Assigned Numbers" [6]. The
  12212. information field contains the NSP packet as shown in Figure 3.
  12213.  
  12214.  
  12215. +-----------+------------+
  12216. I command I address I
  12217. +-----------+------------+
  12218. I<- 32bit ->I<- 32 bit ->I
  12219.  
  12220. Figure 3 NSP packet format
  12221.  
  12222. The command field is 32 bits long and has the following values (in
  12223. decimal);
  12224.  
  12225. 1 address request
  12226. 2 address assignment
  12227. 3 reject(error)
  12228.  
  12229. The length of the address field is 32bits. In address request
  12230. packets, the NSP address field SHOULD be filled with zeroes, although
  12231. the switch ignores it. In address assignment packets, the assigned
  12232. address is placed in the least significant byte of the field. The
  12233. rest of the field is padded with zeroes. When the switch can not
  12234. assign the address for some reason, the switch replies with a reject
  12235. command (the values is 3). The value of the address field is
  12236. undefined.
  12237.  
  12238. 4.3 Consideration for special cases
  12239.  
  12240. There are two special cases to consider. One is a point-to-point
  12241. connection without a switch. The other is loop-back, that is, direct
  12242. connection between the input and the output of the same port.
  12243.  
  12244. 4.3.1 point-to-point
  12245.  
  12246. In the case of a point-to-point connection shown in Figure 4, a node
  12247. sends an address request packet to the other node. The destination
  12248. address is 00000001(0x01), that is usually a control processor in a
  12249. switch. When a node receives the address request, it detects the
  12250.  
  12251.  
  12252.  
  12253. Murakami & Maruyama Informational [Page 4]
  12254. RFC 2173 MAPOS June 1997
  12255.  
  12256.  
  12257. point-to-point connection by examining both the destination address
  12258. and the command contained. Then, it MUST reply with an address
  12259. assignment packet. The assigned address MUST be 00000011(0x03). Since
  12260. both nodes send an address request to each other, both of them get
  12261. address 00000011(0x03). Since any address can be used in point-to-
  12262. point environment, there is no problem even if both of the nodes have
  12263. the same address.
  12264.  
  12265. ---- address request ----> 0x01
  12266. 0x03 <---- address assignment ----
  12267. +------+ +------+
  12268. | node +--------------------------------+ node |
  12269. +------+ +------+
  12270. 0x01 <---- address request ----
  12271. ---- address assignment ----> 0x03
  12272.  
  12273. Figure 4 Point-to-point connection
  12274.  
  12275. 4.3.2 loop-back
  12276.  
  12277. Another special case is loop-back where the output port of a node is
  12278. simply connected to its input port as shown in Figure 5. In this
  12279. case, the same mechanism as that for point-to-point can be applied
  12280. without modification. A node sends an address request packet
  12281. destined to 00000001(0x01). The node then receives the same packet.
  12282. Since the destination is 00000001(0x01), it replies with an address
  12283. assignment packet, containing the assigned address 00000011(0x03), to
  12284. the address 0000 0011(0x03). Thus, the node obtains the address
  12285. 00000011(0x03).
  12286.  
  12287. ---- address request ----> 0x01
  12288. +------+ --- address assignment --> 0x03
  12289. | +-------------->-----------------+
  12290. | node + |
  12291. | +--------------<-----------------+
  12292. +------+
  12293.  
  12294. Figure 5 Loop-back Configuration
  12295.  
  12296.  
  12297.  
  12298.  
  12299.  
  12300.  
  12301.  
  12302.  
  12303.  
  12304.  
  12305.  
  12306.  
  12307.  
  12308. Murakami & Maruyama Informational [Page 5]
  12309. RFC 2173 MAPOS June 1997
  12310.  
  12311.  
  12312. 5. Security Considerations
  12313.  
  12314. Security issues are not discussed in this memo.
  12315.  
  12316. References
  12317.  
  12318. [1] Murakami, K. and M. Maruyama, "MAPOS - Multiple Access Protocol
  12319. over SONET/SDH, Version 1," RFC-2171, June 1997.
  12320.  
  12321. [2] CCITT Recommendation G.707: Synchronous Digital Hierarchy Bit
  12322. Rates (1990).
  12323.  
  12324. [3] CCITT Recommendation G.708: Network Node Interface for
  12325. Synchronous Digital Hierarchy (1990).
  12326.  
  12327. [4] CCITT Recommendation G.709: Synchronous Multiplexing Structure
  12328. (1990).
  12329.  
  12330. [5] American National Standard for Telecommunications - Digital
  12331. Hierarchy - Optical Interface Rates and Formats Specification,
  12332. ANSI T1.105-1991.
  12333.  
  12334. [6] Maruyama, M. and K. Murakami, "MAPOS Version 1 Assigned
  12335. Numbers," RFC-2172, June, 1997.
  12336.  
  12337. Acknowledgements
  12338.  
  12339. The authors would like to acknowledge the contributions and
  12340. thoughtful suggestions of John P. Mullaney, Clark Bremer, Masayuki
  12341. Kobayashi, Paul Francis, Toshiaki Yoshida, and Takahiro Sajima.
  12342.  
  12343. Authors' Address
  12344.  
  12345. Ken Murakami
  12346. NTT Software Laboratories
  12347. 3-9-11, Midori-cho
  12348. Musashino-shi
  12349. Tokyo 180, Japan
  12350. E-mail: murakami@ntt-20.ecl.net
  12351.  
  12352. Mitsuru Maruyama
  12353. NTT Software Laboratories
  12354. 3-9-11, Midori-cho
  12355. Musashino-shi
  12356. Tokyo 180, Japan
  12357. E-mail: mitsuru@ntt-20.ecl.net
  12358.  
  12359.  
  12360.  
  12361.  
  12362.  
  12363. Murakami & Maruyama Informational [Page 6]
  12364.  
  12365.  
  12366.  
  12367.  
  12368.  
  12369.  
  12370.  
  12371. Network Working Group K. Murakami
  12372. Request for Comments: 2173 M. Maruyama
  12373. Category: Informational NTT Laboratories
  12374. June 1997
  12375.  
  12376.  
  12377. A MAPOS version 1 Extension - Node Switch Protocol
  12378.  
  12379. Status of this Memo
  12380.  
  12381. This memo provides information for the Internet community. This memo
  12382. does not specify an Internet standard of any kind. Distribution of
  12383. this memo is unlimited.
  12384.  
  12385. Abstract
  12386.  
  12387. This document describes a MAPOS extension, Node Switch Protocol, for
  12388. automatic node address assignment. MAPOS is a multiple access
  12389. protocol for transmission of network-protocol datagrams, encapsulated
  12390. in High-Level Data Link Control (HDLC) frames, over SONET/SDH. NSP
  12391. automates the HDLC address configuration of each node. Using NSP, a
  12392. node retrieves its HDLC address from the switch to which it is
  12393. connected.
  12394.  
  12395. 1. Introduction
  12396.  
  12397. MAPOS[1], Multiple Access Protocol over SONET(Synchronous Optical
  12398. Network)/SDH(Synchronous Digital Hierarchy)[2][3][4][5], is a
  12399. protocol for transmission of HDLC frames over SONET/SDH. A SONET
  12400. switch provides multiple access capability to each node. In MAPOS,
  12401. each node has a unique HDLC address within a switch. The address is
  12402. equivalent to the port number of the switch to which the node is
  12403. connected. This document describes an extension to MAPOS, Node
  12404. Switch Protocol, which enable automatic HDLC address assignment.
  12405. First, it explains the addressing of MAPOS. Then, it describes the
  12406. NSP protocol for automatic HDLC node address assignment.
  12407.  
  12408. 2. Node Address Format
  12409.  
  12410. This section describes MAPOS Version 1 address format in single and
  12411. multiple switch environment.
  12412.  
  12413.  
  12414.  
  12415.  
  12416.  
  12417.  
  12418.  
  12419.  
  12420.  
  12421.  
  12422. Murakami & Maruyama Informational [Page 1]
  12423. RFC 2173 MAPOS June 1997
  12424.  
  12425.  
  12426. 2.1 Address Format
  12427.  
  12428. In MAPOS network, each end node has a unique HDLC address. As shown
  12429. in Figure 1, the address length is 8 bits. The LSB is always 1 which
  12430. indicates the end of the field. When a SONET switch receives an HDLC
  12431. frame, it forwards the frame based on the address in the frame
  12432. header.
  12433.  
  12434. In unicast, MSB is 0 and the rest of the bits are the port number to
  12435. which a node is connected. Since the LSB is always 1, the minimum and
  12436. maximum addresses are 0x01 and 0x7F, respectively. Address 0x01 is
  12437. reserved and is assigned to the control processor in a SONET switch.
  12438.  
  12439. In broadcast, MSB is 1 and the rest of the bits are all 1s. In
  12440. multicast, MSB is 1 and the rest of the bits, except for the LSB,
  12441. indicate the group address.
  12442.  
  12443. +-------------+-+
  12444. | | | | | | | | |
  12445. | |port number|1|
  12446. +-+-----------+-+
  12447. ^ ^
  12448. | |
  12449. | +------- EA bit (always 1)
  12450. |
  12451. 1 : broadcast, multicast
  12452. 0 : unicast
  12453.  
  12454. Figure 1 Address format
  12455.  
  12456. 2.2 Address in multi-switch environment
  12457.  
  12458. In a multi-switch environment, variable-length subnet addressing is
  12459. used. Each switch has a switch number that is unique within the
  12460. system. Subnetted node addresses consist of the switch number and the
  12461. port number to which a node is connected. The address format is "0
  12462. <switch number> <node number> 1" for a unicast address, "all 1" for
  12463. the broadcast address, and "1 <group address> 1" for a multicast
  12464. address.
  12465.  
  12466. The address 0x01 is reserved and is assigned to the control processor
  12467. in the "local" switch. That is, it indicates the switch itself to
  12468. which the node is connected. The addresses of the form "0 <switch
  12469. number> <all 0> 1" are reserved, and indicates the control processor
  12470. of the switch designated by the switch number.
  12471.  
  12472. In Figure 2, the switch numbers are two bits long. Node N1 is
  12473. connected to port 0x3 of switch S1 numbered 0x1 (01 in binary). Thus,
  12474.  
  12475.  
  12476.  
  12477. Murakami & Maruyama Informational [Page 2]
  12478. RFC 2173 MAPOS June 1997
  12479.  
  12480.  
  12481. the node address is 0 + 01 + 00011, that is, 00100011(0x23). Node N3
  12482. has an address 01001001(0x49), since the switch number of S2 is 0x2
  12483. (10 in binary) and the port number is 0x09. Note that all the port
  12484. numbers are odd because the LSBs are always 1.
  12485.  
  12486. +------+
  12487. | node |
  12488. | N1 |
  12489. +------+
  12490. | 00100011(0x23)
  12491. |
  12492. |0x3 |0x3
  12493. +------+ +---+----+ +---+----+ +------+
  12494. | node +----+ SONET +-------+ SONET +-----+ node |
  12495. | N2 | 0x5| Switch |0x9 0x5| Switch |0x9 | N3 |
  12496. +------+ | S1 | | S2 | +------+
  12497. 00100101(0x25) | 0x1 | | 0x2 | 01001001(0x49)
  12498. +---+----+ +---+----+
  12499. |0x7 |0x7
  12500.  
  12501.  
  12502. Figure 2 Addressing in Multiple Switch Environment
  12503.  
  12504. 4 NSP(Node-Switch Protocol)
  12505.  
  12506. This section describes the NSP protocol used for automatic node
  12507. address assignment.
  12508.  
  12509. 4.1 NSP protocol
  12510.  
  12511. NSP is introduced to provide an automatic node address assignment
  12512. function in MAPOS version 1. It reduces the administrative overhead
  12513. of node address configuration for each node and prevents troubles
  12514. such as address inconsistency and collision. When a node is connected
  12515. to a switch and receives SONET signal correctly, the node sends an
  12516. address request packet to the control processor in the local switch.
  12517. The destination address of this packet is 00000001(0x01). When the
  12518. control processor receives the packet, it replies with an address
  12519. assignment packet. The destination is the assigned node address. If
  12520. the node does not receive the address assignment packet within 5
  12521. seconds, it retransmits the address request packet. The
  12522. retransmission continues until the node successfully receives the
  12523. address assignment packet.
  12524.  
  12525. Whenever a node detects a transmission error such as carrier loss or
  12526. out-of-synchronization, it SHOULD send an address request packet to
  12527. the control processor and verify its current address. In addition, a
  12528. node MUST verify its address by sending address request packets every
  12529.  
  12530.  
  12531.  
  12532. Murakami & Maruyama Informational [Page 3]
  12533. RFC 2173 MAPOS June 1997
  12534.  
  12535.  
  12536. 30 seconds. The switch regards them as keep-alive packets and
  12537. utilizes them to detect the node's status. If it has not received a
  12538. request packet for more than 90 seconds, it assumes that the node
  12539. went down. In addition, it also assumes the node went down when a
  12540. switch detects a SONET signal failure.
  12541.  
  12542. 4.2 Packet Format
  12543.  
  12544. The HDLC protocol field of a NSP frame contains 0xFE03 (hexadecimal)
  12545. as defined by the "MAPOS Version 1 Assigned Numbers" [6]. The
  12546. information field contains the NSP packet as shown in Figure 3.
  12547.  
  12548.  
  12549. +-----------+------------+
  12550. I command I address I
  12551. +-----------+------------+
  12552. I<- 32bit ->I<- 32 bit ->I
  12553.  
  12554. Figure 3 NSP packet format
  12555.  
  12556. The command field is 32 bits long and has the following values (in
  12557. decimal);
  12558.  
  12559. 1 address request
  12560. 2 address assignment
  12561. 3 reject(error)
  12562.  
  12563. The length of the address field is 32bits. In address request
  12564. packets, the NSP address field SHOULD be filled with zeroes, although
  12565. the switch ignores it. In address assignment packets, the assigned
  12566. address is placed in the least significant byte of the field. The
  12567. rest of the field is padded with zeroes. When the switch can not
  12568. assign the address for some reason, the switch replies with a reject
  12569. command (the values is 3). The value of the address field is
  12570. undefined.
  12571.  
  12572. 4.3 Consideration for special cases
  12573.  
  12574. There are two special cases to consider. One is a point-to-point
  12575. connection without a switch. The other is loop-back, that is, direct
  12576. connection between the input and the output of the same port.
  12577.  
  12578. 4.3.1 point-to-point
  12579.  
  12580. In the case of a point-to-point connection shown in Figure 4, a node
  12581. sends an address request packet to the other node. The destination
  12582. address is 00000001(0x01), that is usually a control processor in a
  12583. switch. When a node receives the address request, it detects the
  12584.  
  12585.  
  12586.  
  12587. Murakami & Maruyama Informational [Page 4]
  12588. RFC 2173 MAPOS June 1997
  12589.  
  12590.  
  12591. point-to-point connection by examining both the destination address
  12592. and the command contained. Then, it MUST reply with an address
  12593. assignment packet. The assigned address MUST be 00000011(0x03). Since
  12594. both nodes send an address request to each other, both of them get
  12595. address 00000011(0x03). Since any address can be used in point-to-
  12596. point environment, there is no problem even if both of the nodes have
  12597. the same address.
  12598.  
  12599. ---- address request ----> 0x01
  12600. 0x03 <---- address assignment ----
  12601. +------+ +------+
  12602. | node +--------------------------------+ node |
  12603. +------+ +------+
  12604. 0x01 <---- address request ----
  12605. ---- address assignment ----> 0x03
  12606.  
  12607. Figure 4 Point-to-point connection
  12608.  
  12609. 4.3.2 loop-back
  12610.  
  12611. Another special case is loop-back where the output port of a node is
  12612. simply connected to its input port as shown in Figure 5. In this
  12613. case, the same mechanism as that for point-to-point can be applied
  12614. without modification. A node sends an address request packet
  12615. destined to 00000001(0x01). The node then receives the same packet.
  12616. Since the destination is 00000001(0x01), it replies with an address
  12617. assignment packet, containing the assigned address 00000011(0x03), to
  12618. the address 0000 0011(0x03). Thus, the node obtains the address
  12619. 00000011(0x03).
  12620.  
  12621. ---- address request ----> 0x01
  12622. +------+ --- address assignment --> 0x03
  12623. | +-------------->-----------------+
  12624. | node + |
  12625. | +--------------<-----------------+
  12626. +------+
  12627.  
  12628. Figure 5 Loop-back Configuration
  12629.  
  12630.  
  12631.  
  12632.  
  12633.  
  12634.  
  12635.  
  12636.  
  12637.  
  12638.  
  12639.  
  12640.  
  12641.  
  12642. Murakami & Maruyama Informational [Page 5]
  12643. RFC 2173 MAPOS June 1997
  12644.  
  12645.  
  12646. 5. Security Considerations
  12647.  
  12648. Security issues are not discussed in this memo.
  12649.  
  12650. References
  12651.  
  12652. [1] Murakami, K. and M. Maruyama, "MAPOS - Multiple Access Protocol
  12653. over SONET/SDH, Version 1," RFC-2171, June 1997.
  12654.  
  12655. [2] CCITT Recommendation G.707: Synchronous Digital Hierarchy Bit
  12656. Rates (1990).
  12657.  
  12658. [3] CCITT Recommendation G.708: Network Node Interface for
  12659. Synchronous Digital Hierarchy (1990).
  12660.  
  12661. [4] CCITT Recommendation G.709: Synchronous Multiplexing Structure
  12662. (1990).
  12663.  
  12664. [5] American National Standard for Telecommunications - Digital
  12665. Hierarchy - Optical Interface Rates and Formats Specification,
  12666. ANSI T1.105-1991.
  12667.  
  12668. [6] Maruyama, M. and K. Murakami, "MAPOS Version 1 Assigned
  12669. Numbers," RFC-2172, June, 1997.
  12670.  
  12671. Acknowledgements
  12672.  
  12673. The authors would like to acknowledge the contributions and
  12674. thoughtful suggestions of John P. Mullaney, Clark Bremer, Masayuki
  12675. Kobayashi, Paul Francis, Toshiaki Yoshida, and Takahiro Sajima.
  12676.  
  12677. Authors' Address
  12678.  
  12679. Ken Murakami
  12680. NTT Software Laboratories
  12681. 3-9-11, Midori-cho
  12682. Musashino-shi
  12683. Tokyo 180, Japan
  12684. E-mail: murakami@ntt-20.ecl.net
  12685.  
  12686. Mitsuru Maruyama
  12687. NTT Software Laboratories
  12688. 3-9-11, Midori-cho
  12689. Musashino-shi
  12690. Tokyo 180, Japan
  12691. E-mail: mitsuru@ntt-20.ecl.net
  12692.  
  12693.  
  12694.  
  12695.  
  12696.  
  12697. Murakami & Maruyama Informational [Page 6]
  12698.  
  12699.  
  12700.  
  12701.  
  12702.  
  12703.  
  12704.  
  12705. Network Working Group K. Murakami
  12706. Request for Comments: 2173 M. Maruyama
  12707. Category: Informational NTT Laboratories
  12708. June 1997
  12709.  
  12710.  
  12711. A MAPOS version 1 Extension - Node Switch Protocol
  12712.  
  12713. Status of this Memo
  12714.  
  12715. This memo provides information for the Internet community. This memo
  12716. does not specify an Internet standard of any kind. Distribution of
  12717. this memo is unlimited.
  12718.  
  12719. Abstract
  12720.  
  12721. This document describes a MAPOS extension, Node Switch Protocol, for
  12722. automatic node address assignment. MAPOS is a multiple access
  12723. protocol for transmission of network-protocol datagrams, encapsulated
  12724. in High-Level Data Link Control (HDLC) frames, over SONET/SDH. NSP
  12725. automates the HDLC address configuration of each node. Using NSP, a
  12726. node retrieves its HDLC address from the switch to which it is
  12727. connected.
  12728.  
  12729. 1. Introduction
  12730.  
  12731. MAPOS[1], Multiple Access Protocol over SONET(Synchronous Optical
  12732. Network)/SDH(Synchronous Digital Hierarchy)[2][3][4][5], is a
  12733. protocol for transmission of HDLC frames over SONET/SDH. A SONET
  12734. switch provides multiple access capability to each node. In MAPOS,
  12735. each node has a unique HDLC address within a switch. The address is
  12736. equivalent to the port number of the switch to which the node is
  12737. connected. This document describes an extension to MAPOS, Node
  12738. Switch Protocol, which enable automatic HDLC address assignment.
  12739. First, it explains the addressing of MAPOS. Then, it describes the
  12740. NSP protocol for automatic HDLC node address assignment.
  12741.  
  12742. 2. Node Address Format
  12743.  
  12744. This section describes MAPOS Version 1 address format in single and
  12745. multiple switch environment.
  12746.  
  12747.  
  12748.  
  12749.  
  12750.  
  12751.  
  12752.  
  12753.  
  12754.  
  12755.  
  12756. Murakami & Maruyama Informational [Page 1]
  12757. RFC 2173 MAPOS June 1997
  12758.  
  12759.  
  12760. 2.1 Address Format
  12761.  
  12762. In MAPOS network, each end node has a unique HDLC address. As shown
  12763. in Figure 1, the address length is 8 bits. The LSB is always 1 which
  12764. indicates the end of the field. When a SONET switch receives an HDLC
  12765. frame, it forwards the frame based on the address in the frame
  12766. header.
  12767.  
  12768. In unicast, MSB is 0 and the rest of the bits are the port number to
  12769. which a node is connected. Since the LSB is always 1, the minimum and
  12770. maximum addresses are 0x01 and 0x7F, respectively. Address 0x01 is
  12771. reserved and is assigned to the control processor in a SONET switch.
  12772.  
  12773. In broadcast, MSB is 1 and the rest of the bits are all 1s. In
  12774. multicast, MSB is 1 and the rest of the bits, except for the LSB,
  12775. indicate the group address.
  12776.  
  12777. +-------------+-+
  12778. | | | | | | | | |
  12779. | |port number|1|
  12780. +-+-----------+-+
  12781. ^ ^
  12782. | |
  12783. | +------- EA bit (always 1)
  12784. |
  12785. 1 : broadcast, multicast
  12786. 0 : unicast
  12787.  
  12788. Figure 1 Address format
  12789.  
  12790. 2.2 Address in multi-switch environment
  12791.  
  12792. In a multi-switch environment, variable-length subnet addressing is
  12793. used. Each switch has a switch number that is unique within the
  12794. system. Subnetted node addresses consist of the switch number and the
  12795. port number to which a node is connected. The address format is "0
  12796. <switch number> <node number> 1" for a unicast address, "all 1" for
  12797. the broadcast address, and "1 <group address> 1" for a multicast
  12798. address.
  12799.  
  12800. The address 0x01 is reserved and is assigned to the control processor
  12801. in the "local" switch. That is, it indicates the switch itself to
  12802. which the node is connected. The addresses of the form "0 <switch
  12803. number> <all 0> 1" are reserved, and indicates the control processor
  12804. of the switch designated by the switch number.
  12805.  
  12806. In Figure 2, the switch numbers are two bits long. Node N1 is
  12807. connected to port 0x3 of switch S1 numbered 0x1 (01 in binary). Thus,
  12808.  
  12809.  
  12810.  
  12811. Murakami & Maruyama Informational [Page 2]
  12812. RFC 2173 MAPOS June 1997
  12813.  
  12814.  
  12815. the node address is 0 + 01 + 00011, that is, 00100011(0x23). Node N3
  12816. has an address 01001001(0x49), since the switch number of S2 is 0x2
  12817. (10 in binary) and the port number is 0x09. Note that all the port
  12818. numbers are odd because the LSBs are always 1.
  12819.  
  12820. +------+
  12821. | node |
  12822. | N1 |
  12823. +------+
  12824. | 00100011(0x23)
  12825. |
  12826. |0x3 |0x3
  12827. +------+ +---+----+ +---+----+ +------+
  12828. | node +----+ SONET +-------+ SONET +-----+ node |
  12829. | N2 | 0x5| Switch |0x9 0x5| Switch |0x9 | N3 |
  12830. +------+ | S1 | | S2 | +------+
  12831. 00100101(0x25) | 0x1 | | 0x2 | 01001001(0x49)
  12832. +---+----+ +---+----+
  12833. |0x7 |0x7
  12834.  
  12835.  
  12836. Figure 2 Addressing in Multiple Switch Environment
  12837.  
  12838. 4 NSP(Node-Switch Protocol)
  12839.  
  12840. This section describes the NSP protocol used for automatic node
  12841. address assignment.
  12842.  
  12843. 4.1 NSP protocol
  12844.  
  12845. NSP is introduced to provide an automatic node address assignment
  12846. function in MAPOS version 1. It reduces the administrative overhead
  12847. of node address configuration for each node and prevents troubles
  12848. such as address inconsistency and collision. When a node is connected
  12849. to a switch and receives SONET signal correctly, the node sends an
  12850. address request packet to the control processor in the local switch.
  12851. The destination address of this packet is 00000001(0x01). When the
  12852. control processor receives the packet, it replies with an address
  12853. assignment packet. The destination is the assigned node address. If
  12854. the node does not receive the address assignment packet within 5
  12855. seconds, it retransmits the address request packet. The
  12856. retransmission continues until the node successfully receives the
  12857. address assignment packet.
  12858.  
  12859. Whenever a node detects a transmission error such as carrier loss or
  12860. out-of-synchronization, it SHOULD send an address request packet to
  12861. the control processor and verify its current address. In addition, a
  12862. node MUST verify its address by sending address request packets every
  12863.  
  12864.  
  12865.  
  12866. Murakami & Maruyama Informational [Page 3]
  12867. RFC 2173 MAPOS June 1997
  12868.  
  12869.  
  12870. 30 seconds. The switch regards them as keep-alive packets and
  12871. utilizes them to detect the node's status. If it has not received a
  12872. request packet for more than 90 seconds, it assumes that the node
  12873. went down. In addition, it also assumes the node went down when a
  12874. switch detects a SONET signal failure.
  12875.  
  12876. 4.2 Packet Format
  12877.  
  12878. The HDLC protocol field of a NSP frame contains 0xFE03 (hexadecimal)
  12879. as defined by the "MAPOS Version 1 Assigned Numbers" [6]. The
  12880. information field contains the NSP packet as shown in Figure 3.
  12881.  
  12882.  
  12883. +-----------+------------+
  12884. I command I address I
  12885. +-----------+------------+
  12886. I<- 32bit ->I<- 32 bit ->I
  12887.  
  12888. Figure 3 NSP packet format
  12889.  
  12890. The command field is 32 bits long and has the following values (in
  12891. decimal);
  12892.  
  12893. 1 address request
  12894. 2 address assignment
  12895. 3 reject(error)
Add Comment
Please, Sign In to add comment