The invention provides a data forwarding method and device, an electronic device, a storage medium and a program product, and belongs to the technical field of communication, and the method comprises the steps: generating a link mapping
structure chart comprising a zone
server node layer, a manufacturer node layer and a link node layer of which the levels are decreased progressively based on a pre-constructed
IP address mapping table; in response to the
data transmission request, executing a link matching operation according to a hierarchy decreasing sequence until a target link matched with the target
IP address is determined; the target
IP address is determined based on the
data transmission request; and forwarding the user data to the target link. According to the method provided by the invention, the IP
address mapping table is pre-constructed, the link mapping
structure chart is generated, and then the link matching is carried out according to the level decreasing sequence of the zone
server node layer, the manufacturer node layer and the link node layer to determine the target link, so that only one GRE tunnel needs to be configured for each manufacturer during
network configuration; and hundreds of GRE links do not need to be configured for all links of each manufacturer, so that the configuration complexity of the
network topology is greatly reduced, and the network maintenance cost is reduced.