CN112751766B - Message forwarding method and system, related equipment and chip - Google Patents
Message forwarding method and system, related equipment and chip Download PDFInfo
- Publication number
- CN112751766B CN112751766B CN201911046986.5A CN201911046986A CN112751766B CN 112751766 B CN112751766 B CN 112751766B CN 201911046986 A CN201911046986 A CN 201911046986A CN 112751766 B CN112751766 B CN 112751766B
- Authority
- CN
- China
- Prior art keywords
- vpnsid
- proxy
- data center
- vms
- vpnsids
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/12—Avoiding congestion; Recovering from congestion
- H04L47/125—Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/74—Address processing for routing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/24—Multipath
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/38—Flow based routing
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本申请公开了一种报文转发方法和系统、相关设备和芯片,属于网络功能虚拟化技术领域。在该方法中,CSG接收报文,从第一转发表包括的多个代理VPNSID中选择一个代理VPNSID作为目标代理VPNSID转发报文,以将报文转发至目标代理VPNSID所指示的数据中心路由节点。也即是,在该方法中CSG在负载分担时只需负责将负载分担至各个数据中心路由节点即可,由各个数据中心路由节点来完成实际的负载分担。而数据中心路由节点的最大负载分担路数可以高达128,因此,通过本申请实施例提供的报文转发方法,相当于增大了CSG最终进行负载分担的路数,从而提高了负载分担的效率。
The application discloses a message forwarding method and system, related equipment and chips, and belongs to the technical field of network function virtualization. In this method, the CSG receives the message, and selects a proxy VPNSID from the multiple proxy VPNSIDs included in the first forwarding table as the target proxy VPNSID to forward the message, so as to forward the message to the data center routing node indicated by the target proxy VPNSID . That is, in this method, during load sharing, the CSG only needs to be responsible for sharing the load to each data center routing node, and each data center routing node completes the actual load sharing. However, the maximum number of load sharing paths of the routing nodes in the data center can be as high as 128. Therefore, the message forwarding method provided by the embodiment of the present application is equivalent to increasing the number of paths for CSG to finally perform load sharing, thereby improving the efficiency of load sharing. .
Description
技术领域technical field
本申请涉及网络功能虚拟化技术领域,特别涉及一种报文转发方法和系统、相关设备和芯片。The present application relates to the technical field of network function virtualization, in particular to a message forwarding method and system, related equipment and chips.
背景技术Background technique
在5G的区域数据中心(regnional data center,RDC)技术中,一个虚拟网络功能(virtualization network function,VNF)可以部署在多个虚拟机上,这多个虚拟机均可以单独执行该VNF,以实现该VNF的负载分担。因此,当基站业务网关(cellsite servicegateway,CSG)接收到携带该VNF的标识的报文时,CSG需要将该报文转发至多个虚拟机中的一个虚拟机上,由该虚拟机基于该报文执行VNF。In the 5G regional data center (regnional data center, RDC) technology, a virtual network function (virtualization network function, VNF) can be deployed on multiple virtual machines, and the multiple virtual machines can execute the VNF independently to achieve Load balancing of the VNF. Therefore, when a base station service gateway (cellsite service gateway, CSG) receives a message carrying the identifier of the VNF, the CSG needs to forward the message to one of the virtual machines, and the virtual machine based on the message Execute VNFs.
相关技术中,对于任一VNF,CSG预先获取针对该VNF部署的多个虚拟机中每个虚拟机的虚拟私有网络段标识(virtual private network segment identifier,VPNSID),得到多个VPNSID。并获取该VNF的私网路由,该VNF的私网路由用于唯一标识该VNF。CSG建立这多个VPNSID与该VNF的私网路由之间的对应关系。当CSG接收到某个报文时,如果该报文携带该VNF的私网路由,则根据该对应关系通过多路径哈希算法将该报文映射到这多个VPNSID中的一个VPNSID,然后将该VPNSID作为该报文的目的地址进行转发,以实现将该报文转发至该VPNSID所指示的虚拟机。In related technologies, for any VNF, the CSG pre-acquires a virtual private network segment identifier (virtual private network segment identifier, VPNSID) of each of the multiple virtual machines deployed on the VNF to obtain multiple VPNSIDs. And obtain the private network route of the VNF, the private network route of the VNF is used to uniquely identify the VNF. The CSG establishes the correspondence between the multiple VPNSIDs and the private network routes of the VNF. When CSG receives a message, if the message carries the private network route of the VNF, it maps the message to one of the multiple VPNSIDs through the multipath hash algorithm according to the corresponding relationship, and then sends the The VPNSID is forwarded as the destination address of the packet, so as to forward the packet to the virtual machine indicated by the VPNSID.
但是上述转发报文的方法中,由于目前CSG能够支持的负载分担的数量最大为8路,导致上述对应关系中最多包括8个VPNSID,从而限制了负载分担的效率。However, in the above method of forwarding packets, since the current maximum number of load sharing supported by the CSG is 8 routes, the above corresponding relationship includes at most 8 VPNSIDs, thereby limiting the efficiency of load sharing.
发明内容Contents of the invention
本申请提供了一种报文转发方法和系统、相关设备和芯片,可以提高负载分担的效率。所述技术方案如下:The present application provides a message forwarding method and system, related equipment and chips, which can improve the efficiency of load sharing. Described technical scheme is as follows:
第一方面,提供了一种报文转发方法,该方法应用于通信网络中的CSG。其中,该通信网络还包括多个数据中心路由节点、多个VRF、以及用于执行目标VNF的多个VM,这多个VRF中每个VRF上连接有前述多个VM中的一个或多个。前述多个VM中每个VM配置有一个VPNSID,前述多个数据中心路由节点中每个数据中心路由节点配置有一个代理VPNSID。In a first aspect, a message forwarding method is provided, and the method is applied to a CSG in a communication network. Wherein, the communication network further includes multiple data center routing nodes, multiple VRFs, and multiple VMs for executing the target VNF, and each of the multiple VRFs is connected to one or more of the aforementioned multiple VMs . Each of the aforementioned multiple VMs is configured with a VPNSID, and each of the aforementioned multiple data center routing nodes is configured with a proxy VPNSID.
在该方法中,CSG接收报文,该报文中携带目标VNF的标识;CSG从第一转发表包括的多个代理VPNSID中选择一个代理VPNSID作为目标代理VPNSID,CSG将目标代理VPNSID作为目的地址转发报文,以将报文转发至目标代理VPNSID所指示的数据中心路由节点,用于指示目标代理VPNSID所指示的数据中心路由节点根据第二转发表包括的多个VPNSID转发报文。其中,第一转发表为目标VNF的标识对应的转发表,第一转发表包括的多个代理VPNSID是指与多个VM的VPNSID对应配置的代理VPNSID。第二转发表包括的多个VPNSID是指多个VM的VPNSID中与目标代理VPNSID对应的VM的VPNSID。In this method, the CSG receives a message, which carries the target VNF identifier; the CSG selects a proxy VPNSID from the multiple proxy VPNSIDs included in the first forwarding table as the target proxy VPNSID, and the CSG uses the target proxy VPNSID as the destination address Forwarding the message, to forward the message to the data center routing node indicated by the target proxy VPNSID, for instructing the data center routing node indicated by the target proxy VPNSID to forward the message according to the multiple VPNSIDs included in the second forwarding table. Wherein, the first forwarding table is a forwarding table corresponding to the identifier of the target VNF, and the multiple proxy VPNSIDs included in the first forwarding table refer to the proxy VPNSIDs configured corresponding to the VPNSIDs of multiple VMs. The multiple VPNSIDs included in the second forwarding table refer to the VPNSID of the VM corresponding to the target proxy VPNSID among the VPNSIDs of the multiple VMs.
在本申请实施例中,为了避免受到CSG的最大负载分担路数的限制,可以为每个数据中心路由节点配置一个代理VPNSID。针对任一VM的VPNSID,该VM的VPNSID对应配置多个代理VPNSID。如此,在CSG的本地转发表中可以采用代理VPNSID来替代原来的VM的VPNSID,以使CSG在负载分担时只需负责将负载分担至各个数据中心路由节点即可,由各个数据中心路由节点来完成实际的负载分担。而数据中心路由节点的最大负载分担路数可以高达128,因此,通过本申请实施例提供的报文转发方法,相当于增大了CSG最终进行负载分担的路数,从而提高了负载分担的效率。In the embodiment of the present application, in order to avoid being limited by the maximum number of load sharing routes of the CSG, a proxy VPNSID may be configured for each data center routing node. For the VPNSID of any VM, configure multiple proxy VPNSIDs corresponding to the VPNSID of the VM. In this way, the proxy VPNSID can be used in the local forwarding table of the CSG to replace the VPNSID of the original VM, so that the CSG only needs to be responsible for sharing the load to each data center routing node during load sharing, and each data center routing node Complete the actual load sharing. However, the maximum number of load sharing paths of the data center routing nodes can be as high as 128. Therefore, the message forwarding method provided by the embodiment of the present application is equivalent to increasing the number of paths for CSG to finally perform load sharing, thereby improving the efficiency of load sharing. .
可选地,在该方法中,CSG获取与多个VM的VPNSID对应的代理VPNSID,将获取的代理VPNSID添加至第一转发表中。Optionally, in this method, the CSG acquires proxy VPNSIDs corresponding to the VPNSIDs of multiple VMs, and adds the acquired proxy VPNSIDs to the first forwarding table.
由于本申请实施例是在CSG的本地转发表中采用代理VPNSID来替代原来的VM的VPNSID,因此,CSG在转发报文之前,需要获取多个VM的VPNSID对应的代理VPNSID,以构建本申请实施例提供的第一转发表,进而提高后续进行负载分担的效率。Since the embodiment of this application uses the proxy VPNSID to replace the original VPNSID of the VM in the local forwarding table of the CSG, before the CSG forwards the message, it needs to obtain the proxy VPNSIDs corresponding to the VPNSIDs of multiple VMs to construct the implementation of this application. The example provides the first forwarding table, thereby improving the efficiency of subsequent load sharing.
可选地,上述CSG获取与多个VM的VPNSID对应的代理VPNSID,具体为:CSG接收多个VRF中任一VRF发送的第一通告消息,该第一通告消息携带该任一VRF连接的各个VM中每个VM的VPNSID对应的多个代理VPNSID。Optionally, the above-mentioned CSG acquires proxy VPNSIDs corresponding to the VPNSIDs of multiple VMs, specifically: the CSG receives a first notification message sent by any one of the multiple VRFs, and the first notification message carries each Multiple proxy VPNSIDs corresponding to the VPNSID of each VM in the VM.
在一种实现方式中,VRF可以主动向CSG上报自身连接的各个VM中每个VM的VPNSID对应的多个代理VPNSID,以便于CSG构建第一转发表,提高了CSG构建第一转发表的效率。In one implementation, the VRF can proactively report multiple proxy VPNSIDs corresponding to the VPNSID of each VM in each VM connected to the CSG, so that the CSG can construct the first forwarding table and improve the efficiency of the CSG in constructing the first forwarding table .
可选地,该通信网络还包括RR。此时,CSG获取与多个VM的VPNSID对应的代理VPNSID,具体为:CSG接收RR发送的第二通告消息,第二通告消息携带与多个VM的VPNSID对应的代理VPNSID。Optionally, the communications network further includes RRs. At this time, the CSG obtains the proxy VPNSIDs corresponding to the VPNSIDs of the multiple VMs, specifically: the CSG receives the second notification message sent by the RR, and the second notification message carries the proxy VPNSIDs corresponding to the VPNSIDs of the multiple VMs.
在另一种实现方式中,由RR来向CSG上报多个VM的VPNSID对应的代理VPNSID,以便于CSG构建第一转发表,提高了CSG构建第一转发表的灵活性。In another implementation manner, the RR reports the proxy VPNSIDs corresponding to the VPNSIDs of multiple VMs to the CSG, so that the CSG can build the first forwarding table, which improves the flexibility of the CSG to build the first forwarding table.
第二方面、提供了一种报文转发方法,该方法应用于通信网络中的多个数据中心路由节点中的任一数据中心路由节点。该通信网络还包括CSG、多个VRF、用于执行目标VNF的多个VM,每个VRF上连接有多个VM中的一个或多个。其中,多个VM中每个VM配置有一个VPNSID,多个数据中心路由节点中每个数据中心路由节点配置有一个代理VPNSID。In a second aspect, a message forwarding method is provided, and the method is applied to any data center routing node among multiple data center routing nodes in a communication network. The communication network further includes a CSG, multiple VRFs, and multiple VMs for executing the target VNF, and each VRF is connected to one or more of the multiple VMs. Wherein, each of the multiple VMs is configured with a VPNSID, and each of the multiple data center routing nodes is configured with a proxy VPNSID.
在该方法中,任一数据中心路由节点接收CSG发送的报文,报文携带目标代理VPNSID。在报文携带的目标代理VPNSID为该任一数据中心路由节点的代理VPNSID的情况下,该任一数据中心路由节点从第二转发表包括的多个VM的VPNSID中选择一个VPNSID,任一数据中心路由节点将选择的VPNSID作为目的地址转发报文。其中,第二转发表包括的多个VPNSID是指与任一数据中心路由节点的代理VPNSID对应的多个VM的VPNSID。In this method, any data center routing node receives the message sent by the CSG, and the message carries the target proxy VPNSID. In the case that the target proxy VPNSID carried in the message is the proxy VPNSID of the any data center routing node, the any data center routing node selects a VPNSID from the VPNSIDs of the multiple VMs included in the second forwarding table, and any data center routing node The central routing node forwards the packet using the selected VPNSID as the destination address. Wherein, the plurality of VPNSIDs included in the second forwarding table refer to the VPNSIDs of the plurality of VMs corresponding to the proxy VPNSID of any data center routing node.
由于本申请实施例是在CSG的本地转发表中采用代理VPNSID来替代原来的VM的VPNSID,以使CSG在负载分担时只需负责将负载分担至各个数据中心路由节点即可,由各个数据中心路由节点来完成实际的负载分担。因此,数据中心路由节点在接收到报文时,需要根据第二转发表将该报文转发至多个VM中的一个VM,以实现负载分担。由于数据中心路由节点的最大负载分担路数可以高达128,因此,通过本申请实施例提供的报文转发方法,相当于增大了CSG最终进行负载分担的路数,从而提高了负载分担的效率。Since the embodiment of this application uses the proxy VPNSID in the local forwarding table of the CSG to replace the VPNSID of the original VM, so that the CSG only needs to be responsible for sharing the load to the routing nodes of each data center during load sharing. Routing nodes to complete the actual load sharing. Therefore, when the routing node in the data center receives the message, it needs to forward the message to one of the multiple VMs according to the second forwarding table, so as to realize load sharing. Since the maximum number of load sharing paths of the routing nodes in the data center can be as high as 128, the message forwarding method provided by the embodiment of this application is equivalent to increasing the number of paths for CSG to finally perform load sharing, thereby improving the efficiency of load sharing .
可选地,在该方法中,该任一数据中心路由节点获取与该任一数据中心路由节点的代理VPNSID对应的多个VM的VPNSID,将获取的VM的VPNSID添加至第二转发表中。Optionally, in this method, the any data center routing node acquires the VPNSIDs of multiple VMs corresponding to the proxy VPNSID of the any data center routing node, and adds the acquired VPNSIDs of the VMs to the second forwarding table.
由于本申请实施例是由各个数据中心路由节点来完成实际的负载分担,因此,数据中心路由节点需要在转发报文之前,获取与自身的代理VPNSID对应的多个VM的VPNSID,以构建本申请实施例提供的第二转发表,进而提高后续进行负载分担的效率。Since the actual load sharing is performed by each data center routing node in this embodiment of the application, the data center routing node needs to obtain the VPNSIDs of multiple VMs corresponding to its own proxy VPNSID before forwarding the message, so as to construct this application The second forwarding table provided by the embodiment further improves the efficiency of subsequent load sharing.
可选地,该任一数据中心路由节点获取与任一数据中心路由节点的代理VPNSID对应的多个VM的VPNSID,具体为:该任一数据中心路由节点接收多个VRF中任一VRF发送的第三通告消息,第三通告消息携带任一VRF连接的各个VM中每个VM的VPNSID对应的多个代理VPNSID;该任一数据中心路由节点根据任一数据中心路由节点的代理VPNSID,从第三通告消息中获取与任一数据中心路由节点的代理VPNSID对应的的VM的VPNSID。Optionally, the any data center routing node acquires the VPNSIDs of multiple VMs corresponding to the proxy VPNSID of any data center routing node, specifically: the any data center routing node receives the VPNSID sent by any VRF among the multiple VRFs. The third announcement message, the third announcement message carries a plurality of proxy VPNSIDs corresponding to the VPNSID of each VM in each VM connected to any VRF; the any data center routing node, according to the proxy VPNSID of any data center routing node, from the first The VPNSID of the VM corresponding to the proxy VPNSID of any data center routing node is obtained from the notification message.
在一种实现方式中,VRF可以主动向数据中心路由节点上报自身连接的各个VM中每个VM的VPNSID对应的多个代理VPNSID,以便于数据中心路由节点构建第二转发表,提高了数据中心路由节点构建第二转发表的效率。In one implementation, the VRF can actively report multiple proxy VPNSIDs corresponding to the VPNSID of each VM in each VM connected to itself to the routing node in the data center, so that the routing node in the data center can build a second forwarding table, improving data center routing. The routing node constructs the efficiency of the second forwarding table.
可选地,该任一数据中心路由节点的代理VPNSID对应的多个VM的VPNSID由管理人员在该任一数据中心路由节点上配置。Optionally, the VPNSIDs of multiple VMs corresponding to the proxy VPNSID of any data center routing node are configured by a manager on any data center routing node.
在另一种实现方式中,与该任一数据中心路由节点的代理VPNSID对应的多个VM的VPNSID可以直接通过人工方式配置,提高数据中心路由节点构建第二转发表的灵活性。In another implementation manner, the VPNSIDs of multiple VMs corresponding to the proxy VPNSID of any data center routing node can be manually configured directly, so as to improve the flexibility of the data center routing node in constructing the second forwarding table.
第三方面、提供了一种报文转发方法,该方法应用于通信网络中的多个VRF中的任一VRF,该通信网络还包括CSG、多个数据中心路由节点、用于执行目标VNF的多个VM,多个VRF中每个VRF上连接有多个VM中的一个或多个。其中,多个VM中每个VM配置有一个VPNSID,多个数据中心路由节点中每个数据中心路由节点配置有一个代理VPNSID。In the third aspect, a message forwarding method is provided, the method is applied to any VRF among multiple VRFs in the communication network, and the communication network also includes a CSG, multiple data center routing nodes, and a VNF for executing the target For multiple VMs, one or more of the multiple VMs are connected to each VRF in the multiple VRFs. Wherein, each of the multiple VMs is configured with a VPNSID, and each of the multiple data center routing nodes is configured with a proxy VPNSID.
在该方法中,对于任一VRF,该VRF获取该VRF连接的多个VM中每个VM的VPNSID对应的多个代理VPNSID;该VRF向CSG发布第一通告消息,第一通告消息携带该VRF连接的多个VM中每个VM的VPNSID对应的多个代理VPNSID。In this method, for any VRF, the VRF obtains multiple proxy VPNSIDs corresponding to the VPNSID of each VM among the multiple VMs connected to the VRF; the VRF issues a first notification message to the CSG, and the first notification message carries the VRF Multiple proxy VPNSIDs corresponding to the VPNSID of each VM among multiple connected VMs.
在本申请实施例中,VRF可以主动向CSG上报自身连接的各个VM中每个VM的VPNSID对应的多个代理VPNSID,以便于CSG构建第一转发表,提高了CSG构建第一转发表的效率。In this embodiment of the application, the VRF can actively report to the CSG the multiple proxy VPNSIDs corresponding to the VPNSID of each VM in each VM connected to it, so that the CSG can build the first forwarding table, which improves the efficiency of the CSG to build the first forwarding table .
可选地,该VRF获取该VRF连接的多个VM中每个VM的VPNSID对应的多个代理VPNSID之后,该VRF还向多个数据中心路由节点发布第三通告消息,第三通告消息携带该VRF连接的多个VM中每个VM的VPNSID对应的多个代理VPNSID。Optionally, after the VRF acquires multiple proxy VPNSIDs corresponding to the VPNSID of each of the multiple VMs connected to the VRF, the VRF also issues a third notification message to multiple data center routing nodes, the third notification message carrying the Multiple proxy VPNSIDs corresponding to the VPNSID of each VM among the multiple VMs connected to the VRF.
在本申请实施例中,VRF还可以主动向数据中心路由节点上报自身连接的各个VM中每个VM的VPNSID对应的多个代理VPNSID,以便于数据中心路由节点构建第二转发表,提高了数据中心路由节点构建第二转发表的效率。In this embodiment of the application, the VRF can also proactively report to the data center routing node the multiple proxy VPNSIDs corresponding to the VPNSID of each VM in each VM connected to itself, so that the data center routing node can build a second forwarding table and improve data The efficiency with which the central routing node constructs the second forwarding table.
第四方面、提供了一种报文转发方法,该方法应用于通信网络中的RR。该通信网络还包括CSG、多个数据中心路由节点、多个VRF、用于执行目标VNF的多个VM,每个VRF上连接有多个VM中的一个或多个。多个VM中每个VM配置有一个VPNSID,多个数据中心路由节点中每个数据中心路由节点配置有一个代理VPNSID。In the fourth aspect, a message forwarding method is provided, and the method is applied to an RR in a communication network. The communication network also includes a CSG, multiple data center routing nodes, multiple VRFs, and multiple VMs for executing the target VNF, and each VRF is connected to one or more of the multiple VMs. Each of the multiple VMs is configured with a VPNSID, and each of the multiple data center routing nodes is configured with a proxy VPNSID.
在该方法中,RR获取多个VRF中任一VRF连接的多个VM中每个VM的VPNSID;对于获取的任一VM的VPNSID,RR基于本地存储的VPNSID和代理VPNSID之间的对应关系确定该VM的VPNSID对应的代理VPNSID,得到与任一VRF连接的多个VM中每个VM的VPNSID对应的多个代理VPNSID;RR向CSG发送第二通告消息,第二通告消息携带与多个VRF中每个VRF连接的多个VM中每个VM的VPNSID对应的多个代理VPNSID。In this method, the RR obtains the VPNSID of each of the multiple VMs connected to any VRF in multiple VRFs; for the obtained VPNSID of any VM, the RR determines based on the correspondence between the locally stored VPNSID and the proxy VPNSID The proxy VPNSID corresponding to the VPNSID of the VM obtains multiple proxy VPNSIDs corresponding to the VPNSID of each VM in multiple VMs connected to any VRF; the RR sends a second notification message to the CSG, and the second notification message carries information related to multiple VRFs Multiple proxy VPNSIDs corresponding to the VPNSID of each VM among the multiple VMs connected to each VRF in .
在由RR来向CSG上报多个VM的VPNSID对应的代理VPNSID,由CSG构建第一转发表的情况下,RR需要先获取多个VM中每个VM的VPNSID对应的多个代理VPNSID,然后向CSG发送第二通告消息,以便于CSG构建第一转发表,提高了CSG构建第一转发表的灵活性。When the RR reports the proxy VPNSIDs corresponding to the VPNSIDs of multiple VMs to the CSG, and the CSG constructs the first forwarding table, the RR needs to obtain multiple proxy VPNSIDs corresponding to the VPNSIDs of each of the multiple VMs first, and then send The CSG sends the second notification message so that the CSG can build the first forwarding table, which improves the flexibility of the CSG to build the first forwarding table.
可选地,在该方法中,RR本地存储的VPNSID和代理VPNSID之间的对应关系由管理人员在该RR上配置,从而提高了CSG构建第一转发表的灵活性。Optionally, in this method, the corresponding relationship between the VPNSID locally stored in the RR and the proxy VPNSID is configured by the administrator on the RR, thereby improving the flexibility of the CSG in constructing the first forwarding table.
第五方面,提供了一种通信网络中的CSG。其中,该通信网络还包括多个数据中心路由节点、多个VRF、以及用于执行目标VNF的多个VM,这多个VRF中每个VRF上连接有前述多个VM中的一个或多个。前述多个VM中每个VM配置有一个VPNSID,前述多个数据中心路由节点中每个数据中心路由节点配置有一个代理VPNSID。In a fifth aspect, a CSG in a communication network is provided. Wherein, the communication network further includes multiple data center routing nodes, multiple VRFs, and multiple VMs for executing the target VNF, and each of the multiple VRFs is connected to one or more of the aforementioned multiple VMs . Each of the aforementioned multiple VMs is configured with a VPNSID, and each of the aforementioned multiple data center routing nodes is configured with a proxy VPNSID.
CSG包括:CSGs include:
接收模块,用于接收报文,该报文中携带目标VNF的标识;The receiving module is used to receive the message, and the message carries the identification of the target VNF;
选择模块,用于从第一转发表包括的多个代理VPNSID中选择一个代理VPNSID作为目标代理VPNSID;A selection module, configured to select a proxy VPNSID from multiple proxy VPNSIDs included in the first forwarding table as the target proxy VPNSID;
转发模块,用于将目标代理VPNSID作为目的地址转发报文,以将报文转发至目标代理VPNSID所指示的数据中心路由节点,用于指示目标代理VPNSID所指示的数据中心路由节点根据第二转发表包括的多个VPNSID转发报文。其中,第一转发表为目标VNF的标识对应的转发表,第一转发表包括的多个代理VPNSID是指与多个VM的VPNSID对应配置的代理VPNSID。第二转发表包括的多个VPNSID是指多个VM的VPNSID中与目标代理VPNSID对应的VM的VPNSID。A forwarding module, configured to use the target proxy VPNSID as the destination address to forward the message, so as to forward the message to the data center routing node indicated by the target proxy VPNSID, and to indicate that the data center routing node indicated by the target proxy VPNSID according to the second transfer Publish forwarding packets including multiple VPNSIDs. Wherein, the first forwarding table is a forwarding table corresponding to the identifier of the target VNF, and the multiple proxy VPNSIDs included in the first forwarding table refer to the proxy VPNSIDs configured corresponding to the VPNSIDs of multiple VMs. The multiple VPNSIDs included in the second forwarding table refer to the VPNSID of the VM corresponding to the target proxy VPNSID among the VPNSIDs of the multiple VMs.
可选地,CSG还包括添加模块,用于获取与多个VM的VPNSID对应的代理VPNSID,将获取的代理VPNSID添加至第一转发表中。Optionally, the CSG further includes an adding module, configured to obtain proxy VPNSIDs corresponding to the VPNSIDs of multiple VMs, and add the obtained proxy VPNSIDs to the first forwarding table.
可选地,上述添加模块,具体用于:接收多个VRF中任一VRF发送的第一通告消息,该第一通告消息携带该任一VRF连接的各个VM中每个VM的VPNSID对应的多个代理VPNSID。Optionally, the above-mentioned adding module is specifically configured to: receive a first notification message sent by any one of the multiple VRFs, where the first notification message carries the multiple proxy VPNSID.
可选地,该通信网络还包括RR。此时,上述添加模块,具体用于:接收RR发送的第二通告消息,第二通告消息携带与多个VM的VPNSID对应的代理VPNSID。Optionally, the communications network further includes RRs. At this time, the above adding module is specifically configured to: receive a second notification message sent by the RR, where the second notification message carries proxy VPNSIDs corresponding to VPNSIDs of multiple VMs.
第五方面提供的CSG包括的各个模块的技术效果可以参考第一方面提供的报文转发方法,在此不再详细阐述。For the technical effect of each module included in the CSG provided in the fifth aspect, reference may be made to the packet forwarding method provided in the first aspect, and will not be described in detail here.
第六方面、提供了一种通信网络中的多个数据中心路由节点中的任一数据中心路由节点。该通信网络还包括CSG、多个VRF、用于执行目标VNF的多个VM,每个VRF上连接有多个VM中的一个或多个。其中,多个VM中每个VM配置有一个VPNSID,多个数据中心路由节点中每个数据中心路由节点配置有一个代理VPNSID。In a sixth aspect, any data center routing node among multiple data center routing nodes in a communication network is provided. The communication network further includes a CSG, multiple VRFs, and multiple VMs for executing the target VNF, and each VRF is connected to one or more of the multiple VMs. Wherein, each of the multiple VMs is configured with a VPNSID, and each of the multiple data center routing nodes is configured with a proxy VPNSID.
该数据中心路由节点包括:The data center routing nodes include:
接收模块,用于接收CSG发送的报文,报文携带目标代理VPNSID。The receiving module is configured to receive the message sent by the CSG, and the message carries the VPNSID of the target proxy.
选择模块,用于在报文携带的目标代理VPNSID为该任一数据中心路由节点的代理VPNSID的情况下,从第二转发表包括的多个VM的VPNSID中选择一个VPNSID。A selecting module, configured to select a VPNSID from the plurality of VM VPNSIDs included in the second forwarding table when the target proxy VPNSID carried in the message is the proxy VPNSID of any data center routing node.
转发模块,用于将选择的VPNSID作为目的地址转发报文。其中,第二转发表包括的多个VPNSID是指与该数据中心路由节点的代理VPNSID对应的多个VM的VPNSID。A forwarding module, configured to use the selected VPNSID as the destination address to forward the message. Wherein, the multiple VPNSIDs included in the second forwarding table refer to multiple VM VPNSIDs corresponding to the proxy VPNSID of the data center routing node.
可选地,该数据中心路由节点还包括:Optionally, the data center routing node also includes:
添加模块,用于获取与该数据中心路由节点的代理VPNSID对应的多个VM的VPNSID,将获取的VM的VPNSID添加至第二转发表中。An adding module, configured to obtain the VPNSIDs of multiple VMs corresponding to the proxy VPNSID of the data center routing node, and add the obtained VPNSIDs of the VMs to the second forwarding table.
可选地,前述获取模块,具体用于:接收多个VRF中任一VRF发送的第三通告消息,第三通告消息携带任一VRF连接的各个VM中每个VM的VPNSID对应的多个代理VPNSID;根据该数据中心路由节点的代理VPNSID,从第三通告消息中获取与该数据中心路由节点的代理VPNSID对应的的VM的VPNSID。Optionally, the aforementioned acquisition module is specifically configured to: receive a third notification message sent by any one of the multiple VRFs, where the third notification message carries multiple agents corresponding to the VPNSID of each VM in each VM connected to any VRF VPNSID: Obtain the VPNSID of the VM corresponding to the proxy VPNSID of the data center routing node from the third notification message according to the proxy VPNSID of the data center routing node.
可选地,该数据中心路由节点的代理VPNSID对应的多个VM的VPNSID由管理人员在该数据中心路由节点上配置。Optionally, the VPNSIDs of multiple VMs corresponding to the proxy VPNSID of the data center routing node are configured on the data center routing node by a manager.
第六方面提供的数据中心路由节点包括的各个模块的技术效果可以参考第二方面提供的报文转发方法,在此不再详细阐述。For the technical effect of each module included in the data center routing node provided in the sixth aspect, reference may be made to the message forwarding method provided in the second aspect, and will not be described in detail here.
第七方面、提供了一种通信网络中的多个VRF中的任一VRF,该通信网络还包括CSG、多个数据中心路由节点、用于执行目标VNF的多个VM,多个VRF中每个VRF上连接有多个VM中的一个或多个。其中,多个VM中每个VM配置有一个VPNSID,多个数据中心路由节点中每个数据中心路由节点配置有一个代理VPNSID。In a seventh aspect, any VRF among multiple VRFs in a communication network is provided, and the communication network further includes a CSG, multiple data center routing nodes, and multiple VMs for executing target VNFs, and each of the multiple VRFs One or more of multiple VMs are connected to a VRF. Wherein, each of the multiple VMs is configured with a VPNSID, and each of the multiple data center routing nodes is configured with a proxy VPNSID.
该VRF包括:The VRF includes:
获取模块,用于获取该VRF连接的多个VM中每个VM的VPNSID对应的多个代理VPNSID;An acquisition module, configured to acquire multiple proxy VPNSIDs corresponding to the VPNSID of each of the multiple VMs connected to the VRF;
发布模块,用于向CSG发布第一通告消息,第一通告消息携带该VRF连接的多个VM中每个VM的VPNSID对应的多个代理VPNSID。The issuing module is configured to issue a first notification message to the CSG, where the first notification message carries multiple proxy VPNSIDs corresponding to the VPNSID of each VM among the multiple VMs connected to the VRF.
可选地,发布模块,还用于向多个数据中心路由节点发布第三通告消息,第三通告消息携带该VRF连接的多个VM中每个VM的VPNSID对应的多个代理VPNSID。Optionally, the issuing module is further configured to issue a third notification message to multiple data center routing nodes, where the third notification message carries multiple proxy VPNSIDs corresponding to the VPNSID of each of the multiple VMs connected to the VRF.
第七方面提供的VRF包括的各个模块的技术效果可以参考第三方面提供的报文转发方法,在此不再详细阐述。For the technical effect of each module included in the VRF provided in the seventh aspect, reference may be made to the packet forwarding method provided in the third aspect, which will not be described in detail here.
第八方面、提供了一种通信网络中的RR。该通信网络还包括CSG、多个数据中心路由节点、多个VRF、用于执行目标VNF的多个VM,每个VRF上连接有多个VM中的一个或多个。多个VM中每个VM配置有一个VPNSID,多个数据中心路由节点中每个数据中心路由节点配置有一个代理VPNSID。In an eighth aspect, an RR in a communication network is provided. The communication network also includes a CSG, multiple data center routing nodes, multiple VRFs, and multiple VMs for executing the target VNF, and each VRF is connected to one or more of the multiple VMs. Each of the multiple VMs is configured with a VPNSID, and each of the multiple data center routing nodes is configured with a proxy VPNSID.
该RR包括:The RR includes:
获取模块,用于获取多个VRF中任一VRF连接的多个VM中每个VM的VPNSID;对于获取的任一VM的VPNSID,RR基于本地存储的VPNSID和代理VPNSID之间的对应关系确定该VM的VPNSID对应的代理VPNSID,得到与任一VRF连接的多个VM中每个VM的VPNSID对应的多个代理VPNSID;The acquiring module is configured to acquire the VPNSID of each of the multiple VMs connected to any VRF in the multiple VRFs; for the obtained VPNSID of any VM, the RR determines the VPNSID based on the correspondence between the locally stored VPNSID and the proxy VPNSID The proxy VPNSID corresponding to the VPNSID of the VM obtains multiple proxy VPNSIDs corresponding to the VPNSID of each VM in a plurality of VMs connected to any VRF;
发布模块,用于向CSG发送第二通告消息,第二通告消息携带与多个VRF中每个VRF连接的多个VM中每个VM的VPNSID对应的多个代理VPNSID。An issuing module, configured to send a second notification message to the CSG, where the second notification message carries multiple proxy VPNSIDs corresponding to the VPNSID of each of the multiple VMs connected to each of the multiple VRFs.
可选地,RR本地存储的VPNSID和代理VPNSID之间的对应关系由管理人员在该RR上配置,从而提高了CSG构建第一转发表的灵活性。Optionally, the corresponding relationship between the VPNSID locally stored in the RR and the proxy VPNSID is configured by the administrator on the RR, thereby improving the flexibility of the CSG in constructing the first forwarding table.
第八方面提供的RR包括的各个模块的技术效果可以参考第四方面提供的报文转发方法,在此不再详细阐述。For the technical effect of each module included in the RR provided in the eighth aspect, reference may be made to the packet forwarding method provided in the fourth aspect, which will not be described in detail here.
第九方面、提供了一种通信网络中的CSG,所述通信网络还包括多个数据中心路由节点、多个虚拟路由转发VRF、以及用于执行目标虚拟网络功能VNF的多个VM,所述多个VRF中每个VRF上连接有所述多个VM中的一个或多个,所述多个VM中每个VM配置有一个VPNSID,所述多个数据中心路由节点中每个数据中心路由节点配置有一个代理VPNSID;A ninth aspect provides a CSG in a communication network, where the communication network further includes multiple data center routing nodes, multiple virtual routing and forwarding VRFs, and multiple VMs for executing target virtual network functions VNFs, the One or more of the plurality of VMs is connected to each VRF in the plurality of VRFs, each VM in the plurality of VMs is configured with a VPNSID, and each data center routing node in the plurality of data center routing nodes The node is configured with a proxy VPNSID;
所述CSG包括存储器和处理器;The CSG includes a memory and a processor;
所述存储器用于存储计算机程序;The memory is used to store computer programs;
所述处理器用于执行所述存储器中存储的程序以执行上述第一方面中任一所述的方法。The processor is configured to execute the program stored in the memory to perform the method described in any one of the above first aspects.
第十方面、提供了一种通信网络中的数据中心路由节点,所述通信网络包括多个数据中心路由节点、CSG、多个VRF、用于执行目标VNF的多个VM,每个VRF上连接有所述多个VM中的一个或多个,所述多个VM中每个VM配置有一个VPNSID,所述多个数据中心路由节点中每个数据中心路由节点配置有一个代理VPNSID;A tenth aspect provides a data center routing node in a communication network, where the communication network includes multiple data center routing nodes, a CSG, multiple VRFs, and multiple VMs for executing target VNFs, and each VRF is connected to There are one or more of the plurality of VMs, each of the plurality of VMs is configured with a VPNSID, and each of the plurality of data center routing nodes is configured with a proxy VPNSID;
所述多个数据中心路由节点中的任一数据中心路由节点包括存储器和处理器;Any one of the plurality of data center routing nodes includes a memory and a processor;
所述存储器用于存储计算机程序;The memory is used to store computer programs;
所述处理器用于执行所述存储器中存储的程序以执行上述第二方面中任一所述的方法。The processor is configured to execute the program stored in the memory to perform the method described in any one of the above second aspects.
第十一方面、提供了一种通信网络中的VRF,所述通信网络包括多个VRF、CSG、多个数据中心路由节点、用于执行目标VNF的多个VM,所述多个VRF中每个VRF上连接有所述多个VM中的一个或多个,所述多个VM中每个VM配置有一个VPNSID,所述多个数据中心路由节点中每个数据中心路由节点配置有一个代理VPNSID;In an eleventh aspect, a VRF in a communication network is provided, where the communication network includes multiple VRFs, CSGs, multiple data center routing nodes, and multiple VMs for executing target VNFs, and each of the multiple VRFs One or more of the plurality of VMs are connected to each VRF, each of the plurality of VMs is configured with a VPNSID, and each of the plurality of data center routing nodes is configured with an agent VPNSID;
所述多个VRF中的任一VRF包括存储器和处理器;Any one of the plurality of VRFs includes a memory and a processor;
所述存储器用于存储计算机程序;The memory is used to store computer programs;
所述处理器用于执行所述存储器中存储的程序以执行上述第三方面中任一所述的方法。The processor is configured to execute the program stored in the memory to perform the method described in any one of the above third aspects.
第十二方面、提供了一种通信网络中的RR,所述通信网络还包括CSG、多个数据中心路由节点、多个VRF、用于执行目标VNF的多个VM,每个VRF上连接有所述多个VM中的一个或多个,所述多个VM中每个VM配置有一个VPNSID,所述多个数据中心路由节点中每个数据中心路由节点配置有一个代理VPNSID;In a twelfth aspect, an RR in a communication network is provided, and the communication network further includes a CSG, multiple data center routing nodes, multiple VRFs, and multiple VMs for executing target VNFs, and each VRF is connected to One or more of the plurality of VMs, each of the plurality of VMs is configured with a VPNSID, and each of the plurality of data center routing nodes is configured with a proxy VPNSID;
所述RR包括存储器和处理器;The RR includes a memory and a processor;
所述存储器用于存储计算机程序;The memory is used to store computer programs;
所述处理器用于执行所述存储器中存储的程序以执行上述第四方面中任一所述的方法。The processor is configured to execute the program stored in the memory to perform the method described in any one of the above fourth aspects.
第十三方面、提供了一种芯片,所述芯片设置在通信网络中的CSG中,所述通信网络还包括多个数据中心路由节点、多个虚拟路由转发VRF、以及用于执行目标虚拟网络功能VNF的多个VM,所述多个VRF中每个VRF上连接有所述多个VM中的一个或多个,所述多个VM中每个VM配置有一个VPNSID,所述多个数据中心路由节点中每个数据中心路由节点配置有一个代理VPNSID;In a thirteenth aspect, a chip is provided, the chip is set in a CSG in a communication network, and the communication network further includes multiple data center routing nodes, multiple virtual routing and forwarding VRFs, and a target virtual network for executing Multiple VMs of functional VNFs, one or more of the multiple VMs are connected to each of the multiple VRFs, each of the multiple VMs is configured with a VPNSID, and the multiple data Each data center routing node in the central routing node is configured with a proxy VPNSID;
所述芯片包括处理器和接口电路;The chip includes a processor and an interface circuit;
所述接口电路用于接收指令并传输至所述处理器;The interface circuit is used to receive instructions and transmit them to the processor;
所述处理器用于执行上述第一方面中任一所述的方法。The processor is configured to execute the method described in any one of the above first aspects.
第十四方面、提供了一种芯片,所述芯片设置在通信网络包括的多个数据中心路由节点中的任一数据中心路由节点中,所述通信网络还包括CSG、多个VRF、用于执行目标VNF的多个VM,每个VRF上连接有所述多个VM中的一个或多个,所述多个VM中每个VM配置有一个VPNSID,所述多个数据中心路由节点中每个数据中心路由节点配置有一个代理VPNSID;In a fourteenth aspect, a chip is provided, and the chip is set in any one of the multiple data center routing nodes included in the communication network, and the communication network further includes a CSG, multiple VRFs, for Executing multiple VMs of the target VNF, each VRF is connected to one or more of the multiple VMs, each of the multiple VMs is configured with a VPNSID, and each of the multiple data center routing nodes Each data center routing node is configured with a proxy VPNSID;
所述芯片包括处理器和接口电路;The chip includes a processor and an interface circuit;
所述接口电路用于接收指令并传输至所述处理器;The interface circuit is used to receive instructions and transmit them to the processor;
所述处理器用于执行上述第二方面中任一所述的方面。The processor is configured to execute any one of the above second aspects.
第十五方面、提供了一种芯片,所述芯片设置在通信网络包括的多个VRF中的任一VRF中,所述通信网络还包括CSG、多个数据中心路由节点、用于执行目标VNF的多个VM,所述多个VRF中每个VRF上连接有所述多个VM中的一个或多个,所述多个VM中每个VM配置有一个VPNSID,所述多个数据中心路由节点中每个数据中心路由节点配置有一个代理VPNSID;In a fifteenth aspect, a chip is provided, the chip is set in any VRF among the multiple VRFs included in the communication network, and the communication network also includes a CSG, multiple data center routing nodes, and is used to execute the target VNF Multiple VMs, each of the multiple VRFs is connected to one or more of the multiple VMs, each of the multiple VMs is configured with a VPNSID, and the multiple data center routing Each data center routing node in the node is configured with a proxy VPNSID;
所述芯片包括处理器和接口电路;The chip includes a processor and an interface circuit;
所述接口电路用于接收指令并传输至所述处理器;The interface circuit is used to receive instructions and transmit them to the processor;
所述处理器用于执行上述第三方面中任一所述的方面。The processor is configured to execute any one of the third aspects above.
第十六方面、提供了一种芯片,所述芯片设置在通信网络的RR中,所述通信网络还包括CSG、多个数据中心路由节点、多个VRF、用于执行目标VNF的多个VM,每个VRF上连接有所述多个VM中的一个或多个,所述多个VM中每个VM配置有一个VPNSID,所述多个数据中心路由节点中每个数据中心路由节点配置有一个代理VPNSID;A sixteenth aspect provides a chip, the chip is set in the RR of the communication network, and the communication network further includes CSG, multiple data center routing nodes, multiple VRFs, and multiple VMs for executing the target VNF , each VRF is connected to one or more of the plurality of VMs, each of the plurality of VMs is configured with a VPNSID, and each of the plurality of data center routing nodes is configured with A proxy VPNSID;
所述芯片包括处理器和接口电路;The chip includes a processor and an interface circuit;
所述接口电路用于接收指令并传输至所述处理器;The interface circuit is used to receive instructions and transmit them to the processor;
所述处理器用于执行上述第四方面中任一所述的方面。The processor is configured to execute any aspect described in the fourth aspect above.
第十六方面、提供了一种报文转发系统,所述系统包括CSG、多个数据中心路由节点、多个虚拟路由转发VRF、以及用于执行目标虚拟网络功能VNF的多个VM,所述多个VRF中每个VRF上连接有该多个VM中的一个或多个,该多个VM中每个VM配置有一个虚拟私有网络段标识VPNSID,该多个数据中心路由节点中每个数据中心路由节点配置有一个代理VPNSID;A sixteenth aspect provides a message forwarding system, the system includes a CSG, multiple data center routing nodes, multiple virtual routing and forwarding VRFs, and multiple VMs for executing target virtual network functions VNFs, the Each of the multiple VRFs is connected to one or more of the multiple VMs, each of the multiple VMs is configured with a virtual private network segment identifier VPNSID, and each of the multiple data center routing nodes The central routing node is configured with a proxy VPNSID;
该CSG,用于获取与该多个VM的VPNSID对应的代理VPNSID,将获取的代理VPNSID添加至第一转发表中;The CSG is configured to obtain proxy VPNSIDs corresponding to the VPNSIDs of the multiple VMs, and add the obtained proxy VPNSIDs to the first forwarding table;
该多个数据中心路由节点中任一数据中心路由节点,用于获取与该数据中心路由节点的代理VPNSID对应的多个VM的VPNSID,将获取的VM的VPNSID添加至第二转发表中。Any data center routing node among the plurality of data center routing nodes is configured to obtain VPNSIDs of multiple VMs corresponding to the proxy VPNSID of the data center routing node, and add the obtained VPNSIDs of VMs to the second forwarding table.
可选地,CSG具体用于:接收该多个VRF中任一VRF发送的第一通告消息,该第一通告消息携带该任一VRF连接的各个VM中每个VM的VPNSID对应的多个代理VPNSID。Optionally, the CSG is specifically configured to: receive a first notification message sent by any one of the multiple VRFs, where the first notification message carries multiple proxies corresponding to the VPNSID of each of the VMs connected to the any VRF VPNSID.
可选地,CSG具体用于:该CSG接收该RR发送的第二通告消息,该第二通告消息携带与该多个VM的VPNSID对应的代理VPNSID。Optionally, the CSG is specifically configured to: the CSG receives a second notification message sent by the RR, where the second notification message carries proxy VPNSIDs corresponding to the VPNSIDs of the multiple VMs.
可选地,该数据中心路由节点,用于接收该多个VRF中任一VRF发送的第三通告消息,该第三通告消息携带该任一VRF连接的各个VM中每个VM的VPNSID对应的多个代理VPNSID;根据该数据中心路由节点的代理VPNSID,从该第三通告消息中获取与该数据中心路由节点的代理VPNSID对应的的VM的VPNSID。Optionally, the data center routing node is configured to receive a third notification message sent by any VRF among the plurality of VRFs, where the third notification message carries the VPNSID corresponding to each VM among the VMs connected to any VRF. A plurality of proxy VPNSIDs; according to the proxy VPNSID of the data center routing node, obtain the VPNSID of the VM corresponding to the proxy VPNSID of the data center routing node from the third notification message.
可选地,该数据中心路由节点的代理VPNSID对应的多个VM的VPNSID由管理人员在该数据中心路由节点上配置。Optionally, the VPNSIDs of multiple VMs corresponding to the proxy VPNSID of the data center routing node are configured on the data center routing node by a manager.
上述报文转发系统中各个节点的技术效果同样可以参考上述第一方面、第二方面、第三方面以及第四方面提供的报文转发方法的技术效果,在此不再赘述。The technical effects of each node in the above message forwarding system can also refer to the technical effects of the message forwarding method provided in the first aspect, the second aspect, the third aspect and the fourth aspect, and will not be repeated here.
附图说明Description of drawings
图1是本申请实施例提供的一种通信网络的架构示意图;FIG. 1 is a schematic structural diagram of a communication network provided by an embodiment of the present application;
图2是本申请实施例提供的另一种通信网络的架构示意图;FIG. 2 is a schematic structural diagram of another communication network provided by an embodiment of the present application;
图3是本申请实施例提供的一种报文转发方法流程图;FIG. 3 is a flowchart of a message forwarding method provided by an embodiment of the present application;
图4是本申请实施例提供的一种报文转发流程意图;FIG. 4 is a schematic diagram of a message forwarding process provided by an embodiment of the present application;
图5是本申请实施例提供的一种配置第一转发表和第二转发表的方法流程图;FIG. 5 is a flowchart of a method for configuring a first forwarding table and a second forwarding table provided in an embodiment of the present application;
图6是本申请实施例提供的一种网络设备的结构示意图;FIG. 6 is a schematic structural diagram of a network device provided by an embodiment of the present application;
图7是本申请实施例提供的另一种网络设备的结构示意图;FIG. 7 is a schematic structural diagram of another network device provided by an embodiment of the present application;
图8是本申请实施例提供的一种图7所示网络设备中的接口板的结构示意图;FIG. 8 is a schematic structural diagram of an interface board in the network device shown in FIG. 7 provided by an embodiment of the present application;
图9是本申请实施例提供的一种CSG的结构示意图;FIG. 9 is a schematic structural diagram of a CSG provided by an embodiment of the present application;
图10是本申请实施例提供的一种数据中心路由节点的结构示意图;FIG. 10 is a schematic structural diagram of a data center routing node provided by an embodiment of the present application;
图11是本申请实施例提供的另一种网络设备的结构示意图。FIG. 11 is a schematic structural diagram of another network device provided by an embodiment of the present application.
具体实施方式Detailed ways
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the purpose, technical solution and advantages of the present application clearer, the implementation manners of the present application will be further described in detail below in conjunction with the accompanying drawings.
应当理解的是,本文提及的“多个”是指两个或两个以上。在本申请的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,为了便于清楚描述本申请实施例的技术方案,在本申请的实施例中,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分。本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。It should be understood that the "plurality" mentioned herein refers to two or more than two. In the description of this application, unless otherwise specified, "/" means or means, for example, A/B can mean A or B; "and/or" in this article is just a description of the relationship between associated objects, Indicates that there may be three relationships, for example, A and/or B, may indicate: A exists alone, A and B exist simultaneously, and B exists alone. In addition, in order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish the same or similar items with basically the same function and effect. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit the difference.
在对本申请实施例提供的报文转发方法进行解释说明之前,先对本申请实施例涉及的通信网络进行解释说明。Before explaining the message forwarding method provided by the embodiment of the present application, the communication network involved in the embodiment of the present application is explained first.
图1是本申请实施例提供的一种通信网络的架构示意图。如图1所示,该通信网络100包括多个CSG、多个运营商边缘设备(provider edge,PE)、多个数据中心路由节点、多个数据中心以及多个虚拟路由转发(virtual route forwarding,VRF)。FIG. 1 is a schematic structural diagram of a communication network provided by an embodiment of the present application. As shown in FIG. 1 , the communication network 100 includes multiple CSGs, multiple provider edge devices (provider edges, PEs), multiple data center routing nodes, multiple data centers, and multiple virtual route forwarding (virtual route forwarding, VRF).
其中,数据中心可以RDC,也可以为中心数据中心(central data center,CDC)或者边缘数据中心(edge data center,EDC),图1是以RDC作为数据中心为例进行说明。数据中心路由节点可以为部署在PE和数据中心之间的数据中心网关(data center gateway,DCGW),还可以为部署在数据中心和VRF之间的DC Spine(脊)路由器,本申请实施例对此不做具体限定。图1是以数据中心路由节点为部署在PE和数据中心之间的DCGW为例进行说明。The data center may be an RDC, or a central data center (central data center, CDC) or an edge data center (edge data center, EDC). Figure 1 uses the RDC as an example for illustration. The data center routing node may be a data center gateway (data center gateway, DCGW) deployed between the PE and the data center, and may also be a DC Spine (ridge) router deployed between the data center and the VRF. This is not specifically limited. FIG. 1 takes the data center routing node as an example to illustrate the DCGW deployed between the PE and the data center.
如图1所示,任一CSG通过骨干网中的多个PE与任一DCGW进行通信。任一DCGW与任一RDC之间进行通信。任一RDC与所连接的各个VRF之间进行通信,每个VRF上连接有一个或多个VM(图1中是以每个VRF连接一个VM为例进行说明)。用于执行同一VNF的VM有多个,且可能分别连接在不同的VRF上。如图1所示,用于执行图1所示的VNF的VM有三个,分别是图1中从上到下的前三个VRF连接的三个VM。As shown in Figure 1, any CSG communicates with any DCGW through multiple PEs in the backbone network. Any DCGW communicates with any RDC. Any RDC communicates with each connected VRF, and each VRF is connected with one or more VMs (in FIG. 1 , each VRF is connected with one VM as an example for illustration). There are multiple VMs used to execute the same VNF, and they may be connected to different VRFs. As shown in FIG. 1 , there are three VMs used to execute the VNF shown in FIG. 1 , which are the three VMs connected to the first three VRFs from top to bottom in FIG. 1 .
为了能够精确实现针对某个VNF的负载分担,针对用于执行该VNF的各个VM中每个VM配置了END.dx类型的SID,也称为VPNSID。也即是,在本申请实施例中,每个VPNSID用于唯一标识一个VM。如此,相关技术中CSG的转发表包括与该VNF的标识对应的多个VPNSID,以便于CSG根据转发表将报文转发至其中的一个VPNSID所指示的VM。In order to accurately implement load sharing for a certain VNF, an END.dx-type SID, also called VPNSID, is configured for each VM in each VM used to execute the VNF. That is, in this embodiment of the application, each VPNSID is used to uniquely identify a VM. In this way, the forwarding table of the CSG in the related art includes multiple VPNSIDs corresponding to the identifier of the VNF, so that the CSG forwards the message to the VM indicated by one of the VPNSIDs according to the forwarding table.
如图1所示,目前的CSG最多支持8路负载分担,也即是,CSG接收到某个报文时,CSG基于多路径哈希算法将该报文最多能转发至8个VM中的一个VM进行处理,这严重影响了负载分担的效率。本申请实施例正是基本这个场景提供了一种转发报文的方法,以提高负载分担的效率。As shown in Figure 1, the current CSG supports up to 8-way load sharing, that is, when the CSG receives a message, the CSG can forward the message to one of the 8 VMs at most based on the multi-path hash algorithm. VM for processing, which seriously affects the efficiency of load sharing. In this basic scenario, the embodiment of the present application provides a method for forwarding packets, so as to improve the efficiency of load sharing.
另外,图1所示的VNF可以为接入管理功能(access management function,AMF),还可以为会话管理功能(session management function,SMF),还可以为用户面功能(userplane function,UPF)等等。In addition, the VNF shown in FIG. 1 may be an access management function (access management function, AMF), may also be a session management function (session management function, SMF), may also be a user plane function (userplane function, UPF), etc. .
另外,上述任一VRF是通过指定的接入(Access Circuit,AC)三层接口或子接口与一个VM进行连接,在此不再详细说明。In addition, any one of the aforementioned VRFs is connected to a VM through a designated access (Access Circuit, AC) layer-3 interface or sub-interface, which will not be described in detail here.
需要说明的是,图1中所示的各个设备的数量仅仅用于举例说明,并不构成对本申请实施例提供的通信网络的架构的限定。It should be noted that the number of devices shown in FIG. 1 is only for illustration, and does not constitute a limitation on the architecture of the communication network provided in the embodiment of the present application.
为了后续便于说明,将图1中所示的通信网络进行了简化,简化后的通信网络如图2所示。后续的转发报文的方法以图2所示的通信网络进行举例说明。如图2所示,该通信网络200包括CSG,多个数据中心路由节点(图2中以两个数据中心路由节点为例进行说明,分别标记为数据中心路由节点1和数据中心路由节点2)、多个VRF(图2中以两个VRF为例进行说明,分别标记为VRF1和VRF2)、以及用于执行目标VNF的多个VM,多个VRF中每个VRF上连接有多个VM中的一个或多个(图2中以每个VRF上连接有两个VM为例进行说明)。For convenience of subsequent description, the communication network shown in FIG. 1 is simplified, and the simplified communication network is shown in FIG. 2 . The subsequent method for forwarding packets is illustrated by taking the communication network shown in FIG. 2 as an example. As shown in FIG. 2, the communication network 200 includes a CSG and a plurality of data center routing nodes (in FIG. 2, two data center routing nodes are taken as an example, which are respectively marked as data
此外,如图2所示,网络划分为多个域,每个域包括一组主机和一组路由器,一个域内的主机和路由器由一个控制器统一进行管理。图2中的CSG、数据中心路由节点1和数据中心路由节点2位于同一域内,数据中心路由节点1、数据中心路由节点2以及VRF1和VRF2位于另一个域内。每个域内还部署有一个路由反射器(route reflector,RR),在图2中分别标记为RR1和RR2。其中,每个域内的路由反射器的功能为:该域内任一路由设备均可以通过该路由反射器与其他路由设备进行通信,无需这两个路由设备之间直接建立网络连接,从而减少网络资源的消耗。In addition, as shown in Figure 2, the network is divided into multiple domains, each domain includes a group of hosts and a group of routers, and the hosts and routers in a domain are managed by a controller. In FIG. 2 , CSG, data
关于图2所示的通信网络中各个节点的功能将在下述实施例中详细说明,在此先不一一展开说明。The functions of each node in the communication network shown in FIG. 2 will be described in detail in the following embodiments, and will not be described one by one here.
下面以图2所示的通信网络为例来说明本申请实施例提供的报文转发方法,对于图1所述的通信网络中的其他节点部署情况,均可以参考下述实施例来实现报文转发。The following uses the communication network shown in Figure 2 as an example to illustrate the message forwarding method provided by the embodiment of the present application. For the deployment of other nodes in the communication network shown in Figure 1, you can refer to the following embodiments to implement the message forwarding method. Forward.
图3是本申请实施例提供的一种报文转发方法流程图。如图3所示,该方法包括如下步骤:FIG. 3 is a flowchart of a message forwarding method provided by an embodiment of the present application. As shown in Figure 3, the method includes the following steps:
步骤301:CSG接收报文,该报文中携带目标VNF的标识。Step 301: The CSG receives a message, which carries the identifier of the target VNF.
在本申请实施例中,为了避免受到CSG的最大负载分担路数的限制,可以为每个数据中心路由节点配置一个代理VPNSID。针对任一VM的VPNSID,可以为该VM的VPNSID配置多个代理VPNSID。如此,在CSG的本地转发表中可以采用代理VPNSID来替代原来的VM的VPNSID,以使CSG在负载分担时只需负责将负载分担至各个数据中心路由节点即可,由各个数据中心路由节点来完成实际的负载分担,而数据中心路由节点的最大负载分担路数可以高达128,因此,通过本申请实施例通过的报文转发方法,相当于增大了CSG最终进行负载分担的路数,从而提高了转发报文的效率。In the embodiment of the present application, in order to avoid being limited by the maximum number of load sharing routes of the CSG, a proxy VPNSID may be configured for each data center routing node. For any VM's VPNSID, multiple proxy VPNSIDs can be configured for that VM's VPNSID. In this way, the proxy VPNSID can be used in the local forwarding table of the CSG to replace the VPNSID of the original VM, so that the CSG only needs to be responsible for sharing the load to each data center routing node during load sharing, and each data center routing node The actual load sharing is completed, and the maximum number of load sharing paths of the routing nodes in the data center can be as high as 128. Therefore, the message forwarding method adopted in the embodiment of the present application is equivalent to increasing the number of paths for CSG to finally perform load sharing, thereby The efficiency of packet forwarding is improved.
因此,CSG中存储有与该目标VNF的标识对应的第一转发表,第一转发表包括多个代理VPNSID,以便于CSG通过下述步骤302和步骤303转发该报文。第一转发表包括的多个代理VPNSID是指与用于执行目标VNF的多个VM的VPNSID对应的代理VPNSID。其中,第一转发表的配置过程将在下述实施例中说明,在此就不先不阐述。Therefore, a first forwarding table corresponding to the target VNF identifier is stored in the CSG, and the first forwarding table includes multiple proxy VPNSIDs, so that the CSG forwards the packet through the following
图4是本申请实施例提供的一种报文转发示意图。如图4所示,该CSG中存储的第一转发表中包括两个代理VPNSID,分别为DE::B100和DF::B100。DE::B100是数据中心路由节点1的代理VPNSID。DF::B100是数据中心路由节点2的代理VPNSID。FIG. 4 is a schematic diagram of packet forwarding provided by an embodiment of the present application. As shown in FIG. 4 , the first forwarding table stored in the CSG includes two proxy VPNSIDs, which are DE::B100 and DF::B100 respectively. DE::B100 is the proxy VPNSID of data
其中,针对任一VM的VPNSID,为该VM的VPNSID配置多个代理VPNSID。如图4所示,针对从上到下的第一个VM的VPNSID(该VPNSID为A8:1::B100)配置了两个对应的代理VPNSID,分别为DE::B100和DF::B100。针对从上到下的第二个VM的VPNSID(该VPNSID为A8:1::B101)也配置了两个对应的代理VPNSID,分别为DE::B100和DF::B100。此外,针对从上到下的第三个VM和第四个VM,同样可以配置这两个对应的代理VPNSID。也即是,对于图4所示的每个VM的VPNSID,均配置了两个对应的代理VPNSID,分别为DE::B100和DF::B100。Wherein, for the VPNSID of any VM, multiple proxy VPNSIDs are configured for the VPNSID of the VM. As shown in Figure 4, two corresponding proxy VPNSIDs are configured for the VPNSID of the first VM from top to bottom (the VPNSID is A8:1::B100), which are DE::B100 and DF::B100 respectively. For the VPNSID of the second VM from top to bottom (the VPNSID is A8:1::B101), two corresponding proxy VPNSIDs are also configured, namely DE::B100 and DF::B100. In addition, for the third VM and the fourth VM from top to bottom, these two corresponding proxy VPNSIDs can also be configured. That is, for the VPNSID of each VM shown in FIG. 4 , two corresponding proxy VPNSIDs are configured, namely DE::B100 and DF::B100.
当各个VM的VPNSID按照上述方式配置对应的代理VPNSID之后,此时,第一转发表中包括两个代理VPNSID(这两个代理VPNISD分别为DE::B100和DF::B100。)是与执行目标VNF的多个VM的VPNSID对应的所有代理VPNSID。关于配置各个VM的VPNSID对应的代理VPNSID的过程以及生成第一转发表的具体实现方式将在下述生成第一转发表的实施例中详细说明,在此先不赘述。After the VPNSID of each VM is configured with the corresponding proxy VPNSID according to the above method, at this time, the first forwarding table includes two proxy VPNSIDs (these two proxy VPNISDs are DE::B100 and DF::B100 respectively.) and execute All proxy VPNSIDs corresponding to the VPNSIDs of multiple VMs of the target VNF. The process of configuring the proxy VPNSID corresponding to the VPNSID of each VM and the specific implementation of generating the first forwarding table will be described in detail in the following embodiment of generating the first forwarding table, and will not be repeated here.
步骤302:CSG从第一转发表包括的多个代理VPNSID中选择一个代理VPNSID作为目标代理VPNSID。Step 302: The CSG selects a proxy VPNSID from multiple proxy VPNSIDs included in the first forwarding table as the target proxy VPNSID.
在一种具体的实现方式中,CSG可以通过多路径哈希算法从第一转发表包括的多个代理VPNSID中选择一个代理VPNSID。多路径哈希算法可以为等价多路径(equal-costmulti path routing,ECMP)算法。此时,第一转发表中的多个代理VPNSID被选择的概率相同,以实现CSG将接收到的报文均匀地分担至各个数据中心路由节点。比如,对于图4所示的转发流程,CSG基于多路径哈希算法选择的代理VPNSID为DE::B100,表明此时需要将报文转发至数据中心路由节点1。In a specific implementation manner, the CSG may select a proxy VPNSID from multiple proxy VPNSIDs included in the first forwarding table through a multipath hash algorithm. The multi-path hash algorithm may be an equal-cost multi-path (equal-cost multi path routing, ECMP) algorithm. At this time, the multiple proxy VPNSIDs in the first forwarding table have the same probability of being selected, so that the CSG evenly distributes the received message to each data center routing node. For example, for the forwarding process shown in Figure 4, the proxy VPNSID selected by the CSG based on the multipath hash algorithm is DE::B100, indicating that the message needs to be forwarded to the data
可以理解,在另外的实现方式下,可以采用不同的哈希算法使第一转发表中的各个代理VPNSID被选择的概率不相同,具体可以根据负载均衡策略确定具体类型的哈希算法。It can be understood that in another implementation manner, different hash algorithms may be used to make the probabilities of being selected for each proxy VPNSID in the first forwarding table different. Specifically, a specific type of hash algorithm may be determined according to a load balancing strategy.
步骤303:CSG将目标代理VPNSID作为目的地址转发该报文。Step 303: The CSG forwards the message with the target proxy VPNSID as the destination address.
在本申请实施例中,由于是采用了代理VPNSID来替换相关技术中的VPNSID,因此,CSG在从第一转发表中选择出代理VPNSID作为目标代理VPNSID之后,便可将目标代理VPNSID作为报文的目的地址以转发报文。In the embodiment of this application, since the proxy VPNSID is used to replace the VPNSID in the related technology, after the CSG selects the proxy VPNSID from the first forwarding table as the target proxy VPNSID, it can use the target proxy VPNSID as the message destination address to forward packets.
比如,对于图4所示的转发流程,CSG将代理VPNSID=DE::B100作为报文的目的地址(图4中将目的地址标记为DA),该报文的源地址(图4中将源地址标记为SA)为CSG。另外,如图4所示,报文中还包括有效载荷(payload)。如图4中标号为①的步骤用于说明前述过程。For example, for the forwarding process shown in Figure 4, the CSG uses proxy VPNSID=DE::B100 as the destination address of the message (the destination address is marked as DA in Figure 4), and the source address of the message (the source address is marked as DA in Figure 4). Addresses labeled SA) are CSG. In addition, as shown in FIG. 4 , the packet also includes a payload (payload). The steps marked as ① in Fig. 4 are used to illustrate the aforementioned process.
通过上述步骤301至步骤303,CSG可以将报文转发至选择的目标代理VPNSID所指示的数据中心路由节点。目标代理VPNSID所指示的数据中心路由节点中配置有第二转发表,第二转发表中包括多个VPNSID,用于指示目标代理VPNSID对应的数据中心路由节点根据第二转发表包括的多个VPNSID转发报文,第二转发表包括的多个VPNSID是指多个VM的VPNSID中与目标代理VPNSID对应的VPNSID。因此,对于任一数据中心路由节点,如果该数据中心路由节点为CSG选择的目标代理VPNSID所指示的数据中心路由节点,则可以通过下述步骤304至步骤306来对接收到的报文进行处理。关于第二转发表的配置过程将在下述实施例中说明,在此先不阐述。Through the
步骤304:对于任一数据中心路由节点,该数据中心路由节点接收CSG发送的报文,该报文携带目标代理VPNSID。Step 304: For any data center routing node, the data center routing node receives the message sent by the CSG, and the message carries the target proxy VPNSID.
由于网络中的任一数据中心路由节点均可能接收到CSG发送的报文,因此,对于任一数据中心路由节点,当该数据中心路由节点接收到CSG发送的报文,需判断该报文是否由自身来处理。在一种具体的实现方式中,由于报文携带的目的地址为目标代理VPNSID,因此,该数据中心路由节点可以比对报文中携带的目标代理VPNSID和自身的配置的代理VPNSID是否一致。如果不一致,表明该报文是由其他数据中心路由节点来处理的,此时,则将该报文转发至其他数据中心路由节点来处理。如果一致,表明该报文是由自身来处理,此时,该数据中心路由节点则可以通过下述步骤305和步骤306继续转发该报文。Since any data center routing node in the network may receive the message sent by the CSG, for any data center routing node, when the data center routing node receives the message sent by the CSG, it needs to determine whether the message is Handled by itself. In a specific implementation manner, since the destination address carried in the message is the target proxy VPNSID, the data center routing node can compare whether the target proxy VPNSID carried in the message is consistent with its own configured proxy VPNSID. If not, it indicates that the message is processed by other data center routing nodes. At this time, the message is forwarded to other data center routing nodes for processing. If they are consistent, it indicates that the message is processed by itself. At this time, the data center routing node can continue to forward the message through the following
比如,对于图4所示的转发流程,当数据中心路由节点1接收到该报文时,由于报文携带的代理VPNSID为DE::B100,该代理VPNSID正是自身的代理VPNSID,因此,数据中心路由节点1可以继续通过下述步骤步骤305和步骤306来转发该报文。For example, for the forwarding process shown in Figure 4, when data
当数据中心路由节点2接收到该报文时,由于该报文携带的目标代理VPNSID和自身的代理VPNSID不一致,因此,数据中心路由节点2将该报文继续转发至目标代理VPNSID所指示的数据中心路由节点。When the data center routing node 2 receives the message, because the target proxy VPNSID carried in the message is inconsistent with its own proxy VPNSID, the data center routing node 2 continues to forward the message to the data indicated by the target proxy VPNSID Central routing node.
步骤305:在该报文携带的目标代理VPNSID为该数据中心路由节点的代理VPNSID的情况下,该数据中心路由节点从第二转发表包括的多个VM的VPNSID中选择一个VPNSID,第二转发表包括的多个VM的VPNSID是指与任一数据中心路由节点的代理VPNSID对应的VM的VPNSID。Step 305: In the case that the target proxy VPNSID carried in the message is the proxy VPNSID of the data center routing node, the data center routing node selects a VPNSID from the VPNSIDs of the multiple VMs included in the second forwarding table, and the second forwarding table The VPNSID of multiple VMs included in the announcement refers to the VPNSID of the VM corresponding to the proxy VPNSID of any data center routing node.
由于数据中心路由节点的本地存储有与自身的代理VPNSID对应的第二转发表,且第二转发表中包括与自身的代理VPNSID对应的多个VM的VPNSID,因此,在报文携带的代理VPNSID为任一数据中心路由节点的代理VPNSID的情况下,该数据中心路由节点可以直接通过多路径哈希算法从第二转发表中选择一个VPNSID,以通过下述步骤306转发该报文。Since the data center routing node locally stores a second forwarding table corresponding to its own proxy VPNSID, and the second forwarding table includes VPNSIDs of multiple VMs corresponding to its own proxy VPNSID, the proxy VPNSID carried in the packet If it is the proxy VPNSID of any data center routing node, the data center routing node can directly select a VPNSID from the second forwarding table through the multipath hash algorithm to forward the message through the following
上述多路径哈希算法同样可以为ECMP算法。此时,第二转发表中的各个VM的VPNSID被选择的概率相同,以实现数据中心路由节点将接收到的报文均匀地分担至各个VM。可以理解,在另外的实现方式下,可以采用不同的哈希算法使第二转发表中的各个VM的VPNSID被选择的概率不相同,具体可以根据负载均衡策略确定具体类型的哈希算法。The aforementioned multipath hash algorithm may also be an ECMP algorithm. At this time, the VPNSIDs of the VMs in the second forwarding table have the same probability of being selected, so that the data center routing node evenly distributes the received packets to the VMs. It can be understood that in another implementation manner, different hash algorithms may be used to make the VPNSIDs of the VMs in the second forwarding table have different selection probabilities, and a specific type of hash algorithm may be determined according to a load balancing strategy.
比如,对于图4所示的转发流程,假设数据中心路由节点1的第二转发表中包括两个VPNSID,分别为A8:1::B100和A8:1::B101,因此,数据中心路由节点1可以通过ECMP算法从这两个VPNSID中选择一个。For example, for the forwarding process shown in Figure 4, it is assumed that the second forwarding table of data
步骤306:该数据中心路由节点将选择的VPNSID作为目的地址转发该报文。Step 306: The data center routing node forwards the message with the selected VPNSID as the destination address.
由于该报文最终时需要由VM来处理的,因此,该数据中心路由节点在从第二转发表中选择一个VPNSID之后,便可将选择的VPNSID作为目的地址转发报文,以使选择的VPNSID所指示的VM来处理该报文。Since the message needs to be processed by the VM in the end, after the data center routing node selects a VPNSID from the second forwarding table, it can use the selected VPNSID as the destination address to forward the message, so that the selected VPNSID The indicated VM processes the packet.
比如,对于图4所示的转发流程,如果数据中心路由节点1从第二转发表中选择的VPNSID为A8:1::B100,此时如图4所示,数据中心路由节点1可以将A8:1::B100作为报文的目的地址(图4中将目的地址标记为DA)进行转发。如果数据中心路由节点1从第二转发表中选择的VPNSID为A8:1::B101,此时如图4所示,数据中心路由节点1可以将A8:1::B101作为报文的目的地址进行转发。需要说明的是,图4中标号为②的两个步骤用于说明前述过程,且标号为②的两个步骤是或者的关系。For example, for the forwarding process shown in Figure 4, if the VPNSID selected by data
此外,由于各个VM是部署在VRF上的,因此,当数据中心路由节点将选择的VPNSID作为目的地址转发该报文时,是由部署该选择的VPNSID所指示的VM的VRF先接收该报文,然后将该报文转发至该选择的VPNSID所指示的VM。如图4中标号为③的步骤用于说明前述过程。In addition, since each VM is deployed on a VRF, when the data center routing node forwards the message with the selected VPNSID as the destination address, the VRF of the VM indicated by the selected VPNSID will first receive the message , and then forward the packet to the VM indicated by the selected VPNSID. The step marked ③ in Fig. 4 is used to illustrate the aforementioned process.
在图3所示的转发报文的过程中,需要在CSG上配置第一转发表,在各个数据中心路由节点中配置第二转发表,第一转发表和第二转发表的具体功能已在上述实施例进行了解释说明,接下来对第一转发表和第二转发表的配置过程进行解释说明。In the process of forwarding packets shown in Figure 3, it is necessary to configure the first forwarding table on the CSG, and configure the second forwarding table in each data center routing node. The specific functions of the first forwarding table and the second forwarding table have been described in The above embodiment has been explained, and the configuration process of the first forwarding table and the second forwarding table will be explained next.
图5是本申请实施例提供的一种配置第一转发表和第二转发表的方法流程图。如图5所示,该方法包括如下几个步骤:Fig. 5 is a flow chart of a method for configuring a first forwarding table and a second forwarding table provided by an embodiment of the present application. As shown in Figure 5, the method includes the following steps:
步骤501:对于任一VRF,该VRF获取为该VRF连接的多个VM中任一VM配置的VPNSID。Step 501: For any VRF, the VRF obtains the VPNSID configured for any one of the multiple VMs connected to the VRF.
其中,为该VRF连接的多个VM中任一VM配置的VPNSID可以由网络控制器来配置,也可以通过管理人员在VRF上直接配置,本申请对此不做具体限定。如果是网络控制器来配置VPNSID,则网络控制器在配置该VRF连接的多个VM中任一VM的VPNSID之后,将配置VPNSID发布给该VRF,以使该VRF获取到为该VRF连接的多个VM中任一VM配置的VPNSID。Wherein, the VPNSID configured for any one of the multiple VMs connected to the VRF may be configured by the network controller, or may be directly configured on the VRF by a manager, which is not specifically limited in this application. If the VPNSID is configured by the network controller, after configuring the VPNSID of any one of the multiple VMs connected to the VRF, the network controller will issue the configured VPNSID to the VRF so that the VRF can obtain the VPNSID of the multiple VMs connected to the VRF. The VPNSID configured for any one of the VMs.
在一种具体的实现方式中,网络控制器或管理人员根据该VRF的定位标识(Locator)为连接的各个VM配置VPNSID。比如,对于图4所示的通信网络,VRF1的定位标识为A8:1::/64,如图4所示,网络控制器或管理人员可以为VRF1连接的两个VM分别配置两个VPNSID,其中,针对图4中从上到下第一个VM配置的VPNSID为A8:1::B100,针对从上到下第二个VM配置的VPNSID为A8:1::B101。In a specific implementation manner, the network controller or the administrator configures the VPNSID for each connected VM according to the locator identifier (Locator) of the VRF. For example, for the communication network shown in Figure 4, the location identifier of VRF1 is A8:1::/64, as shown in Figure 4, the network controller or administrator can configure two VPNSIDs for the two VMs connected to VRF1 respectively, Wherein, the VPNSID configured for the first VM from top to bottom in FIG. 4 is A8:1::B100, and the VPNSID configured for the second VM from top to bottom is A8:1::B101.
步骤502:对于任一数据中心路由节点,该数据中心路由节点获取为该数据中心路由节点配置的代理VPNSID。Step 502: For any data center routing node, the data center routing node obtains the proxy VPNSID configured for the data center routing node.
为该数据中心路由节点上配置的该数据中心路由节点的代理VPNSID可以由网络控制器来配置,也可以由管理人员在数据中心路由节点上配置,本申请对此不做具体限定。如果是网络控制器来配置代理VPNSID,则网络控制器在配置该数据中心路由节点的代理VPNSID之后,将配置代理VPNSID发布给该数据中心路由节点,以使该数据中心路由节点获取到为该数据中心路由节点配置的代理VPNSID。The proxy VPNSID of the data center routing node configured on the data center routing node can be configured by the network controller, or can be configured on the data center routing node by the administrator, which is not specifically limited in this application. If the network controller configures the proxy VPNSID, the network controller will issue the configuration proxy VPNSID to the data center routing node after configuring the proxy VPNSID of the data center routing node, so that the data center routing node can obtain the data Proxy VPNSID configured by the central routing node.
在一种具体的实现方式中,网络控制器或管理人员根据该数据中心路由节点的定位标识(Locator)为该数据中心路由节点配置代理VPNSID。比如,对于图4所示的通信网络,数据中心路由节点1的定位标识为DE::/64,如图4所示,网络控制器或管理人员可以为数据中心路由节点1配置一个代理VPNSID,为DE::B100。按照前述同样的方式,如图4所示,基于数据中心路由节点2的定位标识DF::/64为数据中心路由节点2配置的代理VPNSID为DF::B100。In a specific implementation manner, the network controller or the administrator configures the proxy VPNSID for the data center routing node according to the location identifier (Locator) of the data center routing node. For example, for the communication network shown in Figure 4, the location identifier of data
步骤503:CSG获取与用于执行目标VNF的多个VM的VPNSID对应的代理VPNSID,将获取的代理VPNSID添加至第一转发表中。Step 503: The CSG acquires proxy VPNSIDs corresponding to the VPNSIDs of the multiple VMs used to execute the target VNF, and adds the acquired proxy VPNSIDs to the first forwarding table.
在本申请实施中,CSG可以通过下述两种具体的实现方式来获取与用于执行目标VNF的多个VM的VPNSID对应的代理VPNSID:In the implementation of this application, the CSG can obtain the proxy VPNSID corresponding to the VPNSID of multiple VMs used to execute the target VNF through the following two specific implementation methods:
第一种实现方式:对于任一VRF,该VRF获取该VRF连接的多个VM中任一VM的VPNSID对应配置的多个代理VPNSID。该VRF向CSG发布第一通告消息,第一通告消息携带该VRF连接的多个VM中任一VM的VPNSID对应的多个代理VPNSID。CSG接收该VRF发送的第一通告消息。CSG根据各个VRF发送的第一通告消息便可获取到多个VM的VPNSID对应的代理VPNSID。A first implementation manner: For any VRF, the VRF obtains multiple proxy VPNSIDs configured corresponding to the VPNSID of any one of the multiple VMs connected to the VRF. The VRF issues a first notification message to the CSG, where the first notification message carries multiple proxy VPNSIDs corresponding to the VPNSID of any one of the multiple VMs connected to the VRF. The CSG receives the first notification message sent by the VRF. The CSG can acquire the proxy VPNSIDs corresponding to the VPNSIDs of the multiple VMs according to the first notification message sent by each VRF.
其中,对于任一VM,为该VM的VPNSID对应配置的多个代理VPNSID可以由网络控制器来配置,也可以通过管理人员在VRF上直接配置,本申请对此不做具体限定。如果是网络控制器来配置该VPNSID对应的多个代理VPNSID,则网络控制器在配置完该VM的VPNSID对应的多个代理VPNSID之后,将配置的该VM的VPNSID对应的多个代理VPNSID发布给该VRF,以使该VRF获取到为该VM的VPNSID对应配置的多个代理VPNSID。Wherein, for any VM, multiple proxy VPNSIDs configured corresponding to the VPNSID of the VM may be configured by the network controller, or may be directly configured on the VRF by a manager, which is not specifically limited in this application. If the network controller configures multiple proxy VPNSIDs corresponding to the VPNSID, after the network controller configures multiple proxy VPNSIDs corresponding to the VPNSID of the VM, it issues the multiple proxy VPNSIDs corresponding to the VPNSID of the configured VM to The VRF enables the VRF to obtain a plurality of proxy VPNSIDs correspondingly configured for the VPNSID of the VM.
如图2所示,VRF与CSG位于不同的域内,因此上述任一VRF向CSG发布第一通告消息可以是通过MP-BGP/EVPN(一种基于边界网关协议(Border Gateway Protocol,BGP)和以太网虚拟私有网络(Ethernet Virtual Private Network,EVPN)的多链路协议(MultilinkProtocol),MP))来发布的。As shown in Figure 2, the VRF and the CSG are located in different domains, so any one of the VRFs above can issue the first notification message to the CSG through MP-BGP/EVPN (a Border Gateway Protocol (Border Gateway Protocol, BGP) and Ethernet-based Network virtual private network (Ethernet Virtual Private Network, EVPN) multilink protocol (MultilinkProtocol), MP)) to release.
在上述第一种实现方式中,VRF是主动向CSG上报该VRF连接的多个VM中任一VM的VPNSID对应配置的多个代理VPNSID的。In the above first implementation manner, the VRF actively reports to the CSG the multiple proxy VPNSIDs configured corresponding to the VPNSID of any one of the multiple VMs connected to the VRF.
第二种实现方式:通信网络中的RR本地预先存储有VPNSID和代理VPNSID之间的对应关系,该对应关系包括多个VM的VPNSID和与每个VM的VPNSID对应的多个代理VPNSID,该对应关系的构建过程将在下述详细说明,在此先不展开阐述。对于任一VRF,RR获取该VRF连接的各个VM中每个VM的VPNSID,对于获取的任一VM的VPNSID,RR基于VPNSID和代理VPNSID之间的对应关系,便可确定与该VM的VPNSID对应的多个代理VPNSID。RR在获取到各个VRF连接的各个VM中每个VM的VPNSID对应的多个代理VPNSID之后,便可向CSG发送第二通告消息,第二通告消息携带与多个VRF中每个VRF连接的各个VM中每个VM的VPNSID对应的多个代理VPNSID。CSG接收RR发送的第二通告消息,CSG根据第二通告消息便可获取到这多个代理VPNSID。The second implementation mode: the RR in the communication network pre-stores the correspondence between VPNSID and proxy VPNSID in advance, the correspondence includes VPNSIDs of multiple VMs and multiple proxy VPNSIDs corresponding to the VPNSID of each VM, the correspondence The construction process of the relationship will be described in detail below, and will not be elaborated here. For any VRF, the RR obtains the VPNSID of each VM in each VM connected to the VRF. For the obtained VPNSID of any VM, the RR can determine the VPNSID corresponding to the VM based on the correspondence between the VPNSID and the proxy VPNSID. Multiple proxy VPNSIDs. After the RR acquires multiple proxy VPNSIDs corresponding to the VPNSID of each VM in each VM connected to each VRF, the RR can send a second notification message to the CSG. Multiple proxy VPNSIDs corresponding to the VPNSID of each VM in the VM. The CSG receives the second notification message sent by the RR, and the CSG can acquire the multiple proxy VPNSIDs according to the second notification message.
上述该RR具体为图4中的RR2。此外,上述RR向CSG发送第二通告消息也是通过MP-BGP/EVPN来发布的。The above-mentioned RR is specifically RR2 in FIG. 4 . In addition, the above-mentioned RR sending the second advertisement message to the CSG is also advertised through MP-BGP/EVPN.
另外,对于任一VRF,RR获取该VRF连接的各个VM中每个VM的VPNSID的实现方式可以为:RR向该VRF发送VPNSID获取请求,该VPNSID获取请求用于指示该VRF将该VRF连接的各个VM中每个VM的VPNSID发送至RR。也即是,在第二种实现方式中,VRF是被动来向RR发送该VRF连接的各个VM的VPNSID的。In addition, for any VRF, the way for the RR to obtain the VPNSID of each of the VMs connected to the VRF may be as follows: the RR sends a VPNSID obtaining request to the VRF, and the VPNSID obtaining request is used to instruct the VRF to connect to the VRF. The VPNSID of each of the VMs is sent to the RR. That is, in the second implementation manner, the VRF passively sends the VPNSID of each VM connected to the VRF to the RR.
另外,在第二种实现方式中,RR本地存储的VPNSID和代理VPNSID之间的对应关系可以由管理人员在RR上直接配置。在一种具体的实现方式中,管理人员可以通过管理系统或命令行在RR上配置该VRF连接的多个VM中任一VM的VPNSID对应的多个代理VPNSID,以使RR获取到该VRF连接的多个VM中任一VM的VPNSID对应的多个代理VPNSID,从而构建VPNSID和代理VPNSID之间的对应关系。In addition, in the second implementation manner, the corresponding relationship between the VPNSID stored locally in the RR and the proxy VPNSID can be directly configured on the RR by the administrator. In a specific implementation, the administrator can configure multiple proxy VPNSIDs corresponding to the VPNSID of any one of the multiple VMs connected to the VRF on the RR through the management system or the command line, so that the RR can obtain the VRF connection Multiple proxy VPNSIDs corresponding to the VPNSID of any one of the multiple VMs, so as to establish a correspondence between the VPNSID and the proxy VPNSID.
步骤504:对于任一数据中心路由节点,该数据中心路由节点获取与该一数据中心路由节点的代理VPNSID对应的多个VM的VPNSID,该数据中心路由节点将获取的多个VM的VPNSID添加至与自身的代理VPNSID对应的第二转发表中。Step 504: For any data center routing node, the data center routing node obtains VPNSIDs of multiple VMs corresponding to the proxy VPNSID of the data center routing node, and the data center routing node adds the obtained VPNSIDs of multiple VMs to In the second forwarding table corresponding to its own proxy VPNSID.
其中,数据中心路由节点可以通过以下两种具体的实现方式来获取与该数据中心路由节点的代理VPNSID对应的多个VPNSID:Among them, the data center routing node can obtain multiple VPNSIDs corresponding to the proxy VPNSID of the data center routing node through the following two specific implementation methods:
第一种实现方式:对于任一VRF,该VRF获取任一VRF连接的多个VM中任一VM的VPNSID对应的多个代理VPNSID。该VRF向各个数据中心路由节点发布第三通告消息,第三通告消息携带该VRF连接的多个VM中任一VM的VPNSID对应的多个代理VPNSID。对于任一数据中心路由节点,该数据中心路由节点接收该VRF发送的第三通告消息,并根据该数据中心路由节点的代理VPNSID,从第三通告消息中获取与该数据中心路由节点的代理VPNSID对应的VM的VPNSID。当该数据中心路由节点接收到全部的VRF发布的第三通告消息之后,便可根据所有的第三通告消息确定出与该数据中心路由节点的代理VPNSID对应的所有VM的VPNSID。A first implementation manner: For any VRF, the VRF acquires multiple proxy VPNSIDs corresponding to the VPNSID of any VM among the multiple VMs connected to any VRF. The VRF issues a third notification message to each data center routing node, where the third notification message carries multiple proxy VPNSIDs corresponding to the VPNSID of any one of the multiple VMs connected to the VRF. For any data center routing node, the data center routing node receives the third notification message sent by the VRF, and according to the proxy VPNSID of the data center routing node, obtains the proxy VPNSID corresponding to the data center routing node from the third notification message The VPNSID of the corresponding VM. After the data center routing node receives all the third notification messages issued by the VRF, it can determine the VPNSIDs of all VMs corresponding to the proxy VPNSID of the data center routing node according to all the third notification messages.
其中,VRF获取任一VRF连接的多个VM中任一VM的VPNSID对应的多个代理VPNSID可以参考步骤503中第一种实现方式,在此不再详细说明。Wherein, the VRF acquires multiple proxy VPNSIDs corresponding to the VPNSID of any one of the multiple VMs connected to any VRF can refer to the first implementation manner in
基于图2所示的通信网络可知,VRF和数据中心路由节点位于同一域内,因此,上述该VRF向各个数据中心路由节点发布第三通告消息是通过内部网络协议(InteriorGateway Protocol,IGP)发布的。Based on the communication network shown in FIG. 2, it can be seen that the VRF and the data center routing node are located in the same domain, therefore, the aforementioned VRF issues the third notification message to each data center routing node through an interior network protocol (InteriorGateway Protocol, IGP).
在上述第一种实现方式中,VRF是主动向数据中心路由节点上报该VRF连接的多个VM中任一VM的VPNSID对应配置的多个代理VPNSID的。In the above first implementation manner, the VRF actively reports multiple proxy VPNSIDs configured corresponding to the VPNSID of any one of the multiple VMs connected to the VRF to the data center routing node.
第二种实现方式:对于任一数据中心路由节点,该数据中心路由节点的代理VPNSID对应的多个VM的VPNSID由管理人员在该数据中心路由节点上配置。比如,管理人员可以通过命令行或管理系统直接在该数据中心路由节点上配置该数据中心路由节点的代理VPNSID对应的多个VM的VPNSID。The second implementation manner: for any data center routing node, the VPNSIDs of multiple VMs corresponding to the proxy VPNSID of the data center routing node are configured by the administrator on the data center routing node. For example, the administrator can directly configure VPNSIDs of multiple VMs corresponding to the proxy VPNSID of the data center routing node on the data center routing node through a command line or a management system.
上述步骤503和步骤504的两种实现方式可以组合使用,当通过步骤503中的第一种实现方式和步骤504的第一种实现方式来配置第一转发表和第二转发表时,这种配置方式还可以称为全动态配置方式。在全动态配置方式中,均是由VRF主动上报VM的VPNSID和对应的代理VPNSID,以使CSG和数据中心路由节点能够获取到VM的VPNSID和对应的代理VPNSID,进而配置各自的转发表。The above two implementations of
当通过步骤503中的第一种实现方式和步骤504的第二种实现方式来配置第一转发表和第二转发表时,这种配置方式还可以称为半动态配置方式。在半动态配置方式中,VRF主动向CSG上报VM的VPNSID和对应的代理VPNSID,以使CSG配置第一转发表,由管理人员直接在数据中心路由节点配置代理VPNSID和对应的VM的VPNSID,以使数据中心路由节点生成第二转发表。When the first forwarding table and the second forwarding table are configured through the first implementation manner in
当通过步骤503中的第二种实现方式和步骤504的第二种实现方式来配置第一转发表和第二转发表时,这种配置方式还可以称为静态配置方式。在静态配置方式中,VRF不主动上报任何信息,因此需要RR从VRF上获取该VRF连接的各个VM的VPNSID,然后根据本地存储的VPNSID和代理VPNSID之间的对应关系,确定各个VM的VPNSID对应的代理VPNSID,进而通告给CSG,由CSG来生成第一转发表。由于VRF不主动上报任何信息,因此,数据中心路由节点只能通过管理员来人工配置与自身的代理VPNSID对应的VM的VPNSID。When the first forwarding table and the second forwarding table are configured through the second implementation manner in
通过上述不同的实现方式,提高了配置第一转发表和第二转发表的灵活性。Through the above different implementation manners, the flexibility of configuring the first forwarding table and the second forwarding table is improved.
图6是本申请实施例提供的一种网络设备的结构示意图,该网络设备600可以为上述图1-5所示实施例中通信网络中任一节点,比如可以为CSG、数据中心路由节点、VRF等。该网络设备600可以为交换机,路由器或者其他转发报文的网络设备。在该实施例中,该网络设备600包括:主控板610、接口板630和接口板640。多个接口板的情况下可以包括交换网板(图中未示出),该交换网板用于完成各接口板(接口板也称为线卡或业务板)之间的数据交换。FIG. 6 is a schematic structural diagram of a network device provided by an embodiment of the present application. The network device 600 can be any node in the communication network in the embodiment shown in FIGS. 1-5 above, such as a CSG, a data center routing node, VRF, etc. The network device 600 may be a switch, a router or other network devices for forwarding packets. In this embodiment, the network device 600 includes: a main control board 610 , an interface board 630 and an interface board 640 . In the case of multiple interface boards, a switching fabric board (not shown in the figure) may be included, and the switching fabric board is used to complete data exchange between interface boards (interface boards are also called line cards or service boards).
主控板610用于完成系统管理、设备维护、协议处理等功能。接口板630和640用于提供各种业务接口(例如,POS接口、GE接口、ATM接口等),并实现报文的转发。主控板610上主要有3类功能单元:系统管理控制单元、系统时钟单元和系统维护单元。主控板610、接口板630以及接口板640之间通过系统总线与系统背板相连实现互通。接口板630上包括一个或多个处理器631。处理器631用于对接口板进行控制管理并与主控板上的中央处理器进行通信,以及用于报文的转发处理。接口板630上的存储器632用于存储转发表项,处理器631通过查找存储器632中存储的转发表项进行报文的转发。The main control board 610 is used to implement functions such as system management, device maintenance, and protocol processing. The interface boards 630 and 640 are used to provide various service interfaces (for example, POS interface, GE interface, ATM interface, etc.), and implement packet forwarding. There are mainly three types of functional units on the main control board 610: a system management control unit, a system clock unit and a system maintenance unit. The main control board 610, the interface board 630, and the interface board 640 are connected to the system backplane through a system bus to realize intercommunication. The interface board 630 includes one or
所述接口板630包括一个或多个网络接口633用于接收其他设备发送的报文,并根据处理器631的指示发送报文。具体实现过程可以参考图3所示实施例中的301、303、304、306步骤。这里不再逐一赘述。The interface board 630 includes one or
所述处理器631用于执行图1-5所示实施例中所描述的通信网络中的任一节点的处理步骤和功能,具体可以参看上述图3所示实施例中的302(作为CSG时的处理)或305步骤(作为数据中心路由节点时的处理),图5所示实施例中的501步骤(作为VRF时的处理),502步骤(作为数据中心路由节点时的处理),503步骤(作为CSG时的处理)以及步骤504步骤(作为数据中心路由节点时的处理)。这里不再逐一赘述。The
可以理解,如图6所示,本实施例中包括多个接口板,采用分布式的转发机制,这种机制下,接口板640上的操作与所述接口板630的操作基本相似,为了简洁,不再赘述。此外,可以理解的是,图6中的接口板630中的处理器631和/或641可以是专用硬件或芯片,如网络处理器或者专用集成电路(application specific integrated circuit)来实现上述功能,这种实现方式即为通常所说的转发面采用专用硬件或芯片处理的方式。采用网络处理器这一专用硬件或芯片的具体实现方式可以参考下面图7所示的实施例。在另外的实施方式中,所述处理器631和/或641也可以采用通用的处理器,如通用的CPU来实现以上描述的功能。It can be understood that, as shown in FIG. 6, multiple interface boards are included in this embodiment, and a distributed forwarding mechanism is adopted. Under this mechanism, the operations on the interface board 640 are basically similar to the operations on the interface board 630. For simplicity ,No longer. In addition, it can be understood that the
此外,需要说明的是,主控板可能有一块或多块,有多块的时候可以包括主用主控板和备用主控板。接口板可能有一块或多块,该设备的数据处理能力越强,提供的接口板越多。多块接口板的情况下,该多块接口板之间可以通过一块或多块交换网板通信,有多块的时候可以共同实现负荷分担冗余备份。在集中式转发架构下,该设备可以不需要交换网板,接口板承担整个系统的业务数据的处理功能。在分布式转发架构下,该设备包括多块接口板,可以通过交换网板实现多块接口板之间的数据交换,提供大容量的数据交换和处理能力。所以,分布式架构的网络设备的数据接入和处理能力要大于集中式架构的设备。具体采用哪种架构,取决于具体的组网部署场景,此处不做任何限定。In addition, it should be noted that there may be one or more main control boards, and when there are multiple main control boards, the main main control board and the standby main control board may be included. There may be one or more interface boards. The stronger the data processing capability of the device, the more interface boards it provides. In the case of multiple interface boards, the multiple interface boards can communicate through one or more switching fabric boards, and when there are multiple interface boards, they can jointly implement load sharing and redundant backup. Under the centralized forwarding architecture, the device does not need a switching network board, and the interface board undertakes the processing function of the service data of the entire system. Under the distributed forwarding architecture, the device includes multiple interface boards, which can realize data exchange between multiple interface boards through the switching network board, and provide large-capacity data exchange and processing capabilities. Therefore, the data access and processing capabilities of network devices with a distributed architecture are greater than those with a centralized architecture. Which architecture to use depends on the specific networking deployment scenario, and there is no limitation here.
具体的实施例中,存储器632可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其它类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其它类型的动态存储设备,也可以是电可擦可编程只读存储器(electrically erasable programmable read-only memory,EEPROM)、只读光盘(compact disc read-only Memory,CD-ROM)或其它光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘或者其它磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其它介质,但不限于此。存储器632可以是独立存在,通过通信总线与处理器631相连接。存储器632也可以和处理器631集成在一起。In a specific embodiment, the
其中,存储器632用于存储程序代码,并由处理器631来控制执行,以执行上述实施例所提供的路径探测方法。处理器631用于执行存储器632中存储的程序代码。程序代码中可以包括一个或多个软件模块。这一个或多个软件模块可以为下面图9、图10任一实施例中提供的软件模块。Wherein, the
具体实施例中,所述网络接口633,可以是使用任何收发器一类的装置,用于与其它设备或通信网络通信,如以太网,无线接入网(radio access network,RAN),无线局域网(wireless local area networks,WLAN)等。In a specific embodiment, the
图7是本申请实施例提供的另一种网络设备的结构示意图,该网络设备700可以为上述图1-5所示实施例中的通信网络中任一节点,比如可以为CSG、数据中心路由节点、VRF等。该网络设备700可以为交换机,路由器或者其他转发报文的网络设备。在该实施例中,该网络设备700包括:主控板710、接口板730、交换网板720和接口板740。主控板710用于完成系统管理、设备维护、协议处理等功能。交换网板720用于完成各接口板(接口板也称为线卡或业务板)之间的数据交换。接口板730和740用于提供各种业务接口(例如,POS接口、GE接口、ATM接口等),并实现数据包的转发。控制平面由主控板710的各管控单元及接口板730和740上的管控单元等构成。主控板710上主要有3类功能单元:系统管理控制单元、系统时钟单元和系统维护单元。主控板710、接口板730和740,以及交换网板720之间通过系统总线与系统背板相连实现互通。接口板730上的中央处理器731用于对接口板进行控制管理并与主控板上的中央处理器进行通信。接口板730上的转发表项存储器734用于存储转发表项,网络处理器732通过查找转发表项存储器734中存储的转发表项进行报文的转发。FIG. 7 is a schematic structural diagram of another network device provided by the embodiment of the present application. The network device 700 can be any node in the communication network in the embodiment shown in FIGS. 1-5 above, such as a CSG or a data center router. Nodes, VRFs, etc. The network device 700 may be a switch, a router or other network devices for forwarding packets. In this embodiment, the network device 700 includes: a main control board 710 , an interface board 730 , a switching
所述接口板730的物理接口卡733用于接收报文。具体实现过程可以参考图3所示实施例中的301、304步骤。这里不再逐一赘述。The physical interface card 733 of the interface board 730 is used to receive packets. For a specific implementation process, reference may be made to
所述网络处理器732用于执行图1-5所示实施例中所描述的任一节点的处理步骤和功能,具体可以参看上述图3所示实施例中的302(作为CSG时的处理)或305步骤(作为数据中心路由节点时的处理),图5所示实施例中的501步骤(作为VRF时的处理),502步骤(作为数据中心路由节点时的处理),503步骤(作为CSG时的处理)以及步骤504步骤(作为数据中心路由节点时的处理)。这里不再逐一赘述。The network processor 732 is used to execute the processing steps and functions of any node described in the embodiment shown in Figures 1-5, for details, please refer to 302 (processing when serving as a CSG) in the embodiment shown in Figure 3 above Or step 305 (processing as a data center routing node), step 501 (processing as a VRF) in the embodiment shown in Figure 5, step 502 (processing as a routing node in a data center), step 503 (processing as a CSG processing) and step 504 (processing as a data center routing node). I won't repeat them one by one here.
然后,处理之后报文通过所述物理接口卡733向其他设备发送。具体实现过程可以参考图3所示实施例中的303、306步骤。这里不再逐一赘述。Then, the processed message is sent to other devices through the physical interface card 733 . For a specific implementation process, reference may be made to
可以理解,如图7所示,本实施例中包括多个接口板,采用分布式的转发机制,这种机制下,接口板740上的操作与所述接口板730的操作基本相似,为了简洁,不再赘述。此外,如上所述,图7中的网络处理器732以及742的功能可以用专用集成电路(applicationspecific integrated circuit)替换来实现。It can be understood that, as shown in FIG. 7, multiple interface boards are included in this embodiment, and a distributed forwarding mechanism is adopted. Under this mechanism, the operations on the interface board 740 are basically similar to the operations on the interface board 730. For the sake of brevity, ,No longer. In addition, as mentioned above, the functions of the network processors 732 and 742 in FIG. 7 can be replaced by application specific integrated circuits.
此外,需要说明的是,主控板可能有一块或多块,有多块的时候可以包括主用主控板和备用主控板。接口板可能有一块或多块,该设备的数据处理能力越强,提供的接口板越多。接口板上的物理接口卡也可以有一块或多块。交换网板可能没有,也可能有一块或多块,有多块的时候可以共同实现负荷分担冗余备份。在集中式转发架构下,该设备可以不需要交换网板,接口板承担整个系统的业务数据的处理功能。在分布式转发架构下,该设备可以有至少一块交换网板,通过交换网板实现多块接口板之间的数据交换,提供大容量的数据交换和处理能力。所以,分布式架构的网络设备的数据接入和处理能力要大于集中式架构的设备。具体采用哪种架构,取决于具体的组网部署场景,此处不做任何限定。In addition, it should be noted that there may be one or more main control boards, and when there are multiple main control boards, the main main control board and the standby main control board may be included. There may be one or more interface boards. The stronger the data processing capability of the device, the more interface boards it provides. There may also be one or more physical interface cards on the interface board. There may be no SFU, or there may be one or more SFUs. When there are multiple SFUs, they can jointly implement load sharing and redundant backup. Under the centralized forwarding architecture, the device does not need a switching network board, and the interface board undertakes the processing function of the service data of the entire system. Under the distributed forwarding architecture, the device can have at least one SFU, through which data exchange between multiple interface boards can be realized, and large-capacity data exchange and processing capabilities can be provided. Therefore, the data access and processing capabilities of network devices with a distributed architecture are greater than those with a centralized architecture. Which architecture to use depends on the specific networking deployment scenario, and there is no limitation here.
图8是本申请实施例提供的一种上述图7所示网络设备中的接口板800的结构示意图,该接口板800所在的网络设备可以为上述图1-5所示实施例中通信网络中任一节点,比如可以为CSG、数据中心路由节点、VRF等。该接口板800可以包括物理接口卡(physicalinterface card,PIC)830,网络处理器(network processor,NP)810,以及流量管理模块(traffic management)820。FIG. 8 is a schematic structural diagram of an
其中,PIC:物理接口卡(physical interface card),用于实现物理层的对接功能,原始的流量由此进入网络设备的接口板,以及处理后的报文从该PIC卡发出。Among them, PIC: physical interface card (physical interface card), used to realize the docking function of the physical layer, the original traffic enters the interface board of the network device, and the processed message is sent from the PIC card.
网络处理器NP 810用于实现报文的转发处理。具体而言,上行报文的处理包括:报文入接口的处理,转发表查找(如上述实施例中涉及第一转发表或第二转发表的相关内容);下行报文的处理:转发表查找(如上述实施例中涉及第一转发表或第二转发表的相关内容)等等。The
流量管理TM 820,用于实现QoS、线速转发、大容量缓存,队列管理等功能。具体而言,上行流量管理包括:上行Qos处理(如拥塞管理和队列调度等)以及切片处理;下行流量管理包括:组包处理,多播复制,以及下行Qos处理(如拥塞管理和队列调度等)。
可以理解的是,若网络设备有多个接口板800的情况下,多个接口板800之间可以通过交换网840通信。It can be understood that, if the network device has
需要说明的是,图8仅示出了NP内部的示意性处理流程或模块,具体实现中各模块的处理顺序不限于此,而且实际应用中可以根据需要部署其他模块或者处理流程。本申请实施例对比不做限制。It should be noted that FIG. 8 only shows a schematic processing flow or modules inside the NP, and the processing order of each module in specific implementation is not limited thereto, and other modules or processing flows can be deployed as required in actual applications. The comparison of the examples in this application is not limited.
图9是本申请实施例提供的一种CSG的结构示意图。其中,该通信网络还包括多个数据中心路由节点、多个VRF、以及用于执行目标VNF的多个VM,这多个VRF中每个VRF上连接有前述多个VM中的一个或多个。前述多个VM中每个VM配置有一个VPNSID,前述多个数据中心路由节点中每个数据中心路由节点配置有一个代理VPNSID。FIG. 9 is a schematic structural diagram of a CSG provided by an embodiment of the present application. Wherein, the communication network further includes multiple data center routing nodes, multiple VRFs, and multiple VMs for executing the target VNF, and each of the multiple VRFs is connected to one or more of the aforementioned multiple VMs . Each of the aforementioned multiple VMs is configured with a VPNSID, and each of the aforementioned multiple data center routing nodes is configured with a proxy VPNSID.
如图9所示,该CSG 900包括:As shown in Figure 9, the
接收模块901,用于接收报文,该报文中携带目标VNF的标识。具体实现方式参考图3实施例中的步骤301。The receiving
选择模块902,用于从第一转发表包括的多个代理VPNSID中选择一个代理VPNSID作为目标代理VPNSID。具体实现方式参考图3实施例中的步骤302。The
转发模块903,用于将目标代理VPNSID作为目的地址转发报文,以将报文转发至目标代理VPNSID所指示的数据中心路由节点,用于指示目标代理VPNSID所指示的数据中心路由节点根据第二转发表包括的多个VPNSID转发报文。其中,第一转发表为目标VNF的标识对应的转发表,第一转发表包括的多个代理VPNSID是指与多个VM的VPNSID对应配置的代理VPNSID。第二转发表包括的多个VPNSID是指多个VM的VPNSID中与目标代理VPNSID对应的VM的VPNSID。具体实现方式参考图3实施例中的步骤303。The
可选地,CSG还包括添加模块,用于获取与多个VM的VPNSID对应的代理VPNSID,将获取的代理VPNSID添加至第一转发表中。Optionally, the CSG further includes an adding module, configured to obtain proxy VPNSIDs corresponding to the VPNSIDs of multiple VMs, and add the obtained proxy VPNSIDs to the first forwarding table.
可选地,上述添加模块,具体用于:接收多个VRF中任一VRF发送的第一通告消息,该第一通告消息携带该任一VRF连接的各个VM中每个VM的VPNSID对应的多个代理VPNSID。Optionally, the above-mentioned adding module is specifically configured to: receive a first notification message sent by any one of the multiple VRFs, where the first notification message carries the multiple proxy VPNSID.
可选地,该通信网络还包括RR。此时,上述添加模块,具体用于:接收RR发送的第二通告消息,第二通告消息携带与多个VM的VPNSID对应的代理VPNSID。Optionally, the communications network further includes RRs. At this time, the above adding module is specifically configured to: receive a second notification message sent by the RR, where the second notification message carries proxy VPNSIDs corresponding to VPNSIDs of multiple VMs.
第五方面提供的CSG包括的各个模块的技术效果可以参考第一方面提供的报文转发方法,在此不再详细阐述。For the technical effect of each module included in the CSG provided in the fifth aspect, reference may be made to the packet forwarding method provided in the first aspect, and will not be described in detail here.
在本申请实施例中,为了避免受到CSG的最大负载分担路数的限制,可以为每个数据中心路由节点配置一个代理VPNSID。针对任一VM的VPNSID,该VM的VPNSID对应配置多个代理VPNSID。如此,在CSG的本地转发表中可以采用代理VPNSID来替代原来的VM的VPNSID,以使CSG在负载分担时只需负责将负载分担至各个数据中心路由节点即可,由各个数据中心路由节点来完成实际的负载分担。而数据中心路由节点的最大负载分担路数可以高达128,因此,通过本申请实施例提供的报文转发方法,相当于增大了CSG最终进行负载分担的路数,从而提高了负载分担的效率。In the embodiment of the present application, in order to avoid being limited by the maximum number of load sharing routes of the CSG, a proxy VPNSID may be configured for each data center routing node. For the VPNSID of any VM, configure multiple proxy VPNSIDs corresponding to the VPNSID of the VM. In this way, the proxy VPNSID can be used in the local forwarding table of the CSG to replace the VPNSID of the original VM, so that the CSG only needs to be responsible for sharing the load to each data center routing node during load sharing, and each data center routing node Complete the actual load sharing. However, the maximum number of load sharing paths of the data center routing nodes can be as high as 128. Therefore, the message forwarding method provided by the embodiment of the present application is equivalent to increasing the number of paths for CSG to finally perform load sharing, thereby improving the efficiency of load sharing. .
需要说明的是:上述实施例提供的CSG在进行报文转发时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的CSG与报文转发方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that when the CSG provided in the above embodiment performs message forwarding, the division of the above functional modules is used as an example for illustration. In practical applications, the above function allocation can be completed by different functional modules according to needs. The internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the CSG provided in the foregoing embodiments and the packet forwarding method embodiments belong to the same idea, and the specific implementation process thereof is detailed in the method embodiments, and will not be repeated here.
图10是本申请实施例提供的一种通信网络中的多个数据中心路由节点中的任一数据中心路由节点的结构示意图。该通信网络还包括CSG、多个VRF、用于执行目标VNF的多个VM,每个VRF上连接有多个VM中的一个或多个。其中,多个VM中每个VM配置有一个VPNSID,多个数据中心路由节点中每个数据中心路由节点配置有一个代理VPNSID。FIG. 10 is a schematic structural diagram of any data center routing node among multiple data center routing nodes in a communication network provided by an embodiment of the present application. The communication network further includes a CSG, multiple VRFs, and multiple VMs for executing the target VNF, and each VRF is connected to one or more of the multiple VMs. Wherein, each of the multiple VMs is configured with a VPNSID, and each of the multiple data center routing nodes is configured with a proxy VPNSID.
如图10所示,该数据中心路由节点1000包括:As shown in Figure 10, the data center routing node 1000 includes:
接收模块1001,用于接收CSG发送的报文,报文携带目标代理VPNSID。具体实现方式参考图3实施例中的步骤304。The
选择模块1002,用于在报文携带的目标代理VPNSID为该任一数据中心路由节点的代理VPNSID的情况下,从第二转发表包括的多个VM的VPNSID中选择一个VPNSID。具体实现方式参考图3实施例中的步骤305。The
转发模块1003,用于将选择的VPNSID作为目的地址转发报文。其中,第二转发表包括的多个VPNSID是指与该数据中心路由节点的代理VPNSID对应的多个VM的VPNSID。具体实现方式参考图3实施例中的步骤306。A
可选地,该数据中心路由节点还包括:Optionally, the data center routing node also includes:
添加模块,用于获取与该数据中心路由节点的代理VPNSID对应的多个VM的VPNSID,将获取的VM的VPNSID添加至第二转发表中。An adding module, configured to obtain the VPNSIDs of multiple VMs corresponding to the proxy VPNSID of the data center routing node, and add the obtained VPNSIDs of the VMs to the second forwarding table.
可选地,前述获取模块,具体用于:接收多个VRF中任一VRF发送的第三通告消息,第三通告消息携带任一VRF连接的各个VM中每个VM的VPNSID对应的多个代理VPNSID;根据该数据中心路由节点的代理VPNSID,从第三通告消息中获取与该数据中心路由节点的代理VPNSID对应的的VM的VPNSID。Optionally, the aforementioned acquisition module is specifically configured to: receive a third notification message sent by any one of the multiple VRFs, where the third notification message carries multiple agents corresponding to the VPNSID of each VM in each VM connected to any VRF VPNSID: Obtain the VPNSID of the VM corresponding to the proxy VPNSID of the data center routing node from the third notification message according to the proxy VPNSID of the data center routing node.
可选地,该数据中心路由节点的代理VPNSID对应的多个VM的VPNSID由管理人员在该数据中心路由节点上配置。Optionally, the VPNSIDs of multiple VMs corresponding to the proxy VPNSID of the data center routing node are configured on the data center routing node by a manager.
在本申请实施例中,为了避免受到CSG的最大负载分担路数的限制,可以为每个数据中心路由节点配置一个代理VPNSID。针对任一VM的VPNSID,该VM的VPNSID对应配置多个代理VPNSID。如此,在CSG的本地转发表中可以采用代理VPNSID来替代原来的VM的VPNSID,以使CSG在负载分担时只需负责将负载分担至各个数据中心路由节点即可,由各个数据中心路由节点来完成实际的负载分担。而数据中心路由节点的最大负载分担路数可以高达128,因此,通过本申请实施例提供的报文转发方法,相当于增大了CSG最终进行负载分担的路数,从而提高了负载分担的效率。In the embodiment of the present application, in order to avoid being limited by the maximum number of load sharing routes of the CSG, a proxy VPNSID may be configured for each data center routing node. For the VPNSID of any VM, configure multiple proxy VPNSIDs corresponding to the VPNSID of the VM. In this way, the proxy VPNSID can be used in the local forwarding table of the CSG to replace the VPNSID of the original VM, so that the CSG only needs to be responsible for sharing the load to each data center routing node during load sharing, and each data center routing node Complete the actual load sharing. However, the maximum number of load sharing paths of the data center routing nodes can be as high as 128. Therefore, the message forwarding method provided by the embodiment of the present application is equivalent to increasing the number of paths for CSG to finally perform load sharing, thereby improving the efficiency of load sharing. .
需要说明的是:上述实施例提供的数据中心路由节点在进行报文转发时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的数据中心路由节点与报文转发方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that when the data center routing node provided in the above embodiment forwards messages, it only uses the division of the above functional modules as an example. In practical applications, the above functions can be assigned to different functional modules according to needs. Completion means that the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the data center routing node and the message forwarding method embodiment provided by the above embodiment belong to the same idea, and the specific implementation process thereof is detailed in the method embodiment, and will not be repeated here.
此外,本申请实施例还提供了一种通信网络中的多个VRF中的任一VRF,该通信网络还包括CSG、多个数据中心路由节点、用于执行目标VNF的多个VM,多个VRF中每个VRF上连接有多个VM中的一个或多个。其中,多个VM中每个VM配置有一个VPNSID,多个数据中心路由节点中每个数据中心路由节点配置有一个代理VPNSID。In addition, the embodiment of the present application also provides any one of multiple VRFs in a communication network, where the communication network further includes a CSG, multiple data center routing nodes, multiple VMs for executing target VNFs, multiple One or more of the multiple VMs are connected to each VRF in the VRFs. Wherein, each of the multiple VMs is configured with a VPNSID, and each of the multiple data center routing nodes is configured with a proxy VPNSID.
该VRF包括:The VRF includes:
获取模块,用于获取该VRF连接的多个VM中每个VM的VPNSID对应的多个代理VPNSID。An obtaining module, configured to obtain multiple proxy VPNSIDs corresponding to the VPNSID of each of the multiple VMs connected to the VRF.
发布模块,用于向CSG发布第一通告消息,第一通告消息携带该VRF连接的多个VM中每个VM的VPNSID对应的多个代理VPNSID。The issuing module is configured to issue a first notification message to the CSG, where the first notification message carries multiple proxy VPNSIDs corresponding to the VPNSID of each VM among the multiple VMs connected to the VRF.
可选地,发布模块,还用于向多个数据中心路由节点发布第三通告消息,第三通告消息携带该VRF连接的多个VM中每个VM的VPNSID对应的多个代理VPNSID。Optionally, the issuing module is further configured to issue a third notification message to multiple data center routing nodes, where the third notification message carries multiple proxy VPNSIDs corresponding to the VPNSID of each of the multiple VMs connected to the VRF.
在本申请实施例中,VRF可以主动向CSG上报自身连接的各个VM中每个VM的VPNSID对应的多个代理VPNSID,以便于CSG构建第一转发表,提高了CSG构建第一转发表的效率。In this embodiment of the application, the VRF can actively report to the CSG the multiple proxy VPNSIDs corresponding to the VPNSID of each VM in each VM connected to it, so that the CSG can build the first forwarding table, which improves the efficiency of the CSG to build the first forwarding table .
需要说明的是:上述实施例提供的VRF在进行报文转发时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的VRF与报文转发方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that when the VRF provided in the above embodiment performs message forwarding, it only uses the division of the above functional modules as an example for illustration. In practical applications, the above function allocation can be completed by different functional modules according to needs. The internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the VRF provided in the foregoing embodiment is based on the same idea as the packet forwarding method embodiment, and its specific implementation process is detailed in the method embodiment, and will not be repeated here.
此外,本申请实施例还提供了一种通信网络中的RR。该通信网络还包括CSG、多个数据中心路由节点、多个VRF、用于执行目标VNF的多个VM,每个VRF上连接有多个VM中的一个或多个。多个VM中每个VM配置有一个VPNSID,多个数据中心路由节点中每个数据中心路由节点配置有一个代理VPNSID。In addition, the embodiment of the present application also provides an RR in a communication network. The communication network also includes a CSG, multiple data center routing nodes, multiple VRFs, and multiple VMs for executing the target VNF, and each VRF is connected to one or more of the multiple VMs. Each of the multiple VMs is configured with a VPNSID, and each of the multiple data center routing nodes is configured with a proxy VPNSID.
该RR包括:The RR includes:
获取模块,用于获取多个VRF中任一VRF连接的多个VM中每个VM的VPNSID;对于获取的任一VM的VPNSID,RR基于本地存储的VPNSID和代理VPNSID之间的对应关系确定该VM的VPNSID对应的代理VPNSID,得到与任一VRF连接的多个VM中每个VM的VPNSID对应的多个代理VPNSID;The acquiring module is configured to acquire the VPNSID of each of the multiple VMs connected to any VRF in the multiple VRFs; for the obtained VPNSID of any VM, the RR determines the VPNSID based on the correspondence between the locally stored VPNSID and the proxy VPNSID The proxy VPNSID corresponding to the VPNSID of the VM obtains multiple proxy VPNSIDs corresponding to the VPNSID of each VM in a plurality of VMs connected to any VRF;
发布模块,用于向CSG发送第二通告消息,第二通告消息携带与多个VRF中每个VRF连接的多个VM中每个VM的VPNSID对应的多个代理VPNSID。An issuing module, configured to send a second notification message to the CSG, where the second notification message carries multiple proxy VPNSIDs corresponding to the VPNSID of each of the multiple VMs connected to each of the multiple VRFs.
可选地,RR本地存储的VPNSID和代理VPNSID之间的对应关系由管理人员在该RR上配置,从而提高了CSG构建第一转发表的灵活性。Optionally, the corresponding relationship between the VPNSID locally stored in the RR and the proxy VPNSID is configured by the administrator on the RR, thereby improving the flexibility of the CSG in constructing the first forwarding table.
在由RR来向CSG上报多个VM的VPNSID对应的代理VPNSID,由CSG构建第一转发表的情况下,RR需要先获取多个VM中每个VM的VPNSID对应的多个代理VPNSID,然后向CSG发送第二通告消息,以便于CSG构建第一转发表,提高了CSG构建第一转发表的灵活性。When the RR reports the proxy VPNSIDs corresponding to the VPNSIDs of multiple VMs to the CSG, and the CSG constructs the first forwarding table, the RR needs to obtain multiple proxy VPNSIDs corresponding to the VPNSIDs of each of the multiple VMs first, and then send The CSG sends the second notification message so that the CSG can build the first forwarding table, which improves the flexibility of the CSG to build the first forwarding table.
需要说明的是:上述实施例提供的RR在进行报文转发时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的RR与报文转发方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that when the RR provided in the above embodiment forwards packets, it only uses the division of the above functional modules as an example for illustration. The internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the RR provided in the foregoing embodiments belongs to the same idea as the embodiment of the packet forwarding method, and its specific implementation process is detailed in the method embodiment, and will not be repeated here.
此外,本申请实施例还提供了一种报文转发系统,该系统包括CSG、多个数据中心路由节点、多个虚拟路由转发VRF、以及用于执行目标虚拟网络功能VNF的多个VM,该多个VRF中每个VRF上连接有该多个VM中的一个或多个,该多个VM中每个VM配置有一个虚拟私有网络段标识VPNSID,该多个数据中心路由节点中每个数据中心路由节点配置有一个代理VPNSID;In addition, the embodiment of the present application also provides a message forwarding system, the system includes CSG, multiple data center routing nodes, multiple virtual routing and forwarding VRFs, and multiple VMs for executing the target virtual network function VNF, the Each of the multiple VRFs is connected to one or more of the multiple VMs, each of the multiple VMs is configured with a virtual private network segment identifier VPNSID, and each of the multiple data center routing nodes The central routing node is configured with a proxy VPNSID;
该CSG,用于获取与该多个VM的VPNSID对应的代理VPNSID,将获取的代理VPNSID添加至第一转发表中;The CSG is configured to obtain proxy VPNSIDs corresponding to the VPNSIDs of the multiple VMs, and add the obtained proxy VPNSIDs to the first forwarding table;
该多个数据中心路由节点中任一数据中心路由节点,用于获取与该数据中心路由节点的代理VPNSID对应的多个VM的VPNSID,将获取的VM的VPNSID添加至第二转发表中。Any data center routing node among the plurality of data center routing nodes is configured to obtain VPNSIDs of multiple VMs corresponding to the proxy VPNSID of the data center routing node, and add the obtained VPNSIDs of VMs to the second forwarding table.
可选地,CSG具体用于:接收该多个VRF中任一VRF发送的第一通告消息,该第一通告消息携带该任一VRF连接的各个VM中每个VM的VPNSID对应的多个代理VPNSID。Optionally, the CSG is specifically configured to: receive a first notification message sent by any one of the multiple VRFs, where the first notification message carries multiple proxies corresponding to the VPNSID of each of the VMs connected to the any VRF VPNSID.
可选地,CSG具体用于:该CSG接收该RR发送的第二通告消息,该第二通告消息携带与该多个VM的VPNSID对应的代理VPNSID。Optionally, the CSG is specifically configured to: the CSG receives a second notification message sent by the RR, where the second notification message carries proxy VPNSIDs corresponding to the VPNSIDs of the multiple VMs.
可选地,该数据中心路由节点,用于接收该多个VRF中任一VRF发送的第三通告消息,该第三通告消息携带该任一VRF连接的各个VM中每个VM的VPNSID对应的多个代理VPNSID;根据该数据中心路由节点的代理VPNSID,从该第三通告消息中获取与该数据中心路由节点的代理VPNSID对应的的VM的VPNSID。Optionally, the data center routing node is configured to receive a third notification message sent by any VRF among the plurality of VRFs, where the third notification message carries the VPNSID corresponding to each VM among the VMs connected to any VRF. A plurality of proxy VPNSIDs; according to the proxy VPNSID of the data center routing node, obtain the VPNSID of the VM corresponding to the proxy VPNSID of the data center routing node from the third notification message.
可选地,该数据中心路由节点的代理VPNSID对应的多个VM的VPNSID由管理人员在该数据中心路由节点上配置。Optionally, the VPNSIDs of multiple VMs corresponding to the proxy VPNSID of the data center routing node are configured on the data center routing node by a manager.
关于上述报文转发系统中各个节点的功能已经在前述实施例中进行了详细说明,在此不再阐述。The functions of each node in the above packet forwarding system have been described in detail in the foregoing embodiments, and will not be described here again.
图11是本申请实施例提供的一种网络设备1100的结构示意图。图1至图5实施例中通信网络中任一节点,比如CSG、数据中心路由节点、VRF等均可以通过图11所示的网络设备1100来实现,此时,该网络设备1100可以为交换机,路由器或者其他转发报文的网络设备。另外,图1至图5实施例中的网络控制器同样可以通过图11所示的网络设备1100来实现,此时该网络设备1100的具体功能可以参考前述图1至图5任一实施例中的网络控制器的具体实现方式,在此不再赘述。参见图11,该设备包括至少一个处理器1101,通信总线1102、存储器1103以及至少一个通信接口1104。FIG. 11 is a schematic structural diagram of a network device 1100 provided by an embodiment of the present application. Any node in the communication network in the embodiments of Fig. 1 to Fig. 5, such as CSG, data center routing node, VRF, etc., can be realized by the network device 1100 shown in Fig. 11. At this time, the network device 1100 can be a switch, Routers or other network devices that forward packets. In addition, the network controller in the embodiment shown in FIG. 1 to FIG. 5 can also be realized by the network device 1100 shown in FIG. The specific implementation manner of the network controller will not be repeated here. Referring to FIG. 11 , the device includes at least one
处理器1101可以是一个通用中央处理器(central processing unit,CPU)、特定应用集成电路(application-specific integrated circuit,ASIC)或一个或多个用于控制本申请方案程序执行的集成电路。The
通信总线1102可包括一通路,在上述组件之间传送信息。
存储器1103可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其它类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其它类型的动态存储设备,也可以是电可擦可编程只读存储器(electrically erasable programmable read-only memory,EEPROM)、只读光盘(compactdisc read-only Memory,CD-ROM)或其它光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘或者其它磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其它介质,但不限于此。存储器1103可以是独立存在,通过通信总线1102与处理器1101相连接。存储器1103也可以和处理器1101集成在一起。The
其中,存储器1103用于存储程序代码,并由处理器1101来控制执行,以执行上述任一实施例所提供的路径探测方法。处理器1101用于执行存储器1103中存储的程序代码。程序代码中可以包括一个或多个软件模块。图1至图5所提供的实施例中的通信网络中的任一节点可以通过处理器1101以及存储器1103中的程序代码中的一个或多个软件模块,来确定用于开发应用的数据。这一个或多个软件模块可以为图9和图10任一实施例中提供的软件模块。Wherein, the
通信接口1104,使用任何收发器一类的装置,用于与其它设备或通信网络通信,如以太网,无线接入网(radio access networkRAN),无线局域网(wireless local areanetworks,WLAN)等。The
在具体实现中,作为一种实施例,网络设备可以包括多个处理器,例如图11中所示的处理器1101和处理器1105。这些处理器中的每一个可以是一个单核(single-CPU)处理器,也可以是一个多核(multi-CPU)处理器。这里的处理器可以指一个或多个设备、电路、和/或用于处理数据(例如计算机程序指令)的处理核。In a specific implementation, as an embodiment, a network device may include multiple processors, for example,
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意结合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如:同轴电缆、光纤、数据用户线(digital subscriber line,DSL))或无线(例如:红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(例如:软盘、硬盘、磁带)、光介质(例如:数字通用光盘(digital versatile disc,DVD))、或者半导体介质(例如:固态硬盘(solid state disk,SSD))等。In the above embodiments, all or part may be implemented by software, hardware, firmware or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website, computer, server or data center Transmission to another website site, computer, server or data center via wired (eg coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (eg infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server or a data center integrated with one or more available media. The available medium may be a magnetic medium (for example: floppy disk, hard disk, magnetic tape), an optical medium (for example: digital versatile disc (digital versatile disc, DVD)), or a semiconductor medium (for example: solid state disk (solid state disk, SSD) )wait.
本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps for implementing the above embodiments can be completed by hardware, and can also be completed by instructing related hardware through a program. The program can be stored in a computer-readable storage medium. The above-mentioned The storage medium mentioned may be a read-only memory, a magnetic disk or an optical disk, and the like.
以上所述为本申请提供的实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above-mentioned embodiments provided by the application are not intended to limit the application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the application shall be included in the protection scope of the application. Inside.
Claims (21)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911046986.5A CN112751766B (en) | 2019-10-30 | 2019-10-30 | Message forwarding method and system, related equipment and chip |
PCT/CN2020/124463 WO2021083228A1 (en) | 2019-10-30 | 2020-10-28 | Message forwarding method, device, and computer storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911046986.5A CN112751766B (en) | 2019-10-30 | 2019-10-30 | Message forwarding method and system, related equipment and chip |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112751766A CN112751766A (en) | 2021-05-04 |
CN112751766B true CN112751766B (en) | 2023-07-11 |
Family
ID=75640813
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911046986.5A Active CN112751766B (en) | 2019-10-30 | 2019-10-30 | Message forwarding method and system, related equipment and chip |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN112751766B (en) |
WO (1) | WO2021083228A1 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115334045B (en) * | 2022-08-12 | 2023-12-19 | 迈普通信技术股份有限公司 | Message forwarding method, device, gateway equipment and storage medium |
CN117560705B (en) * | 2023-12-20 | 2024-11-29 | 中国电信股份有限公司技术创新中心 | Session data management method, device, system, electronic equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107547339A (en) * | 2017-06-14 | 2018-01-05 | 新华三技术有限公司 | A kind of gateway media access control MAC address feedback method and device |
CN108718278A (en) * | 2018-04-13 | 2018-10-30 | 新华三技术有限公司 | A kind of message transmitting method and device |
CN109873760A (en) * | 2017-12-01 | 2019-06-11 | 华为技术有限公司 | Method and apparatus for processing routing, and method and apparatus for data transmission |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9813488B2 (en) * | 2014-06-25 | 2017-11-07 | Comcast Cable Communications, Llc | Detecting virtual private network usage |
CN106034077B (en) * | 2015-03-18 | 2019-06-28 | 华为技术有限公司 | A kind of dynamic route collocating method, apparatus and system |
CN106487695B (en) * | 2015-08-25 | 2019-10-01 | 华为技术有限公司 | A kind of data transmission method, virtual network managing device and data transmission system |
US9729441B2 (en) * | 2015-10-09 | 2017-08-08 | Futurewei Technologies, Inc. | Service function bundling for service function chains |
CN106101023B (en) * | 2016-05-24 | 2019-06-28 | 华为技术有限公司 | A kind of VPLS message processing method and equipment |
-
2019
- 2019-10-30 CN CN201911046986.5A patent/CN112751766B/en active Active
-
2020
- 2020-10-28 WO PCT/CN2020/124463 patent/WO2021083228A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107547339A (en) * | 2017-06-14 | 2018-01-05 | 新华三技术有限公司 | A kind of gateway media access control MAC address feedback method and device |
CN109873760A (en) * | 2017-12-01 | 2019-06-11 | 华为技术有限公司 | Method and apparatus for processing routing, and method and apparatus for data transmission |
CN108718278A (en) * | 2018-04-13 | 2018-10-30 | 新华三技术有限公司 | A kind of message transmitting method and device |
Non-Patent Citations (2)
Title |
---|
改进BGP实现大型复杂IP网络的负载均衡;徐建锋等;《电信科学》;20041015(第10期);全文 * |
面向网络功能虚拟化的高性能负载均衡机制;王煜炜等;《计算机研究与发展》;20180415(第04期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
WO2021083228A1 (en) | 2021-05-06 |
CN112751766A (en) | 2021-05-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP7417825B2 (en) | slice-based routing | |
US11861419B2 (en) | Asynchronous object manager in a network routing environment | |
US10182496B2 (en) | Spanning tree protocol optimization | |
CN115280735B (en) | Secure creation of application containers for fifth generation cellular network slices | |
US12143927B2 (en) | Network slice sharing of resource objects | |
EP3399703B1 (en) | Method for implementing load balancing, apparatus, and network system | |
CN104283756B (en) | A kind of method and apparatus for realizing distributed multi-tenant virtual network | |
US10237179B2 (en) | Systems and methods of inter data center out-bound traffic management | |
US10404773B2 (en) | Distributed cluster processing system and packet processing method thereof | |
CN113132229B (en) | Segment identifier determination method and device | |
WO2014057403A1 (en) | Ip multicast service leave process for mpls-based virtual private cloud networking | |
WO2014057402A1 (en) | Ip multicast service join process for mpls-based virtual private cloud networking | |
WO2022166465A1 (en) | Message processing method and related apparatus | |
US20240267324A1 (en) | Packet forwarding method and apparatus | |
CN112751768B (en) | Business message forwarding method, device and computer storage medium | |
WO2022048418A1 (en) | Method, device and system for forwarding message | |
CN112751766B (en) | Message forwarding method and system, related equipment and chip | |
CN113595915B (en) | Method for forwarding message and related equipment | |
WO2019240158A1 (en) | Communication system and communication method | |
CN115473765A (en) | Message transmission method, device and system | |
CN119631360A (en) | Automatically extend network topology using unique identifiers | |
WO2023083103A1 (en) | Data processing method and related apparatus | |
WO2012155351A1 (en) | Method and network device for generating tunneling forwarding entries | |
WO2023050818A1 (en) | Data forwarding method and system, electronic device, and storage medium | |
CN116506379A (en) | A flow forwarding method, message sending method, message sending method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |