Patent attributes
Embodiments of the present disclosure provide a resource allocation method, a packet communication method, and an apparatus. The resource allocation method includes: dividing, by a controller, a cloud data center network into multiple independent logical zones; allocating a corresponding tunnel label range to each logical zone; when a virtual network request for allocating a resource to a tenant is received, searching the logical zones to obtain a logical zone that meets the virtual network request; and allocating a tunnel label to the tenant according to a tunnel label range corresponding to the logical zone that meets the virtual network request. Because each logical zone is independent, during tunnel label range allocation, a same tunnel label range can be allocated to different logical zones. In this way, a same tunnel label can be allocated to different switches in different logical zones, implementing reuse of the tunnel label.