A control method and related device for message forwarding

By using the first network element to send routing messages to the second network element in the cloud computing system to establish an allowed address pair, the problem of low service packet transmission efficiency in the VNF is solved, and timely forwarding of packets and optimization of network traffic are achieved. .

CN113285877BActive Publication Date: 2024-09-06HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010110400.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-02-20
Publication Date
2024-09-06
Estimated Expiration
2040-02-20

AI Technical Summary

Technical Problem

In the cloud computing system, the source address of the business packet in the virtual network function (VNF) is not registered with the allowed address pair module, resulting in low packet transmission efficiency and failure to forward in time.

Method used

The first network element receives the IP address and indication information in the routing table of the VNF and sends routing messages to the second network element. The second network element establishes an allowed address pair based on the IP address to ensure that the packets forwarded by the VNF can be received and forwarded. , reducing the need for manual collection and sorting of information.

Benefits of technology

It improves the transmission efficiency of business packets in VNF, simplifies the establishment process of allowed address pairs, reduces network traffic, and enhances the efficiency of data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113285877B
    Figure CN113285877B
Patent Text Reader

Abstract

The embodiment of the present application provides a control method for message forwarding and a related device, the method comprising: a first network element receives an Internet Protocol IP address in a routing table of a virtual network function VNF sent by the VNF; the first network element obtains a routing message, wherein the routing message includes the IP address and indication information; the first network element sends the routing message to a second network element, wherein the indication information in the routing message is used to instruct the second network element to establish an allowed address pair according to the IP address, the allowed address pair includes the IP address and a media access control MAC address corresponding to the IP address, and the allowed address pair is used by the second network element to forward the target message when receiving the target message including the IP address from the VNF. The embodiment of the present application can improve the transmission efficiency of service messages in the VNF.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a message forwarding control method and related devices. Background Art

[0002] As virtualization and cloud computing technologies become more and more mature, a large number of Internet applications have begun to cloudify. More and more business data is generated in the cloud platform, resulting in more and more traffic being processed by the data center. For example, OpenStack is an open source cloud computing management platform project that helps service providers and enterprises implement cloud infrastructure services similar to Amazon Elastic Compute Cloud EC2 (Amazon EC2). OpenStack covers various aspects such as network, virtualization, operating system, and server. There will be many compute nodes in a cloud computing system. A compute node is a device used to provide computing services. One or more virtual machines (VM) can be virtualized on the compute node, and one or more virtual network functions (VNF) can be deployed on the virtual machine. Therefore, the virtual machine can implement the functions implemented by traditional multiple network elements. The compute node also includes a virtual switch (VS), also known as a bridge. The service messages forwarded by the VNF can be further forwarded to the external network through the virtual switch, thereby realizing network communication. See Figure 1 , Figure 1 It is a schematic diagram of the architecture of a cloud computing system. Among them, a VNF 102 is deployed in the computing node 101. VNF 102 can be connected to base stations 104, routers and other devices (which can be virtual or physical), and forward the service messages of the base stations, etc., so as to realize the service functions of VNF 102. The message forwarded by VNF 102 needs to be further forwarded by VS 103 in the computing node 101, so that VNF ​​102 can communicate with other VNFs or external networks 105 (such as the Internet, etc.). The message forwarded by VNF 102 includes the source Internet protocol (IP) address and the source media access control (MAC) address of the message. The source IP address and the source MAC address are a source address pair.

[0003] To ensure data transmission security, only packets from allowed address pairs are allowed to be forwarded in the VS of the computing node. Figure 2, is a schematic diagram of a message forwarding control method. There is one allowed address pair in the allowed address pairs of VS103, namely {IP1, MAC1). When VS103 receives a message from VNF102, it checks whether the source address pair of the message belongs to the allowed address. If it does, the message is received, otherwise the message is discarded. With the development of virtual technology, the service functions of VNF are becoming more and more complex. The source addresses of many service messages are not registered in the allowed address pair module, so that the service messages in VNF cannot be forwarded in time, so the message transmission efficiency is low.

[0004] Therefore, how to improve the transmission efficiency of service messages in VNF is a problem that technical personnel in this field are studying. Summary of the invention

[0005] The embodiments of the present application disclose a method and a related device for controlling message forwarding, which can improve the transmission efficiency of service messages in VNF.

[0006] In a first aspect, an embodiment of the present application discloses a method for controlling message forwarding, including:

[0007] The first network element receives an Internet Protocol IP address in a routing table of the VNF sent by the virtual network function VNF;

[0008] The first network element obtains a routing message, wherein the routing message includes the IP address and indication information;

[0009] The first network element sends the routing message to the second network element, wherein the indication information in the routing message is used to instruct the second network element to establish an allowed address pair based on the IP address, the allowed address pair including the IP address and the media access control MAC address corresponding to the IP address, and the allowed address pair is used by the second network element to forward the target message when receiving the target message including the IP address from the VNF.

[0010] In the above method, the first network element sends the IP address and indication information in the routing table of the VNF to the second network element through a routing message, and the second network element establishes an allowed address pair based on the IP address. In this way, the source address pairs in the messages of other network elements forwarded by the VNF are equivalent to establishing allowed address pairs in the second network element. Therefore, when the second network element receives the message sent by the VNF, it will forward the message instead of directly discarding it, thereby improving the transmission efficiency of the message. In addition, since the process of establishing the allowed address pair is completed by the first network element and the second network element in collaboration, without the need to manually collect and organize relevant information, the efficiency of establishing the allowed address pair is improved.

[0011] In another possible implementation of the first aspect, the routing message further includes a forwarding rule for the target message. It can be seen that encapsulating the forwarding rule for the target message in the routing message can enable the second network element to perform more refined operations on the target message, which can better meet the needs of various services.

[0012] In another possible implementation of the first aspect, the routing message also includes a MAC address corresponding to the IP address. It can be seen that the first network element can obtain the MAC address corresponding to the IP address, and send the IP address and the corresponding MAC address through the routing message, so that the second network element establishes a corresponding allowed address pair according to the IP address and the MAC address in the routing message, without having to determine the MAC address corresponding to the IP address, thereby reducing the calculation pressure of the second network element.

[0013] In another optional implementation of the first aspect, the MAC address corresponding to the IP address is obtained by the first network element through a network manager or is searched by the first network element through a routing next hop.

[0014] In yet another possible implementation of the first aspect, the indication information is included in an extended community field of the routing message, and the IP address is included in network layer reachability information NLRI of the routing message.

[0015] In yet another possible implementation of the first aspect, the indication information is the entire structure of the extended community field or one or more identifiers in the extended community field.

[0016] In yet another possible implementation of the first aspect, the MAC address corresponding to the IP address is included in the network layer reachability information NLRI of the routing message.

[0017] In yet another possible implementation of the first aspect, the indication information is included in a routing message community attribute field of the routing message.

[0018] In the above method, the community attribute field is used to instruct the second network element to perform a corresponding operation. Compared with directly adding the corresponding operation information, the data size of the routing message is reduced and the network consumption in transmitting the routing message is also reduced.

[0019] In yet another possible implementation of the first aspect, the community attribute field is further used to indicate a forwarding rule of the target message.

[0020] It can be seen that the first network element can indicate a forwarding rule in the community attribute field for the second network element to forward the message including the IP address, thereby performing a more refined forwarding operation on the message and better meeting the needs of various services.

[0021] In another possible implementation of the first aspect, the forwarding rule includes one or more of allowing forwarding, refusing forwarding, forwarding through a target port, or forwarding according to a target bandwidth.

[0022] In another possible implementation manner of the first aspect, the first network element sending the routing message to the second network element includes:

[0023] The routing message is sent to the second network element based on the Ethernet virtual private network EVPN.

[0024] In the above method, EVPN technology establishes a dedicated network tunnel on the public network architecture, which is a control layer and data layer technology across the wide area network (WAN). Based on EVPV technology, the first network element and the second network element can publish the second layer MAC address and the third layer routing information. Therefore, the use of EVPN technology can reduce the traffic in the network, thereby improving the efficiency of data transmission.

[0025] In another possible implementation of the first aspect, the second network element is a virtual node, and the second network element and the VNF are deployed on the same physical node; the first network element and the second network element are deployed on the same physical node or are respectively deployed on different physical nodes.

[0026] In another possible implementation of the first aspect, the VNF is managed by an NFV management and orchestration system MANO, and a Border Gateway Protocol BGP neighbor of the VNF is established by an NFV orchestrator NFVO.

[0027] In a second aspect, an embodiment of the present application discloses a method for controlling message forwarding, including:

[0028] The second network element receives a routing message sent by the first network element, wherein the routing message includes an IP address and indication information, and the IP address is an Internet interconnection protocol IP address in a routing table of a virtual network function VNF connected to the first network element;

[0029] The second network element establishes an allowed address pair according to the IP address and a media access control MAC address corresponding to the IP address through the indication information;

[0030] The second network element forwards the target message including the IP address from the VNF according to the allowed address pair.

[0031] In the above method, the first network element sends the IP address and indication information in the routing table of the VNF to the second network element through a routing message, and the second network element establishes an allowed address pair based on the IP address. In this way, the source address pairs in the messages of other network elements forwarded by the VNF are equivalent to establishing allowed address pairs in the second network element. Therefore, when the second network element receives the message sent by the VNF, it will forward the message instead of directly discarding it, thereby improving the transmission efficiency of the message. In addition, since the process of establishing the allowed address pair is completed by the first network element and the second network element in collaboration, without the need to manually collect and organize relevant information, the efficiency of establishing the allowed address pair is improved.

[0032] In a possible implementation manner of the second aspect, after the second network element receives the routing message sent by the first network element, before the second network element establishes the allowed address pair according to the IP address and the MAC address corresponding to the IP address, the method further includes:

[0033] Determine a MAC address corresponding to the IP address according to the IP address.

[0034] In another possible implementation of the second aspect, the MAC address corresponding to the IP address is obtained by the second network element through a network manager or is searched by the second network element through a routing next hop.

[0035] In another optional implementation of the second aspect, the routing message also includes a MAC address corresponding to the IP address. It can be seen that the first network element can obtain the MAC address corresponding to the IP address, and send the IP address and the corresponding MAC address through the routing message, so that the second network element establishes a corresponding allowed address pair according to the IP address and the MAC address in the routing message, without having to determine the MAC address corresponding to the IP address, thereby reducing the calculation pressure of the second network element.

[0036] In another optional implementation of the second aspect, the routing message also includes a forwarding rule for the target message; and the second network element forwards the target message including the IP address from the VNF according to the allowed address pair, including:

[0037] The second network element forwards the target message including the IP address from the VNF according to the allowed address pair and the forwarding rule of the target message. It can be seen that the forwarding rule including the target message is encapsulated in the routing message, so that the second network element can perform more refined operations on the target message, which can better meet the needs of various services.

[0038] In yet another optional implementation of the second aspect, the indication information is included in an extended community field of the routing message, and the IP address is included in network layer reachability information NLRI of the routing message.

[0039] In yet another possible implementation of the second aspect, the indication information is the entire structure of the extended community field or one or more identifiers in the extended community field.

[0040] In yet another possible implementation of the second aspect, the MAC address corresponding to the IP address is included in the network layer reachability information NLRI of the routing message.

[0041] In yet another possible implementation of the second aspect, the indication information is included in a community attribute field of the routing message.

[0042] In the above method, the community attribute field is used to instruct the second network element to perform a corresponding operation. Compared with directly adding the corresponding operation information, the data size of the routing message is reduced and the network consumption in transmitting the routing message is also reduced.

[0043] In yet another possible implementation of the second aspect, the community attribute field is further used to indicate a forwarding rule of the target message.

[0044] It can be seen that the first network element can indicate a forwarding rule in the community attribute field for the second network element to forward the message including the IP address, thereby performing a more refined forwarding operation on the message and better meeting the needs of various services.

[0045] In another possible implementation of the second aspect, the forwarding rule includes one or more of allowing forwarding, refusing forwarding, forwarding through a target port, or forwarding according to a target bandwidth.

[0046] In yet another possible implementation manner of the second aspect, the second network element receiving the routing message sent by the first network element includes:

[0047] The second network element receives the routing message sent by the first network element based on the Ethernet virtual private network EVPN.

[0048] In the above method, EVPN technology establishes a dedicated network tunnel on the public network architecture, which is a control layer and data layer technology across the wide area network (WAN). Based on EVPV technology, the first network element and the second network element can publish the second layer MAC address and the third layer routing information. Therefore, the use of EVPN technology can reduce the traffic in the network, thereby improving the efficiency of data transmission.

[0049] In another possible implementation of the second aspect, the second network element is a virtual node, and the second network element and the VNF are deployed on the same physical node; the first network element and the second network element are deployed on the same physical node or are respectively deployed on different physical nodes.

[0050] In another possible implementation of the second aspect, the VNF is managed by an NFV management and orchestration system MANO, and a Border Gateway Protocol BGP neighbor of the VNF is established by an NFV orchestrator NFVO.

[0051] In a third aspect, an embodiment of the present application discloses a network element, including:

[0052] A receiving unit, configured to receive an Internet Protocol IP address in a routing table of the VNF sent by a virtual network function VNF;

[0053] An acquiring unit, configured to acquire a routing message, wherein the routing message includes the IP address and indication information;

[0054] A sending unit, used for sending the routing message to a second network element, wherein the indication information in the routing message is used to instruct the second network element to establish an allowed address pair according to the IP address, the allowed address pair including the IP address and a media access control MAC address corresponding to the IP address, and the allowed address pair is used for the second network element to forward the target message when receiving the target message including the IP address from the VNF.

[0055] It can be seen that the network element sends the IP address and indication information in the routing table of the VNF to the second network element through a routing message, and the second network element establishes an allowed address pair based on the IP address. In this way, the source address pairs in the messages of other network elements forwarded by the VNF are equivalent to establishing allowed address pairs in the second network element. Therefore, when the second network element receives the message sent by the VNF, it will forward the message instead of directly discarding it, thereby improving the transmission efficiency of the message. In addition, since the process of establishing the allowed address pair is completed collaboratively by the network element and the second network element, there is no need to manually collect and organize relevant information, which improves the efficiency of establishing the allowed address pair.

[0056] In a possible implementation of the third aspect, the routing message further includes a forwarding rule for the target message. It can be seen that encapsulating the forwarding rule for the target message in the routing message can enable the second network element to perform more refined operations on the target message, which can better meet the needs of various services.

[0057] In another possible implementation of the third aspect, the routing message also includes a MAC address corresponding to the IP address. It can be seen that the network element can obtain the MAC address corresponding to the IP address, and send the IP address and the corresponding MAC address through the routing message, so that the second network element establishes a corresponding allowed address pair according to the IP address and the MAC address in the routing message, without having to determine the MAC address corresponding to the IP address, thereby reducing the calculation pressure of the second network element.

[0058] In another possible implementation of the third aspect, the MAC address corresponding to the IP address is obtained by the network element through a network manager or is searched by the network element through a routing next hop.

[0059] In yet another optional implementation of the third aspect, the indication information is included in an extended community field of the routing message, and the IP address is included in network layer reachability information NLRI of the routing message.

[0060] In yet another possible implementation of the third aspect, the indication information is the entire structure of the extended community field or one or more identifiers in the extended community field.

[0061] In yet another possible implementation of the third aspect, the MAC address corresponding to the IP address is included in the network layer reachability information NLRI of the routing message.

[0062] In yet another possible implementation of the third aspect, the indication information is included in a routing message community attribute field of the routing message.

[0063] In yet another possible implementation of the third aspect, the community attribute field is further used to indicate a forwarding rule of the target message.

[0064] It can be seen that the network element can indicate a forwarding rule in the community attribute field for the second network element to forward the message including the IP address, thereby performing a more refined forwarding operation on the message and better meeting the needs of various services.

[0065] In another possible implementation of the third aspect, the forwarding rule includes one or more of allowing forwarding, refusing forwarding, forwarding through a target port, or forwarding according to a target bandwidth.

[0066] In yet another possible implementation manner of the third aspect, the sending unit is configured to send the routing information to the second network element, specifically:

[0067] The routing message is sent to the second network element based on the Ethernet virtual private network EVPN.

[0068] EVPN technology establishes a dedicated network tunnel on the public network architecture. It is a control layer and data layer technology across the wide area network (WAN). Based on EVPV technology, the network element and the second network element can publish the second layer MAC address and the third layer routing information. Therefore, the use of EVPN technology can reduce the traffic in the network, thereby improving the efficiency of data transmission.

[0069] In another possible implementation of the third aspect, the second network element is a virtual node, and the second network element and the VNF are deployed on the same physical node; the network element and the second network element are deployed on the same physical node or are respectively deployed on different physical nodes.

[0070] In another possible implementation of the third aspect, the VNF is managed by the NFV management and orchestration system MANO, and the Border Gateway Protocol BGP neighbor of the VNF is established by the NFV orchestrator NFVO.

[0071] In a fourth aspect, an embodiment of the present application discloses a network element, including:

[0072] A receiving unit, configured to receive a routing message sent by a first network element, wherein the routing message includes an IP address and indication information, and the IP address is an Internet Protocol IP address in a routing table of a virtual network function VNF connected to the first network element;

[0073] an establishing unit, configured to establish an allowed address pair according to the IP address and a media access control MAC address corresponding to the IP address through the indication information;

[0074] A sending unit is used to forward a target message including the IP address from the VNF according to the allowed address pair.

[0075] It can be seen that the first network element sends the IP address and indication information in the routing table of the VNF to the network element through a routing message, and the network element establishes an allowed address pair based on the IP address. In this way, the source address pairs in the messages of other network elements forwarded by the VNF are equivalent to establishing allowed address pairs in the network element. Therefore, when the network element receives the message sent by the VNF, it will forward the message instead of directly discarding it, thereby improving the transmission efficiency of the message. In addition, since the process of establishing the allowed address pair is completed by the first network element and the network element in collaboration, without the need to manually collect and organize relevant information, the efficiency of establishing the allowed address pair is improved.

[0076] In a possible implementation manner of the fourth aspect, the network element further includes:

[0077] A determination unit is used to determine a MAC address corresponding to the IP address according to the IP address.

[0078] In another possible implementation of the fourth aspect, the MAC address corresponding to the IP address is obtained by the determination unit through a network manager or is searched by the determination unit through a routing next hop.

[0079] In another possible implementation of the fourth aspect, the routing message also includes a MAC address corresponding to the IP address. It can be seen that the first network element can obtain the MAC address corresponding to the IP address, and send the IP address and the corresponding MAC address through the routing message, so that the network element establishes a corresponding allowed address pair according to the IP address and the MAC address in the routing message, without having to determine the MAC address corresponding to the IP address, thereby reducing the calculation pressure of the network element.

[0080] In another possible implementation of the fourth aspect, the routing message also includes a forwarding rule for the target message; the sending unit is used to forward the target message including the IP address from the VNF according to the allowed address pair, specifically:

[0081] According to the allowed address pair and the forwarding rule, the target message including the IP address from the VNF is forwarded. It can be seen that the forwarding rule for the target message is encapsulated in the routing message, so that the network element can perform more refined operations on the target message and better meet the needs of various services.

[0082] In yet another possible implementation of the fourth aspect, the indication information is included in an extended community field of the routing message, and the IP address is included in network layer reachability information NLRI of the routing message.

[0083] In yet another possible implementation of the fourth aspect, the indication information is the entire structure of the extended community field or one or more identifiers in the extended community field.

[0084] In yet another possible implementation of the fourth aspect, the MAC address corresponding to the IP address is included in the network layer reachability information NLRI of the routing message.

[0085] In yet another possible implementation of the fourth aspect, the indication information is included in a community attribute field of the routing message.

[0086] In yet another possible implementation of the fourth aspect, the community attribute field is further used to indicate a forwarding rule of the target message.

[0087] It can be seen that the first network element can indicate a forwarding rule in the community attribute field for the network element to forward a message including an IP address, thereby performing a more refined forwarding operation on the message and better meeting the needs of various services.

[0088] In another possible implementation of the fourth aspect, the forwarding rule includes one or more of allowing forwarding, refusing forwarding, forwarding through a target port, or forwarding according to a target bandwidth.

[0089] In yet another possible implementation of the fourth aspect, the receiving unit is configured to receive a routing message sent by the first network element, specifically:

[0090] Based on the Ethernet virtual private network EVPN, the routing message sent by the first network element is received.

[0091] In the above method, EVPN technology establishes a dedicated network tunnel on the public network architecture, which is a control layer and data layer technology across the wide area network (WAN). Based on EVPV technology, the first network element and the network element can publish the second layer MAC address and the third layer routing information. Therefore, the use of EVPN technology can reduce the traffic in the network, thereby improving the efficiency of data transmission.

[0092] In another possible implementation of the fourth aspect, the network element is a virtual node, and the network element and the VNF are deployed on the same physical node; the first network element and the network element are deployed on the same physical node or are respectively deployed on different physical nodes.

[0093] In another possible implementation of the fourth aspect, the VNF is managed by the NFV management and orchestration system MANO, and the Border Gateway Protocol BGP neighbor of the VNF is established by the NFV orchestrator NFVO.

[0094] In a fifth aspect, an embodiment of the present application discloses a network element, including a memory, a processor, and a communication interface, wherein a computer program is stored in the memory, and the processor calls the computer program stored in the memory to perform the following operations:

[0095] Receive, through the communication interface, an Internet Protocol IP address in a routing table of the VNF sent by a virtual network function VNF;

[0096] Obtaining a routing message, wherein the routing message includes the IP address and indication information;

[0097] The routing message is sent to the second network element through the communication interface, wherein the indication information in the routing message is used to instruct the second network element to establish an allowed address pair according to the IP address, the allowed address pair includes the IP address and the media access control MAC address corresponding to the IP address, and the allowed address pair is used for the second network element to forward the target message when receiving the target message including the IP address from the VNF.

[0098] It can be seen that the network element sends the IP address and indication information in the routing table of the VNF to the second network element through a routing message, and the second network element establishes an allowed address pair based on the IP address. In this way, the source address pairs in the messages of other network elements forwarded by the VNF are equivalent to establishing allowed address pairs in the second network element. Therefore, when the second network element receives the message sent by the VNF, it will forward the message instead of directly discarding it, thereby improving the transmission efficiency of the message. In addition, since the process of establishing the allowed address pair is completed collaboratively by the network element and the second network element, there is no need to manually collect and organize relevant information, which improves the efficiency of establishing the allowed address pair.

[0099] In a possible implementation of the fifth aspect, the routing message further includes a forwarding rule for the target message. It can be seen that encapsulating the forwarding rule for the target message in the routing message can enable the second network element to perform more refined operations on the target message, which can better meet the needs of various services.

[0100] In another possible implementation of the fifth aspect, the routing message also includes a MAC address corresponding to the IP address. It can be seen that the network element can obtain the MAC address corresponding to the IP address, and send the IP address and the corresponding MAC address through the routing message, so that the second network element establishes a corresponding allowed address pair according to the IP address and the MAC address in the routing message, without having to determine the MAC address corresponding to the IP address, thereby reducing the calculation pressure of the second network element.

[0101] In another possible implementation of the fifth aspect, the MAC address corresponding to the IP address is obtained by the network element through a network manager or is searched by the network element through a routing next hop.

[0102] In yet another optional implementation of the fifth aspect, the indication information is included in an extended community field of the routing message, and the IP address is included in network layer reachability information NLRI of the routing message.

[0103] In yet another possible implementation of the fifth aspect, the indication information is the entire structure of the extended community field or one or more identifiers in the extended community field.

[0104] In yet another possible implementation of the fifth aspect, the MAC address corresponding to the IP address is included in the network layer reachability information NLRI of the routing message.

[0105] In yet another possible implementation of the fifth aspect, the indication information is included in a routing message community attribute field of the routing message.

[0106] In yet another possible implementation of the fifth aspect, the community attribute field is further used to indicate a forwarding rule of the target message.

[0107] It can be seen that the network element can indicate a forwarding rule in the community attribute field for the second network element to forward the message including the IP address, thereby performing a more refined forwarding operation on the message and better meeting the needs of various services.

[0108] In another possible implementation of the fifth aspect, the forwarding rule includes one or more of allowing forwarding, refusing forwarding, forwarding through a target port, or forwarding according to a target bandwidth.

[0109] In yet another possible implementation of the fifth aspect, in terms of sending the routing message to the second network element, the processor is specifically configured to:

[0110] The first network element sends the routing message to the second network element based on an Ethernet virtual private network EVPN.

[0111] EVPN technology establishes a dedicated network tunnel on the public network architecture. It is a control layer and data layer technology across the wide area network (WAN). Based on EVPV technology, the network element and the second network element can publish the second layer MAC address and the third layer routing information. Therefore, the use of EVPN technology can reduce the traffic in the network, thereby improving the efficiency of data transmission.

[0112] In another possible implementation of the fifth aspect, the second network element is a virtual node, and the second network element and the VNF are deployed on the same physical node; the network element and the second network element are deployed on the same physical node or are respectively deployed on different physical nodes.

[0113] In another possible implementation of the fifth aspect, the VNF is managed by the NFV management and orchestration system MANO, and the Border Gateway Protocol BGP neighbor of the VNF is established by the NFV orchestrator NFVO.

[0114] In a sixth aspect, an embodiment of the present application discloses a network element, including a memory, a processor, and a communication interface, wherein a computer program is stored in the memory, and the processor calls the computer program stored in the memory to perform the following operations:

[0115] Receiving a routing message sent by the first network element through the communication interface, wherein the routing message includes an IP address and indication information, and the IP address is an Internet interconnection protocol IP address in a routing table of a virtual network function VNF connected to the first network element;

[0116] By means of the indication information, establishing an allowed address pair according to the IP address and a media access control MAC address corresponding to the IP address;

[0117] Through the communication interface, the target message including the IP address from the VNF is forwarded according to the allowed address pair.

[0118] It can be seen that the first network element sends the IP address and indication information in the routing table of the VNF to the network element through a routing message, and the network element establishes an allowed address pair based on the IP address. In this way, the source address pairs in the messages of other network elements forwarded by the VNF are equivalent to establishing allowed address pairs in the network element. Therefore, when the network element receives the message sent by the VNF, it will forward the message instead of directly discarding it, thereby improving the transmission efficiency of the message. In addition, since the process of establishing the allowed address pair is completed by the first network element and the network element in collaboration, without the need to manually collect and organize relevant information, the efficiency of establishing the allowed address pair is improved.

[0119] In a possible implementation manner of the sixth aspect, before forwarding, through the communication interface, the target message including the IP address from the VNF according to the allowed address pair, the processor is further configured to:

[0120] Determine a MAC address corresponding to the IP address according to the IP address.

[0121] In another possible implementation of the sixth aspect, the MAC address corresponding to the IP address is obtained by the network element through a network manager or is searched by the network element through a routing next hop.

[0122] In another possible implementation of the sixth aspect, the routing message also includes a MAC address corresponding to the IP address. It can be seen that the first network element can obtain the MAC address corresponding to the IP address, and send the IP address and the corresponding MAC address through the routing message, so that the network element establishes a corresponding allowed address pair according to the IP address and the MAC address in the routing message, without having to determine the MAC address corresponding to the IP address, thereby reducing the calculation pressure of the network element.

[0123] In another possible implementation of the sixth aspect, the routing message also includes a forwarding rule of the target message; in terms of forwarding the target message including the IP address from the VNF according to the allowed address pair, the processor is specifically configured to:

[0124] According to the allowed address pair and the forwarding rule of the target message, the target message including the IP address from the VNF is forwarded. It can be seen that the forwarding rule for the target message is encapsulated in the routing message, so that the network element can perform more refined operations on the target message, which can better meet the needs of various services.

[0125] In yet another possible implementation of the sixth aspect, the indication information is included in an extended community field of the routing message, and the IP address is included in network layer reachability information NLRI of the routing message.

[0126] In yet another possible implementation of the sixth aspect, the indication information is the entire structure of the extended community field or one or more identifiers in the extended community field.

[0127] In yet another possible implementation of the sixth aspect, the MAC address corresponding to the IP address is included in the network layer reachability information NLRI of the routing message.

[0128] In yet another possible implementation of the sixth aspect, the indication information is included in a community attribute field of the routing message.

[0129] In yet another possible implementation of the sixth aspect, the community attribute field is further used to indicate a forwarding rule of the target message.

[0130] It can be seen that the first network element can indicate a forwarding rule in the community attribute field for the network element to forward a message including an IP address, thereby performing a more refined forwarding operation on the message and better meeting the needs of various services.

[0131] In another possible implementation of the sixth aspect, the forwarding rule includes one or more of allowing forwarding, refusing forwarding, forwarding through a target port, or forwarding according to a target bandwidth.

[0132] In yet another possible implementation of the sixth aspect, in the aspect of receiving, through the communication interface, a routing message sent by the first network element, the processor is specifically configured to:

[0133] Based on the Ethernet virtual private network EVPN, the routing message sent by the first network element is received through the communication interface.

[0134] In the above method, EVPN technology establishes a dedicated network tunnel on the public network architecture, which is a control layer and data layer technology across the wide area network (WAN). Based on EVPV technology, the first network element and the network element can publish the second layer MAC address and the third layer routing information. Therefore, the use of EVPN technology can reduce the traffic in the network, thereby improving the efficiency of data transmission.

[0135] In another possible implementation of the sixth aspect, the network element is a virtual node, and the network element and the VNF are deployed on the same physical node; the first network element and the network element are deployed on the same physical node or are respectively deployed on different physical nodes.

[0136] In another possible implementation of the sixth aspect, the VNF is managed by the NFV management and orchestration system MANO, and the Border Gateway Protocol BGP neighbor of the VNF is established by the NFV orchestrator NFVO.

[0137] In a seventh aspect, the present application discloses a control system for message forwarding, comprising a first network element and a second network element, wherein:

[0138] The first network element is the network element described in the first aspect or any possible implementation manner of the first aspect;

[0139] The second network element is the network element described in the first aspect or any possible implementation manner of the first aspect.

[0140] In an eighth aspect, the present application discloses a computer storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program runs on one or more processors, the method described in the first aspect, or any possible implementation of the first aspect, or the second aspect, or a possible implementation of the second aspect is executed.

[0141] In a ninth aspect, the present application discloses a computer-readable storage medium, in which a computer program is stored. When the computer program runs on one or more processors, the method described in the first aspect or any possible implementation of the first aspect, or the second aspect, or any possible implementation of the second aspect is executed. BRIEF DESCRIPTION OF THE DRAWINGS

[0142] The following is an introduction to the drawings used in the embodiments of the present application.

[0143] Figure 1 It is an architecture of a cloud computing system provided by an embodiment of the present application;

[0144] Figure 2 It is a schematic diagram of a message forwarding control method provided in an embodiment of the present application;

[0145] Figure 3 It is a schematic diagram of the architecture of a message forwarding control system provided in an embodiment of the present application;

[0146] Figure 4 It is a flowchart of a method for controlling message forwarding provided in an embodiment of the present application;

[0147] Figure 5 It is a schematic diagram of a control layer and a data forwarding layer provided in an embodiment of the present application;

[0148] Figure 6 is a schematic diagram of a connection situation provided in an embodiment of the present application;

[0149] Figure 7 It is a schematic diagram of the structure of network layer reachability information provided by an embodiment of the present application;

[0150] Figure 8 It is a management schematic diagram of a cloud computing platform provided in an embodiment of the present application;

[0151] Fig. 9 It is a flowchart of another method for controlling message forwarding provided in an embodiment of the present application;

[0152] Fig.10 It is a schematic diagram of the content of a configuration command provided in an embodiment of the present application;

[0153] Fig.11 It is a flowchart of another method for controlling message forwarding provided in an embodiment of the present application;

[0154] Fig.12 It is a management diagram of another cloud computing platform provided in an embodiment of the present application;

[0155] Fig.13 This is a schematic diagram of the structure of another network layer reachability information provided in an embodiment of the present application;

[0156] Fig.14 It is a schematic diagram of the structure of a network element provided in an embodiment of the present application;

[0157] Fig.15 This is a schematic diagram of the structure of another network element provided in an embodiment of the present application;

[0158] Fig.16 This is a schematic diagram of the structure of another network element provided in an embodiment of the present application;

[0159] Fig.17This is a structural diagram of another network element provided in an embodiment of the present application. DETAILED DESCRIPTION

[0160] The embodiments of the present application are described below in conjunction with the drawings in the embodiments of the present application. It is understood that the terms used in the implementation method section of the present application are only used to explain the specific embodiments of the present application, and are not intended to limit the present application.

[0161] In order to facilitate understanding of the embodiments of the present application, the communication network framework diagram involved in the embodiments of the present application is first introduced. Figure 3 , is a schematic diagram of the architecture of a message forwarding system provided in an embodiment of the present application, including a computing node 301, a first network element 302, a second network element 303 and a virtualized network function (VNF) 304. Among them:

[0162] Computing node 301 is a device used to provide computing services in a cloud computing platform. One or more virtual machines are established in computing node 301, and VNF304 can be deployed in one or more established virtual machines to complete corresponding services. The process of completing corresponding services involves the processing of corresponding messages. The deployment of VNF304 is mainly completed through the network function virtualization (NFV) architecture. For example, VNF304 needs to be deployed through the NFV management and orchestration system (NFV MANO). Optionally, the connection between VNF304 and other network elements can be established through the NFV orchestrator (NFV orchestrator, NFVO).

[0163] The first network element 302 can receive routing messages sent by VNF304, and can be regarded as a network element for collecting routing messages. Optionally, the first network element 302 can establish a border gateway protocol (BGP) neighbor with VNF304, and then receive routing messages sent by VNF304. Optionally, the first network element 302 can be a physical device, for example, the first network element 302 can be a route reflector (RR), a server, etc. The first network element 302 can also be a virtual function network element, for example, the first network element 302 can be a virtual machine, a virtual router (VR), a virtual inner router (IR), etc.

[0164] The second network element 303 is a network element that maintains the forwarding order in the computing node 301, and can forward the message from the VNF304. In order to ensure data security and system stability, the second network element 303 needs to save the allowed address pairs (allowedaddresspairs), and receive and forward the message when the source address pair in the received message belongs to the allowed address pair. Optionally, the second network element 303 can be a virtual function network element, for example, the second network element 303 can be a virtual machine, a virtual router (virtual router, VR), a virtual switch (virtual switch, VS), a distributed virtual router (distributed virtual router, DVR), an open virtual switch (open virtual switch, OVS), etc. The second network element 303 can also be a physical device, for example, the second network element 303 can be a router, a server, etc.

[0165] Optional, Figure 3 The message forwarding system shown may also include a base station 305. The base station 305 is a public mobile communication base station, which is a network element for communication equipment to access the Internet. Therefore, the base station 305 can forward the message of the communication equipment, and the message can be sent to the VNF304 via the base station 305 to be further forwarded by the VNF304. It should be noted that the VNF304 can be connected to a variety of devices, such as switches, routing gateways, etc., and the base station 305 is only used as an example for explanation here, and it is not intended to limit this application. Optionally, the message of the base station 305 can be sent directly to the VNF304, and can also be sent to the VNF304 via one or more forwarding devices. For example, the message of the base station 305 can also be forwarded to the VNF304 via the second network element 303. In this case, the second network element 303 may not check the message forwarded from the base station to the computing node, but check the source address of the message forwarded from the network element in the computing node.

[0166] Optional, Figure 3 The message forwarding system shown may also include an external network 306. The external network 306 may be a network outside the computing node 302, for example, the Internet, which is not limited in the present application.

[0167] In the embodiment of the present application, VNF304 can establish a BGP neighbor with the first network element 302 to perform routing announcement. The message of VNF304 is further forwarded by the second network element 303, thereby realizing service data communication. The first network element 302 and the second network element 303 can be on two different physical devices, or they can be integrated in the same physical device.

[0168] Figure 3When the message forwarding system shown is deployed, at the Infrastructure as a Service (IaaS) layer, MAN O deploys VNF304 in one or more virtual machines, and sets the IP address and MAC address of the virtual machine where VNF304 is located in the allowed address pair of the second network element 303, so that the second network element 303 can forward messages directly sent from the VNF304.

[0169] As for the service messages processed in VNF304, since the source addresses of many service messages are not registered in the second network element 303, the service messages in the V NF cannot be forwarded in time by the second network element 303, and the message transmission efficiency is low.

[0170] See also Figure 4 , Figure 4 A control method for message forwarding provided in an embodiment of the present application can be based on Figure 3 The method is implemented by the architecture shown in the figure, and includes but is not limited to the following steps:

[0171] Step S401: The first network element receives the IP address in the routing table of the VNF sent by the VNF.

[0172] Specifically, the routing table of the VNF stores the IP addresses of one or more network elements, terminals and other devices, which can be used by the VNF to process messages from the one or more network elements and terminals to complete business functions. For example, taking the VNF as a unified packet gateway (UGW), the UGW is a packet network element in the core network, and the routing table of the UGW stores the IP addresses of the network elements in the managed core network. The UGW will receive messages from the network elements or terminals in the managed core network, and forward the messages that need to be further forwarded.

[0173] See Table 1, which is a possible routing table in a VNF provided in an embodiment of the present application. Optionally, the routing table of the VNF can be referred to as the private network routing of the VNF. See Table 1, the destination network address (Network) column is the IP address of the routing table of the VNF, indicating the destination IP address of the VNF, which can also be referred to as the service IP address. The VNF can send the IP address in the routing table to the first network element, and accordingly, the first network element receives the IP address in the routing table of the VNF.

[0174] Optionally, in the routing table of the VNF, the NextHop column indicates the next hop address of the route. The multi exit disc (MED) column indicates the MED metric of the BGP route, which may also be called the hop count (Metric) in some systems. The local preference (LocPrf) can be used to control the outbound path of the service data flow. The protocol preference value (PrefVal) can be used to update the routing table. The "Path / Ogn" column includes two attributes, namely path and origin (Ogn). The path attribute is used to filter data, and the origin attribute indicates the source of the route, which is usually displayed at the end of each route. The "i" in the origin attribute indicates the route obtained through the interior gateway protocol (IGP).

[0175] Table 1 VNF routing table

[0176] Network NextHop MED LocPrf PrefVal Path / Ogn 1.1.1.9 / 32 0.0.0.0 0 0 i 2.2.2.7 / 32 10.1.1.2 0 100 0 (65001)i 2.2.2.8 / 32 10.1.2.2 0 100 0 (65011)i 2.2.2.9 / 32 10.1.4.2 0 100 0 (65001 65101)i

[0177] Optionally, when the IP is an Internet Protocol version 4 (IPv4) address, it can be represented by four groups of 3-digit decimal numbers, or by four groups of 4-digit binary numbers, or by other means. Optionally, in a device that supports classless inter-domain routing (CIDR), the IP address can also be represented by the number of bits of the IP address / network identity (ID), such as 192.168.23.35 / 21, where "21" represents the number of bits of the network ID.

[0178] Optionally, the first network element can obtain the IP address sent by the VNF by receiving the routing table sent by the VNF.

[0179] Optionally, the IP address in the routing table of the VNF may be sent via the Border Gateway Protocol (BGP), in which case the VNF and the first network element are BGP neighbors. Figure 5 , Figure 5 This is a possible message forwarding schematic diagram provided by an embodiment of the present application. Figure 5 In part (a), at the control level, the first network element 302 of VNF304 is a BGP neighbor, and VNF304 can send the IP address to the first network element through the BGP protocol. Figure 5 In part (b), at the data forwarding level, the message transmission of VNF304 needs to be forwarded to the external network through the second network element 303.

[0180] Optionally, the routing table sent by the VNF may be a virtual routing forwarding (VRF) table of the VNF. VRF is a routing and forwarding instance, and the VNF may implement routing isolation through VRF. Figure 6 , Figure 6 is a schematic diagram of a possible connection situation provided in an embodiment of the present application, see Figure 6 In part (a), NE 601 can receive routing messages from two NEs (NE 1 and NE 2). Since the networks in these two NEs are private networks, the IP addresses in these two NEs will overlap. For example, NE 601 can receive IP address 10.1.1 / 24 sent by NE 1 and IP address 10.1.1.0 / 24 sent by NE 2. Since NE 601 has a routing table, the address overlap causes routing conflicts in NE 601. Figure 6 In part (b), network element 601 assigns a VRF to each connected network element, thereby achieving routing isolation.

[0181] It is understandable that one or more VRFs may also be established in the first network element. Optionally, a VRF in the first network element may correspond to a connected VNF.

[0182] Step S402: The first network element obtains a routing message.

[0183] Specifically, the routing message includes the above IP address and indication information, wherein the indication information is used to be sent to the second network element and instruct the second network element to establish an allowed address pair according to the IP address.

[0184] Optionally, the IP address may be included in the network layer reachability information (NLRI) in the routing message. Figure 7 , Figure 7: is a structural diagram of a possible NLRI provided by an embodiment of the present application. The NLRI 701 is data in TLV format. The "route identifier" in area 702 is an attribute (type) of the NLRI 701. The "8 bytes" in area 703 is the length (length) of the attribute value. The "1.1.0.1:1" in area 704 represents the value (value) of the attribute. The attributes in the NLRI 701 may include an IP address prefix length (IPprefexaddress length) and an IP address prefix. The IP address prefix length and the IP address prefix can represent the above IP address. The NLRI 701 may also include one or more attributes such as a route distinguisher (RD) and an Ethernet segment identifier (ESI). RD is an attribute used to identify the identity of the first network element, and ESI is used to identify the connection between the first network element and the second network element. RD can be data of 8 bytes (octets) in length, or data of other lengths. Similarly, other attributes can also define other byte lengths, which is not limited in the present application.

[0185] Optionally, the NLRI may be encapsulated in a prefix of the routing message.

[0186] Optionally, the indication information in the routing message may be included in the extended community field (extendcommunity) of the routing message. The indication information may be the entire structure of the extended community field. For example, if the extended community field in the routing message is null or default, the routing message is not used to establish an allowed address pair. If the extended community is not default or is a target value, the routing message is used to establish an allowed address pair. The indication information may also be one or more identifiers in the extended community field. For example, the extended community field may include flow rules (Flowspec) data, wherein the flow rules include a traffic action (traffic-action) field, and the first network element may instruct the second network element to establish an allowed address pair according to the IP address in the routing message through the identifier in the traffic action field.

[0187] Optionally, the routing message may also include information indicating a forwarding rule, which is used to instruct the second network element to forward the message including the IP address according to the forwarding rule. The forwarding rule may include allowing forwarding, refusing forwarding, forwarding through a target interface, and forwarding at a target rate. Furthermore, the forwarding rule may also be expressed by quality of service (QoS), which includes bandwidth for message transmission, transmission delay, data packet loss rate, etc.

[0188] Optionally, the information indicating the forwarding rule may be included in an extended field. For example, in addition to the traffic action (traffic-action) field exemplified above, the flow rule data may also include traffic rate (traffic-rate), redirection (redirect) and marking (traffic-marking), etc. Referring to Table 2, Table 2 is an information table of a possible flow rule provided by an embodiment of the present application, wherein the traffic rate (traffic-rate) is used to identify the forwarding rate from the IP address, which may include a two-byte autonomous system (AS) number and a 4-byte floating point number, and the unit of the forwarding rate is usually bytes per second. For example, if the floating point number of the traffic rate is 200, it indicates that the forwarding rate is 200 bytes per second; if the floating point number of the traffic rate is 0, it indicates that forwarding is rejected. Traffic action (traffic-action) is used to perform specific operations on the routing message from the route, and is usually encoded with a bit mask (bitmask). Redirection is used to direct the routing message to the VRF instance. The traffic marking indicates that the Differentiated Services Code Point (DSCP) of the message from the IP address is modified to a corresponding value, wherein the DSCP is located in the header of the message and is used to distinguish priorities.

[0189] Table 2 Flow rules

[0190] Types of extended groups coding Traffic rate 2-byte AS number, 4-byte floating point number Specific Behavior 6 bytes Redirect 6-byte route destination Traffic Marking 6-byte Differentiated Services Code Point value

[0191] Step S403: The first network element sends a routing message to the second network element.

[0192] Optionally, the first network element can send a routing message to the second network element based on an Ethernet virtual private network (EVPN), wherein the EVPN technology establishes a dedicated network tunnel on a public network architecture and is a control layer and data layer technology across a wide area network (WAN). Based on the EVPN technology, the first network element and the second network element can send a layer 2 MAC address or a layer 3 routing information. Therefore, the use of the EVPN technology can reduce the traffic in the network, thereby improving the efficiency of data transmission.

[0193] Of course, the first network element may also send the routing message to the second network element in other ways. For example, the first network element sends the routing message through a multiprotocol label switching private network (MPLS VPN).

[0194] Step S404: The second network element establishes an allowed address pair according to the IP address through the indication information.

[0195] Specifically, the address pair is allowed to include the above IP address and the MAC address corresponding to the IP address, wherein the MAC address has the following two optional situations:

[0196] In case 1, the MAC address corresponding to the IP address can be the MAC address of the network element corresponding to the IP address. In this case, the source MAC address in the target message forwarded by the VNF is the MAC address of the network element corresponding to the IP address. Among them, the IP address and MAC address of the network element usually have a corresponding relationship. The network element can be connected to different networks and other network elements (such as routers, firewalls, etc.). The network element connected to a certain network can obtain an IP address, which can be used to transmit information at the network layer. The network element usually has an address that can be recognized by a machine, called the MAC address of the network element. The MAC address is also called a physical address or hardware address, which is the address used by the data link layer and the physical layer. For physical network elements, the MAC address is usually fixed on the network card when the physical network element leaves the factory. For virtual network elements, the MAC address is the address recorded in the virtual network card of the virtual network element.

[0197] In case 2, the MAC address can also be the MAC address of the VNF. In this case, the source MAC address of the target message forwarded by the VNF has been modified to the MAC address of the VNF. Therefore, the MAC address corresponding to the IP address sent by the VNF is the MAC address of the VNF.

[0198] Before establishing the allowed address pair, the second network element first determines the MAC address corresponding to the IP address according to the IP address.

[0199] Optionally, the IP address in the second network element and the MAC address corresponding to the IP address may be obtained by the second network element through a management interface, or may be found by the second network element through a routing next hop.

[0200] For example, the network controller maintains the IP addresses and MAC addresses of the network elements in the network. The second network element can send a request to the network controller, and the network controller sends the IP addresses and MAC addresses of some network elements to the second network element. Correspondingly, the second network element obtains the MAC address corresponding to the IP address.

[0201] See also Figure 8 , Figure 8 This is a management diagram of a possible cloud computing platform provided in an embodiment of the present application. The network controller 801 stores the IP address and MAC address of the network element. For example, the base station 305 and the mobile phone terminal accessing the network through the base station 305 are both network elements in the network managed by the network controller. Therefore, the network controller 801 can obtain the IP address and the corresponding MAC address of the base station 305 and the mobile phone terminal accessing the network through the base station, so that the correspondence between the IP address and the MAC address can be established. Through the management interface provided by the network controller 801, the second network element 303 can obtain the IP address and the MAC address corresponding to the IP address. Optionally, the network controller 801 can be a network controller such as a network control engine (NCE) and a network automation engine (NAE). Optionally, in an SDN network, the network controller can be an SDN controller (SDN controller).

[0202] Of course, the second network element can also determine the MAC address corresponding to the IP address by other means. For example, since the routing table includes the IP address of the next hop (nexthop, NHP) to the IP address, the second network element can pass the routing information through the next hop of the IP address to determine the MAC address corresponding to the IP address. Optionally, the IP address can be a loopback address of the router.

[0203] For another example, the second network element may also determine the MAC address corresponding to the IP address through an address conversion protocol, a routing message announcement, or the like.

[0204] The second network element establishes an allowed address pair based on the IP address and its corresponding MAC address. Optionally, the second network element can establish an allowed address pair in the form of {IP address, MAC address}, or can establish an allowed address pair in the form of a corresponding relationship set. For example, the second network element establishes an allowed address pair {192.168.2.2 / 24, 00-11-12-21-66-66} based on the IP address "192.168.2.2 / 24" and the MAC address "00-11-12-21-66-66" corresponding to the destination IP address. Of course, the allowed address pair can also exist in other forms, and this application does not limit this.

[0205] Step S405: The second network element forwards the target message including the IP address from the VNF according to the allowed address pair.

[0206] Specifically, after the second network element establishes the allowed address pair, when receiving a target message including the IP address from the VNF, if the IP address in the target message and its corresponding MAC address are already included in the allowed address pair of the second network element, the second network element forwards the target message. For example, the allowed address pair {192.168.2.2 / 24, 00-11-12-21-66-66} is established in the second network element. When the second network element receives a target message with a source IP address of "192.168.2.2 / 24" and a source MAC address of "00-11-12-21-66-66", because the source IP address "192.168.2.2 / 24" and the source MAC address "00-11-12-21-66-66" have been registered in the second network element as an allowed address pair, the second network element will forward the target message.

[0207] Optionally, the second network element can check the address pair of the target message through the address pair module. In this case, after the second network element establishes the allowed address pair, it sends the allowed address pair to the address pair module for the address pair module to check the source IP address and source MAC address of the target message.

[0208] Optionally, if the above-mentioned extended community field (extend community) includes information indicating forwarding rules, the second network element can attach corresponding forwarding rules to the established allowed address pair, so that when the second network element receives the target message from the allowed address pair, it forwards the target message according to the forwarding rules corresponding to the allowed address. For example, the second network element establishes a relationship pair such as {192.168.2.2 / 24, 00-11-12-21-66-66, 10Mbps}, and when receiving a message with a source address of {192.168.2.2 / 24, 00-11-12-21-66-66}, it forwards the message according to a bandwidth of 10 megabits per second (Mbps). Optionally, if the above-mentioned extended community field does not include information indicating forwarding rules, the second network element can forward the target message according to the default forwarding rule.

[0209] exist Figure 4 In the described method, the first network element sends the IP address and indication information in the routing table of the VNF to the second network element through a routing message, and the second network element establishes an allowed address pair based on the IP address. In this way, the source address pairs in the messages of other network elements forwarded by the VNF are equivalent to establishing allowed address pairs in the second network element. Therefore, when the second network element receives the message sent by the VNF, it will forward the message instead of directly discarding it, thereby improving the transmission efficiency of the message. In addition, since the process of establishing the allowed address pair is completed collaboratively by the first network element and the second network element, there is no need to manually collect and organize relevant information, which improves the efficiency of establishing the allowed address pair.

[0210] See also Fig. 9 , Fig. 9 A control method for message forwarding provided in an embodiment of the present application can be based on Figure 3 The method is implemented by the architecture shown in the figure, and includes but is not limited to the following steps:

[0211] Step S901: The first network element receives the IP address in the routing table of the VNF sent by the VNF.

[0212] Specifically, the specific implementation of step S901 may refer to the relevant description of step S401.

[0213] Step S902: The first network element obtains a routing message.

[0214] Specifically, the routing message includes the above IP address and indication information, wherein the indication information is used to be sent to the second network element and instruct the second network element to obtain the routing message according to the IP address.

[0215] Optionally, the above-mentioned indication information may be included in a community attribute field, and the community attribute field may include a target identifier, which may be used to indicate that a corresponding operation is performed on a routing message including the target identifier. The first network element uses the target identifier in the community attribute field as indication information to instruct the second network element to establish an allowed address pair based on the routing message IP address. Optionally, the community attribute field has two formats, one is a decimal number format, and the number range is a number greater than or equal to 0 and less than or equal to 4294967295, and the other is an A:N format, where A and N are both integers. It can be seen that compared with the extended community field and NLRI, the community attribute field is used to indicate whether to establish an allowed address pair, and the latter has smaller routing message data, reducing network overhead.

[0216] Refer to Table 3, which is a possible routing message provided by an embodiment of the present application. The first network element uses the community attribute (community) of "100:10" and "100:11" to instruct the second network element to establish an allowed address pair according to the IP address in the routing message. The community attribute (community) of "100:12" is not used to instruct the second network element to establish an allowed address pair according to the IP address in the routing message. Of course, other community attribute values ​​may also be included in the specific implementation, and this application does not limit this.

[0217] Table 3 Routing message

[0218] Community IP 100:10 1.1.1.9 / 32 100:11 2.2.2.7 / 32 100:11 2.2.2.8 / 32 100:12 2.2.2.9 / 32

[0219] Optionally, in addition to instructing the second network element to establish an allowed address pair based on the IP address, the group attribute can be used to indicate a forwarding rule, which is used to instruct the second network element to forward the message including the IP address according to the forwarding rule. Among them, the forwarding rule may include allowing forwarding, refusing forwarding, forwarding through the target interface, and forwarding at a target rate. Further, the forwarding rule can also be expressed by quality of service (QoS), and the quality of service includes the bandwidth of message transmission, the transmission delay, the packet loss rate of data, etc. See Table 4, which is a possible correspondence between a group attribute and a routing policy (including whether to establish an allowed address pair and a forwarding rule) provided by an embodiment of the present application. Optionally, the correspondence can be pre-stored or configured through a management interface. For example, when the group attribute of the routing message is "100:11", the second network element can be instructed to establish an allowed address pair based on the IP address, and forward the message including the IP address at a forwarding rate of "10 megabits per second (Mbps)".

[0220] Table 4 Correspondence between community attributes and routing policies

[0221] Community Routing strategy 100:10 Operation: Create an allowed address pair; Forwarding rule: Forward from the E0 interface 100:11 Operation: Create an allowed address pair; Forwarding rule: Forward at 10Mbps bandwidth 100:12 Forwarding rules: Deny forwarding

[0222] Step S903: The first network element sends a routing message to the second network element.

[0223] Specifically, the specific implementation of step S903 may refer to the relevant description of step S403.

[0224] Step S904: The second network element establishes an allowed address pair according to the IP address through the indication information.

[0225] Specifically, the second network element establishes an allowed address pair according to the IP address through the indication information in the community attribute field. Specifically, if the community attribute field is a target identifier, an allowed address pair is established according to the IP address and the corresponding MAC address in the routing message. Optionally, a command can be used to complete the process of matching identifiers, see Fig.10 , Fig.10 This is a schematic diagram of a possible configuration command provided in an embodiment of the present application. Referring to the configuration command in area 1001, the group attribute of 100:11 is used as the matching rule "11". Referring to the configuration command in area 1002, the routing message is matched using rule 11. Referring to the configuration command in area 1003, for the routing message with the group attribute of 100:11, an allowed address pair is established according to the IP address in the routing message.

[0226] Before the second network element establishes the allowed address pair, it first determines the MAC address corresponding to the IP address according to the IP address.

[0227] The MAC address corresponding to the IP address can be the MAC address of the network element corresponding to the IP address, or it can be the MAC address of the VNF.

[0228] Optionally, the IP address in the second network element and the MAC address corresponding to the IP address may be obtained by the second network element through a management interface, or may be found by the second network element through a routing next hop.

[0229] For example, the network controller maintains the IP addresses and MAC addresses of the network elements in the network. The second network element can send a request to the network controller, and the network controller sends the IP addresses and MAC addresses of some network elements to the second network element. Correspondingly, the second network element obtains the MAC address corresponding to the IP address.

[0230] Of course, the second network element can also determine the MAC address corresponding to the IP address by other means. For example, since the routing table includes the IP address of the next hop (nexthop, NHP) to the IP address, the second network element can pass the routing message through the IP address next hop to determine the MAC address corresponding to the IP address. Optionally, the IP address of the next hop can be the loopback address of the router.

[0231] For another example, the second network element may determine the MAC address corresponding to the IP address through an address conversion protocol, a routing message announcement, and the like.

[0232] The second network element establishes an allowed address pair based on the IP address and its corresponding MAC address. Optionally, the second network element can establish an allowed address pair in the form of {IP address, MAC address}, or can establish an allowed address pair in the form of a corresponding relationship set. For example, the second network element establishes an allowed address pair {192.168.2.2 / 24, 00-11-12-21-66-66} based on the IP address "192.168.2.2 / 24" and the MAC address "00-11-12-21-66-66" corresponding to the destination IP address. Of course, the allowed address pair can also exist in other forms, and this application does not limit this.

[0233] Step S905: The second network element forwards the target message including the IP address from the VNF according to the allowed address pair.

[0234] Specifically, after the second network element establishes the allowed address pair, when receiving a target message including the IP address from the VNF, if the IP address in the target message and its corresponding MAC address are already included in the allowed address pair of the second network element, the second network element forwards the target message. For example, the allowed address pair {192.168.2.2 / 24, 00-11-12-21-66-66} is established in the second network element. When the second network element receives a target message with a source IP address of "192.168.2.2 / 24" and a source MAC address of "00-11-12-21-66-66", because the source IP address "192.168.2.2 / 24" and the source MAC address "00-11-12-21-66-66" have been registered in the second network element as an allowed address pair, the second network element will forward the target message.

[0235] Optionally, the second network element can check the address pair of the target message through the address pair module. In this case, after the second network element establishes the allowed address pair, it sends the allowed address pair to the address pair module for the address pair module to check the source IP address and source MAC address of the target message.

[0236] Optionally, if the group attribute also indicates that there is a forwarding rule, the second network element can attach the forwarding rule to the established allowed address pair, so that when the second network element receives the target message from the allowed address pair, it forwards the target message according to the forwarding rule corresponding to the allowed address. For example, the second network element establishes a relationship pair such as {192.168.2.2 / 24, 00-11-12-21-66-66, 10Mbps}, and when receiving a message with a source address of {192.168.2.2 / 24, 00-11-12-21-66-66}, it forwards the message according to a bandwidth of 10Mbps. Optionally, if the above-mentioned group attribute field includes information indicating the forwarding rule, the second network element can forward the target message according to the default forwarding rule.

[0237] exist Fig. 9 In the described method, the first network element sends the IP address and indication information in the routing table of the VNF to the second network element through a routing message, and the second network element establishes an allowed address pair based on the IP address. In this way, the source address pairs in the messages of other network elements forwarded by the VNF are equivalent to establishing allowed address pairs in the second network element. Therefore, when the second network element receives the message sent by the VNF, it will forward the message instead of directly discarding it, thereby improving the transmission efficiency of the message. In addition, since the process of establishing the allowed address pair is completed collaboratively by the first network element and the second network element, there is no need to manually collect and organize relevant information, which improves the efficiency of establishing the allowed address pair.

[0238] See also Fig.11 , Fig.11 A control method for message forwarding provided in an embodiment of the present application can be based on Figure 3 The method is implemented by the architecture shown in the figure, and includes but is not limited to the following steps:

[0239] Step S1101: The first network element receives the IP address in the routing table of the VNF sent by the VNF.

[0240] Specifically, the specific implementation of step S1101 may refer to the relevant description of step S401.

[0241] Step S1102: The first network element determines the corresponding MAC address based on the IP address of the VNF.

[0242] Specifically, the MAC address corresponding to the IP address can be the MAC address of the network element corresponding to the IP address, or it can be the MAC address of the VNF.

[0243] The MAC address corresponding to the IP address may be obtained by the first network element through a management interface, or may be found by the first network element through a routing next hop.

[0244] For example, the network controller maintains the IP addresses and MAC addresses of network elements in the network. The first network element can send a request to the network controller, and the network controller sends the IP addresses and MAC addresses of some network elements to the first network element. Correspondingly, the first network element obtains the MAC address corresponding to the IP address.

[0245] See also Fig.12 , Fig.12 This is a possible management diagram of a cloud computing platform provided in an embodiment of the present application. The network controller 1201 stores the IP address and MAC address of the network element. For example, the base station 305 and the mobile phone terminal accessing the network through the base station 305 are both network elements in the network managed by the network controller. Therefore, the network controller 1201 can obtain the IP address and MAC address of the base station 305 and the mobile phone terminal accessing the network through the base station, so that the correspondence between the IP address and the MAC address can be established. Through the management interface provided by the network controller 1201, the first network element 302 can obtain the IP address and the MAC address corresponding to the IP address. Optionally, the network controller 1201 can be a network controller such as a network control engine and a network automation engine. Optionally, in an SDN network, the network controller can be an SDN controller.

[0246] Of course, the first network element can also obtain the MAC address corresponding to the IP address in other ways. For example, since the routing message includes the IP address of the next hop (nexthop, NHP) to the IP address, the first network element can pass the routing message through the next hop of the IP address to determine the MAC address corresponding to the IP address. Optionally, the IP address of the next hop can be the loopback address of the router.

[0247] For another example, the first network element may determine the MAC address corresponding to the IP address through an address conversion protocol, a routing message announcement, and the like.

[0248] Step S1103: The first network element obtains a routing message.

[0249] Specifically, the routing message includes an IP address, a MAC address corresponding to the IP address, and indication information, wherein the indication information is sent to the second network element to instruct the second network element to establish an allowed address pair according to the IP address.

[0250] Optionally, the IP address may be included in the network layer reachability information (NLRI) in the routing message. Fig.13 , Fig.13 1 is a schematic diagram of another possible NLRI provided by an embodiment of the present application. NLRI1301 is data in TLV format. The "route identifier" in area 1302 is an attribute (type) of NLRI1301. The "8 bytes" in area 1303 is the length (length) of the attribute value. The "1.1.0.1:1" in area 1304 represents the value (value) of the attribute. The attributes of NLRI1301 may include MAC address length (MAC address length), MAC address (MAC address), IP address prefix length (IP prefex address length) or IP address prefix. The IP address prefix length and IP address prefix can represent the above IP address, and the MAC address length and MAC address can represent the MAC address corresponding to the IP address. Optionally, NLRI1201 may also include one or more attributes including a route distinguisher (RD), an Ethernet segment identifier (ESI), etc., wherein RD is an attribute used to identify the identity of the first network element, and ESI is used to identify the connection between the first network element and the second network element. Among them, RD can be data with a length of 8 bytes (octets) or bytes of other lengths. Similarly, other attributes can also define other byte lengths, and this application does not limit this.

[0251] Optionally, the indication information in the routing message may be included in the extended community field (extendcommunity) of the routing message. The indication information may be the entire structure of the extended community field. For example, if the extended community field in the routing message is null or default, the routing message is not used to establish an allowed address pair. If the extended community is not default or is a target value, the routing message is used to establish an allowed address pair. The indication information may also be one or more identifiers in the extended community field. For example, the extended community field may include flow rules (Flowspec) data, wherein the flow rules include a traffic action (traffic-action) field, and the first network element may instruct the second network element to establish an allowed address pair according to the IP address in the routing message through the identifier in the traffic action field.

[0252] Optionally, the routing message may further include information indicating a forwarding rule, which is used to instruct the second network element to forward the message including the IP address according to the forwarding rule. The forwarding rule may include allowing forwarding, refusing forwarding, forwarding through a certain interface, and forwarding at a certain rate. Furthermore, the forwarding rule may also be expressed by quality of service (QoS), which includes bandwidth for message transmission, transmission delay, data packet loss rate, etc.

[0253] Step S1104: The first network element sends a routing message to the second network element.

[0254] Specifically, the specific implementation of step S1104 may refer to the relevant description of step S403.

[0255] Step S1105: The second network element establishes an allowed address pair according to the IP address and the corresponding MAC address through the indication information.

[0256] Specifically, the second network element may establish an allowed address pair in the form of {IP address, MAC address}, or may establish the allowed address pair in the form of a correspondence relationship set.

[0257] For example, the second network element establishes an allowed address pair {192.168.2.2 / 24, 00-11-12-21-66-66} according to the IP address "192.168.2.2 / 24" and the MAC address "00-11-12-21-66-66" corresponding to the destination IP address. Of course, the allowed address pair may also exist in other forms, which are not limited in this application.

[0258] Step 1106: The second network element forwards the target message including the IP address from the VNF according to the allowed address pair.

[0259] Specifically, the second network element may establish an allowed address pair in the form of {IP address, MAC address}, or may establish the allowed address pair in the form of a correspondence set, or may establish the allowed address pair in other ways.

[0260] Specifically, after the second network element establishes the allowed address pair, when receiving a target message including the IP address from the VNF, if the IP address in the target message and its corresponding MAC address are already included in the allowed address pair of the second network element, the second network element forwards the target message. For example, the allowed address pair {192.168.2.2 / 24, 00-11-12-21-66-66} is established in the second network element. When the second network element receives a target message with a source IP address of "192.168.2.2 / 24" and a source MAC address of "00-11-12-21-66-66", because the source IP address "192.168.2.2 / 24" and the source MAC address "00-11-12-21-66-66" have been registered in the second network element as an allowed address pair, the second network element will forward the target message.

[0261] Optionally, the second network element can check the address pair of the target message through the address pair module. In this case, after the second network element establishes the allowed address pair, it sends the allowed address pair to the address pair module for the address pair module to check the source IP address and source MAC address of the target message.

[0262] Optionally, if the above-mentioned extended community field (extend community) includes information indicating forwarding rules, the second network element can attach corresponding forwarding rules to the established allowed address pair, so that when the second network element receives the target message from the allowed address pair, it forwards the target message according to the forwarding rules corresponding to the allowed address. For example, when the second network element establishes a relationship pair such as {192.168.2.2 / 24, 00-11-12-21-66-66, 10Mbps} and receives a message with a source address of {192.168.2.2 / 24, 00-11-12-21-66-66}, it forwards the message according to a bandwidth of 10 megabits per second (Mbps). Optionally, if the above-mentioned extended community field (extend community) includes information indicating forwarding rules, the second network element can forward the target message according to the default forwarding rule.

[0263] exist Fig.11In the described method, the first network element determines the MAC address corresponding to the IP address in the routing table of the VNF, sends the IP address, MAC address and indication information to the second network element through a routing message, and the second network element establishes an allowed address pair based on the IP address and MAC address. In this way, the source address pairs in the messages of other network elements forwarded by the VNF are equivalent to establishing allowed address pairs in the second network element. Therefore, when the second network element receives the message sent by the VNF, it will forward the message instead of directly discarding it, thereby improving the transmission efficiency of the message. In addition, since the process of establishing the allowed address pair is completed by the first network element and the second network element in collaboration, without the need to manually collect and organize relevant information, the efficiency of establishing the allowed address pair is improved.

[0264] The method of the embodiment of the present application is described in detail above, and the device of the embodiment of the present application is provided below.

[0265] See also Fig.14 , Fig.14 is a schematic diagram of the structure of a network element 140 provided in an embodiment of the present application. The network element 150 may be the above-mentioned Figure 4 , Fig. 9 or Fig.11 In the first network element in the embodiment shown, the network element 140 may include a receiving unit 1401, an acquiring unit 1402, and a sending unit 1403, wherein each unit is described in detail as follows:

[0266] The receiving unit 1401 is used to receive the Internet Protocol IP address in the routing table of the VNF sent by the virtual network function VNF; for specific implementation methods, please refer to the above Figure 4 In the embodiment shown, steps S401, Fig. 9 Step S901 and Fig.11 The detailed description of step S1101 in the illustrated embodiment will not be repeated here.

[0267] The acquisition unit 1402 is used to acquire a routing message, wherein the routing message includes the IP address and the indication information; for a specific implementation method, please refer to the above Figure 4 In the embodiment shown, step S402, Fig. 9 Step S902 and Fig.11 The detailed description of step S1103 in the illustrated embodiment will not be repeated here.

[0268] The sending unit 1403 is used to send the routing message to the second network element, wherein the indication information in the routing message is used to instruct the second network element to establish an allowed address pair according to the IP address, the allowed address pair includes the IP address and the media access control MAC address corresponding to the IP address, and the allowed address pair is used for the second network element to forward the target message when receiving the target message including the IP address from the VNF. For specific implementation methods, please refer to the above Figure 4 In the embodiment shown, step S403, Fig. 9 Step S903 and Fig.11 The detailed description of step S1104 in the illustrated embodiment will not be repeated here.

[0269] It can be seen that network element 140 sends the IP address and indication information in the routing table of VNF to the second network element through a routing message, and the second network element establishes an allowed address pair based on the IP address. In this way, the source address pairs in the messages of other network elements forwarded by VNF are equivalent to establishing allowed address pairs in the second network element. Therefore, when the second network element receives the message sent by VNF, it will forward the message instead of directly discarding it, thereby improving the transmission efficiency of the message. In addition, since the process of establishing the allowed address pair is completed by network element 140 and the second network element in collaboration, without the need to manually collect and organize relevant information, the efficiency of establishing the allowed address pair is improved.

[0270] It should be noted here that the division of the above-mentioned multiple units is only a logical division based on function, and is not a limitation on the specific structure of the network element 140. In a specific implementation, some of the functional modules may be subdivided into more small functional modules, and some functional modules may be combined into one functional module. However, regardless of whether these functional modules are subdivided or combined, the general process executed by the network element 140 in the control process of message forwarding is the same. For example, the above-mentioned multiple units can also be simplified into a communication unit and a processing unit, wherein the communication unit is used to implement the functions of the receiving unit 1401 and the sending unit 1403, and the processing unit is used to implement the function of the acquisition unit 1402. Usually, each unit corresponds to its own program code (or program instruction), and when the program code corresponding to each of these units runs on the processor, the unit executes the corresponding process to implement the corresponding function.

[0271] In a possible implementation, the routing message also includes a forwarding rule for the target message. It can be seen that encapsulating the forwarding rule for the target message in the routing message can enable the second network element to perform more refined operations on the target message, which can better meet the needs of various services.

[0272] In another possible implementation, the routing message also includes a MAC address corresponding to the IP address. It can be seen that the network element 140 can obtain the MAC address corresponding to the IP address, and send the IP address and the corresponding MAC address through the routing message, so that the second network element establishes a corresponding allowed address pair according to the IP address and the MAC address in the routing message, without having to determine the MAC address corresponding to the IP address, thereby reducing the calculation pressure of the second network element.

[0273] In another possible implementation, the MAC address corresponding to the IP address is obtained by the network element 140 through a network manager or is found by the network element 140 through a routing next hop.

[0274] For example, the network controller maintains the IP addresses and MAC addresses of the network elements in the network. The network element 140 can send a request to the network controller, and the network controller sends the IP addresses and MAC addresses of some network elements to the network element 140 through the management interface. Correspondingly, the network element 140 obtains the MAC address corresponding to the IP address.

[0275] For another example, since the routing message includes the IP address of the next hop (NHP) to the IP address, the network element 140 can determine the MAC address corresponding to the IP address by transmitting the routing message through the next hop of the IP address. Optionally, the IP address of the next hop can be a loopback address of the router.

[0276] In yet another optional implementation, the indication information is included in an extended community field of the routing message, and the IP address is included in network layer reachability information NLRI of the routing message.

[0277] In another possible implementation manner, the indication information is the entire structure of the extended community field or one or more identifiers in the extended community field.

[0278] For example, if the extended community field in the routing message is a null value or a default value, the routing message is not used to establish an allowed address pair. If the extended community is not default or is a target value, the routing message is used to establish an allowed address pair. The indication information may also be an identifier in the extended community field. For example, the extended community field may include flow specification (Flow spec) data, wherein the flow rule includes a traffic action (traffic-action) field, and the network element 140 may instruct the second network element to establish an allowed address pair according to the IP address in the routing message through the identifier in the traffic action field.

[0279] In yet another possible implementation, the MAC address corresponding to the IP address is included in the network layer reachability information NLR I of the routing message.

[0280] In yet another possible implementation, the indication information is included in a routing message community attribute field of the routing message.

[0281] For example, network element 140 uses the community attribute "100:10" or "100:11" to instruct the second network element to establish an allowed address pair according to the IP address in the preset field. The community attribute "100:12" is not used to instruct the second network element to establish an allowed address pair according to the IP address in the routing message.

[0282] In yet another possible implementation, the community attribute field is further used to indicate a forwarding rule of the target message.

[0283] It can be seen that the network element 140 can indicate a forwarding rule in the community attribute field for the second network element to forward the message including the IP address, thereby performing a more refined forwarding operation on the message and better meeting the needs of various services.

[0284] In yet another possible implementation, the forwarding rule includes one or more of allowing forwarding, refusing forwarding, forwarding via a target port, or forwarding according to a target bandwidth.

[0285] In another possible implementation manner, the sending unit 1403 is configured to send the routing message to the second network element, specifically:

[0286] The routing message is sent to the second network element based on the Ethernet virtual private network EVPN.

[0287] EVPN technology establishes a dedicated network tunnel on the public network architecture and is a control layer and data layer technology across a wide area network (WAN). Based on EVPV technology, network element 140 and the second network element can publish layer 2 MAC addresses and layer 3 routing information. Therefore, using EVPN technology can reduce the traffic in the network, thereby improving the efficiency of data transmission.

[0288] In another possible implementation, the second network element is a virtual node, and the second network element and the VNF are deployed on the same physical node; network element 140 and the second network element are deployed on the same physical node or are respectively deployed on different physical nodes.

[0289] In another possible implementation, the VNF is managed by the NFV management and orchestration system MANO, and the Border Gateway Protocol BGP neighbor of the VNF is established by the NFV orchestrator NFVO.

[0290] See also Fig.15 , Fig.15 is a schematic diagram of the structure of a network element 150 provided in an embodiment of the present application. The network element 150 may be the above-mentioned Figure 4 , Fig. 9 or Fig.11 In the second network element in the embodiment shown, the network element 150 may include a receiving unit 1501, an establishing unit 1502 and a sending unit 1503, wherein the detailed description of each unit is as follows:

[0291] The receiving unit 1501 is used to receive a routing message sent by a first network element, wherein the routing message includes an IP address and indication information, and the IP address is an Internet interconnection protocol IP address in a routing table of a virtual network function VNF connected to the first network element; for a specific implementation method, please refer to the above Figure 4 In the embodiment shown, step S403, Fig. 9 Step S903 and Fig.11 The detailed description of step S1104 in the illustrated embodiment will not be repeated here.

[0292] The establishing unit 1502 is used to establish an allowed address pair according to the IP address and the media access control MAC address corresponding to the IP address through the indication information; for specific implementation methods, please refer to the above Figure 4 In the embodiment shown, step S404, Fig. 9 Step S904 and Fig.11 The detailed description of step S1105 in the illustrated embodiment will not be repeated here.

[0293] The sending unit 1503 is used to forward the target message including the IP address from the VNF according to the allowed address pair. For specific implementation methods, please refer to the above Figure 4 In the illustrated embodiment, step S405, Fig. 9 Step S905 and Fig.11 The detailed description of step S1106 in the illustrated embodiment will not be repeated here.

[0294] It can be seen that the first network element sends the IP address and indication information in the routing table of the VNF to the network element 150 through the routing message, and the network element 150 establishes the allowed address pair according to the IP address. In this way, the source address pairs in the messages of other network elements forwarded by the VNF are equivalent to establishing the allowed address pairs in the network element 150. Therefore, when the network element 150 receives the message sent by the VNF, it will forward the message instead of directly discarding it, thereby improving the transmission efficiency of the message. In addition, since the process of establishing the allowed address pair is completed by the first network element and the network element 150 in collaboration, without the need to manually collect and organize relevant information, the efficiency of establishing the allowed address pair is improved.

[0295] It should be noted here that the division of the above-mentioned multiple units is only a logical division based on functions, and does not serve as a limitation on the specific structure of the network element 150. In a specific implementation, some of the functional modules may be subdivided into more small functional modules, and some functional modules may be combined into one functional module. However, regardless of whether these functional modules are subdivided or combined, the general process executed by the network element 150 in the control process of message forwarding is the same. For example, the above-mentioned multiple units can also be simplified into a communication unit and a processing unit, wherein the communication unit is used to implement the functions of the receiving unit 1501 and the sending unit 1503, and the processing unit is used to implement the function of the establishment unit 1502. Usually, each unit corresponds to its own program code (or program instruction), and when the program code corresponding to each of these units runs on the processor, the unit executes the corresponding process to implement the corresponding function.

[0296] In a possible implementation manner, the network element further includes:

[0297] The determining unit 1504 is configured to determine a MAC address corresponding to the IP address according to the IP address.

[0298] In another possible implementation, the MAC address corresponding to the IP address is obtained by the determination unit through a network manager or is found by the determination unit through a routing next hop.

[0299] For example, the network controller maintains the IP addresses and MAC addresses of the network elements in the network. The network element 150 can send a request to the network controller, and the network controller sends the IP addresses and MAC addresses of some network elements to the network element 150 through the management interface. Correspondingly, the network element 150 obtains the MAC address corresponding to the IP address.

[0300] For another example, since the routing message includes the IP address of the next hop (NHP) to the IP address, the network element 150 can transmit the routing message through the next hop of the IP address to determine the MAC address corresponding to the IP address. Optionally, the IP address of the next hop can be a loopback address of the router.

[0301] In another possible implementation, the routing message also includes a MAC address corresponding to the IP address. It can be seen that the first network element can obtain the MAC address corresponding to the IP address, and send the IP address and the corresponding MAC address through the routing message, so that the network element 150 establishes a corresponding allowed address pair according to the IP address and the MAC address in the routing message, without having to determine the MAC address corresponding to the IP address, thereby reducing the calculation pressure of the network element 150.

[0302] In another possible implementation, the routing message also includes a forwarding rule for the target message; the sending unit 1503 is configured to forward the target message including the IP address from the VNF according to the allowed address pair, specifically:

[0303] According to the allowed address pair and the forwarding rule, the target message including the IP address from the VNF is forwarded. It can be seen that the forwarding rule for the target message is encapsulated in the routing message, so that the network element 150 can perform more refined operations on the target message, which can better meet the needs of various services.

[0304] In yet another possible implementation, the indication information is included in an extended community field of the routing message, and the IP address is included in network layer reachability information NLRI of the routing message.

[0305] In another possible implementation manner, the indication information is the entire structure of the extended community field or one or more identifiers in the extended community field.

[0306] For example, if the extended group field in the routing message is a null value or a default value, the routing message is not used to establish an allowed address pair. If the extended group is not default or is a target value, the routing message is used to establish an allowed address pair. The indication information may also be an identifier in the extended group field. For example, the extended group field may include flow specification (Flow spec) data, wherein the flow rule includes a traffic action (traffic-action) field, and the first network element may instruct the network element 150 to establish an allowed address pair according to the IP address in the routing message through the identifier in the traffic action field.

[0307] In yet another possible implementation, the MAC address corresponding to the IP address is included in the network layer reachability information NLR I of the routing message.

[0308] In yet another possible implementation, the indication information is included in a community attribute field of the routing message.

[0309] For example, the first network element uses the community attribute "100:10" or "100:11" to instruct the network element 150 to establish an allowed address pair according to the IP address in the routing message. The community attribute "100:12" is not used to instruct the network element 150 to establish an allowed address pair according to the IP address in the routing message.

[0310] For example, if the extended group field in the routing message is a null value or a default value, the routing message is not used to establish an allowed address pair. If the extended group is not default or is a target value, the routing message is used to establish an allowed address pair. The indication information may also be an identifier in the extended group field. For example, the extended group field may include flow specification (Flow spec) data, wherein the flow rule includes a traffic action (traffic-action) field, and the first network element may instruct the network element 150 to establish an allowed address pair according to the IP address in the routing message through the identifier in the traffic action field.

[0311] In yet another possible implementation, the community attribute field is further used to indicate a forwarding rule of the target message.

[0312] It can be seen that the first network element can indicate a forwarding rule in the community attribute field for network element 150 to forward a message including an IP address, thereby performing a more refined forwarding operation on the message and better meeting the needs of various services.

[0313] In yet another possible implementation, the forwarding rule includes one or more of allowing forwarding, refusing forwarding, forwarding via a target port, or forwarding according to a target bandwidth.

[0314] In another possible implementation, the receiving unit 1501 is configured to receive a routing message sent by the first network element, specifically:

[0315] Based on the Ethernet virtual private network EVPN, the routing message sent by the first network element is received.

[0316] In the above method, EVPN technology establishes a dedicated network tunnel on the public network architecture, which is a control layer and data layer technology across a wide area network (WAN). Based on EVPV technology, the first network element and network element 150 can publish a layer 2 MAC address and a layer 3 routing information. Therefore, the use of EVPN technology can reduce the traffic in the network, thereby improving the efficiency of data transmission.

[0317] In another possible implementation, the network element is a virtual node, and the network element 150 and the VNF are deployed on the same physical node; the first network element and the network element 150 are deployed on the same physical node or are respectively deployed on different physical nodes.

[0318] In another possible implementation, the VNF is managed by the NFV management and orchestration system MANO, and the Border Gateway Protocol BGP neighbor of the VNF is established by the NFV orchestrator NFVO.

[0319] See also Fig.16 , Fig.16 is a schematic diagram of the structure of a network element 160 provided in an embodiment of the present application. The network element 160 may be the above-mentioned Figure 4 , Fig. 9 or Fig.11 The first network element in the embodiment shown. The network element 160 may be an electronic device with data transceiving capability, or a device in an electronic device with data transceiving capability, such as a chip or an integrated circuit. The network element 160 may include a memory 1601, a processor 1602, and a communication interface 1603. Further optionally, a bus 1604 may be further included, wherein the memory 1601, the processor 1602, and the communication interface 1603 are connected via the bus 1604.

[0320] The memory 1601 is used to provide a storage space, and the storage space can store data such as an operating system and a computer program. The memory 1601 includes, but is not limited to, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), or a portable read-only memory (CD-ROM).

[0321] The processor 1602 is a module that performs arithmetic and logical operations, and may be one or a combination of multiple processing modules such as a central processing unit (CPU), a graphics processing unit (GPU), or a microprocessor unit (MPU).

[0322] The communication interface 1603 is used to receive data sent from the outside and send data to the outside, and can be a wired link interface such as an Ethernet cable, or a wireless link (WIFI, Bluetooth, etc.) interface. Optionally, the communication interface can also include a transmitter (such as a radio frequency transmitter, etc.) coupled to the interface, or a receiver, etc.

[0323] The processor 1602 in the network element 160 is used to read the computer program stored in the memory 1601 and perform the following operations:

[0324] The Internet Protocol IP address in the routing table of the VNF sent by the virtual network function VNF is received through the communication interface 1603; for specific implementation methods, please refer to the above Figure 4 In the embodiment shown, steps S401, Fig. 9 Step S901 and Fig.11 The detailed description of step S1101 in the illustrated embodiment will not be repeated here.

[0325] Obtain routing information, wherein the routing information includes the IP address and indication information; for specific implementation methods, please refer to the above Figure 4 In the embodiment shown, step S402, Fig. 9 Step S902 and Fig.11 The detailed description of step S1103 in the illustrated embodiment will not be repeated here.

[0326] The routing message is sent to the second network element through the communication interface 1603, wherein the indication information in the routing message is used to instruct the second network element to establish an allowed address pair according to the IP address, the allowed address pair includes the IP address and the media access control MAC address corresponding to the IP address, and the allowed address pair is used for the second network element to forward the target message when receiving the target message including the IP address from the VNF. For specific implementation methods, please refer to the above Figure 4 In the embodiment shown, step S403, Fig. 9 Step S903 and Fig.11 The detailed description of step S1104 in the illustrated embodiment will not be repeated here.

[0327] It can be seen that network element 160 sends the IP address and indication information in the routing table of VNF to the second network element through a routing message, and the second network element establishes an allowed address pair based on the IP address. In this way, the source address pairs in the messages of other network elements forwarded by VNF are equivalent to establishing allowed address pairs in the second network element. Therefore, when the second network element receives the message sent by VNF, it will forward the message instead of directly discarding it, thereby improving the transmission efficiency of the message. In addition, since the process of establishing the allowed address pair is completed by network element 160 and the second network element in collaboration, without the need to manually collect and organize relevant information, the efficiency of establishing the allowed address pair is improved.

[0328] In a possible implementation, the routing message also includes a forwarding rule for the target message. It can be seen that encapsulating the forwarding rule for the target message in the routing message can enable the second network element to perform more refined operations on the target message, which can better meet the needs of various services.

[0329] In another possible implementation, the routing message also includes a MAC address corresponding to the IP address. It can be seen that the network element 160 can obtain the MAC address corresponding to the IP address, and send the IP address and the corresponding MAC address through the routing message, so that the second network element establishes a corresponding allowed address pair according to the IP address and the MAC address in the routing message, without having to determine the MAC address corresponding to the IP address, thereby reducing the calculation pressure of the second network element.

[0330] In another possible implementation, the MAC address corresponding to the IP address is obtained by the first network element through a network manager or is found by the first network element through a routing next hop.

[0331] For example, the network controller maintains the IP addresses and MAC addresses of the network elements in the network. The network element 160 can send a request to the network controller, and the network controller sends the IP addresses and MAC addresses of some network elements to the network element 160 through the management interface. Correspondingly, the network element 160 obtains the MAC address corresponding to the IP address.

[0332] For another example, since the routing message includes the IP address of the next hop (NHP) to the IP address, the network element 160 can determine the MAC address corresponding to the IP address by transmitting the routing message through the next hop of the IP address. Optionally, the IP address of the next hop can be a loopback address of the router.

[0333] In yet another optional implementation, the indication information is included in an extended community field of the routing message, and the IP address is included in network layer reachability information NLRI of the routing message.

[0334] In another possible implementation manner, the indication information is the entire structure of the extended community field or one or more identifiers in the extended community field.

[0335] For example, if the extended community field in the routing message is a null value or a default value, the routing message is not used to establish an allowed address pair. If the extended community is not default or is a target value, the routing message is used to establish an allowed address pair. The indication information may also be an identifier in the extended community field. For example, the extended community field may include flow specification (Flow spec) data, wherein the flow rule includes a traffic action (traffic-action) field, and the network element 160 may instruct the second network element to establish an allowed address pair according to the IP address in the routing message through the identifier in the traffic action field.

[0336] In yet another possible implementation, the MAC address corresponding to the IP address is included in the network layer reachability information NLR I of the routing message.

[0337] In yet another possible implementation, the indication information is included in a routing message community attribute field of the routing message.

[0338] For example, network element 160 uses the community attribute "100:10" or "100:11" to instruct the second network element to establish an allowed address pair according to the IP address in the routing message. The community attribute "100:12" is not used to instruct the second network element to establish an allowed address pair according to the IP address in the routing message.

[0339] In yet another possible implementation, the community attribute field is further used to indicate a forwarding rule of the target message.

[0340] It can be seen that the network element 160 can indicate a forwarding rule in the community attribute field for the second network element to forward the message including the IP address, thereby performing a more refined forwarding operation on the message and better meeting the needs of various services.

[0341] In yet another possible implementation, the forwarding rule includes one or more of allowing forwarding, refusing forwarding, forwarding via a target port, or forwarding according to a target bandwidth.

[0342] In yet another possible implementation, in terms of sending the routing message to the second network element, the processor 1602 is specifically configured to:

[0343] The first network element sends the routing message to the second network element through the communication interface 1603 based on the Ethernet virtual private network EVPN.

[0344] EVPN technology establishes a dedicated network tunnel on the public network architecture and is a control layer and data layer technology across a wide area network (WAN). Based on EVPV technology, network element 160 and the second network element can publish layer 2 MAC addresses and layer 3 routing information. Therefore, using EVPN technology can reduce network traffic and improve data transmission efficiency.

[0345] In another possible implementation, the second network element is a virtual node, and the second network element and the VNF are deployed on the same physical node; network element 160 and the second network element are deployed on the same physical node or are respectively deployed on different physical nodes.

[0346] In another possible implementation, the VNF is managed by the NFV management and orchestration system MANO, and the Border Gateway Protocol BGP neighbor of the VNF is established by the NFV orchestrator NFVO.

[0347] See also Fig.17 , Fig.17 is a schematic diagram of the structure of a network element 170 provided in an embodiment of the present application. The network element 170 may be the above-mentioned Figure 4 , Fig. 9 or Fig.11 The second network element in the embodiment shown. The network element 170 may be an electronic device with data transceiving capability, or a device in an electronic device with data transceiving capability, such as a chip or an integrated circuit. The network element 170 may include a memory 1701, a processor 1702, and a communication interface 1703. Further optionally, a bus 1704 may be further included, wherein the memory 1701, the processor 1702, and the communication interface 1703 are connected via the bus 1704.

[0348] The memory 1701 is used to provide a storage space, and the storage space can store data such as an operating system and a computer program. The memory 1701 includes, but is not limited to, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), or a portable read-only memory (CD-ROM).

[0349] The processor 1702 is a module that performs arithmetic and logical operations, and may be one or a combination of multiple processing modules such as a central processing unit (CPU), a graphics processing unit (GPU), or a microprocessor unit (MPU).

[0350] The communication interface 1703 is used to receive data sent from the outside and send data to the outside, and can be a wired link interface such as an Ethernet cable, or a wireless link (WIFI, Bluetooth, etc.) interface. Optionally, the communication interface can also include a transmitter (such as a radio frequency transmitter, etc.) coupled to the interface, or a receiver, etc.

[0351] The processor 1702 in the network element 170 is used to read the computer program stored in the memory 1701 and perform the following operations:

[0352] The communication interface 1703 receives a routing message sent by the first network element, wherein the routing message includes an IP address and indication information, and the IP address is an Internet Protocol IP address in a routing table of a virtual network function VNF connected to the first network element; for a specific implementation method, please refer to the above Figure 4 In the embodiment shown, step S403, Fig. 9 Step S903 and Fig.11 The detailed description of step S1104 in the illustrated embodiment will not be repeated here.

[0353] Through the indication information, according to the IP address and the media access control MAC address corresponding to the IP address, an allowed address pair is established; for specific implementation methods, please refer to the above Figure 4 In the embodiment shown, step S404, Fig. 9 Step S904 and Fig.11 The detailed description of step S1105 in the illustrated embodiment will not be repeated here.

[0354] Through the communication interface 1703, the target message including the IP address from the VNF is forwarded according to the allowed address pair. For specific implementation methods, please refer to the above Figure 4 In the illustrated embodiment, step S405, Fig. 9 Step S905 and Fig.11The detailed description of step S1106 in the illustrated embodiment will not be repeated here. It can be seen that the first network element sends the IP address and indication information in the routing table of the VNF to the network element 170 through a routing message, and the network element 170 establishes an allowed address pair based on the IP address. In this way, the source address pairs in the messages of other network elements forwarded by the VNF are equivalent to establishing allowed address pairs in the network element 170. Therefore, when the network element 170 receives the message sent by the VNF, it will forward the message instead of directly discarding it, thereby improving the transmission efficiency of the message. In addition, since the process of establishing the allowed address pair is completed collaboratively by the first network element and the network element 170, without the need to manually collect and organize relevant information, the efficiency of establishing the allowed address pair is improved.

[0355] In a possible implementation, before forwarding the target message including the IP address from the VNF according to the allowed address pair through the communication interface 1703, the processor 1702 is further configured to:

[0356] Determine a MAC address corresponding to the IP address according to the IP address.

[0357] In another possible implementation, the MAC address corresponding to the IP address is obtained by the network element through a network manager or is found by the network element through a routing next hop.

[0358] For example, the network controller maintains the IP addresses and MAC addresses of the network elements in the network. The network element 170 can send a request to the network controller, and the network controller sends the IP addresses and MAC addresses of some network elements to the network element 170 through the management interface. Correspondingly, the network element 170 obtains the MAC address corresponding to the IP address.

[0359] For another example, since the routing message includes the IP address of the next hop (NHP) to the IP address, the network element 170 can determine the MAC address corresponding to the IP address by transmitting the routing message through the next hop of the IP address. Optionally, the IP address of the next hop can be a loopback address of the router.

[0360] In another possible implementation, the routing message also includes a MAC address corresponding to the IP address. It can be seen that the first network element can obtain the MAC address corresponding to the IP address, and send the IP address and the corresponding MAC address through the routing message, so that the network element 170 establishes a corresponding allowed address pair according to the IP address and the MAC address in the routing message, without having to determine the MAC address corresponding to the IP address, thereby reducing the calculation pressure of the network element 170.

[0361] In another possible implementation, the routing message also includes a forwarding rule for the target message; in terms of forwarding the target message including the IP address from the VNF according to the allowed address pair, the processor 1702 is specifically configured to:

[0362] According to the allowed address pair and the forwarding rule of the target message, the target message including the IP address from the VNF is forwarded. It can be seen that the forwarding rule for the target message is encapsulated in the routing message, so that the network element 170 can perform more refined operations on the target message, which can better meet the needs of various services.

[0363] In yet another possible implementation, the indication information is included in an extended community field of the routing message, and the IP address is included in network layer reachability information NLRI of the routing message.

[0364] In another possible implementation manner, the indication information is the entire structure of the extended community field or one or more identifiers in the extended community field.

[0365] For example, if the extended group field in the routing message is a null value or a default value, the routing message is not used to establish an allowed address pair. If the extended group is not default or is a target value, the routing message is used to establish an allowed address pair. The indication information may also be an identifier in the extended group field. For example, the extended group field may include flow specification (Flow spec) data, wherein the flow rule includes a traffic action (traffic-action) field, and the first network element may instruct the network element 170 to establish an allowed address pair according to the IP address in the routing message through the identifier in the traffic action field.

[0366] In yet another possible implementation, the MAC address corresponding to the IP address is included in the network layer reachability information NLR I of the routing message.

[0367] In yet another possible implementation, the indication information is included in a community attribute field of the routing message.

[0368] The first network element uses the community attribute "100:10" or "100:11" to instruct the network element 170 to establish an allowed address pair according to the IP address in the routing message. The community attribute "100:12" is not used to instruct the network element 170 to establish an allowed address pair according to the IP address in the routing message.

[0369] In yet another possible implementation, the community attribute field is further used to indicate a forwarding rule of the target message.

[0370] It can be seen that the first network element can indicate a forwarding rule in the community attribute field for network element 170 to forward a message including an IP address, thereby performing a more refined forwarding operation on the message and better meeting the needs of various services.

[0371] In yet another possible implementation, the forwarding rule includes one or more of allowing forwarding, refusing forwarding, forwarding via a target port, or forwarding according to a target bandwidth.

[0372] In yet another possible implementation, in the aspect of receiving, through the communication interface 1703, a routing message sent by the first network element, the processor 1702 is specifically configured to:

[0373] Based on the Ethernet virtual private network EVPN, the routing message sent by the first network element is received through the communication interface 1703.

[0374] In the above method, EVPN technology establishes a dedicated network tunnel on the public network architecture, which is a control layer and data layer technology across a wide area network (WAN). Based on EVPV technology, the first network element and network element 170 can publish a layer 2 MAC address and a layer 3 routing information. Therefore, the use of EVPN technology can reduce the traffic in the network, thereby improving the efficiency of data transmission.

[0375] In another possible implementation, the network element is a virtual node, and the network element 170 and the VNF are deployed on the same physical node; the first network element and the network element 170 are deployed on the same physical node or are respectively deployed on different physical nodes.

[0376] In another possible implementation, the VNF is managed by the NFV management and orchestration system MANO, and the Border Gateway Protocol BGP neighbor of the VNF is established by the NFV orchestrator NFVO.

[0377] The embodiment of the present application also provides a chip system, the chip system includes at least one processor, a memory and an interface circuit, the memory, the transceiver and the at least one processor are interconnected through a line, the at least one memory stores a computer program; when the computer program is executed by the processor, Figure 4 or Fig. 9 or Fig.11 The operation performed by the first network element or the second network element in the network.

[0378] The embodiment of the present application further provides a control system for message forwarding, including a first network element and a second network element, wherein:

[0379] The first network element is Figure 4 or Fig. 9 or Fig.11 The first network element in

[0380] The second network element is Figure 4 or Fig. 9 or Fig.11 The second network element in.

[0381] The present application also provides a computer storage medium, wherein the computer readable storage medium stores a computer program, and when the computer program is run on one or more processors, the computer program executes the following Figure 4 or Fig. 9 or Fig.11 The operations performed in the first network element in.

[0382] The present application also provides a computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium. When the computer program is executed on one or more processors, the computer program executes the following steps: Figure 4 or Fig. 9 or Fig.11 The operations performed in the second network element in.

[0383] The embodiment of the present application also provides a computer-readable storage medium in which instructions are stored. When the instructions are executed on a processor, Figure 4 The embodiment shown or Fig. 9 The embodiment shown or Fig.11 The operation performed by the first network element in the embodiment, or Figure 4 The embodiment shown or Fig. 9 The embodiment shown or Fig.11 Operations performed by the second network element in the embodiment.

[0384] The present application also provides a computer program product, which, when executed on a processor, implements Figure 4 The embodiment shown or Fig. 9 The embodiment shown or Fig.11 The operation performed by the first network element in the embodiment, or Figure 4 The embodiment shown or Fig. 9 The embodiment shown or Fig.11 Operations performed by the second network element in the embodiment.

[0385] It should be noted that, for the above-mentioned various method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that this application is not limited by the order of the actions described, because according to this application, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this application.

[0386] The steps in the method of the embodiment of the present application can be adjusted in order, combined and deleted according to actual needs.

[0387] The modules in the device of the embodiment of the present application can be merged, divided and deleted according to actual needs.

[0388] A person skilled in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0389] The above disclosure is only the preferred embodiment of the present application. Those skilled in the art can understand that all or part of the processes of implementing the above embodiments and equivalent changes made according to the claims of the present application are still within the scope of the invention.

Claims

1. A method for controlling message forwarding, It is characterized in that include: The first network element receives an Internet Protocol IP address in a routing table of the VNF sent by the virtual network function VNF; The first network element obtains a routing message, wherein the routing message includes the IP address and indication information; The first network element sends the routing message to the second network element, wherein the indication information in the routing message is used to instruct the second network element to establish an allowed address pair based on the IP address, the allowed address pair including the IP address and the media access control MAC address corresponding to the IP address, and the allowed address pair is used by the second network element to forward the target message when receiving the target message including the IP address from the VNF.

2. The method according to claim 1, It is characterized in that The routing message also includes forwarding rules for the target message.

3. The method according to claim 1, It is characterized in that The routing message also includes a MAC address corresponding to the IP address.

4. The method according to claim 3, It is characterized in that The MAC address corresponding to the IP address is obtained by the first network element through a network manager or is found by the first network element through a routing next hop.

5. The method according to any one of claims 1 to 4, It is characterized in that The indication information is included in the extended community field of the routing message, and the IP address is included in the network layer reachability information NLRI of the routing message.

6. The method according to claim 1 or 2, It is characterized in that The indication information is included in a routing message community attribute field of the routing message.

7. The method according to any one of claims 1 to 4, It is characterized in that The first network element sending the routing message to the second network element includes: The first network element sends the routing message to the second network element based on an Ethernet virtual private network EVPN.

8. The method according to any one of claims 1 to 4, It is characterized in that The second network element is a virtual node, and the second network element and the VNF are deployed on the same physical node; the first network element and the second network element are deployed on the same physical node or are respectively deployed on different physical nodes.

9. A method for controlling message forwarding, It is characterized in that include: The second network element receives a routing message sent by the first network element, wherein the routing message includes an IP address and indication information, and the IP address is an Internet interconnection protocol IP address in a routing table of a virtual network function VNF connected to the first network element; The second network element establishes an allowed address pair according to the IP address and a media access control MAC address corresponding to the IP address through the indication information; The second network element forwards the target message including the IP address from the VNF according to the allowed address pair.

10. The method according to claim 9, It is characterized in that After the second network element receives the routing message sent by the first network element, before the second network element establishes an allowed address pair according to the IP address and the MAC address corresponding to the IP address, the method further includes: Determine a MAC address corresponding to the IP address according to the IP address.

11. The method according to claim 10, It is characterized in that The MAC address corresponding to the IP address is obtained by the second network element through a network manager or is found by the second network element through a routing next hop.

12. The method according to claim 9, It is characterized in that The routing message also includes a MAC address corresponding to the IP address.

13. The method according to any one of claims 9 to 12, It is characterized in that The routing message also includes a forwarding rule for the target message; the second network element forwards the target message including the IP address from the VNF according to the allowed address pair, including: The second network element forwards the target message including the IP address from the VNF according to the allowed address pair and the forwarding rule of the target message.

14. The method according to any one of claims 9 to 12, It is characterized in that The indication information is included in the extended community field of the routing message, and the IP address is included in the network layer reachability information NLRI of the routing message.

15. The method according to any one of claims 9 to 12, It is characterized in that The indication information is included in the community attribute field of the routing message.

16. The method according to any one of claims 9 to 11, It is characterized in that The second network element receiving the routing message sent by the first network element includes: The second network element receives the routing message sent by the first network element based on the Ethernet virtual private network EVPN.

17. The method according to any one of claims 9 to 12, It is characterized in that The second network element is a virtual node, and the second network element and the VNF are deployed on the same physical node; the first network element and the second network element are deployed on the same physical node or are respectively deployed on different physical nodes.

18. A network element, It is characterized in that include: A receiving unit, configured to receive an Internet Protocol IP address in a routing table of the VNF sent by a virtual network function VNF; An acquiring unit, configured to acquire a routing message, wherein the routing message includes the IP address and indication information; A sending unit, used for sending the routing message to a second network element, wherein the indication information in the routing message is used to instruct the second network element to establish an allowed address pair according to the IP address, the allowed address pair including the IP address and a media access control MAC address corresponding to the IP address, and the allowed address pair is used for the second network element to forward the target message when receiving the target message including the IP address from the VNF.

19. The network element according to claim 18, It is characterized in that The routing message also includes forwarding rules for the target message.

20. The network element according to claim 18, It is characterized in that The routing message also includes a MAC address corresponding to the IP address.

21. The network element according to claim 20, It is characterized in that The MAC address corresponding to the IP address is obtained by the network element through a network manager or is found by the network element through a routing next hop.

22. The network element according to any one of claims 18 to 21, It is characterized in that The indication information is included in the extended community field of the routing message, and the IP address is included in the network layer reachability information NLRI of the routing message.

23. The network element according to claim 18 or 19, It is characterized in that The indication information is included in a routing message community attribute field of the routing message.

24. The network element according to any one of claims 18 to 21, It is characterized in that The sending unit is used to send the routing message to the second network element, specifically: The routing message is sent to the second network element based on the Ethernet virtual private network EVPN.

25. The network element according to any one of claims 18 to 21, It is characterized in that The second network element is a virtual node, and the second network element and the VNF are deployed on the same physical node; the network element and the second network element are deployed on the same physical node or are respectively deployed on different physical nodes.

26. A network element, It is characterized in that include: A receiving unit, configured to receive a routing message sent by a first network element, wherein the routing message includes an IP address and indication information, and the IP address is an Internet Protocol IP address in a routing table of a virtual network function VNF connected to the first network element; an establishing unit, configured to establish an allowed address pair according to the IP address and a media access control MAC address corresponding to the IP address through the indication information; A sending unit is used to forward a target message including the IP address from the VNF according to the allowed address pair.

27. The network element according to claim 26, It is characterized in that The network element also includes: A determination unit is used to determine a MAC address corresponding to the IP address according to the IP address.

28. The network element according to claim 27, It is characterized in that The MAC address corresponding to the IP address is obtained by the determination unit through a network manager or is found by the determination unit through a routing next hop.

29. The network element according to claim 26, It is characterized in that The routing message also includes a MAC address corresponding to the IP address.

30. The network element according to any one of claims 26 to 29, It is characterized in that The routing message also includes a forwarding rule for the target message; the sending unit is used to forward the target message including the IP address from the VNF according to the allowed address pair, specifically: According to the allowed address pair and the forwarding rule, the target message including the IP address from the VNF is forwarded.

31. The network element according to any one of claims 26 to 29, It is characterized in that The indication information is included in the extended community field of the routing message, and the IP address is included in the network layer reachability information NLRI of the routing message.

32. The network element according to any one of claims 26 to 28, It is characterized in that The indication information is included in the community attribute field of the routing message.

33. The network element according to any one of claims 26 to 29, It is characterized in that The receiving unit is used to receive the routing message sent by the first network element, specifically: Based on the Ethernet virtual private network EVPN, the routing message sent by the first network element is received.

34. The network element according to any one of claims 26 to 29, It is characterized in that The network element is a virtual node, and the network element and the VNF are deployed on the same physical node; the first network element and the network element are deployed on the same physical node or are respectively deployed on different physical nodes.

35. A network element, It is characterized in that The system comprises a memory, a processor and a communication interface, wherein the memory stores a computer program, and the processor calls the computer program stored in the memory to perform the following operations: Receive, through the communication interface, an Internet Protocol IP address in a routing table of the VNF sent by a virtual network function VNF; Obtaining a routing message, wherein the routing message includes the IP address and indication information; The routing message is sent to the second network element through the communication interface, wherein the indication information in the routing message is used to instruct the second network element to establish an allowed address pair according to the IP address, the allowed address pair includes the IP address and the media access control MAC address corresponding to the IP address, and the allowed address pair is used for the second network element to forward the target message when receiving the target message including the IP address from the VNF.

36. The network element according to claim 35, It is characterized in that The routing message also includes forwarding rules for the target message.

37. The network element according to claim 35, It is characterized in that The routing message also includes a MAC address corresponding to the IP address.

38. The network element according to claim 37, It is characterized in that The MAC address corresponding to the IP address is obtained by the network element through a network manager or is found by the network element through a routing next hop.

39. The network element according to any one of claims 35 to 38, It is characterized in that The indication information is included in the extended community field of the routing message, and the IP address is included in the network layer reachability information NLRI of the routing message.

40. The network element according to claim 35 or 36, It is characterized in that The indication information is included in a routing message community attribute field of the routing message.

41. The network element according to any one of claims 35 to 38, It is characterized in that In terms of sending the routing message to the second network element, the processor is specifically configured to: The routing message is sent to the second network element based on the Ethernet virtual private network EVPN.

42. The network element according to any one of claims 35 to 38, It is characterized in that The second network element is a virtual node, and the second network element and the VNF are deployed on the same physical node; the network element and the second network element are deployed on the same physical node or are respectively deployed on different physical nodes.

43. A network element, It is characterized in that The system comprises a memory, a processor and a communication interface, wherein the memory stores a computer program, and the processor calls the computer program stored in the memory to perform the following operations: Receiving a routing message sent by the first network element through the communication interface, wherein the routing message includes an IP address and indication information, and the IP address is an Internet interconnection protocol IP address in a routing table of a virtual network function VNF connected to the first network element; By means of the indication information, establishing an allowed address pair according to the IP address and a media access control MAC address corresponding to the IP address; Through the communication interface, the target message including the IP address from the VNF is forwarded according to the allowed address pair.

44. The network element according to claim 43, It is characterized in that Before forwarding the target message including the IP address from the VNF through the communication interface according to the allowed address pair, the processor is further configured to: Determine a MAC address corresponding to the IP address according to the IP address.

45. The network element according to claim 44, It is characterized in that The MAC address corresponding to the IP address is obtained by the network element through a network manager or is found by the network element through a routing next hop.

46. ​​The network element according to claim 43, It is characterized in that The routing message also includes a MAC address corresponding to the IP address.

47. The network element according to any one of claims 43 to 46, It is characterized in that The routing message also includes a forwarding rule for the target message; in terms of forwarding the target message including the IP address from the VNF according to the allowed address pair, the processor is specifically configured to: According to the allowed address pair and the forwarding rule of the target message, the target message including the IP address from the VNF is forwarded.

48. The network element according to any one of claims 43 to 45, It is characterized in that The indication information is included in the extended community field of the routing message, and the IP address is included in the network layer reachability information NLRI of the routing message.

49. The network element according to any one of claims 43 to 46, It is characterized in that The indication information is included in the community attribute field of the routing message.

50. The network element according to any one of claims 43 to 46, It is characterized in that In the aspect of receiving, through the communication interface, a routing message sent by the first network element, the processor is specifically configured to: Based on the Ethernet virtual private network EVPN, the routing message sent by the first network element is received through the communication interface.

51. The network element according to any one of claims 43 to 46, It is characterized in that The network element is a virtual node, and the network element and the VNF are deployed on the same physical node; the first network element and the network element are deployed on the same physical node or are respectively deployed on different physical nodes.

52. A control system for message forwarding, It is characterized in that The system comprises a first network element and a second network element, wherein: The first network element is the network element according to any one of claims 1 to 8; The second network element is the network element described in any one of claims 9-17.

53. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program runs on one or more processors, the method according to any one of claims 1 to 17 is executed.