CN116389356A - Communication method crossing available areas, related device and cloud network - Google Patents

Communication method crossing available areas, related device and cloud network Download PDF

Info

Publication number
CN116389356A
CN116389356A CN202310338737.3A CN202310338737A CN116389356A CN 116389356 A CN116389356 A CN 116389356A CN 202310338737 A CN202310338737 A CN 202310338737A CN 116389356 A CN116389356 A CN 116389356A
Authority
CN
China
Prior art keywords
message
network element
available area
receiving end
identifier
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310338737.3A
Other languages
Chinese (zh)
Inventor
宋扬
伍孝敏
宗志刚
薛蹦蹦
彭小新
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba China Co Ltd
Original Assignee
Alibaba China Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba China Co Ltd filed Critical Alibaba China Co Ltd
Priority to CN202310338737.3A priority Critical patent/CN116389356A/en
Publication of CN116389356A publication Critical patent/CN116389356A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/25Routing or path finding in a switch fabric
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network

Abstract

The invention discloses a communication method crossing available areas, a related device and a cloud network. The method comprises the following steps of, for an available area gateway connected with a plurality of available areas: responding to a message forwarded by a first network element in a first available area, and determining a second network element of a second available area, which needs to be forwarded by the message, according to information of a message receiving end in the message; and forwarding the message to the second network element so that the second network element sends the message to the receiving end after processing the message. The invention can realize the cross-AZ communication, and each available area only needs to store the user information in the available area and the information of the access point of the gateway of the available area, and does not need to care about the access points of other available areas and the related information of users, thereby leading the network elements of each available area to be light, and better focusing on the core functions of logic processing, message encapsulation and decapsulation, message forwarding and the like.

Description

Communication method crossing available areas, related device and cloud network
Technical Field
The present invention relates to the field of cloud networks, and in particular, to a communication method across available areas, a related device, and a cloud network.
Background
In the cloud network architecture, an Available Zone (AZ) mode is often adopted for deployment; AZ refers to the physical area where power and network are independent of each other within the same territory. The network element or the network element platform adopts a deployment scheme for selecting AZ, so that better disaster recovery capability can be provided, and once a certain AZ has a problem, the network element or the network element platform can be switched to other AZ in the same area to provide services for users.
A network architecture of a cloud network deployed by adopting an AZ manner may be shown in fig. 1, where in fig. 1, different regions (regions) include a plurality of Available Zones (AZ), and different AZs are independent of each other. In most cloud network scenarios, no communication is needed between network elements of different AZs, and only services need to be provided in the AZs to which they belong.
But in some scenarios the network elements have a need for inter-access across AZs. For example, when two virtual private clouds (VPCs, virtual Private Cloud) connected by a domain-level network element, such as a forwarding Router (TR), are deployed in different available areas, interfaces (attributes) of the two VPCs may be distributed in two different AZs, and traffic of the TR needs to jump between TR instances of the two available areas to complete the function of accessing across the VPCs. For another example, in a service chain scenario, if different network elements on the service chain are deployed in different available areas, the network elements in the different available areas need to be connected in series across AZ.
How to effectively solve the problem of communication among the cross-AZ network elements becomes one of research and development hot spots in the field of cloud network deployment.
Disclosure of Invention
The present invention has been made in view of the above-mentioned problems, and it is an object of the present invention to provide a communication method across available areas and related apparatus and cloud network that overcomes or at least partially solves the above-mentioned problems.
In a first aspect, an embodiment of the present invention provides a communication method across available areas, which is applicable to an available area gateway connected to a plurality of available areas, and includes:
responding to a message forwarded by a first network element in a first available area, and determining a second network element of a second available area, which needs to be forwarded by the message, according to information of a message receiving end in the message;
and forwarding the message to the second network element so that the second network element sends the message to the receiving end after processing the message.
In one embodiment, in response to a message forwarded by a first network element in a first available area, determining, according to information of a message receiving end in the message, a second network element in a second available area that needs to be forwarded, including:
searching a locally stored routing table according to the identifier of the receiving end user instance carried in the message and the network identifier of the affiliated virtual private cloud, and determining the interface identifier of a second network element of a second available area, which is required to be forwarded by the message, according to a searching result; and the routing table stores the mapping relation among the user instance identifiers, the network identifiers of the virtual private cloud and the network element interface identifiers in the available area.
In one embodiment, before forwarding the packet to the second network element, the method further includes:
modifying the destination address of the message into an interface identifier of the second network element, and repackaging the message;
the forwarding the message to the second network element includes:
and sending the repackaged message to a node corresponding to the interface identifier of the second network element according to the interface identifier of the second network element.
In one embodiment, if an update message of the available area network element interface identifier is received, the routing table is updated according to the update message.
In one embodiment, the method further comprises:
responding to a message forwarded by a first network element in a first available area, and searching whether the address of a receiving end is locally stored or not according to the information of the receiving end in the message;
if the address of the receiving end is found, the message is sent to the message receiving end according to the address of the receiving end.
In one embodiment, the available area gateway stores a user instance identifier and a plurality of different routes corresponding to the virtual private cloud network identifier, and each route includes a next hop available area and a network element interface identifier in the next hop available area;
determining a second network element of a second available area, to which the message needs to be forwarded, according to information of a message receiving end in the message, forwarding the message to the second network element, including:
determining a second network element of a second available area required to be forwarded by the message according to a next hop available area identifier and a next hop available area network element identifier carried in the message forwarded by the first network element;
searching the routing table, selecting the interface identifier of a second network element in a second available area from a plurality of routes, modifying the destination address of the message into the interface identifier of the second network element, repackaging the message, and sending the repackaged message to a node corresponding to the interface identifier of the second network element according to the interface identifier of the second network element.
In one embodiment, if a received packet forwarded by a first network element carries a multi-hop available area identifier and a corresponding network element identifier, determining, according to information of a packet receiving end in the packet, a second network element of a second available area in which the packet needs to be forwarded, and forwarding the packet to the second network element, where the determining includes:
forwarding the message to the first hop network element according to a first hop available region identifier and a first hop network element identifier in multiple hops carried in the message forwarded by the first network element; receiving a result message returned after the message is processed by a first hop network element, wherein the result message comprises available area identifiers and network element identifiers of the remaining hop numbers except the first hop available area identifiers and the first hop network element identifiers in the multi-hop;
continuously forwarding the result message to a first hop available region identifier and a first hop network element in the residual hop count according to the available region identifier and the network element identifier of the residual hop count carried in the result message;
repeating the above operation until the message is forwarded and processed by the network element of the available area of each hop in the multi-hop.
In a second aspect, an embodiment of the present invention provides a communication method across an available area, where the communication method is applicable to a network element of the available area, and the communication method includes:
responding to a message sent by an available area gateway received from a network element interface, and after carrying out preset processing on the message, sending the message to a corresponding receiving end according to the information of the receiving end carried in the message; the availability zone network element is connected with a plurality of availability zones.
In one embodiment, sending the message to the corresponding receiving end includes:
and according to the identifier of the receiving end user instance carried in the message and the network identifier of the virtual private cloud, modifying the destination address in the message into the address of the receiving end, and sending the message to the corresponding receiving end.
In one embodiment, the preset process includes:
NAT translation or load balancing.
In one embodiment, the method further comprises:
responding to an access request of a user instance, processing the access request, and forwarding a message obtained by processing the access request to the available area gateway through a preset network element interface.
In a third aspect, an embodiment of the present invention provides an available area gateway, including:
the first receiving module is used for receiving the message forwarded by the first network element in the first available area;
a determining module, configured to determine, according to information of a message receiving end in a message, a second network element of a second available area in which the message needs to be forwarded, in response to the message forwarded by the first network element in the first available area;
and the first sending module is used for forwarding the message to the second network element so that the second network element sends the message to the receiving end after processing the message.
In a fourth aspect, an embodiment of the present invention provides an available area network element, where the connection between the available area network element and a plurality of available areas includes:
the second receiving module is used for receiving the message sent by the available area gateway from the network element interface;
the processing module is used for carrying out preset processing on the message;
and the second sending module is used for sending the message to the corresponding receiving end according to the information of the receiving end carried in the message.
In a fifth aspect, an embodiment of the present invention provides a cloud network, including: the system comprises a first available area, a second available area and an available area gateway for connecting the first available area and the second available area; a first network element is arranged in the first available area, and a second network element is arranged in the second available area, wherein:
the first network element is configured to send a packet to the available area gateway;
the available area gateway is used for responding to a message forwarded by a first network element in a first available area and determining a second network element of a second available area, which needs to be forwarded by the message, according to information of a message receiving end in the message; forwarding the message to the second network element;
and the second gateway is used for responding to the message sent by the available area gateway and received from the network element interface, and sending the message to the corresponding receiving end according to the information of the receiving end carried in the message after carrying out preset processing on the message.
In a sixth aspect, an embodiment of the present invention provides a network device, including: the system comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the communication method of the cross-available area or executes the communication method of the cross-available area when executing the program.
In a seventh aspect, embodiments of the present invention provide a computer readable storage medium storing a computer program which, when executed by a processor, implements or performs a method of communicating across an available area as described above.
The technical scheme provided by the embodiment of the invention has the beneficial effects that at least:
according to the embodiment of the invention, the available area gateway is introduced into the cloud network architecture, and related information of the second gateway to which the message receiving end belongs is stored through the gateway, so that cross-AZ communication from the first available area to the second available area is realized, and each available area only needs to store user information in the available area and information of access points of the available area gateway, and access points of other available areas and related information of users are not needed to be concerned, so that network elements of each available area are light, and core functions such as logic processing, message encapsulation and decapsulation, message forwarding and the like are better concentrated.
According to the gateway of the available area, according to the identifier of the receiving end user instance carried in the message and the network identifier of the affiliated virtual private cloud, the locally stored routing table is searched, and according to the searching result, the interface identifier of the second network element of the second available area, to which the message needs to be forwarded, is determined.
In some embodiments, the source end of the message in the embodiments of the present invention may also participate in specifying a route of one hop or multiple hops at the same time, where each hop forwarding forwards the result message further to the next hop through the available area gateway until the last hop, so that the scenario, such as a service chain, may be better served.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims thereof as well as the appended drawings.
The technical scheme of the invention is further described in detail through the drawings and the embodiments.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate the invention and together with the embodiments of the invention, serve to explain the invention. In the drawings:
fig. 1 is a schematic diagram of a network architecture of a cloud network deployed in AZ;
fig. 2 and 3 are schematic diagrams of network architecture of a solution of the prior art for across AZ network elements;
fig. 4 is a network architecture diagram of a communication method across available areas according to an embodiment of the present invention;
fig. 5 is a flowchart of a communication method across available areas on a gateway side of the available areas according to an embodiment of the present invention;
fig. 6 is a flowchart of a communication method across available areas on a second network element side according to an embodiment of the present invention;
fig. 7 is a network architecture diagram corresponding to an example provided in an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a gateway for a usable area according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a network element in a usable area according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The inventor of the present invention found that, in the prior art, in an attempt to solve a technical solution of communication across AZ network elements, one solution adopts a network architecture as shown in fig. 2, in the network architecture shown in fig. 2, AZ1 and AZ2 are different available areas, user 1 and user 3 are users of the AZ1 network element, and user 2 and user 4 are users of the AZ2 network element. The user may have access points in the network elements of different AZs, so that the network elements of different AZs may serve the same user, for example, user 3 has access points in both AZ1 and AZ2, and may implement communication with user 2 and user 4 in AZ2, but in some scenarios, the user has access points only in the network element of the present AZ, and in this case, other network elements of AZ cannot communicate with the user 1. For example, the network element in AZ1 can only serve user 1, but cannot directly communicate with user 2. Resulting in a failure of user 1 and user 2 to communicate.
Another network architecture for solving the technical solution of the prior art for crossing AZ network elements is shown with reference to fig. 3, in the network architecture shown in fig. 3, different AZ network elements can communicate across AZ, no matter which AZ network element, node information of all other AZ network elements can be known to communicate with each other, for example, user 1 in AZ1 and user 2 in AZ2 can communicate, and user 3 in AZ2 and user 4 can communicate with each other. When a certain AZ network element fails or changes, all other AZ network elements interacting with the AZ are perceived, in other words, the AZ (taking AZ2 as an example) needs to notify all other AZ network elements interacting with the AZ in the network (for example, by broadcasting), so that the AZ in the whole area (region) needs to refresh configuration information, and under the scene that the number of deployed AZs is large or the configuration information changes frequently, a larger pressure may be caused on the configured link or an operation and maintenance risk may be generated.
Based on the above-described problems found in the prior art, the inventors of the present invention found that the problem of cross-AZ communication can be solved by introducing a Gateway (Gateway).
For example, in the embodiment of the present invention, it is called an available zone Gateway (AZ Gateway). In the method for cross-available-area communication provided in the embodiment of the present invention, a possible network architecture may be shown in fig. 4, where in fig. 4, available-area gateways (AZ Gateway) are respectively connected with different available areas, and the different available areas do not directly communicate with each other, so that information of other AZ network elements does not need to be obtained in each AZ, and locally stored configuration information does not need to be updated when the network elements of other AZ change.
The communication method across the available area provided by the embodiment of the invention, for the available area gateway, referring to fig. 5, includes:
s51, responding to a message forwarded by a first network element in a first available area, and determining a second network element of a second available area, which needs to be forwarded by the message, according to information of a message receiving end in the message;
s52, forwarding the message to the second network element, so that the second network element processes the message and sends the message to the receiving end.
According to the embodiment of the invention, the available area gateway is introduced into the cloud network architecture, and the related information of the second gateway to which the message receiving end belongs is stored through the available area gateway, so that the cross-AZ communication from the first available area to the second available area is realized, and each available area only needs to store the user information in the available area and the information of the access point of the available area gateway, and the related information of the access point and the user of other available areas is not needed to be concerned, so that the network elements of each available area are light, and the core functions such as logic processing, message encapsulation and decapsulation, message forwarding and the like are better concentrated.
In the embodiment of the present invention, the network element may refer to a single cloud server, or may refer to a cloud server cluster.
After the first network element in the first available area receives the access request of the user (the client at the transmitting end in fig. 4), the first network element performs corresponding logic processing on the access request, determines whether to forward across the available area according to logic, if the receiving end of the processing result is accessed to the first network element, the processing result can be directly forwarded to the receiving end in the available area, if the receiving end of the processing result is accessed to another available area, the processing result needs to be forwarded across the available area, in this case, the first network element in the first available area can forward the message of the processing result indirectly to the receiving end (the user at the receiving end in fig. 4) through the available area gateway.
The gateway of the available area receives the message forwarded by the first network element, and determines the network element of which available area the message needs to be forwarded to according to the information of the receiving end in the message. In the embodiment of the present invention, the available area to which the message needs to be forwarded is referred to as a second available area, and the network element to which the message needs to be forwarded is referred to as a second network element.
It should be noted that, in the embodiment of the present invention, only for distinguishing, the two different available areas are referred to as a first available area and a second available area, and the network elements in the different available areas having the inter-AZ communication requirement are referred to as a "first network element" and a "second network element", where the first available area and the first network element respectively represent the AZ to which the message source end belongs and the corresponding network element in a primary communication process, and the second available area and the second network element respectively represent the AZ to which the message receiving end belongs and the corresponding network element in a primary communication process. The first and second availability zones, the first network element and the second network element are relatively speaking. The terms "first" and "second" do not denote any order or other meaning.
In one embodiment, a routing table is stored in the gateway of the available area, and the routing table stores the mapping relationship between the identifier of the user instance, the network identifier of the virtual private cloud and the network element interface identifier in the available area. Based on this, in the above step S51, in response to the message forwarded by the first network element in the first available area, the determination of the second network element in the second available area that needs to be forwarded according to the information of the message receiving end in the message may be implemented in the following manner:
searching a locally stored routing table according to the identifier of the receiving end user instance carried in the message and the network identifier of the affiliated Virtual Private Cloud (VPC), and determining the interface identifier of a second network element of a second available area, to which the message needs to be forwarded, according to the searching result; the routing table stores the mapping relation among the user instance identifier, the virtual private cloud network identifier and the network element interface identifier in the available area.
The available area gateway of the embodiment of the invention queries the routing table based on the identifier of the user instance of the receiving end and the network identifier of the affiliated virtual private cloud, realizes the distinction of the available area and the network element of the available area which need to be forwarded according to the user instance, is different from the traditional gateway (gateway) routing mode, routes according to the network element instance borne by the network element, does not depend on the five-tuple information of the message, and is more suitable for the scene of a cloud network architecture.
In an embodiment, the interface of the second network element may be, for example, various elastic interfaces (ENI, elastic Network Interface), such as a Fake ENI (disguised elastic network interface) or a Binding ENI (Binding elastic network interface), and the interface identifier of the second network element may be, for example, an identifier of the Fake ENI or the Binding ENI.
The ENI is a kind of elastic network interface (also called elastic network card) binding the cloud server in the private network. Multiple ENIs may be bound on a cloud server to implement multiple available network schemes.
For the available area gateway, the message sent by the first network element can also be received through the ENI of the available area gateway.
In one embodiment, after the first network element performs logic processing to obtain a result and encapsulates the result into a message, the message may be sent to a forwarding node corresponding to the available area gateway according to the network interface identifier of the available area gateway. And carrying the identifier of the user instance of the receiving end and the network identifier of the virtual private cloud in the encapsulated message.
For the gateway of the available area, after receiving the message forwarded by the first network element in the first available area, before forwarding the message to the second network element, in order to accurately send the message to the actual receiving end, the gateway of the available area needs to modify the destination address of the message into the interface identifier of the second network element, and repackage the message;
correspondingly, according to the interface identifier of the second network element, the repackaged message is sent to the node corresponding to the interface identifier of the second network element.
The encapsulation of the messages by the first network element and the available area gateway can be accomplished, for example, by adopting a general virtualization encapsulation protocol (Geneve, generic Network Virtualization Encapsulation, defined by IETF draft), the gene message adopts the idea of Tunnel encapsulation, tunnel Endpoints (Tunnel Endpoints) are specified in the message, and the destination of the data can be known without touching the actual data.
Of course, the embodiment of the invention is not limited to the above protocol for encapsulating the message, and can implement various network protocols for encapsulating the message.
For the available area gateway, the interface identifiers of network elements needing to be communicated across the AZ in all the AZ connected with the available area gateway are saved, so that once the interfaces of the network elements in one or more AZ are changed, the available area gateway needs to be notified, so that the available area gateway can change self saved information, such as changing the interface identifiers of the network elements in the available area, and the like, without broadcasting the information of the change of the interface identifiers of the network elements to all the AZ. For the network elements in the AZ, only the information of the user instance in the local AZ and the information of the network interfaces of the available area gateways need to be stored, and the related information of other available area network elements and users does not need to be concerned.
In addition, in the embodiment of the invention, the available area gateway is a stateless network element, namely the state of the forwarded message does not need to be recorded, so that the information processing amount of the available area gateway can be greatly reduced, and resources are saved.
If the second network element only relates to forwarding and does not need to perform preset processing, in one embodiment, the message can be forwarded directly from the available area gateway to the user instance corresponding to the receiving end without passing through the second network element, and the second network element does not need to jump, so that the transmission delay of the message can be reduced and the requirement of higher response can be met.
In this case, for example, in order to implement direct forwarding by the available area gateway, it is required to store, in the available area gateway, an address of a receiving end that needs to be forwarded by a second network element of the available area, for example, in a manner that an identifier of a user instance of the receiving end and a network identifier of a virtual private cloud to which the network identifier belongs are stored corresponding to the address of the user instance. And the available area gateway locally searches whether the address of the corresponding receiving end is stored according to the identification of the user instance of the receiving end in the message and the network identification of the affiliated virtual private cloud, if so, directly forwards the address to the corresponding address, and if not, searches the network interface information of the corresponding second network element through the routing table, and forwards the address to the receiving end through the second network element.
In one embodiment, the first network element as the source may also participate in the routing of the designated available area gateway, for example, in the following two cases:
in the first case, the gateway side records multiple routes, and if the gateway side of the available area has multiple routes for the same user instance, the source message can specify which route to forward through:
the available area gateway stores a user instance identifier and a plurality of different routes corresponding to the virtual private cloud network identifier, wherein each route comprises a next hop available area and network element interface identifiers in the next hop available area;
determining a second network element of a second available area, to which the message needs to be forwarded, according to information of a message receiving end in the message, forwarding the message to the second network element, including:
determining a second network element of a second available area required to be forwarded by the message according to a next hop available area identifier and a next hop available area network element identifier carried in the message forwarded by the first network element;
searching the routing table, selecting the interface identifier of a second network element in a second available area from a plurality of routes, modifying the destination address of the message into the interface identifier of the second network element, repackaging the message, and sending the repackaged message to a node corresponding to the interface identifier of the second network element according to the interface identifier of the second network element.
In the second case, in the embodiment of the present invention, the source end may participate in the multi-hop routing. The traditional gateway forwarding, the source end cannot participate in gateway side gateway routing, and it is more impossible to determine what a specific routing is.
The source end designates multi-hop route, and after each hop of forwarding treatment, the route of the hop is removed, and then the route is forwarded back to the available area gateway, so that the available area gateway can conveniently continue forwarding of the next hop until the next hop of route is forwarded to the last hop network element and the corresponding receiving end.
Specifically, if a received message forwarded by a first network element carries a multi-hop available region identifier and a corresponding network element identifier, the available region gateway forwards the message to the first hop network element according to a first-hop available region identifier and a first-hop network element identifier in the multi-hop carried in the message forwarded by the first network element; receiving a result message returned after the message is processed by a first hop network element, wherein the result message comprises available area identifiers and network element identifiers of the remaining hop numbers except the first hop available area identifiers and the first hop network element identifiers in the multi-hop;
continuously forwarding the result message to a first hop available region identifier and a first hop network element in the residual hop count according to the available region identifier and the network element identifier of the residual hop count carried in the result message;
repeating the above operation until the message is forwarded and processed by the network element of the available area of each hop in the multi-hop.
For example, when the message sent by the network element 1 of AZ1 includes the following multi-hop path AZ2 network element 2→az3 network element 3→az4 network element 4, after the processing of the user instance on the network element 2 side of AZ2 is completed by the available area network element, the information of the hop is stripped, the message is returned to the available area gateway, the available area gateway forwards the message to the next hop again according to the first hop in the rest of the routing information, namely AZ3 network element 3, after the processing of the corresponding user instance is completed by the AZ3 network element 3, the routing information of the hop is stripped, the result is returned to the available area gateway again, and the available area gateway forwards the message to the last hop AZ4 network element 4 again according to the rest of the routing information, so as to facilitate the receiving and processing of the user instance of the last hop. And the mapping relation of the user instance identifier, the network identifier of the virtual private cloud and the network element interface identifier in the available area.
The source end appoints the route, can be better suitable for the scene of the service chain, and is convenient for each execution node on the service chain to forward the result continuously through the available area gateway after executing corresponding processing.
The embodiment of the invention also provides a communication method crossing the available areas, which is shown by referring to fig. 6 and comprises the following steps:
s61, responding to the message sent by the gateway of the available area received from the network element interface, and carrying out preset processing on the message;
s62, according to the information of the receiving end carried in the message, the message is sent to the corresponding receiving end; wherein the available area network element is connected with a plurality of available areas.
The method is applicable to the second network element serving as the receiving end.
In step S62, the destination address in the message may be modified to the address of the receiving end according to the identifier of the receiving end user instance carried in the message and the network identifier of the virtual private cloud to which the message belongs, and the message is sent to the corresponding receiving end.
The second network element may perform a preset process on the message, where the type of the process is associated with a function definition of the network element, for example, performing network address translation (NAT, network Address Translation) or performing load balancing process.
In order to better illustrate the above-mentioned communication method across the available areas provided by the embodiment of the present invention, an example is described below.
The network architecture corresponding to this example is shown in fig. 7, in which network element a is located in AZ1, network element a ' is located in AZ2, AZ gateway connects network element a and network element a ', both user 1 and user 3 access network element a, and user 2 access network element a '.
First case:
the user 1 accesses the network element A, and the network element A is directly transmitted to the user 3 after processing.
Second case:
1. user 1 accesses network element a.
2. After the network element A is processed by the logic of the network element A, the identification of the network interface, such as the Fake ENI or the Binding ENI, of which the next hop is AZ Gateway is searched. And the network element A encapsulates the message of the user 1 through the Gene protocol and sends the message to one forwarding node of the AZ Gateway. The general message carries information such as the user instance of the user 1 and the VPC to which the user belongs.
After receiving the message, AZ Gateway finds out the Binding ENI information on the network element A' to be forwarded through the user instance carried by the Gene message, the VPC information and the like. The AZ Gateway repackages the message by using the gene protocol, the destination address is the identification of the Binding ENI of the network element A ', the user instance, the VPC and other information are carried, and the repackaged gene message is sent to the corresponding node of the network element A'.
4. After receiving the message, the network element A' unpacks the general package to obtain the corresponding user instance and the information of the VPC, and sends the message to the corresponding destination address, namely the user 2 after processing.
Based on the same inventive concept, the embodiments of the present invention further provide an available area gateway, an available area network element, and a cloud network, and because the principles of the problems solved by these devices and the cloud network are similar to the foregoing method for communication across the available area, the implementation of the devices and the cloud network can refer to the implementation of the foregoing method, and the repetition is omitted.
An available area gateway provided by an embodiment of the present invention, as shown in fig. 8, includes:
a first receiving module 81, configured to receive a packet forwarded by a first network element in a first available area;
a determining module 82, configured to determine, according to information of a message receiving end in a message, a second network element of a second available area in which the message needs to be forwarded, in response to the message forwarded by the first network element in the first available area;
and a first sending module 83, configured to forward the message to the second network element, so that the second network element sends the processed message to the receiving end.
An available area network element provided by an embodiment of the present invention, where the available area network element is connected to a plurality of available areas, as shown in fig. 9, includes:
a second receiving module 91, configured to receive a message sent by the available area gateway from the network element interface;
a processing module 92, configured to perform preset processing on the packet;
and the second sending module 93 is configured to send the message to a corresponding receiving end according to the information of the receiving end carried in the message.
The cloud network provided by the embodiment of the invention comprises the following components: the system comprises a first available area, a second available area and an available area gateway for connecting the first available area and the second available area; a first network element is arranged in the first available area, and a second network element is arranged in the second available area, wherein:
the first network element is configured to send a packet to the available area gateway;
the available area gateway is used for responding to a message forwarded by a first network element in a first available area and determining a second network element of a second available area, which needs to be forwarded by the message, according to information of a message receiving end in the message; forwarding the message to the second network element;
and the second gateway is used for responding to the message sent by the available area gateway and received from the network element interface, and sending the message to the corresponding receiving end according to the information of the receiving end carried in the message after carrying out preset processing on the message.
The network device provided by the embodiment of the invention comprises: the system comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the communication method of the cross-available area or executes the communication method of the cross-available area when executing the program.
The embodiment of the invention provides a computer readable storage medium, which stores a computer program, and the computer program realizes the communication method across the available areas or executes the communication method across the available areas when being executed by a processor.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, magnetic disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (16)

1. A method of communicating across an available area, adapted for use in an available area gateway coupled to a plurality of available areas, comprising:
responding to a message forwarded by a first network element in a first available area, and determining a second network element of a second available area, which needs to be forwarded by the message, according to information of a message receiving end in the message;
and forwarding the message to the second network element so that the second network element sends the message to the receiving end after processing the message.
2. The method of claim 1, wherein the determining, in response to the message forwarded by the first network element in the first available area, the second network element of the second available area to be forwarded according to the information of the message receiving end in the message includes:
searching a locally stored routing table according to the identifier of the receiving end user instance carried in the message and the network identifier of the affiliated virtual private cloud, and determining the interface identifier of a second network element of a second available area, which is required to be forwarded by the message, according to a searching result; and the routing table stores the mapping relation among the user instance identifiers, the network identifiers of the virtual private cloud and the network element interface identifiers in the available area.
3. The method of claim 2, further comprising, prior to forwarding the message to the second network element:
modifying the destination address of the message into an interface identifier of the second network element, and repackaging the message;
the forwarding the message to the second network element includes:
and sending the repackaged message to a node corresponding to the interface identifier of the second network element according to the interface identifier of the second network element.
4. A method according to claim 2 or 3, characterized in that if an update message of the available area network element interface identity is received, the routing table is updated on the basis of the update message.
5. A method according to any one of claims 1-3, wherein the method further comprises:
responding to a message forwarded by a first network element in a first available area, and searching whether the address of a receiving end is locally stored or not according to the information of the receiving end in the message;
if the address of the receiving end is found, the message is sent to the message receiving end according to the address of the receiving end.
6. The method of claim 1, wherein the availability zone gateway stores a plurality of different routes corresponding to the user instance identifier and the virtual private cloud network identifier, and each route includes a next hop availability zone and a network element interface identifier in the next hop availability zone;
determining a second network element of a second available area, to which the message needs to be forwarded, according to information of a message receiving end in the message, forwarding the message to the second network element, including:
determining a second network element of a second available area required to be forwarded by the message according to a next hop available area identifier and a next hop available area network element identifier carried in the message forwarded by the first network element;
searching the routing table, selecting the interface identifier of a second network element in a second available area from a plurality of routes, modifying the destination address of the message into the interface identifier of the second network element, repackaging the message, and sending the repackaged message to a node corresponding to the interface identifier of the second network element according to the interface identifier of the second network element.
7. The method of claim 6, wherein if the received packet forwarded by the first network element carries a multi-hop available area identifier and a corresponding network element identifier, determining, according to information of a packet receiving end in the packet, a second network element of a second available area in which the packet needs to be forwarded, and forwarding the packet to the second network element, includes:
forwarding the message to the first hop network element according to a first hop available region identifier and a first hop network element identifier in multiple hops carried in the message forwarded by the first network element; receiving a result message returned after the message is processed by a first hop network element, wherein the result message comprises available area identifiers and network element identifiers of the remaining hop numbers except the first hop available area identifiers and the first hop network element identifiers in the multi-hop;
continuously forwarding the result message to a first hop available region identifier and a first hop network element in the residual hop count according to the available region identifier and the network element identifier of the residual hop count carried in the result message;
repeating the above operation until the message is forwarded and processed by the network element of the available area of each hop in the multi-hop.
8. A method of communicating across an available area, comprising:
responding to a message sent by an available area gateway received from a network element interface, and after carrying out preset processing on the message, sending the message to a corresponding receiving end according to the information of the receiving end carried in the message; the availability zone network element is connected with a plurality of availability zones.
9. The method of claim 8, wherein sending the message to the corresponding receiving end comprises:
and according to the identifier of the receiving end user instance carried in the message and the network identifier of the virtual private cloud, modifying the destination address in the message into the address of the receiving end, and sending the message to the corresponding receiving end.
10. The method of claim 9, wherein the pre-set process comprises:
NAT translation or load balancing.
11. The method of any one of claims 8-10, wherein the method further comprises:
responding to an access request of a user instance, processing the access request, and forwarding a message obtained by processing the access request to the available area gateway through a preset network element interface.
12. A availability zone gateway, comprising:
the first receiving module is used for receiving the message forwarded by the first network element in the first available area;
a determining module, configured to determine, according to information of a message receiving end in a message, a second network element of a second available area in which the message needs to be forwarded, in response to the message forwarded by the first network element in the first available area;
and the first sending module is used for forwarding the message to the second network element so that the second network element sends the message to the receiving end after processing the message.
13. An availability zone network element, wherein the availability zone network element is connected to a plurality of availability zones comprising:
the second receiving module is used for receiving the message sent by the available area gateway from the network element interface;
the processing module is used for carrying out preset processing on the message;
and the second sending module is used for sending the message to the corresponding receiving end according to the information of the receiving end carried in the message.
14. A cloud network, comprising: the system comprises a first available area, a second available area and an available area gateway for connecting the first available area and the second available area; a first network element is arranged in the first available area, and a second network element is arranged in the second available area, wherein:
the first network element is configured to send a packet to the available area gateway;
the available area gateway is used for responding to a message forwarded by a first network element in a first available area and determining a second network element of a second available area, which needs to be forwarded by the message, according to information of a message receiving end in the message; forwarding the message to the second network element;
and the second gateway is used for responding to the message sent by the available area gateway and received from the network element interface, and sending the message to the corresponding receiving end according to the information of the receiving end carried in the message after carrying out preset processing on the message.
15. A network device, comprising: memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the method of communication across the available area according to any of claims 1-7 or performing the method of communication across the available area according to any of claims 8-11 when the program is executed.
16. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program which, when executed by a processor, implements the method of communication across available areas according to any of claims 1-7 or performs the method of communication across available areas according to any of claims 8-11.
CN202310338737.3A 2023-03-31 2023-03-31 Communication method crossing available areas, related device and cloud network Pending CN116389356A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310338737.3A CN116389356A (en) 2023-03-31 2023-03-31 Communication method crossing available areas, related device and cloud network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310338737.3A CN116389356A (en) 2023-03-31 2023-03-31 Communication method crossing available areas, related device and cloud network

Publications (1)

Publication Number Publication Date
CN116389356A true CN116389356A (en) 2023-07-04

Family

ID=86960998

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310338737.3A Pending CN116389356A (en) 2023-03-31 2023-03-31 Communication method crossing available areas, related device and cloud network

Country Status (1)

Country Link
CN (1) CN116389356A (en)

Similar Documents

Publication Publication Date Title
CN107465590B (en) Network infrastructure system, method of routing network traffic and computer readable medium
CN108650182B (en) Network communication method, system, device, equipment and storage medium
WO2022121349A1 (en) Computing power application traffic forwarding method and apparatus
US20150312132A1 (en) METHOD TO CHECK HEALTH OF AUTOMATICALLY DISCOVERED CONTROLLERS IN SOFTWARE DEFINED NETWORKS (SDNs)
WO2021135468A1 (en) Segment identifier determining method and device
CN106878199B (en) Configuration method and device of access information
CN107113241B (en) Route determining method, network configuration method and related device
CN113497754B (en) Forwarding path establishing method and device and computer readable storage medium
CN112491717A (en) Service routing method and device
CN115189920A (en) Cross-network domain communication method and related device
WO2024093064A1 (en) Identifier management and forwarding optimization method and apparatus in large-scale multi-modal network
CN111107672A (en) Method, device and system for establishing sub-flow of multi-path connection
CN114285787B (en) Cross-user plane forwarding method, system and computer readable storage medium
CN107483628B (en) DPDK-based one-way proxy method and system
CN114650255B (en) Message processing method and network equipment
CN111654559B (en) Container data transmission method and device
CN111464443B (en) Message forwarding method, device, equipment and storage medium based on service function chain
US20230344751A1 (en) Route Processing Method, Related Apparatus, and Network System
CN107809387B (en) Message transmission method, device and network system
CN103684838B (en) A method, an apparatus, a system for configuring a network strategy of a virtual machine
CN106209634B (en) Learning method and device of address mapping relation
CN115065637B (en) Method and device for transmitting computing power resource information and electronic equipment
CN116389356A (en) Communication method crossing available areas, related device and cloud network
CN108574587B (en) Capacity updating method and device for distributed equipment
US8855015B2 (en) Techniques for generic pruning in a trill network

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination