Edge Network Overview

Scenarios

Edge networks are dedicated for an edge cloud. In the context of IEC, edge networks include VPCs and EIPs. A VPC is an isolated, configurable, and manageable virtual network environment. It improves the cloud resources security and simplifies network deployment. You can bind EIPs to edge instances in a VPC to allow them to access the Internet and access other cloud services in the central region from IEC over the Internet.

Edge networks are independent of network services in the central region such as Virtual Private Cloud (VPC) and Elastic IP (EIP). Edge networks network services in the central region have similar functions but are used in different scenarios.

For example, a VPC that you create on the IEC console or by calling IEC APIs belongs only to IEC and is not related to a VPC you create on the VPC console. A VPC that you create on IEC cannot be managed by using the VPC service, and a VPC that you create on the VPC console cannot be managed by using IEC.

Figure 1 shows the edge network architecture.

Figure 1 Edge network architecture

VPCs

A VPC provides an isolated virtual network for your cloud resources. You can configure and manage the networks in the VPC, making changes to these networks quickly and securely.

Each VPC consists of a private CIDR block and at least one subnet. VPCs are logically isolated from each other and cannot communicate with each other.

  • CIDR block

    When you create a VPC, you need to specify a CIDR block for the VPC.

  • Subnet

    A subnet is a range of IP addresses in your VPC. Edge cloud resources, such as edge instances, must be deployed in subnets. The IP addresses of all edge instances belong to the subnet. The subnet CIDR block must be within the private CIDR block. A VPC can be divided into one or more subnets. Subnets can be distributed across edge sites. However, subnets belonging to different edge sites are not connected because the edge sites are physically isolated.

    As shown in Figure 2, the four subnets are isolated from each other due to logical isolation of the VPCs and physical isolation of the edge sites.

    Figure 2 Network connections among VPCs, subnets, and edge sites

Virtual IP Addresses

A virtual IP address is an IP address that is not allocated to an edge instance NIC. An edge instance can have both private and virtual IP addresses, and you can access the edge instance through either one. A virtual IP address has the same network access capabilities as a private IP address, including normal communication in VPCs and Internet access through EIPs.

A virtual IP address can be bound to only one edge instance.

NICs

A NIC is a type of virtual adapter that you can bind to an edge instance in a VPC. Through the NIC, you can manage edge instance network. A NIC can be a primary NIC or an extension NIC.

  • Primary NIC

    When you create an edge instance, the NIC that is automatically created with the instance is the primary NIC. You cannot unbind the primary NIC. It is preferentially used for the default route generally.

  • Extension NIC

    A NIC that you can add separately is an extension NIC. You can bind or unbind an extension NIC from an edge instance. When you create an edge instance, you can determine whether you want to add NICs and the number of NICs you want to add.

Route Tables

A route table contains a set of rules, called routes, that are used to control where inbound and outbound subnet traffic is forwarded within a VPC. A route table can have multiple subnets associated with it. However, each subnet can be associated with only one route table.

When you create a VPC, a default route table will be generated for the VPC. When you create an edge service, the system will automatically allocate a subnet for the edge instance in the VPC you select, and this subnet will be automatically associated with the default route table of the VPC. Default route tables are currently not displayed on the IEC console. If you do not want to use the default route table, you can now create a custom route table and associate it with the subnet.

The custom route table associated with a subnet affects only the traffic in the outbound direction, while the default route table determines the traffic in the inbound direction.

Route

A route is configured with the destination, next hop type, and next hop to determine where the network traffic is directed. Routes are classified into system routes and custom routes.

  • System route: Routes that are automatically added by the system and cannot be modified or deleted.

    After a route table is created, the system automatically adds the following system routes to the route table, so that instances in a VPC can communicate with each other.

    • Routes whose destination is 100.64.0.0/10 or 198.19.128.0/20.
    • Routes whose destination is a subnet CIDR block.

    In addition to the preceding system routes, the system automatically adds a route whose destination is 127.0.0.0/8. This is the local loopback address.

  • Custom route: A route that can be modified and deleted. The destination of a custom route cannot overlap with that of a system route.

    You can add a custom route and configure the destination, next hop type, and next hop in the route to determine where the network traffic is directed.

    Currently, IEC supports the following next hop types:

    • Edge instance: The traffic destined for the destination will be forwarded to an edge instance in the VPC.
    • Virtual IP address: The traffic destined for the destination will be forwarded to a virtual IP address bound to an edge instance.

Bandwidths

IEC provides edge site-level bandwidth sharing and multiplexing capabilities. All EIPs using the same carrier line share the same bandwidth. Different carrier lines use different bandwidths. Shared bandwidth reduces network operations costs and makes O&M statistics easier.

Figure 3 Relationship between bandwidth, EIP, and line

After you assign an EIP, if the carrier line using the EIP does not have a shared bandwidth allocated to it, the system automatically allocates a shared bandwidth to it. Different carrier lines use different bandwidths.

EIPs

An EIP is a public IP address that is used to access the Internet. You can bind an EIP to or unbind an EIP from an edge instance or a virtual IP address.

However, you can bind an EIP to only one edge instance or virtual IP address that is in the same site as the EIP.

Security Groups

A security group is a collection of access control rules for edge instances that have the same security protection requirements and are mutually trusted within a VPC. After you create a security group, you can create different access rules (outbound and inbound rules) for the security group. These rules will apply to any edge instance that you add to this security group.

Network ACLs

A network ACL is an optional layer of security for your subnets. You associate one or more subnets with a network ACL. The network ACL can help control traffic in and out of the subnets.

Similar to security groups, network ACLs control access to the network. They add an additional layer of defense to your VPC. Security groups only have the "allow" rules, but network ACLs have both "allow" and "deny" rules. You can use network ACLs together with security groups to implement access control that is both comprehensive and fine-grained. For more information, see Differences Between Security Groups and Network ACLs.

Network ACLs can be used in the following scenarios:

  • If you want the application layer to provide services for users, you must allow traffic to reach the application layer from all IP addresses. However, you also need to prevent illegal access from malicious users. You can add network ACL rules to deny access from suspect IP addresses.
  • If you want to isolate a port that has vulnerabilities, for example, port 445 that can be exploited by the WannaCry worm, you can add network ACL rules to deny access traffic from specific port and protocol, for example, TCP port 445.
  • If you do not want defense for communication within a subnet, but require access control for communication between subnets, you can add network ACL rules to control traffic between subnets.
  • If you have frequently accessed applications, you may need to adjust the security rule sequence to improve performance. A network ACL allows you to adjust the rule sequence so that you can apply frequently used rules before other rules.