MPLS:多协议标签交换
最初的目的是为了解决TCP/IP路由器转发路由表过慢的问题。
LDP的状态机制:
1:initialized
2:open-received
3:open-sent
4:operational
5:non-existent
初始状态为initalized,若被动方收到可接受的init消息,发送init及keeplive消息,转为opne-recevied状态;若主动方发送init消息,则转为opne-sent状态。;若收到init消息之外的其他LDP消息或者超时则转为non-existent状态。
处于open-received状态时,若收到任何keeplive之外的消息或超时发送NAK消息转为non-existent状态;若收到keeplive消息,则转为operational状态。
处于open-sent状态时,若收到init之外的消息或超时发送NAK消息则转为non-existent状态;若收到可接受的init消息,发送init消息及keeplive消息,则转为open-received状态。
处于operational状态时,若收到shutdown消息或超时发送shutdown消息则转为non-existent状态;若收到其他LDP消息,则状态不变。
处于non-existent状态时,若LDP会话的连接成功建立,则转为initalized状态。
LDP发送hello包使用UDP 646,发送update使用TCP 646,使用组播地址224.0.0.2