发明名称 |
Tunnel Type Selection Method and Apparatus |
摘要 |
A tunnel type selection method and apparatus, which relate to the field of information technologies, and can reduce data packet forwarding complexity. The method includes first, combining, by a controller, a code and a label value that are corresponding to a tunnel type supported by a next-hop switch, generating an OXM_OF_TUNNEL_ID match field, and sending a forwarding policy that carries the OXM_OF_TUNNEL_ID match field to a previous-hop OPENFLOW switch, then, extracting, by the previous-hop OPENFLOW switch, the code and the label value that are corresponding to the tunnel type, and encapsulating a data packet according to the code and the label value that are corresponding to the tunnel type, finally, sending, by the previous-hop OPENFLOW switch, the encapsulated data packet to the next-hop switch. The embodiments of the present disclosure are applicable to data packet forwarding in a hybrid networking environment of an OPENFLOW switch and a conventional switch. |
申请公布号 |
US2017041195(A1) |
申请公布日期 |
2017.02.09 |
申请号 |
US201615298476 |
申请日期 |
2016.10.20 |
申请人 |
Huawei Technologies Co., Ltd. |
发明人 |
Wang Jiao |
分类号 |
H04L12/24;H04L12/813;H04L12/751 |
主分类号 |
H04L12/24 |
代理机构 |
|
代理人 |
|
主权项 |
1. A tunnel type selection method, comprising:
determining, by a controller, a tunnel type supported by a next-hop switch; obtaining, by the controller based on a tunnel type and code mapping table, a code corresponding to the tunnel type; generating, by the controller, a label value corresponding to the tunnel type; combining, by the controller, the code corresponding to the tunnel type with the label value corresponding to the tunnel type to generate an OXM_OF_TUNNEL_ID match field; and sending, by the controller, a forwarding policy to a previous-hop OPENFLOW switch, wherein the forwarding policy carries the OXM_OF_TUNNEL_ID match field such that the previous-hop OPENFLOW switch encapsulates a data packet according to the code corresponding to the tunnel type and the label value corresponding to the tunnel type. |
地址 |
Shenzhen CN |