Patent ID: 8432906

Claim:
A method for setting up a session, wherein the session corresponds to a link between a source side and a destination side; the source side allocates a first session ID corresponding to the session; the destination side allocates a second session ID corresponding to the session and presets a mapping relation between intermediate nodes of the link and the second session ID; the method comprising: sending, by the source side, an initial BFD packet to the destination side, wherein the initial BFD packet carries the first session ID and information about intermediate nodes of the link so that the initial BFD packet is sent to the destination side along the intermediate nodes of the link; receiving, by the destination side, the initial BFD packet; obtaining, by the destination side, the information about intermediate nodes; searching for, by the destination side, the second session ID according to the mapping relation and the information about intermediate nodes; setting up, by the destination side, a mapping relation between the first session ID and the second session ID for setting up the session.