Basic netconf operations, In this chapter, Establishing a netconf session – Brocade Network OS NETCONF Operations Guide v4.1.1 User Manual
Page 41: Hello messages exchange, Chapter 2, Chapter 2, “basic netconf operations

Network OS NETCONF Operations Guide
9
53-1003231-02
Chapter
2
Basic NETCONF Operations
In this chapter
•
•
•
•
•
•
Disconnecting from a NETCONF session . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Establishing a NETCONF session
Up to 16 concurrent sessions can be established with a NETCONF server. A session times out if it is
idle for 30 minutes.
Each NETCONF session begins with a handshake in which the NETCONF server and the client
specify the NETCONF capabilities they support. The following sections describe the message
exchange on starting a NETCONF session.
Hello messages exchange
After establishing a secure transport connection, both the NETCONF server and client send a
<hello> element simultaneously to announce their capabilities and session identifier.
The NETCONF server must include the <session-id> element in the <hello> element. The
<session-id> element contains the unique session value for the NETCONF session. If the client
receives the <hello> element without the <session-id>, the client aborts the NETCONF session by
closing the underlying SSH session.
The NETCONF client must not include the <session-id> element in the <hello> element. If the
server receives the <hello> element with the <session-id>, the server aborts the NETCONF session
by closing the underlying SSH session.
The NETCONF client must include a valid xmlns attribute in the <hello> element. If the server
receives the <hello> element without a valid xmlns attribute, the server aborts the NETCONF
session by closing the underlying SSH session.
The NETCONF client must include a base capability. The server receiving the <hello> element
without a NETCONF base capability aborts the NETCONF session by closing the underlying SSH
session.
The server receiving an <rpc> element without first receiving a <hello> element aborts the
NETCONF session by closing the underlying SSH session.