WO2023019874A1 - Distributed service forwarding method, apparatus and system, storage medium, and electronic device - Google Patents

Distributed service forwarding method, apparatus and system, storage medium, and electronic device Download PDF

Info

Publication number
WO2023019874A1
WO2023019874A1 PCT/CN2022/070569 CN2022070569W WO2023019874A1 WO 2023019874 A1 WO2023019874 A1 WO 2023019874A1 CN 2022070569 W CN2022070569 W CN 2022070569W WO 2023019874 A1 WO2023019874 A1 WO 2023019874A1
Authority
WO
WIPO (PCT)
Prior art keywords
service
cpe
message
address
forwarding
Prior art date
Application number
PCT/CN2022/070569
Other languages
French (fr)
Chinese (zh)
Inventor
陈树民
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2023019874A1 publication Critical patent/WO2023019874A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/12Setup of transport tunnels
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/40Connection management for selective distribution or broadcast

Definitions

  • the embodiments of the present application relate to the communication field, and in particular, relate to a distributed service forwarding method, device, system, storage medium, and electronic equipment.
  • the wired network is a distributed forwarding model
  • the 5G network is a tree-shaped forwarding model. All services need to be forwarded centrally through the User Plane Function.
  • the uplink bandwidth of the 5G wireless air interface is likely to cause a bottleneck, which is the same as the two-way bandwidth of wired communication, but it is very different.
  • FIG 1 is a network diagram of the CPE forwarding service according to the related technical solution.
  • CPE Customer Premise Equipment
  • the CPE device performs multicast communication.
  • Networking, the number of connections, and bandwidth all have N-party problems, which pose great challenges to the processing capabilities of terminals and the uplink bandwidth of air interfaces of base stations.
  • Embodiments of the present application provide a distributed service forwarding method, device, system, storage medium, and electronic equipment to at least solve one of the related technical problems to a certain extent, including the ability to process terminals through CPE equipment networking. And the uplink bandwidth of the air interface of the base station brings great challenges.
  • a distributed service forwarding method is provided, which is applied to a centralized forwarding device, including: receiving the service message of the service terminal forwarded by the first CPE through the tunnel; when the service message is a unicast message In the case of a text message, forward the service message to the destination service terminal according to the pre-established unicast forwarding table; forwarding the service packet to the destination service terminal.
  • a distributed service forwarding method is also provided, which is applied to a CPE, including: receiving a service message sent by a service terminal; sending the service message to a centralized forwarding device through a tunnel, wherein , the centralized forwarding device is configured to forward the service message to the destination service terminal according to a pre-established unicast forwarding table if the service message is a unicast message; If it is a multicast message, forward the service message to the destination service terminal according to the pre-established multicast forwarding table.
  • a distributed service forwarding device is also provided, which is applied to a centralized forwarding device, including: a first receiving module, configured to receive the service message of the service terminal forwarded by the first CPE through the tunnel
  • the unicast forwarding module is set to forward the service message to the destination service terminal according to the pre-established unicast forwarding table when the service message is a unicast message;
  • the multicast forwarding module is set to If the service message is a multicast message, forward the service message to the destination service terminal according to the pre-established multicast forwarding table.
  • a distributed service forwarding device is also provided, which is applied to a CPE, including: a second receiving module, configured to receive a service message sent by a service terminal; a sending module, configured to pass The tunnel sends the service message to the centralized forwarding device, wherein the centralized forwarding device is configured to forward the service message according to a pre-established unicast forwarding table if the service message is a unicast message The message is forwarded to the destination service terminal; if the service message is a multicast message, the service message is forwarded to the destination service terminal according to the pre-established multicast forwarding table.
  • a distributed service forwarding system at least including: a first CPE and a centralized forwarding device, wherein the first CPE is configured to receive service packets sent by service terminals , and forward the service message to the centralized forwarding device through a tunnel; the centralized forwarding device is configured to execute the method described in any one of the above.
  • a computer-readable storage medium is also provided, and a computer program is stored in the storage medium, wherein the computer program is configured to execute any one of the above method embodiments when running in the steps.
  • an electronic device including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to perform any of the above Steps in the method examples.
  • Fig. 1 is a network block diagram according to the CPE forwarding service in the relevant technical solution
  • FIG. 2 is a schematic block diagram of a hardware structure of a device for a distributed service forwarding method according to an embodiment of the present application
  • FIG. 3 is a flowchart of a distributed service forwarding method according to an embodiment of the present application.
  • FIG. 4 is a flowchart of a distributed service forwarding method according to another embodiment of the present application.
  • FIG. 5 is a block diagram of a distributed service forwarding system according to an embodiment of the present application.
  • FIG. 6 is a block diagram of a distributed service forwarding system according to another embodiment of the present application.
  • FIG. 7 is a schematic diagram of a distributed service forwarding system according to an embodiment of the present application.
  • FIG. 9 is a schematic diagram of a tunnel-based service Overlay according to an embodiment of the present application.
  • FIG. 9 is a flowchart of service forwarding according to an embodiment of the present application.
  • FIG. 10 is a schematic diagram of service multicast forwarding based on a 5G network according to an embodiment of the present application.
  • FIG. 11 is a flowchart of multicast forwarding of service packets based on a 5G network according to an embodiment of the present application.
  • FIG. 12 is a schematic diagram of a multicast forwarding table according to an embodiment of the present application.
  • FIG. 13 is a schematic structural diagram of a service terminal multicast message according to an embodiment of the present application.
  • FIG. 14 is a schematic structural diagram of a CPE sending a multicast message according to an embodiment of the present application.
  • FIG. 15 is a schematic structural diagram of a centralized forwarding device sending a message according to an embodiment of the present application.
  • Fig. 16 is a block diagram of a distributed service forwarding device according to an embodiment of the present application.
  • Fig. 17 is a block diagram of a distributed service forwarding device according to another embodiment of the present application.
  • FIG. 2 is a block diagram of the hardware structure of the device of the distributed service forwarding method according to the embodiment of the present application. As shown in Fig. 2, it may include one or more (only shown in Fig. 2 1) Processor 102 (processor 102 may include but not limited to processing devices such as microprocessor MCU or programmable logic device FPGA, etc.) and memory 104 for storing data, which may also include transmission equipment for communication functions 106 and input and output devices 108 .
  • processor 102 may include but not limited to processing devices such as microprocessor MCU or programmable logic device FPGA, etc.
  • memory 104 for storing data, which may also include transmission equipment for communication functions 106 and input and output devices 108 .
  • FIG. 2 is only for illustration and does not limit the above structure. For example, more or fewer components than shown in FIG. 2 may also be included, or have a different configuration than shown in FIG. 2 .
  • the memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the distributed service forwarding method in the embodiment of the present application, and the processor 102 runs the computer program stored in the memory 104, thereby Executing various functional applications and slicing processing of the service chain address pool is to realize the above-mentioned method.
  • the memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory.
  • the memory 104 may further include memory located remotely from the processor 102, which may be connected to the device via a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • the transmission device 106 is arranged to receive or transmit data via a network.
  • Specific examples of the above-mentioned network may include a wireless network provided by the communication provider of the device.
  • the transmission device 106 may include a network adapter (Network Interface Controller, NIC for short), which can be connected to other network devices through a base station so as to communicate with the Internet.
  • the transmission device 106 may be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet in a wireless manner.
  • RF Radio Frequency
  • FIG. 3 is a flowchart of a distributed service forwarding method according to an embodiment of the present application. As shown in FIG. 3 , it is applied to Centralized forwarding equipment, the process includes the following steps:
  • Step S302 receiving the service message (ie service message) of the service terminal forwarded by the first CPE through the tunnel;
  • Step S304 if the service message is a unicast message, forward the service message to the destination service terminal according to the pre-established unicast forwarding table;
  • the above step S304 may specifically include: obtaining the IP address of the corresponding second CPE from the unicast forwarding table, and encapsulating a tunnel label according to the IP address of the second CPE; The service packet is forwarded to the second CPE, where the second CPE is configured to forward the service packet to the destination service terminal.
  • Step S306 if the service message is a multicast message, forward the service message to the destination service terminal according to the pre-established multicast forwarding table.
  • step S306 may at least include:
  • IP address of the second CPE and the IP address of the destination service terminal according to the multicast forwarding table, wherein the second CPE is one or more, and one second CPE corresponds to one IP address (Internet Protocol, network protocol);
  • the IP address of the first CPE can be obtained (public network IP address) according to the outer layer IP address of the service message, which may specifically include: obtaining the multicast IP address of the service message;
  • the broadcast forwarding table obtains the IP addresses of multiple CPEs and the IP addresses of multiple service terminals corresponding to the multicast IP address, wherein the multicast forwarding table includes the multicast IP address, the IP address of the CPE, and the IP addresses of the service terminals. Address correspondence, wherein the correspondence refers to the mutual correspondence between the aforementioned three IP addresses; determine the IP address of the second CPE according to the IP addresses of the multiple CPEs, and determine the second The IP address of the service terminal corresponding to the IP address of the CPE is the IP address of the destination service terminal.
  • the first CPE when the first CPE is only connected to one service terminal, it is determined that the IP addresses of the multiple CPEs except the The IP address of a CPE other than the IP address of the first CPE is the IP address of the second CPE, and when the first CPE is connected to multiple service terminals, determine that the IP addresses of the multiple CPEs are the second CPE IP address.
  • the multicast IP address in the service message is modified to the IP address of the destination service terminal to obtain the target service message; according to the IP address of the second CPE, the target service message is forward the message to the second CPE, where the second CPE is used to forward the service message to the destination service terminal.
  • the tunnel label can be encapsulated according to the IP address of the second CPE; the target service packet is forwarded to the second CPE through the tunnel corresponding to the tunnel label; in another embodiment, in the In the case where the second CPE supports multicast, copy the target service message according to the number of IP addresses of the second CPE, wherein one second CPE corresponds to one target service message; the copied target The service message is sent to the corresponding second CPE, and is sent to the destination service terminal through the second CPE in unicast or multicast mode; when the second CPE does not support multicast, according to The number of IP addresses of the target service terminal copies the target service message, wherein one target service terminal corresponds to one target service message.
  • the target service terminal includes the Among all service terminals of the first CPE, other service terminals except the service terminal sending the service message, and other service terminals accessed under the second CPE except the first CPE; the copied target service report The message is sent to all corresponding second CPEs (including the first CPE), and the first CPE sends the target service message to other service terminals under the first CPE except the service terminal that sends the service message through unicast mode.
  • the other second CPEs other than the one CPE send the target service packets to their corresponding service terminals in a unicast or multicast manner.
  • FIG. 4 is a flowchart of a distributed service forwarding method according to another embodiment of the present application. As shown in FIG. 4, it is applied to a CPE, This process may include, but is not limited to, the following steps:
  • Step S402 receiving the service message sent by the service terminal
  • Step S404 sending the service message to the centralized forwarding device through the tunnel, wherein the centralized forwarding device is configured to send the service message according to the pre-established unicast forwarding table if the service message is a unicast message
  • the service message is forwarded to the destination service terminal; if the service message is a multicast message, the service message is forwarded to the destination service terminal according to a pre-established multicast forwarding table.
  • the method further includes: receiving a target service packet forwarded by the centralized forwarding device according to the IP address of the CPE, wherein the target service packet is the service packet forwarded by the centralized forwarding device
  • the multicast IP address in the message is obtained after modifying the IP address of the destination service terminal; in some examples, the target service message forwarded by the centralized forwarding device is received through a tunnel corresponding to the tunnel label, wherein , the tunnel label is obtained by encapsulation of the centralized forwarding device according to the IP address of the CPE, specifically, in the case of supporting multicast, receiving the The target service message is sent to the target service terminal through unicast or multicast, wherein one CPE corresponds to one target service message; if multicast is not supported, the The centralized forwarding device copies the target service message according to the number of IP addresses of the target service terminal, and sends it to the target service terminal in a unicast manner, wherein one target service terminal corresponds to one target service message ; Forwarding the target service message to the target service
  • the method further includes: receiving the service packet forwarded by the centralized forwarding device through a tunnel corresponding to a tunnel label, wherein the tunnel label is the unicast forwarding table obtained by the centralized forwarding device Obtaining the IP address of the CPE from the IP address of the CPE, and encapsulating the IP address of the CPE; forwarding the service packet to the destination service terminal.
  • FIG. 5 is a block diagram of a distributed service forwarding system according to an embodiment of the present application. As shown in FIG. 5 , it includes: a first CPE52 and centralized forwarding device 54, wherein,
  • the first CPE52 is set to receive the service message sent by the service terminal, and forward the service message to the centralized forwarding device 54 through a tunnel;
  • the centralized forwarding device 54 is configured to receive the service message; when the service message is a unicast message, forward the service message to the destination service terminal according to a pre-established unicast forwarding table ; If the service message is a multicast message, forward the service message to the destination service terminal according to the pre-established multicast forwarding table.
  • FIG. 6 is a block diagram of a distributed service forwarding system according to another embodiment of the present application.
  • the system further includes a second CPE62, and the centralized forwarding device 54 is also configured According to the multicast forwarding table, obtain the IP address of the second CPE62 and the IP address of the destination service terminal, wherein, the second CPE62 is one or more, and one of the second CPE62 corresponds to one of the IP address: forwarding the service packet to the destination service terminal according to the IP address of the second CPE62 and the IP address of the destination service terminal.
  • the centralized forwarding device 54 is further configured to obtain the multicast IP address of the service message; obtain the IP addresses of multiple CPEs corresponding to the multicast IP address according to the multicast forwarding table. address and the IP addresses of multiple service terminals, wherein the multicast forwarding table includes the correspondence between the multicast IP address, the IP address of the CPE, and the IP address of the service terminal; according to the IP addresses of the multiple CPEs Determine the IP address of the second CPE62, and determine the IP address of the service terminal corresponding to the IP address of the second CPE62 as the IP address of the destination service terminal.
  • the first CPE52 is further configured to encapsulate a tunnel label for the service message, wherein the tunnel label is used to indicate that the next hop is the centralized forwarding device 54;
  • the centralized forwarding device 54 is further configured to decapsulate the tunnel label encapsulated in the service message, and determine the IP address of the first CPE 52 according to the tunnel label.
  • the system further includes a second CPE62, wherein,
  • the centralized forwarding device 54 is also configured to modify the multicast IP address in the service message to the IP address of the destination service terminal to obtain the target service message; according to the IP address of the second CPE62 Forwarding the target service packet to the second CPE62;
  • the second CPE62 is further configured to forward the target service packet to the target service terminal.
  • the centralized forwarding device 54 is further configured to encapsulate a tunnel label according to the IP address of the second CPE62; forward the target service message to the second CPE62 through the tunnel corresponding to the tunnel label ;
  • the second CPE62 is configured to receive the target service message through the tunnel, decapsulate the tunnel label, obtain the IP address of the target service terminal in the target service message, and The IP address of the service terminal forwards the target service packet to the target service terminal.
  • the centralized forwarding device 54 is further configured to copy the target service message according to the number of IP addresses of the second CPE62 when the second CPE62 supports multicast, wherein, One second CPE62 corresponds to one target service message; sending the copied target service message to the corresponding second CPE62;
  • the centralized forwarding device 54 is further configured to copy the target service message according to the number of IP addresses of the target service terminals when the second CPE62 does not support multicast, wherein one target service terminal corresponds to One target service message; sending the copied target service message to the corresponding second CPE62;
  • the second CPE62 is further configured to send the target service message to the target service terminal through unicast or multicast.
  • system further includes: a third CPE, wherein,
  • the centralized forwarding device 54 is also configured to obtain the IP address of the corresponding third CPE from the unicast forwarding table, and encapsulate the tunnel label according to the IP address of the third CPE; Forwarding the service packet to the third CPE;
  • the third CPE is further configured to forward the service packet to the destination service terminal.
  • both the first CPE52 and the second CPE62 may include one or more CPEs.
  • Fig. 7 is a schematic diagram of a distributed service forwarding system according to an embodiment of the present application. As shown in Fig. 7, it includes two main parts: CPE and centralized forwarding equipment, wherein the centralized forwarding equipment is a key part, and CPE performs service terminal access , the service message is transparently transmitted to the centralized forwarding device through the Overlay method, and the centralized forwarding device forwards the message to the corresponding destination CPE through the Overlay method according to the global route, and the CPE forwards the message to the destination service terminal according to the local route, where the destination service terminal is a service terminal one or more of .
  • the centralized forwarding equipment is a key part
  • CPE performs service terminal access
  • the service message is transparently transmitted to the centralized forwarding device through the Overlay method
  • the centralized forwarding device forwards the message to the corresponding destination CPE through the Overlay method according to the global route
  • the CPE forwards the message to the destination service terminal according to the local route, where the destination service terminal is
  • the centralized forwarding node is deployed to simplify the network structure, and the centralized forwarding node generates two routing tables for unicast and multicast respectively.
  • the centralized forwarding device has a routing table including CPE and service terminal addresses.
  • the centralized forwarding device receives a multicast message, it indexes the multicast IP address to find the corresponding CPE and the group members attached to the CPE.
  • Information copy multiple packets whose outer address is the destination CPE, and the inner address is the destination service terminal, and forward them. It is only necessary for the CPE to support unicast packet forwarding, and it is not necessary to support the multicast function, further reducing the forwarding pressure of the CPE.
  • Fig. 8 is a schematic diagram of a tunnel-based service Overlay according to an embodiment of the present application.
  • a service terminal message is connected to a 5G network through a wireless CPE, and forwarded to a user data network through a base station, a bearer network, and a core network UPF Or the Internet, for communication between terminals, it is forwarded to the destination service terminal by UPF.
  • UPF core network
  • a centralized forwarding device is required to forward industry-distributed service packets, a tunnel needs to be established between the CPE and the centralized forwarding device so that service packets can be forwarded to the centralized forwarding device in one hop. network routing, and distributed services are forwarded through private network routing.
  • VxLAN Virtual eXtensible Local Area Network
  • GRE Generic Routing Encapsulation
  • L2TP Layer 2 Tunneling Protocol
  • Method 1 The CPE does not need to be upgraded, and the CPE only supports unicast mode.
  • the centralized multicast forwarding system copies the multicast message as a message whose destination address is all other members in the group, and forwards it as a unicast form, such as CPE downlink n service terminals will copy n copies of the unicast message and forward it to each destination service terminal.
  • Method 2 The CPE is upgraded to support the multicast function, and the multicast message is copied through the centralized multicast forwarding system. If there are m CPE members, it will be copied into m multicast messages. broadcast to the destination service terminal, where m is less than n.
  • the method is more compatible with existing network equipment and is more suitable for actual deployment, and the technical implementation is relatively complicated.
  • the following uses method 1 as an example to illustrate, and method 2 is similar, so it will not be described again.
  • Fig. 9 is a flowchart of service forwarding according to an embodiment of the present application, as shown in Fig. 9, including:
  • Step S901 the service terminal sends a service message
  • Step S902 after receiving the message from the source service terminal, the CPE encapsulates the tunnel label, and the next hop is the centralized forwarding device;
  • step S903 when the centralized forwarding device receives the message from the CPE, it decapsulates the tunnel label and judges whether it is a multicast message. If the judgment result is no, execute step S904. If the judgment result is yes, execute Step S907;
  • Step S904 the centralized forwarding device searches the unicast forwarding table, keeps the destination address unchanged, encapsulates the tunnel label, and sends the unicast message to the CPE;
  • Step S905 the CPE receives the unicast message, decapsulates the tunnel label in the unicast message, and forwards the unicast message to the destination service terminal according to the service destination address;
  • Step S906 the destination service terminal receives the service message
  • Step S907 the centralized forwarding device searches the multicast forwarding table, changes the multicast address to the destination service terminal address, and sends the multicast message to the CPE;
  • Step S908 the CPE receives the multicast message, decapsulates the tunnel label in the multicast message, and forwards it to the destination service terminal according to the service destination address;
  • Step S909 the destination service terminal receives the service message.
  • FIG. 10 is a schematic diagram of multicast forwarding of services based on a 5G network according to an embodiment of the present application.
  • FIG. 11 is a flowchart of multicast forwarding of service packets based on a 5G network according to an embodiment of the present application. As shown in FIG. 11 , this scenario is taken as an example for illustration.
  • Step 1 the service terminal sends the service message to the source CPE.
  • Step 2 After receiving the service message, the source CPE performs tunnel encapsulation processing, and the default next hop is the centralized forwarding device.
  • the above steps 2 further include:
  • the service terminal address is the private network address 10.0.1.0/24
  • the CPE and the centralized forwarding device are the public network address 172.0.0.0/16
  • the CPE encapsulates The public network address is routed and forwarded.
  • S22, CPE and centralized forwarding device messages are transparently transmitted in the 5G network, without additional configuration and forwarding process processing.
  • Step 3 The centralized forwarding device receives the service message sent by the source CPE, queries the multicast forwarding table, and indexes related service terminal members through the multicast address.
  • Step 4 Find the corresponding parent CPE according to the service terminal, and the centralized forwarding device performs tunnel label encapsulation, the next hop is the CPE, and the destination address of the service message is the target Data Terminal Unit (DTU for short).
  • DTU Data Terminal Unit
  • Step 5 After receiving the message sent by the centralized forwarding device, the destination CPE decapsulates it, performs routing according to the destination address of the service message, and forwards it to the destination service terminal device.
  • Step 6 The destination service terminal device receives the service message and performs corresponding processing.
  • the above steps 3 further include:
  • Step 3.1 Acquisition of multicast forwarding table member information including:
  • Method 1 Perform static configuration through planning, plan the service terminal members of each multicast group according to service requirements, allocate multicast addresses for each multicast group, establish a multicast forwarding table, and establish a correspondence table between CPE and service terminals . It is necessary to synchronize DTU planning rules and planning lists, and manually import group information into the data forwarding system. The planning is complicated, and the later maintenance workload is relatively large, but the system has no new function requirements.
  • Method 2 Report group member information through the service terminal, which supports the multicast control protocol, and through related configuration, the protocol generates service group information.
  • the service terminal reports to the CPE, and the CPE reports to the centralized forwarding device, or directly reports to the centralized forwarding device through the service terminal.
  • the CPE or data forwarding system needs to support the communication interface with the DTU; the post-maintenance workload is relatively small.
  • Method 3 Obtain member information through the connection of the service side network management, connect with the centralized forwarding device through the service terminal network management, and configure the multicast group by the service terminal network management, and the service terminal network management will synchronize the service group information to the data forwarding system.
  • the data forwarding system needs to be connected to the northbound interface of the DTU monitoring platform, and the post-maintenance workload is relatively small.
  • Method 1 has relatively simple device functions, and requires a relatively large workload of network and service planning in the early stage. It is more suitable for scenarios where the network changes little after it is put into operation. Mode 2 is more flexible to deploy, and can dynamically change the network topology and adjust service relationships in real time. It is more suitable for scenarios where the network is updated quickly and services are upgraded and changed frequently. Mode 3 is relatively compromised, and can be selected according to the needs of more realistic scenarios.
  • the establishment of the multicast forwarding table according to the member information obtained in S31, establishes the multicast forwarding system multicast forwarding table, which includes several key fields, multicast IP address, CPE IP address and service terminal IP address.
  • members include service terminals with IP addresses 10.0.1.1, 10.0.1.2, 10.0.1.3, 10.0.1.4, and 10.0.1.5.
  • IP addresses 10.0.1.1, 10.0.1.2, 10.0.1.3, 10.0.1.4, and 10.0.1.5.
  • two service terminals 10.0.1.2 and 10.0.1.3 are connected to CPE 10.0.1.2, and the mapping relationship between CPE and service terminal needs to be established in the forwarding table.
  • Fig. 12 is a schematic diagram of a multicast forwarding table according to an embodiment of the present application. As shown in Fig. 12, each service terminal corresponding to the multicast IP is regarded as a data record, and if multiple service terminals are hung under the same CPE, there are many Records.
  • Step 1 the source service terminal 10.0.1.1 sends a multicast message, the multicast IP address is 224.1.1.1
  • Figure 13 is a schematic structural diagram of a service terminal multicast message according to an embodiment of the present application, the message structure is shown in Figure 13 As shown in , it is sent to CPE 172.0.1.1 through the default route.
  • Step 2 CPE 172.0.1.1 receives the message and performs outer tunnel encapsulation.
  • Figure 14 is a schematic diagram of the structure of a CPE sending a multicast message according to an embodiment of the application. The message structure is shown in Figure 14, and the destination address is 172.0.2.1, the source address is the CPE address, the inner source and sink IP addresses remain unchanged, and forwarded to the centralized forwarding device through the 5G network.
  • Step 3 The centralized forwarding device receives the message and decapsulates the outer label.
  • Figure 15 is a schematic structural diagram of a message sent by the centralized forwarding device according to an embodiment of the application. The structure of the message is shown in Figure 15, and the 224.1.1.1
  • the inner destination IP is the destination service terminal
  • the source IP is the remote service terminal IP address 10.0.1.1.
  • the outer layer is encapsulated, and the destination IP is the corresponding destination CPE 172.0.1.2, 172.0.1.3 and 172.0.1.4, and sent to the corresponding destination CPE.
  • Step 4 Each destination CPE receives the message, decapsulates the outer tunnel, forwards the message in memory according to the local route, and sends it to the corresponding service terminal.
  • Step 5 each service terminal receives the corresponding service message.
  • FIG. 16 is a block diagram of a distributed service forwarding device according to an embodiment of the present application. As shown in FIG. 16 , include:
  • the first receiving module 162 is configured to receive the service message of the service terminal forwarded by the first CPE through the tunnel;
  • the unicast forwarding module 164 is configured to forward the service message to the destination service terminal according to a pre-established unicast forwarding table when the service message is a unicast message;
  • the multicast forwarding module 166 is configured to forward the service message to the destination service terminal according to the pre-established multicast forwarding table if the service message is a multicast message.
  • the multicast forwarding module 166 includes:
  • the obtaining submodule is configured to obtain the IP address of the second CPE and the IP address of the destination service terminal according to the multicast forwarding table;
  • the first forwarding submodule is configured to forward the service packet to the destination service terminal according to the IP address of the second CPE and the IP address of the destination service terminal.
  • the acquiring submodule is also set to
  • the multicast forwarding table includes the multicast IP address, the IP address of the CPE, Correspondence between IP addresses of service terminals;
  • the first forwarding submodule includes:
  • the modifying unit is configured to modify the multicast IP address in the service message to the IP address of the target service terminal to obtain the target service message;
  • a forwarding unit configured to forward the target service packet to the second CPE according to the IP address of the second CPE, wherein the second CPE is configured to forward the service packet to the destination business terminal.
  • the forwarding unit is further configured to
  • the forwarding unit is further configured to
  • the second CPE supports multicast
  • the second CPE does not support multicast, copy the target service message according to the number of IP addresses of the target service terminal, wherein one target service terminal corresponds to one target service message; the copied The target service message is sent to the corresponding second CPE, and is sent to the target service terminal through the second CPE in a unicast manner.
  • the unicast forwarding module 144 includes:
  • the encapsulation submodule is configured to obtain the IP address of the corresponding third CPE from the unicast forwarding table, and encapsulate the tunnel label according to the IP address of the third CPE;
  • the second forwarding submodule is configured to forward the service packet to the third CPE through the tunnel corresponding to the tunnel label, wherein the third CPE is configured to forward the service packet to the Describe the purpose of the business terminal.
  • FIG. 17 is a block diagram of a distributed service forwarding device according to another embodiment of the present application, as shown in FIG. 17 , applied to CPE, including:
  • the second receiving module 172 is configured to receive the service message sent by the service terminal;
  • the sending module 174 is configured to send the service message to the centralized forwarding device through a tunnel, wherein the centralized forwarding device is configured to send the service message according to the pre-established The unicast forwarding table forwards the service message to the destination service terminal; when the service message is a multicast message, forwards the service message to the destination business terminal.
  • the device also includes:
  • the third receiving module is configured to receive the target service message forwarded by the centralized forwarding device according to the IP address of the CPE, wherein the target service message is the set of the group in the service message sent by the centralized forwarding device
  • the broadcast IP address is obtained after modifying the IP address of the destination service terminal;
  • the first forwarding module is configured to forward the target service packet to the target service terminal.
  • the third receiving module is further configured to
  • the target service packet forwarded by the centralized forwarding device is received through a tunnel corresponding to a tunnel label, where the tunnel label is obtained by encapsulating the centralized forwarding device according to the IP address of the CPE.
  • the third receiving module is further configured to
  • the target service terminal If multicast is not supported, then receive the target service message copied by the centralized forwarding device according to the number of IP addresses of the target service terminal, and send it to the target service terminal in a unicast manner, wherein one The target service terminal corresponds to one target service message.
  • the device also includes:
  • the fourth receiving module is configured to receive the service packet forwarded by the centralized forwarding device through a tunnel corresponding to a tunnel label, wherein the tunnel label is obtained by the centralized forwarding device from the unicast forwarding table for the CPE IP address obtained by encapsulation according to the IP address of the CPE;
  • the second forwarding module is configured to forward the service message to the destination service terminal.
  • Embodiments of the present application also provide a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to perform the steps in any one of the above method embodiments when running.
  • the above-mentioned computer-readable storage medium may include but not limited to: U disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), mobile Various media such as hard disks, magnetic disks, or optical disks that can store computer programs.
  • ROM read-only memory
  • RAM random access memory
  • mobile Various media such as hard disks, magnetic disks, or optical disks that can store computer programs.
  • An embodiment of the present application also provides an electronic device, including a memory and a processor, where a computer program is stored in the memory, and the processor is configured to run the computer program to perform the steps in any one of the above method embodiments.
  • the electronic device may further include a transmission device and an input and output device, wherein the transmission device is connected to the processor, and the input and output device is connected to the processor.
  • the service message of the service terminal forwarded by the first CPE through the tunnel is received; when the service message is a unicast message, the service message is forwarded to the destination service terminal according to the unicast forwarding table ;
  • the service message is forwarded to the destination service terminal according to the multicast forwarding table, which can solve the problem of terminal processing through CPE equipment networking in related technical solutions
  • the capacity and the uplink bandwidth of the air interface of the base station bring great challenges.
  • the CPE only needs to establish an end-to-end connection with the centralized forwarding device, and forward the service packets through the centralized forwarding device, transforming the purely distributed processing network into forwarding by the centralized forwarding device.
  • the network greatly reduces the uplink bandwidth of the 5G network, simplifies the functions of the CPE, and improves the forwarding efficiency.
  • each module or each step of the above-mentioned application can be realized by a general-purpose computing device, and they can be concentrated on a single computing device, or distributed in a network composed of multiple computing devices In fact, they can be implemented in program code executable by a computing device, and thus, they can be stored in a storage device to be executed by a computing device, and in some cases, can be executed in an order different from that shown here. Or described steps, or they are fabricated into individual integrated circuit modules, or multiple modules or steps among them are fabricated into a single integrated circuit module for implementation. As such, the present application is not limited to any specific combination of hardware and software.

Abstract

A distributed service forwarding method, apparatus and system, a storage medium, and an electronic device. The method is applied to a centralized forwarding device, and comprises: receiving a service message, forwarded by a first CPE by means of a tunnel, of a service terminal (S302); in the case that the service message is a unicast message, forwarding the service message to a destination service terminal according to a unicast forwarding table (S304); and in the case that the service message is a multicast message, forwarding the service message to the destination service terminal according to a multicast forwarding table (S306).

Description

分布式业务转发方法、装置、系统、存储介质及电子设备Distributed service forwarding method, device, system, storage medium and electronic equipment
相关申请的交叉引用Cross References to Related Applications
本申请基于申请号为202110963727.X、申请日为2021年08月20日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。This application is based on a Chinese patent application with application number 202110963727.X and a filing date of August 20, 2021, and claims the priority of this Chinese patent application. The entire content of this Chinese patent application is hereby incorporated by reference into this application.
技术领域technical field
本申请实施例涉及通信领域,具体而言,涉及一种分布式业务转发方法、装置、系统、存储介质及电子设备。The embodiments of the present application relate to the communication field, and in particular, relate to a distributed service forwarding method, device, system, storage medium, and electronic equipment.
背景技术Background technique
对于电力、工业领域某些对带宽、时延要求高的生产类业务无法通过无线通信方式承载。但是一些特殊工业场景部署光纤受限,严重制约了产业数字化部署。For some production services in the electric power and industrial fields that require high bandwidth and delay, they cannot be carried by wireless communication. However, the deployment of optical fibers in some special industrial scenarios is limited, which seriously restricts the deployment of industrial digitalization.
随着5G技术的成熟和商用,大大解决了这方面问题。5G网络大带宽、低时延、大连接的特性,完全解决了长久依赖有线通信的困扰。With the maturity and commercial use of 5G technology, this problem has been greatly solved. The characteristics of large bandwidth, low latency, and large connections of the 5G network completely solve the problem of long-term dependence on wired communication.
从网络结构上看,有线网络是一种分布式转发模型,5G网络是一种树形转发模型、所有业务需要通过用户名网元(User Plane Function)进行集中转发。但是5G无线空口上行带宽容易造成瓶颈,这点与有线通信的双向带宽相同又有很大不同。From the perspective of network structure, the wired network is a distributed forwarding model, and the 5G network is a tree-shaped forwarding model. All services need to be forwarded centrally through the User Plane Function. However, the uplink bandwidth of the 5G wireless air interface is likely to cause a bottleneck, which is the same as the two-way bandwidth of wired communication, but it is very different.
图1是根据相关的技术方案中的CPE转发业务的组网框图,如图1所示,客户前端设备(Customer Premise Equipment,简称为CPE)与其他组内成员组播通信时,通过CPE设备进行组网,连接数、带宽都存在N方问题,对终端的处理能力和基站的空口上行带宽都带来了很大的挑战。Figure 1 is a network diagram of the CPE forwarding service according to the related technical solution. As shown in Figure 1, when the Customer Premise Equipment (CPE for short) communicates with other members in the group through multicast, the CPE device performs multicast communication. Networking, the number of connections, and bandwidth all have N-party problems, which pose great challenges to the processing capabilities of terminals and the uplink bandwidth of air interfaces of base stations.
针对相关的技术方案中通过CPE设备组网,对终端的处理能力和基站的空口上行带宽带来很大挑战的问题,尚未提出解决方案。Aiming at the problem that the CPE device networking in the related technical solutions poses a great challenge to the processing capability of the terminal and the uplink bandwidth of the air interface of the base station, no solution has been proposed yet.
发明内容Contents of the invention
本申请实施例提供了一种分布式业务转发方法、装置、系统、存储介质及电子设备,以至少在一定程度上解决相关的技术问题之一,包括通过CPE设备组网,对终端的处理能力和基站的空口上行带宽带来很大挑战的问题。Embodiments of the present application provide a distributed service forwarding method, device, system, storage medium, and electronic equipment to at least solve one of the related technical problems to a certain extent, including the ability to process terminals through CPE equipment networking. And the uplink bandwidth of the air interface of the base station brings great challenges.
根据本申请的一个实施例,提供了一种分布式业务转发方法,应用于集中转发设备,包括:接收第一CPE通过隧道转发的业务终端的业务报文;在所述业务报文为单播报文的情况下,根据预先建立的单播转发表将所述业务报文转发给目的业务终端;在所述业务报文为组播报文的情况下,根据预先建立的组播转发表将所述业务报文转发给所述目的业务终端。According to an embodiment of the present application, a distributed service forwarding method is provided, which is applied to a centralized forwarding device, including: receiving the service message of the service terminal forwarded by the first CPE through the tunnel; when the service message is a unicast message In the case of a text message, forward the service message to the destination service terminal according to the pre-established unicast forwarding table; forwarding the service packet to the destination service terminal.
根据本申请的另一个实施例,还提供了一种分布式业务转发方法,应用于CPE,包括:接收业务终端发送的业务报文;通过隧道将所述业务报文发送给集中转发设备,其中,所述集中转发设备被设置成在所述业务报文为单播报文的情况下,则根据预先建立的单播转发表 将所述业务报文转发给目的业务终端;在所述业务报文为组播报文的情况下,则根据预先建立的组播转发表将所述业务报文转发给所述目的业务终端。According to another embodiment of the present application, a distributed service forwarding method is also provided, which is applied to a CPE, including: receiving a service message sent by a service terminal; sending the service message to a centralized forwarding device through a tunnel, wherein , the centralized forwarding device is configured to forward the service message to the destination service terminal according to a pre-established unicast forwarding table if the service message is a unicast message; If it is a multicast message, forward the service message to the destination service terminal according to the pre-established multicast forwarding table.
根据本申请的另一个实施例,还提供了一种分布式业务转发装置,应用于集中转发设备,包括:第一接收模块,被设置成接收第一CPE通过隧道转发的业务终端的业务报文;单播转发模块,被设置成在所述业务报文为单播报文的情况下,根据预先建立的单播转发表将所述业务报文转发给目的业务终端;组播转发模块,被设置成在所述业务报文为组播报文的情况下,根据预先建立的组播转发表将所述业务报文转发给所述目的业务终端。According to another embodiment of the present application, a distributed service forwarding device is also provided, which is applied to a centralized forwarding device, including: a first receiving module, configured to receive the service message of the service terminal forwarded by the first CPE through the tunnel The unicast forwarding module is set to forward the service message to the destination service terminal according to the pre-established unicast forwarding table when the service message is a unicast message; the multicast forwarding module is set to If the service message is a multicast message, forward the service message to the destination service terminal according to the pre-established multicast forwarding table.
根据本申请的另一个实施例,还提供了一种分布式业务转发装置,应用于CPE,包括:第二接收模块,被设置成接收业务终端发送的业务报文;发送模块,被设置成通过隧道将所述业务报文发送给集中转发设备,其中,所述集中转发设备被设置成在所述业务报文为单播报文的情况下,则根据预先建立的单播转发表将所述业务报文转发给目的业务终端;在所述业务报文为组播报文的情况下,则根据预先建立的组播转发表将所述业务报文转发给所述目的业务终端。According to another embodiment of the present application, a distributed service forwarding device is also provided, which is applied to a CPE, including: a second receiving module, configured to receive a service message sent by a service terminal; a sending module, configured to pass The tunnel sends the service message to the centralized forwarding device, wherein the centralized forwarding device is configured to forward the service message according to a pre-established unicast forwarding table if the service message is a unicast message The message is forwarded to the destination service terminal; if the service message is a multicast message, the service message is forwarded to the destination service terminal according to the pre-established multicast forwarding table.
根据本申请的另一个实施例,还提供了一种分布式业务转发系统,至少包括:第一CPE以及集中转发设备,其中,所述第一CPE,被设置成接收业务终端发送的业务报文,并通过隧道将所述业务报文转发给所述集中转发设备;所述集中转发设备,被设置成执行上述任一项所述的方法。According to another embodiment of the present application, a distributed service forwarding system is also provided, at least including: a first CPE and a centralized forwarding device, wherein the first CPE is configured to receive service packets sent by service terminals , and forward the service message to the centralized forwarding device through a tunnel; the centralized forwarding device is configured to execute the method described in any one of the above.
根据本申请的又一个实施例,还提供了一种计算机可读的存储介质,所述存储介质中存储有计算机程序,其中,所述计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。According to yet another embodiment of the present application, a computer-readable storage medium is also provided, and a computer program is stored in the storage medium, wherein the computer program is configured to execute any one of the above method embodiments when running in the steps.
根据本申请的又一个实施例,还提供了一种电子设备,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器被设置为运行所述计算机程序以执行上述任一项方法实施例中的步骤。According to yet another embodiment of the present application, there is also provided an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to perform any of the above Steps in the method examples.
附图说明Description of drawings
图1是根据相关的技术方案中的CPE转发业务的组网框图;Fig. 1 is a network block diagram according to the CPE forwarding service in the relevant technical solution;
图2是本申请实施例的分布式业务转发方法的装置的硬件结构框示意图;FIG. 2 is a schematic block diagram of a hardware structure of a device for a distributed service forwarding method according to an embodiment of the present application;
图3是根据本申请一实施例的分布式业务转发方法的流程图;FIG. 3 is a flowchart of a distributed service forwarding method according to an embodiment of the present application;
图4是根据本申请另一实施例的分布式业务转发方法的流程图;FIG. 4 is a flowchart of a distributed service forwarding method according to another embodiment of the present application;
图5是根据本申请一实施例的分布式业务转发系统的框图;FIG. 5 is a block diagram of a distributed service forwarding system according to an embodiment of the present application;
图6是根据本申请另一实施例的分布式业务转发系统的框图;FIG. 6 is a block diagram of a distributed service forwarding system according to another embodiment of the present application;
图7是根据本申请一实施例的分布式业务转发系统的示意图;FIG. 7 is a schematic diagram of a distributed service forwarding system according to an embodiment of the present application;
图9是根据本申请一实施例的基于隧道的业务Overlay的示意图;FIG. 9 is a schematic diagram of a tunnel-based service Overlay according to an embodiment of the present application;
图9是根据本申请一实施例的业务转发的流程图;FIG. 9 is a flowchart of service forwarding according to an embodiment of the present application;
图10是根据本申请一实施例的基于5G网络的业务组播转发示意图;FIG. 10 is a schematic diagram of service multicast forwarding based on a 5G network according to an embodiment of the present application;
图11是根据本申请一实施例的基于5G网络的业务报文组播转发的流程图;FIG. 11 is a flowchart of multicast forwarding of service packets based on a 5G network according to an embodiment of the present application;
图12是根据本申请一实施例的组播转发表的示意图;FIG. 12 is a schematic diagram of a multicast forwarding table according to an embodiment of the present application;
图13是根据本申请一实施例的业务终端组播报文的结构示意图;FIG. 13 is a schematic structural diagram of a service terminal multicast message according to an embodiment of the present application;
图14是根据本申请一实施例的CPE发送组播报文的结构示意图;FIG. 14 is a schematic structural diagram of a CPE sending a multicast message according to an embodiment of the present application;
图15是根据本申请一实施例的集中转发设备发送报文的结构示意图;FIG. 15 is a schematic structural diagram of a centralized forwarding device sending a message according to an embodiment of the present application;
图16是根据本申请一实施例的分布式业务转发装的框图;Fig. 16 is a block diagram of a distributed service forwarding device according to an embodiment of the present application;
图17是根据本申请另一实施例的分布式业务转发装的框图。Fig. 17 is a block diagram of a distributed service forwarding device according to another embodiment of the present application.
具体实施方式Detailed ways
下文中将参考附图并结合实施例来详细说明本申请的实施例。Embodiments of the present application will be described in detail below with reference to the drawings and in combination with the embodiments.
需要说明的是,本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It should be noted that the terms "first" and "second" in the description and claims of the present application and the above drawings are used to distinguish similar objects, but not necessarily used to describe a specific sequence or sequence.
本申请实施例中所提供的方法实施例可以在移动终端、计算机终端或者类似的运算装置中执行。以运行在类似的运算装置上为例,图2是本申请实施例的分布式业务转发方法的装置的硬件结构框图,如图2所示,可以包括一个或多个(图2中仅示出一个)处理器102(处理器102可以包括但不限于微处理器MCU或可编程逻辑器件FPGA等的处理装置)和用于存储数据的存储器104,其中,还可以包括用于通信功能的传输设备106以及输入输出设备108。本领域普通技术人员可以理解,图2所示的结构仅为示意,其并不对上述结构造成限定。例如,还可包括比图2中所示更多或者更少的组件,或者具有与图2所示不同的配置。The method embodiments provided in the embodiments of the present application may be executed in mobile terminals, computer terminals or similar computing devices. Taking running on a similar computing device as an example, Fig. 2 is a block diagram of the hardware structure of the device of the distributed service forwarding method according to the embodiment of the present application. As shown in Fig. 2, it may include one or more (only shown in Fig. 2 1) Processor 102 (processor 102 may include but not limited to processing devices such as microprocessor MCU or programmable logic device FPGA, etc.) and memory 104 for storing data, which may also include transmission equipment for communication functions 106 and input and output devices 108 . Those of ordinary skill in the art can understand that the structure shown in FIG. 2 is only for illustration and does not limit the above structure. For example, more or fewer components than shown in FIG. 2 may also be included, or have a different configuration than shown in FIG. 2 .
存储器104可用于存储计算机程序,例如,应用软件的软件程序以及模块,如本申请实施例中的分布式业务转发方法对应的计算机程序,处理器102通过运行存储在存储器104内的计算机程序,从而执行各种功能应用以及业务链地址池切片处理,即实现上述的方法。存储器104可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器104可进一步包括相对于处理器102远程设置的存储器,这些远程存储器可以通过网络连接至装置。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the distributed service forwarding method in the embodiment of the present application, and the processor 102 runs the computer program stored in the memory 104, thereby Executing various functional applications and slicing processing of the service chain address pool is to realize the above-mentioned method. The memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the device via a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
传输装置106被设置成经由一个网络接收或者发送数据。上述的网络具体实例可包括装置的通信供应商提供的无线网络。在一个实例中,传输装置106可以包括一个网络适配器(Network Interface Controller,简称为NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输装置106可以为射频(Radio Frequency,简称为RF)模块,其用于通过无线方式与互联网进行通讯。The transmission device 106 is arranged to receive or transmit data via a network. Specific examples of the above-mentioned network may include a wireless network provided by the communication provider of the device. In one example, the transmission device 106 may include a network adapter (Network Interface Controller, NIC for short), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (Radio Frequency, referred to as RF) module, which is used to communicate with the Internet in a wireless manner.
在本实施例中提供了一种运行于上述装置或网络架构的分布式业务转发方法,图3是根据本申请一实施例的分布式业务转发方法的流程图,如图3所示,应用于集中转发设备,该流程包括如下步骤:In this embodiment, a distributed service forwarding method running on the above-mentioned device or network architecture is provided. FIG. 3 is a flowchart of a distributed service forwarding method according to an embodiment of the present application. As shown in FIG. 3 , it is applied to Centralized forwarding equipment, the process includes the following steps:
步骤S302,接收第一CPE通过隧道转发的业务终端的业务报文(即业务报文);Step S302, receiving the service message (ie service message) of the service terminal forwarded by the first CPE through the tunnel;
步骤S304,在所述业务报文为单播报文的情况下,根据预先建立的单播转发表将所述业务报文转发给目的业务终端;Step S304, if the service message is a unicast message, forward the service message to the destination service terminal according to the pre-established unicast forwarding table;
本实施例中,上述步骤S304具体可以包括:从所述单播转发表中获取对应的第二CPE的IP地址,根据第二CPE的IP地址封装隧道标签;通过所述隧道标签对应的隧道将所述业务报文转发给所述第二CPE,其中,所述第二CPE用于将所述业务报文转发给所述目的业务终端。In this embodiment, the above step S304 may specifically include: obtaining the IP address of the corresponding second CPE from the unicast forwarding table, and encapsulating a tunnel label according to the IP address of the second CPE; The service packet is forwarded to the second CPE, where the second CPE is configured to forward the service packet to the destination service terminal.
步骤S306,在所述业务报文为组播报文的情况下,根据预先建立的组播转发表将所述业务报文转发给目的业务终端。Step S306, if the service message is a multicast message, forward the service message to the destination service terminal according to the pre-established multicast forwarding table.
本实施例中,上述步骤S306至少可以包括:In this embodiment, the above step S306 may at least include:
根据所述组播转发表,获取第二CPE的IP地址与所述目的业务终端的IP地址,其中,所述第二CPE为一个或多个,一个所述第二CPE对应一个所述IP地址(Internet Protocol,网络协议);Obtain the IP address of the second CPE and the IP address of the destination service terminal according to the multicast forwarding table, wherein the second CPE is one or more, and one second CPE corresponds to one IP address (Internet Protocol, network protocol);
在一些示例中,第一CPE的IP地址可以根据业务报文的外层IP地址查看获得(公网IP地址),具体可以包括:获取所述业务报文的组播IP地址;根据所述组播转发表获取所述组播IP地址对应的多个CPE的IP地址与多个业务终端的IP地址,其中,所述组播转发表包括组播IP地址、CPE的IP地址以及业务终端的IP地址的对应关系,其中,该对应关系指的是前述三种IP地址之间的相互对应关系;根据所述多个CPE的IP地址确定所述第二CPE的IP地址,并确定所述第二CPE的IP地址对应的业务终端的IP地址为所述目的业务终端的IP地址,具体的,在第一CPE仅连接一个业务终端的情况下,确定所述多个CPE的IP地址中除所述第一CPE的IP地址之外CPE的IP地址为所述第二CPE的IP地址,在第一CPE连接多个业务终端的情况下,确定所述多个CPE的IP地址为所述第二CPE的IP地址。In some examples, the IP address of the first CPE can be obtained (public network IP address) according to the outer layer IP address of the service message, which may specifically include: obtaining the multicast IP address of the service message; The broadcast forwarding table obtains the IP addresses of multiple CPEs and the IP addresses of multiple service terminals corresponding to the multicast IP address, wherein the multicast forwarding table includes the multicast IP address, the IP address of the CPE, and the IP addresses of the service terminals. Address correspondence, wherein the correspondence refers to the mutual correspondence between the aforementioned three IP addresses; determine the IP address of the second CPE according to the IP addresses of the multiple CPEs, and determine the second The IP address of the service terminal corresponding to the IP address of the CPE is the IP address of the destination service terminal. Specifically, when the first CPE is only connected to one service terminal, it is determined that the IP addresses of the multiple CPEs except the The IP address of a CPE other than the IP address of the first CPE is the IP address of the second CPE, and when the first CPE is connected to multiple service terminals, determine that the IP addresses of the multiple CPEs are the second CPE IP address.
根据所述第二CPE的IP地址与所述目的业务终端的IP地址将所述业务报文转发给所述目的业务终端。在一些示例中,将所述业务报文中所述组播IP地址修改为所述目的业务终端的IP地址,得到目标业务报文;根据所述第二CPE的IP地址将所述目标业务报文转发给所述第二CPE,其中,所述第二CPE用于将所述业务报文转发给所述目的业务终端。在一实施例中,可以根据第二CPE的IP地址封装隧道标签;通过所述隧道标签对应的隧道将所述目标业务报文转发给所述第二CPE;在另一实施例中,在所述第二CPE支持组播的情况下,根据所述第二CPE的IP地址数量复制所述目标业务报文,其中,一个第二CPE对应一个所述目标业务报文;将复制的所述目标业务报文发送给对应的所述第二CPE,通过所述第二CPE通过单播方式或组播方式发送给所述目的业务终端;在所述第二CPE不支持组播的情况下,根据所述目的业务终端的IP地址数量复制所述目标业务报文,其中,一个目的业务终端对应一个所述目标业务报文。forwarding the service packet to the destination service terminal according to the IP address of the second CPE and the IP address of the destination service terminal. In some examples, the multicast IP address in the service message is modified to the IP address of the destination service terminal to obtain the target service message; according to the IP address of the second CPE, the target service message is forward the message to the second CPE, where the second CPE is used to forward the service message to the destination service terminal. In one embodiment, the tunnel label can be encapsulated according to the IP address of the second CPE; the target service packet is forwarded to the second CPE through the tunnel corresponding to the tunnel label; in another embodiment, in the In the case where the second CPE supports multicast, copy the target service message according to the number of IP addresses of the second CPE, wherein one second CPE corresponds to one target service message; the copied target The service message is sent to the corresponding second CPE, and is sent to the destination service terminal through the second CPE in unicast or multicast mode; when the second CPE does not support multicast, according to The number of IP addresses of the target service terminal copies the target service message, wherein one target service terminal corresponds to one target service message.
在另一实施例中,若第二CPE的IP地址包括第一CPE的IP地址,即第二CPE包括第一CPE,且第一CPE连接多个业务终端,则目标业务终端包括接入所述第一CPE的所有业务终端中除发送业务报文的业务终端之外的其他业务终端,以及除第一CPE之外的其他第二CPE下接入的业务终端;将复制的所述目标业务报文发送给对应的所有第二CPE(包括第一CPE),第一CPE通过单播方式发送目标业务报文给第一CPE下除发送业务报文的业务终端之外的其他业务终端,除第一CPE之外的其他第二CPE通过单播或组播的方式将目标业务报文发送给各自对应的业务终端。In another embodiment, if the IP address of the second CPE includes the IP address of the first CPE, that is, the second CPE includes the first CPE, and the first CPE is connected to multiple service terminals, then the target service terminal includes the Among all service terminals of the first CPE, other service terminals except the service terminal sending the service message, and other service terminals accessed under the second CPE except the first CPE; the copied target service report The message is sent to all corresponding second CPEs (including the first CPE), and the first CPE sends the target service message to other service terminals under the first CPE except the service terminal that sends the service message through unicast mode. The other second CPEs other than the one CPE send the target service packets to their corresponding service terminals in a unicast or multicast manner.
根据本实施例的另一方面,还提供了一种分布式业务转发方法,图4是根据本申请另一实施例的分布式业务转发方法的流程图,如图4所示,应用于CPE,该流程可以包括,但不限于以下步骤:According to another aspect of this embodiment, a distributed service forwarding method is also provided. FIG. 4 is a flowchart of a distributed service forwarding method according to another embodiment of the present application. As shown in FIG. 4, it is applied to a CPE, This process may include, but is not limited to, the following steps:
步骤S402,接收业务终端发送的业务报文;Step S402, receiving the service message sent by the service terminal;
步骤S404,通过隧道将所述业务报文发送给集中转发设备,其中,所述集中转发设备用于在所述业务报文为单播报文的情况下,则根据预先建立的单播转发表将所述业务报文转发给目的业务终端;在所述业务报文为组播报文的情况下,则根据预先建立的组播转发表将所 述业务报文转发给所述目的业务终端。Step S404, sending the service message to the centralized forwarding device through the tunnel, wherein the centralized forwarding device is configured to send the service message according to the pre-established unicast forwarding table if the service message is a unicast message The service message is forwarded to the destination service terminal; if the service message is a multicast message, the service message is forwarded to the destination service terminal according to a pre-established multicast forwarding table.
在一实施例中,所述方法还包括:接收所述集中转发设备根据所述CPE的IP地址转发的目标业务报文,其中,所述目标业务报文是所述集中转发设备将所述业务报文中所述组播IP地址修改为所述目的业务终端的IP地址之后得到的;在一些示例中,通过隧道标签对应的隧道接收所述集中转发设备转发的所述目标业务报文,其中,所述隧道标签是所述集中转发设备根据所述CPE的IP地址封装得到的,具体的,在支持组播的情况下,接收所述集中转发设备根据所述CPE的IP地址数量复制的所述目标业务报文,通过单播方式或组播方式发送给所述目的业务终端,其中,一个所述CPE对应一个所述目标业务报文;在不支持组播的情况下,则接收所述集中转发设备根据所述目的业务终端的IP地址数量复制的所述目标业务报文,通过单播方式发送给所述目的业务终端,其中,一个所述目的业务终端对应一个所述目标业务报文;将所述目标业务报文转发给所述目的业务终端。In an embodiment, the method further includes: receiving a target service packet forwarded by the centralized forwarding device according to the IP address of the CPE, wherein the target service packet is the service packet forwarded by the centralized forwarding device The multicast IP address in the message is obtained after modifying the IP address of the destination service terminal; in some examples, the target service message forwarded by the centralized forwarding device is received through a tunnel corresponding to the tunnel label, wherein , the tunnel label is obtained by encapsulation of the centralized forwarding device according to the IP address of the CPE, specifically, in the case of supporting multicast, receiving the The target service message is sent to the target service terminal through unicast or multicast, wherein one CPE corresponds to one target service message; if multicast is not supported, the The centralized forwarding device copies the target service message according to the number of IP addresses of the target service terminal, and sends it to the target service terminal in a unicast manner, wherein one target service terminal corresponds to one target service message ; Forwarding the target service message to the target service terminal.
在另一实施例中,所述方法还包括:通过隧道标签对应的隧道接收所述集中转发设备转发的业务报文,其中,所述隧道标签是所述集中转发设备从所述单播转发表中获取所述CPE的IP地址,并根据所述CPE的IP地址封装得到的;将所述业务报文转发给所述目的业务终端。In another embodiment, the method further includes: receiving the service packet forwarded by the centralized forwarding device through a tunnel corresponding to a tunnel label, wherein the tunnel label is the unicast forwarding table obtained by the centralized forwarding device Obtaining the IP address of the CPE from the IP address of the CPE, and encapsulating the IP address of the CPE; forwarding the service packet to the destination service terminal.
根据本申请的另一个实施例,还提供了一种分布式业务转发系统,图5是根据本申请一实施例的分布式业务转发系统的框图,如图5所示,包括:第一CPE52以及集中转发设备54,其中,According to another embodiment of the present application, a distributed service forwarding system is also provided. FIG. 5 is a block diagram of a distributed service forwarding system according to an embodiment of the present application. As shown in FIG. 5 , it includes: a first CPE52 and centralized forwarding device 54, wherein,
所述第一CPE52,被设置成接收业务终端发送的业务报文,并通过隧道将所述业务报文转发给所述集中转发设备54;The first CPE52 is set to receive the service message sent by the service terminal, and forward the service message to the centralized forwarding device 54 through a tunnel;
所述集中转发设备54,被设置成接收所述业务报文;在所述业务报文为单播报文的情况下,根据预先建立的单播转发表将所述业务报文转发给目的业务终端;在所述业务报文为组播报文的情况下,根据预先建立的组播转发表将所述业务报文转发给目的业务终端。The centralized forwarding device 54 is configured to receive the service message; when the service message is a unicast message, forward the service message to the destination service terminal according to a pre-established unicast forwarding table ; If the service message is a multicast message, forward the service message to the destination service terminal according to the pre-established multicast forwarding table.
在一实施例中,图6是根据本申请另一实施例的分布式业务转发系统的框图,如图6所示,所述系统还包括第二CPE62,所述集中转发设备54,还被设置成根据所述组播转发表,获取第二CPE62的IP地址与所述目的业务终端的IP地址,其中,所述第二CPE62为一个或多个,一个所述第二CPE62对应一个所述IP地址;根据所述第二CPE62的IP地址与所述目的业务终端的IP地址将所述业务报文转发给所述目的业务终端。In one embodiment, FIG. 6 is a block diagram of a distributed service forwarding system according to another embodiment of the present application. As shown in FIG. 6, the system further includes a second CPE62, and the centralized forwarding device 54 is also configured According to the multicast forwarding table, obtain the IP address of the second CPE62 and the IP address of the destination service terminal, wherein, the second CPE62 is one or more, and one of the second CPE62 corresponds to one of the IP address: forwarding the service packet to the destination service terminal according to the IP address of the second CPE62 and the IP address of the destination service terminal.
在一实施例中,所述集中转发设备54,还被设置成获取所述业务报文的组播IP地址;根据所述组播转发表获取所述组播IP地址对应的多个CPE的IP地址与多个业务终端的IP地址,其中,所述组播转发表包括组播IP地址、CPE的IP地址、业务终端的IP地址三者间的对应关系;根据所述多个CPE的IP地址确定所述第二CPE62的IP地址,并确定所述第二CPE62的IP地址对应的业务终端的IP地址为所述目的业务终端的IP地址。In one embodiment, the centralized forwarding device 54 is further configured to obtain the multicast IP address of the service message; obtain the IP addresses of multiple CPEs corresponding to the multicast IP address according to the multicast forwarding table. address and the IP addresses of multiple service terminals, wherein the multicast forwarding table includes the correspondence between the multicast IP address, the IP address of the CPE, and the IP address of the service terminal; according to the IP addresses of the multiple CPEs Determine the IP address of the second CPE62, and determine the IP address of the service terminal corresponding to the IP address of the second CPE62 as the IP address of the destination service terminal.
在一实施例中,所述第一CPE52,还被设置成为所述业务报文封装隧道标签,其中,所述隧道标签用于指示下一跳为所述集中转发设备54;In an embodiment, the first CPE52 is further configured to encapsulate a tunnel label for the service message, wherein the tunnel label is used to indicate that the next hop is the centralized forwarding device 54;
所述集中转发设备54,还被设置成解封装所述业务报文中封装的隧道标签,根据所述隧道标签确定所述第一CPE52的IP地址。The centralized forwarding device 54 is further configured to decapsulate the tunnel label encapsulated in the service message, and determine the IP address of the first CPE 52 according to the tunnel label.
如图6所示,所述系统还包括第二CPE62,其中,As shown in FIG. 6, the system further includes a second CPE62, wherein,
所述集中转发设备54,还被设置成将所述业务报文中所述组播IP地址修改为所述目的业务终端的IP地址,得到目标业务报文;根据所述第二CPE62的IP地址将所述目标业务报文转发给所述第二CPE62;The centralized forwarding device 54 is also configured to modify the multicast IP address in the service message to the IP address of the destination service terminal to obtain the target service message; according to the IP address of the second CPE62 Forwarding the target service packet to the second CPE62;
所述第二CPE62,还被设置成将所述目标业务报文转发给所述目的业务终端。The second CPE62 is further configured to forward the target service packet to the target service terminal.
在一实施例中,所述集中转发设备54,还被设置成根据第二CPE62的IP地址封装隧道标签;通过所述隧道标签对应的隧道将所述目标业务报文转发给所述第二CPE62;In one embodiment, the centralized forwarding device 54 is further configured to encapsulate a tunnel label according to the IP address of the second CPE62; forward the target service message to the second CPE62 through the tunnel corresponding to the tunnel label ;
所述第二CPE62,被设置成通过所述隧道接收所述目标业务报文,并解封装所述隧道标签,获取所述目标业务报文的所述目的业务终端的IP地址,根据所述目的业务终端的IP地址将所述目标业务报文转发给所述目标业务终端。The second CPE62 is configured to receive the target service message through the tunnel, decapsulate the tunnel label, obtain the IP address of the target service terminal in the target service message, and The IP address of the service terminal forwards the target service packet to the target service terminal.
在一实施例中,所述集中转发设备54,还被设置成在所述第二CPE62支持组播的情况下,根据所述第二CPE62的IP地址数量复制所述目标业务报文,其中,一个第二CPE62对应一个所述目标业务报文;将复制的所述目标业务报文发送给对应的所述第二CPE62;In an embodiment, the centralized forwarding device 54 is further configured to copy the target service message according to the number of IP addresses of the second CPE62 when the second CPE62 supports multicast, wherein, One second CPE62 corresponds to one target service message; sending the copied target service message to the corresponding second CPE62;
所述集中转发设备54,还被设置成在所述第二CPE62不支持组播的情况下,根据所述目的业务终端的IP地址数量复制所述目标业务报文,其中,一个目的业务终端对应一个所述目标业务报文;将复制的所述目标业务报文发送给对应的所述第二CPE62;The centralized forwarding device 54 is further configured to copy the target service message according to the number of IP addresses of the target service terminals when the second CPE62 does not support multicast, wherein one target service terminal corresponds to One target service message; sending the copied target service message to the corresponding second CPE62;
所述第二CPE62,还被设置成通过单播方式或组播方式将所述目标业务报文发送给所述目的业务终端。The second CPE62 is further configured to send the target service message to the target service terminal through unicast or multicast.
在另一实施例中,所述系统还包括:第三CPE,其中,In another embodiment, the system further includes: a third CPE, wherein,
所述集中转发设备54,还被设置成从所述单播转发表中获取对应的第三CPE的IP地址,根据所述第三CPE的IP地址封装隧道标签;通过所述隧道标签对应的隧道将所述业务报文转发给所述第三CPE;The centralized forwarding device 54 is also configured to obtain the IP address of the corresponding third CPE from the unicast forwarding table, and encapsulate the tunnel label according to the IP address of the third CPE; Forwarding the service packet to the third CPE;
所述第三CPE,还被设置成将所述业务报文转发给所述目的业务终端。The third CPE is further configured to forward the service packet to the destination service terminal.
本实施例中,上述第一CPE52和第二CPE62均可以包括一个或多个CPE。In this embodiment, both the first CPE52 and the second CPE62 may include one or more CPEs.
图7是根据本申请一实施例的分布式业务转发系统的示意图,如图7所示,包括:CPE和集中转发设备两个主要部分,其中集中转发设备为关键部分,CPE进行业务终端接入,业务报文通过Overlay方式透传至集中转发设备,集中转发设备根据全局路由通过Overlay方式将报文转发至对应目的CPE,CPE根据本地路由转发至目的业务终端,其中,目的业务终端为业务终端的一个或多个。Fig. 7 is a schematic diagram of a distributed service forwarding system according to an embodiment of the present application. As shown in Fig. 7, it includes two main parts: CPE and centralized forwarding equipment, wherein the centralized forwarding equipment is a key part, and CPE performs service terminal access , the service message is transparently transmitted to the centralized forwarding device through the Overlay method, and the centralized forwarding device forwards the message to the corresponding destination CPE through the Overlay method according to the global route, and the CPE forwards the message to the destination service terminal according to the local route, where the destination service terminal is a service terminal one or more of .
本实施例通过部署集中转发节点,简化网络结构,集中转发节点生成分别针对单播和组播的两张路由表。针对组播业务,集中转发设备存在一张包括CPE、业务终端地址的路由表,集中转发设备收到组播报文时,索引组播IP地址,查到相应的CPE和CPE下挂的组成员信息,复制多个外层地址为目的CPE,内层地址为目的业务终端的报文,并转发,只需CPE支持单播报文转发即可,无需支持组播功能,进一步减轻CPE的转发压力。In this embodiment, the centralized forwarding node is deployed to simplify the network structure, and the centralized forwarding node generates two routing tables for unicast and multicast respectively. For multicast services, the centralized forwarding device has a routing table including CPE and service terminal addresses. When the centralized forwarding device receives a multicast message, it indexes the multicast IP address to find the corresponding CPE and the group members attached to the CPE. Information, copy multiple packets whose outer address is the destination CPE, and the inner address is the destination service terminal, and forward them. It is only necessary for the CPE to support unicast packet forwarding, and it is not necessary to support the multicast function, further reducing the forwarding pressure of the CPE.
图8是根据本申请一实施例的基于隧道的业务Overlay的示意图,如图8所示,业务终端报文经无线CPE接入5G网络,经过基站、承载网、核心网UPF转发至用户数据网或者互联网,对于终端与终端间的通信,则由UPF转发至目的业务终端。由于需要集中转发设备进行行业分布式业务报文转发,因此需要在CPE与集中转发设备间建立一条隧道,使得业务报文可以一跳转发至集中转发设备,而CPE与集中转发设备间配置公网路由,分布式业务则通过私网路由转发。可根据业务需要,选择虚拟扩展局域网(Virtual eXtensible Local Area  Network,简称为VxLAN)、通用路由封装(Generic Routing Encapsulation,简称为GRE)、或第二层穿梭协议(Layer2 Tunneling Protocol,简称为L2TP)等隧道技术。针对当前运行的5G网络系统,包括无线基站、承载网络、核心网无线任何改动;针对业务终端(电力场景为DTU设备)无需任何改动。Fig. 8 is a schematic diagram of a tunnel-based service Overlay according to an embodiment of the present application. As shown in Fig. 8, a service terminal message is connected to a 5G network through a wireless CPE, and forwarded to a user data network through a base station, a bearer network, and a core network UPF Or the Internet, for communication between terminals, it is forwarded to the destination service terminal by UPF. Since a centralized forwarding device is required to forward industry-distributed service packets, a tunnel needs to be established between the CPE and the centralized forwarding device so that service packets can be forwarded to the centralized forwarding device in one hop. network routing, and distributed services are forwarded through private network routing. According to business needs, you can choose Virtual eXtensible Local Area Network (VxLAN for short), Generic Routing Encapsulation (GRE for short), or Layer 2 Tunneling Protocol (L2TP for short), etc. tunnel technology. For the currently running 5G network system, including any changes to wireless base stations, bearer networks, and core network wireless; no changes are required for business terminals (DTU equipment in power scenarios).
针对CPE可以选择两种方式:There are two options for CPE:
方式一:CPE不做升级改动,CPE只支持单播方式,通过集中组播转发系统将组播报文复制为目的地址为组内所有其他成员的报文,作为单播形式转发,比如CPE下联n个业务终端,将复制n份单播报文,转发至各个目的业务终端。Method 1: The CPE does not need to be upgraded, and the CPE only supports unicast mode. The centralized multicast forwarding system copies the multicast message as a message whose destination address is all other members in the group, and forwards it as a unicast form, such as CPE downlink n service terminals will copy n copies of the unicast message and forward it to each destination service terminal.
方式二:CPE升级为支持组播功能,通过集中组播转发系统复制组播报文,如有m个CPE成员,将复制为m份组播报文,目的CPE接收报文后,在通过组播形式发送至目的业务终端,其中,m小于n。Method 2: The CPE is upgraded to support the multicast function, and the multicast message is copied through the centralized multicast forwarding system. If there are m CPE members, it will be copied into m multicast messages. broadcast to the destination service terminal, where m is less than n.
方式一对现网设备兼容性更好,更适合实际部署,而且技术实现相对复杂,以下以方式一为例进行说明,方式二类似,不再赘述。The method is more compatible with existing network equipment and is more suitable for actual deployment, and the technical implementation is relatively complicated. The following uses method 1 as an example to illustrate, and method 2 is similar, so it will not be described again.
业务报文转发流程,针对单播和组播报文,集中转发设备的处理流程有所不同,针对组播转发进行特殊处理。集中转发设备维护的组播路由表项增加业务终端信息,进一步简化CPE功能,不需要CPE维护组播路由表项,兼容当前大多CPE设备,而在集中转发设备,对下行数据进行单播处理,分布发送至目的CPE,最终转发至目的业务终端。存在CPE下挂多个业务终端的情况时,需要集中转发设备发送多条流至目的CPE。图9是根据本申请一实施例的业务转发的流程图,如图9所示,包括:For the service message forwarding process, the processing process of the centralized forwarding device is different for unicast and multicast messages, and special processing is performed for multicast forwarding. The multicast routing table item maintained by the centralized forwarding device adds service terminal information, further simplifies the CPE function, does not require the CPE to maintain the multicast routing table item, and is compatible with most current CPE devices, while the centralized forwarding device performs unicast processing on the downlink data. The distribution is sent to the destination CPE, and finally forwarded to the destination service terminal. When there are multiple service terminals connected to the CPE, the centralized forwarding device needs to send multiple flows to the destination CPE. Fig. 9 is a flowchart of service forwarding according to an embodiment of the present application, as shown in Fig. 9, including:
步骤S901,业务终端发送业务报文;Step S901, the service terminal sends a service message;
步骤S902,CPE接收到源业务终端的报文后,封装隧道标签,下一跳为集中转发设备;Step S902, after receiving the message from the source service terminal, the CPE encapsulates the tunnel label, and the next hop is the centralized forwarding device;
步骤S903,集中转发设备收到CPE的报文时,解封装隧道标签,判断是否为组播报文,在判断结果为否的情况下,执行步骤S904,在判断结果为是的情况下,执行步骤S907;In step S903, when the centralized forwarding device receives the message from the CPE, it decapsulates the tunnel label and judges whether it is a multicast message. If the judgment result is no, execute step S904. If the judgment result is yes, execute Step S907;
步骤S904,集中转发设备查找单播转发表,目的地址不变,封装隧道标签,将单播报文发送给CPE;Step S904, the centralized forwarding device searches the unicast forwarding table, keeps the destination address unchanged, encapsulates the tunnel label, and sends the unicast message to the CPE;
步骤S905,CPE接收单播报文,解封装单播报文中的隧道标签,根据业务目的地址将单播报文转发至目的业务终端;Step S905, the CPE receives the unicast message, decapsulates the tunnel label in the unicast message, and forwards the unicast message to the destination service terminal according to the service destination address;
步骤S906,目的业务终端接收业务报文;Step S906, the destination service terminal receives the service message;
步骤S907,集中转发设备查找组播转发表,将组播地址改为目的业务终端地址,将组播报文发送给CPE;Step S907, the centralized forwarding device searches the multicast forwarding table, changes the multicast address to the destination service terminal address, and sends the multicast message to the CPE;
步骤S908,CPE接收组播报文,解封装组播报文中的隧道标签,根据业务目的地址转发至目的业务终端;Step S908, the CPE receives the multicast message, decapsulates the tunnel label in the multicast message, and forwards it to the destination service terminal according to the service destination address;
步骤S909,目的业务终端接收业务报文。Step S909, the destination service terminal receives the service message.
因为单播报文转发采用通用处理方式,以下只对组播情况进行详细阐述。Since unicast packets are forwarded using a general processing method, only the multicast situation will be described in detail below.
针对于CPE只对接一个业务终端的情况相对简单,图10是根据本申请一实施例的基于5G网络的业务组播转发示意图,如图10所示,对于CPE对接多个业务终端的情况相对复杂,图11是根据本申请一实施例的基于5G网络的业务报文组播转发的流程图,如图11所示,以此场景为例进行说明。For the situation where the CPE is only connected to one service terminal is relatively simple, FIG. 10 is a schematic diagram of multicast forwarding of services based on a 5G network according to an embodiment of the present application. As shown in FIG. 10 , the situation where the CPE is connected to multiple service terminals is relatively complicated , FIG. 11 is a flowchart of multicast forwarding of service packets based on a 5G network according to an embodiment of the present application. As shown in FIG. 11 , this scenario is taken as an example for illustration.
步骤1,业务终端发送业务报文至源CPE。 Step 1, the service terminal sends the service message to the source CPE.
步骤2,源端CPE接收业务报文后,进行隧道封装处理,默认下一跳为集中转发设备。Step 2: After receiving the service message, the source CPE performs tunnel encapsulation processing, and the default next hop is the centralized forwarding device.
上述步骤2的进一步包括:The above steps 2 further include:
S21,如图11所示,业务终端地址为私网地址10.0.1.0/24,CPE与集中转发设备为公网地址172.0.0.0/16,CPE将业务终端的报文进行封装,在公网根据公网地址进行路由转发。S21, as shown in Figure 11, the service terminal address is the private network address 10.0.1.0/24, the CPE and the centralized forwarding device are the public network address 172.0.0.0/16, and the CPE encapsulates The public network address is routed and forwarded.
S22,CPE与集中转发设备报文在5G网络中透传,无需额外配置和转发流程处理。S22, CPE and centralized forwarding device messages are transparently transmitted in the 5G network, without additional configuration and forwarding process processing.
步骤3,集中转发设备接收源CPE发送的业务报文,查询组播转发表,通过组播地址索引相关业务终端成员。Step 3: The centralized forwarding device receives the service message sent by the source CPE, queries the multicast forwarding table, and indexes related service terminal members through the multicast address.
步骤4,根据业务终端查找起对应的父类CPE,集中转发设备进行隧道标签封装,下一跳为CPE,业务报文目的地址为目标数据终端设备(Data Terminal Unit,简称为DTU)。Step 4: Find the corresponding parent CPE according to the service terminal, and the centralized forwarding device performs tunnel label encapsulation, the next hop is the CPE, and the destination address of the service message is the target Data Terminal Unit (DTU for short).
步骤5,目的CPE接收到集中转发设备发送的报文后,进行解封装,根据业务报文目的地址进行路由,转发至目的业务终端设备。Step 5: After receiving the message sent by the centralized forwarding device, the destination CPE decapsulates it, performs routing according to the destination address of the service message, and forwards it to the destination service terminal device.
步骤6,目的业务终端设备接收业务报文,进行相应处理。Step 6: The destination service terminal device receives the service message and performs corresponding processing.
上述步骤3的进一步包括:The above steps 3 further include:
步骤3.1组播转发表成员信息的获取,包括:Step 3.1 Acquisition of multicast forwarding table member information, including:
方式1:通过规划进行静态配置,根据业务需求,规划每个组播组的业务终端成员,为每个组播组分配组播地址,建立组播转发表,建立CPE与业务终端的对应关系表。需同步DTU规划规则、规划列表,将分组信息手工导入数据转发系统。规划复杂,后期维护工作量相对较大,但系统无新增功能需求。Method 1: Perform static configuration through planning, plan the service terminal members of each multicast group according to service requirements, allocate multicast addresses for each multicast group, establish a multicast forwarding table, and establish a correspondence table between CPE and service terminals . It is necessary to synchronize DTU planning rules and planning lists, and manually import group information into the data forwarding system. The planning is complicated, and the later maintenance workload is relatively large, but the system has no new function requirements.
方式2:通过业务终端上报组成员信息,业务终端支持组播控制协议,通过进行相关配置,由协议生成业务组信息。由业务终端上报给CPE,CPE上报集中转发设备,或者通过业务终端直接上报至集中转发设备。CPE或数据转发系统需支持与DTU的通信接口;后期维护工作量相对较小。Method 2: Report group member information through the service terminal, which supports the multicast control protocol, and through related configuration, the protocol generates service group information. The service terminal reports to the CPE, and the CPE reports to the centralized forwarding device, or directly reports to the centralized forwarding device through the service terminal. The CPE or data forwarding system needs to support the communication interface with the DTU; the post-maintenance workload is relatively small.
方式3:通过业务侧网管对接获取成员信息,通过业务终端网管与集中转发设备对接,由业务终端网管进行组播组配置,业务终端网管将业务组信息同步给数据转发系统。数据转发系统需对接DTU监视平台北向接口,后期维护工作量相对较小。Method 3: Obtain member information through the connection of the service side network management, connect with the centralized forwarding device through the service terminal network management, and configure the multicast group by the service terminal network management, and the service terminal network management will synchronize the service group information to the data forwarding system. The data forwarding system needs to be connected to the northbound interface of the DTU monitoring platform, and the post-maintenance workload is relatively small.
以上几种方式,各有优缺点,方式1设备功能相对简单,前期网络和业务规划工作量相对较大,对于网络投运后变化不大的场景更适合。方式2部署更灵活,可以实时动态进行网络拓扑变化和业务关系调整,对于网络更新快,业务升级变化多的场景更适合。方式3相对折衷,可以更实际场景需要进行选择。The above methods have their own advantages and disadvantages. Method 1 has relatively simple device functions, and requires a relatively large workload of network and service planning in the early stage. It is more suitable for scenarios where the network changes little after it is put into operation. Mode 2 is more flexible to deploy, and can dynamically change the network topology and adjust service relationships in real time. It is more suitable for scenarios where the network is updated quickly and services are upgraded and changed frequently. Mode 3 is relatively compromised, and can be selected according to the needs of more realistic scenarios.
S3.2,组播转发表的建立,根据S31的获取的成员信息,建立组播转发系统组播转发表,其中包括几个关键的字段,组播IP地址,CPEIP地址和业务终端IP地址。S3.2, the establishment of the multicast forwarding table, according to the member information obtained in S31, establishes the multicast forwarding system multicast forwarding table, which includes several key fields, multicast IP address, CPE IP address and service terminal IP address.
如图11所示,对于组播IP为224.1.1.1的组播组,成员包括IP地址为10.0.1.1,10.0.1.2,10.0.1.3,10.0.1.4,10.0.1.5的业务终端。根据实际网络拓扑,CPE 10.0.1.2下挂两个业务终端10.0.1.2和10.0.1.3,转发表中需建立CPE和业务终端的映射对应关系。As shown in FIG. 11 , for a multicast group whose multicast IP is 224.1.1.1, members include service terminals with IP addresses 10.0.1.1, 10.0.1.2, 10.0.1.3, 10.0.1.4, and 10.0.1.5. According to the actual network topology, two service terminals 10.0.1.2 and 10.0.1.3 are connected to CPE 10.0.1.2, and the mapping relationship between CPE and service terminal needs to be established in the forwarding table.
图12是根据本申请一实施例的组播转发表的示意图,如图12所示,组播IP对应的每个业务终端作为一条数据记录,同一个CPE下挂多个业务终端,则有多条记录。Fig. 12 is a schematic diagram of a multicast forwarding table according to an embodiment of the present application. As shown in Fig. 12, each service terminal corresponding to the multicast IP is regarded as a data record, and if multiple service terminals are hung under the same CPE, there are many Records.
S3.3,组播转发表的查询,根据组播IP地址查询组播转发表,以附图11为例,集中转发设备当收到组播地址为224.1.1.1,源地址为10.0.1.1的报文时,查询相关的成员信息有个IP地址为10.0.1.1,10.0.1.2,10.0.1.3,10.0.1.4,10.0.1.5的5个业务终端,将向 10.0.1.2,10.0.1.3,10.0.1.4,10.0.1.5的其他4个业务终端发送报文。当CPE不支持组播转发时,需要集中转发设备发送单播报文到相应的目的业务终端。那么本实施例中需要集中转发设备同时发送四个到对应业务终端的单播报文。S3.3, query the multicast forwarding table, query the multicast forwarding table according to the multicast IP address, take Figure 11 as an example, when the centralized forwarding device receives the multicast address as 224.1.1.1, the source address is 10.0.1.1 When querying the relevant member information, there are five business terminals with IP addresses 10.0.1.1, 10.0.1.2, 10.0.1.3, 10.0.1.4, and 10.0.1.5, and they will send messages to 10.0.1.2, 10.0.1.3, and 10.0 .1.4, the other 4 service terminals of 10.0.1.5 send messages. When the CPE does not support multicast forwarding, the centralized forwarding device needs to send unicast packets to the corresponding destination service terminals. Then, in this embodiment, the centralized forwarding device needs to send four unicast packets to corresponding service terminals at the same time.
下面针对具体转发流程的报文做简要说明,包括:The following is a brief description of the packets in the specific forwarding process, including:
步骤1,源业务终端10.0.1.1发送组播报文,组播IP地址为224.1.1.1,图13是根据本申请一实施例的业务终端组播报文的结构示意图,报文结构如图13所示,通过默认路由发送至CPE 172.0.1.1。 Step 1, the source service terminal 10.0.1.1 sends a multicast message, the multicast IP address is 224.1.1.1, Figure 13 is a schematic structural diagram of a service terminal multicast message according to an embodiment of the present application, the message structure is shown in Figure 13 As shown in , it is sent to CPE 172.0.1.1 through the default route.
步骤2,CPE 172.0.1.1收到报文,进行外层隧道封装,图14是根据本申请一实施例的CPE发送组播报文的结构示意图,报文结构如图14所示,目的地址为172.0.2.1,源地址为CPE地址,内层源宿IP地址不变,通过5G网络转发至集中转发设备。 Step 2, CPE 172.0.1.1 receives the message and performs outer tunnel encapsulation. Figure 14 is a schematic diagram of the structure of a CPE sending a multicast message according to an embodiment of the application. The message structure is shown in Figure 14, and the destination address is 172.0.2.1, the source address is the CPE address, the inner source and sink IP addresses remain unchanged, and forwarded to the centralized forwarding device through the 5G network.
步骤3,集中转发设备收到报文,解封装外层标签,图15是根据本申请一实施例的集中转发设备发送报文的结构示意图,报文结构如图15所示,进行224.1.1.1.的组播组的转发处理,进行组播转发表查询,同时发送4个单播报文,内层目的IP为目的业务终端,源IP为远端业务终端IP地址10.0.1.1。外层进行封装,目的IP为相应目的CPE 172.0.1.2,172.0.1.3以及172.0.1.4,发送至对应的目的CPE。Step 3: The centralized forwarding device receives the message and decapsulates the outer label. Figure 15 is a schematic structural diagram of a message sent by the centralized forwarding device according to an embodiment of the application. The structure of the message is shown in Figure 15, and the 224.1.1.1 For the forwarding processing of the multicast group of ., query the multicast forwarding table, and send 4 unicast packets at the same time, the inner destination IP is the destination service terminal, and the source IP is the remote service terminal IP address 10.0.1.1. The outer layer is encapsulated, and the destination IP is the corresponding destination CPE 172.0.1.2, 172.0.1.3 and 172.0.1.4, and sent to the corresponding destination CPE.
步骤4,各目的CPE进行报文接收,解封装外层隧道,根据本地路由进行内存报文转发,发送至相应业务终端。Step 4: Each destination CPE receives the message, decapsulates the outer tunnel, forwards the message in memory according to the local route, and sends it to the corresponding service terminal.
步骤5,各业务终端接收到相应业务报文。Step 5, each service terminal receives the corresponding service message.
根据本申请的另一个实施例,还提供了一种分布式业务转发装置,应用于集中转发设备,图16是根据本申请一实施例的分布式业务转发装的框图,如图16所示,包括:According to another embodiment of the present application, a distributed service forwarding device is also provided, which is applied to a centralized forwarding device. FIG. 16 is a block diagram of a distributed service forwarding device according to an embodiment of the present application. As shown in FIG. 16 , include:
第一接收模块162,被设置成接收第一CPE通过隧道转发的业务终端的业务报文;The first receiving module 162 is configured to receive the service message of the service terminal forwarded by the first CPE through the tunnel;
单播转发模块164,被设置成在所述业务报文为单播报文的情况下,根据预先建立的单播转发表将所述业务报文转发给目的业务终端;The unicast forwarding module 164 is configured to forward the service message to the destination service terminal according to a pre-established unicast forwarding table when the service message is a unicast message;
组播转发模块166,被设置成在所述业务报文为组播报文的情况下,根据预先建立的组播转发表将所述业务报文转发给目的业务终端。The multicast forwarding module 166 is configured to forward the service message to the destination service terminal according to the pre-established multicast forwarding table if the service message is a multicast message.
在一实施例中,所述组播转发模块166包括:In one embodiment, the multicast forwarding module 166 includes:
获取子模块,被设置成根据所述组播转发表,获取第二CPE的IP地址与所述目的业务终端的IP地址;The obtaining submodule is configured to obtain the IP address of the second CPE and the IP address of the destination service terminal according to the multicast forwarding table;
第一转发子模块,被设置成根据所述第二CPE的IP地址与所述目的业务终端的IP地址将所述业务报文转发给所述目的业务终端。The first forwarding submodule is configured to forward the service packet to the destination service terminal according to the IP address of the second CPE and the IP address of the destination service terminal.
在一实施例中,所述获取子模块,还被设置成In one embodiment, the acquiring submodule is also set to
获取所述业务报文的组播IP地址;Obtain the multicast IP address of the service message;
根据所述组播转发表获取所述组播IP地址对应的多个CPE的IP地址与多个业务终端的IP地址,其中,所述组播转发表包括组播IP地址、CPE的IP地址、业务终端的IP地址的对应关系;Obtain the IP addresses of multiple CPEs corresponding to the multicast IP address and the IP addresses of multiple service terminals according to the multicast forwarding table, wherein the multicast forwarding table includes the multicast IP address, the IP address of the CPE, Correspondence between IP addresses of service terminals;
根据所述多个CPE的IP地址确定所述第二CPE的IP地址,并确定所述第二CPE的IP地址对应的业务终端的IP地址为所述目的业务终端的IP地址。Determine the IP address of the second CPE according to the IP addresses of the multiple CPEs, and determine that the IP address of the service terminal corresponding to the IP address of the second CPE is the IP address of the destination service terminal.
在一实施例中,所述第一转发子模块包括:In one embodiment, the first forwarding submodule includes:
修改单元,被设置成将所述业务报文中所述组播IP地址修改为所述目的业务终端的IP地址,得到目标业务报文;The modifying unit is configured to modify the multicast IP address in the service message to the IP address of the target service terminal to obtain the target service message;
转发单元,被设置成根据所述第二CPE的IP地址将所述目标业务报文转发给所述第二CPE,其中,所述第二CPE被设置成将所述业务报文转发给所述目的业务终端。A forwarding unit configured to forward the target service packet to the second CPE according to the IP address of the second CPE, wherein the second CPE is configured to forward the service packet to the destination business terminal.
在一实施例中,所述转发单元,还被设置成In an embodiment, the forwarding unit is further configured to
根据第二CPE的IP地址封装隧道标签;encapsulating a tunnel label according to the IP address of the second CPE;
通过所述隧道标签对应的隧道将所述目标业务报文转发给所述第二CPE。Forwarding the target service packet to the second CPE through the tunnel corresponding to the tunnel label.
在一实施例中,所述转发单元,还被设置成In an embodiment, the forwarding unit is further configured to
在所述第二CPE支持组播的情况下,根据所述第二CPE的IP地址数量复制所述目标业务报文,其中,一个第二CPE对应一个所述目标业务报文;将复制的所述目标业务报文发送给对应的所述第二CPE,通过所述第二CPE通过单播方式或组播方式发送给所述目的业务终端;In the case where the second CPE supports multicast, copy the target service message according to the number of IP addresses of the second CPE, wherein one second CPE corresponds to one target service message; Sending the target service message to the corresponding second CPE, and sending it to the target service terminal through the second CPE in unicast or multicast mode;
在所述第二CPE不支持组播的情况下,根据所述目的业务终端的IP地址数量复制所述目标业务报文,其中,一个目的业务终端对应一个所述目标业务报文;将复制的所述目标业务报文发送给对应的所述第二CPE,通过所述第二CPE通过单播方式发送给所述目的业务终端。In the case where the second CPE does not support multicast, copy the target service message according to the number of IP addresses of the target service terminal, wherein one target service terminal corresponds to one target service message; the copied The target service message is sent to the corresponding second CPE, and is sent to the target service terminal through the second CPE in a unicast manner.
在另一实施例中,所述单播转发模块144包括:In another embodiment, the unicast forwarding module 144 includes:
封装子模块,被设置成从所述单播转发表中获取对应的第三CPE的IP地址,根据第三CPE的IP地址封装隧道标签;The encapsulation submodule is configured to obtain the IP address of the corresponding third CPE from the unicast forwarding table, and encapsulate the tunnel label according to the IP address of the third CPE;
第二转发子模块,被设置成通过所述隧道标签对应的隧道将所述业务报文转发给所述第三CPE,其中,所述第三CPE被设置成将所述业务报文转发给所述目的业务终端。The second forwarding submodule is configured to forward the service packet to the third CPE through the tunnel corresponding to the tunnel label, wherein the third CPE is configured to forward the service packet to the Describe the purpose of the business terminal.
根据本申请的另一个实施例,还提供了一种分布式业务转发装置,应用于集中转发设备,图17是根据本申请另一实施例的分布式业务转发装的框图,如图17所示,应用于CPE,包括:According to another embodiment of the present application, a distributed service forwarding device is also provided, which is applied to a centralized forwarding device. FIG. 17 is a block diagram of a distributed service forwarding device according to another embodiment of the present application, as shown in FIG. 17 , applied to CPE, including:
第二接收模块172,被设置成接收业务终端发送的业务报文;The second receiving module 172 is configured to receive the service message sent by the service terminal;
发送模块174,被设置成通过隧道将所述业务报文发送给集中转发设备,其中,所述集中转发设备被设置成在所述业务报文为单播报文的情况下,则根据预先建立的单播转发表将所述业务报文转发给目的业务终端;在所述业务报文为组播报文的情况下,则根据预先建立的组播转发表将所述业务报文转发给所述目的业务终端。The sending module 174 is configured to send the service message to the centralized forwarding device through a tunnel, wherein the centralized forwarding device is configured to send the service message according to the pre-established The unicast forwarding table forwards the service message to the destination service terminal; when the service message is a multicast message, forwards the service message to the destination business terminal.
在一实施例中,所述装置还包括:In one embodiment, the device also includes:
第三接收模块,被设置成接收所述集中转发设备根据所述CPE的IP地址转发的目标业务报文,其中,所述目标业务报文是所述集中转发设备将业务报文中所述组播IP地址修改为所述目的业务终端的IP地址之后得到的;The third receiving module is configured to receive the target service message forwarded by the centralized forwarding device according to the IP address of the CPE, wherein the target service message is the set of the group in the service message sent by the centralized forwarding device The broadcast IP address is obtained after modifying the IP address of the destination service terminal;
第一转发模块,被设置成将所述目标业务报文转发给所述目的业务终端。The first forwarding module is configured to forward the target service packet to the target service terminal.
在一实施例中,所述第三接收模块,还被设置成In an embodiment, the third receiving module is further configured to
通过隧道标签对应的隧道接收所述集中转发设备转发的所述目标业务报文,其中,所述隧道标签是所述集中转发设备根据所述CPE的IP地址封装得到的。The target service packet forwarded by the centralized forwarding device is received through a tunnel corresponding to a tunnel label, where the tunnel label is obtained by encapsulating the centralized forwarding device according to the IP address of the CPE.
在另一实施例中,所述第三接收模块,还被设置成In another embodiment, the third receiving module is further configured to
在支持组播的情况下,则接收所述集中转发设备根据所述CPE的IP地址数量复制的所述目标业务报文,通过单播方式或组播方式发送给所述目的业务终端,其中,一个所述CPE对 应一个所述目标业务报文;In the case of supporting multicast, receive the target service message copied by the centralized forwarding device according to the number of IP addresses of the CPE, and send it to the target service terminal in a unicast or multicast mode, wherein, One said CPE corresponds to one said target service message;
在不支持组播的情况下,则接收所述集中转发设备根据所述目的业务终端的IP地址数量复制的所述目标业务报文,通过单播方式发送给所述目的业务终端,其中,一个所述目的业务终端对应一个所述目标业务报文。If multicast is not supported, then receive the target service message copied by the centralized forwarding device according to the number of IP addresses of the target service terminal, and send it to the target service terminal in a unicast manner, wherein one The target service terminal corresponds to one target service message.
在另一实施例中,所述装置还包括:In another embodiment, the device also includes:
第四接收模块,被设置成通过隧道标签对应的隧道接收所述集中转发设备转发的业务报文,其中,所述隧道标签是所述集中转发设备从所述单播转发表中获取所述CPE的IP地址,并根据所述CPE的IP地址封装得到的;The fourth receiving module is configured to receive the service packet forwarded by the centralized forwarding device through a tunnel corresponding to a tunnel label, wherein the tunnel label is obtained by the centralized forwarding device from the unicast forwarding table for the CPE IP address obtained by encapsulation according to the IP address of the CPE;
第二转发模块,被设置成将所述业务报文转发给所述目的业务终端。The second forwarding module is configured to forward the service message to the destination service terminal.
本申请的实施例还提供了一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,其中,该计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。Embodiments of the present application also provide a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to perform the steps in any one of the above method embodiments when running.
在一个实施例中,上述计算机可读存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储计算机程序的介质。In one embodiment, the above-mentioned computer-readable storage medium may include but not limited to: U disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), mobile Various media such as hard disks, magnetic disks, or optical disks that can store computer programs.
本申请的实施例还提供了一种电子设备,包括存储器和处理器,该存储器中存储有计算机程序,该处理器被设置为运行计算机程序以执行上述任一项方法实施例中的步骤。An embodiment of the present application also provides an electronic device, including a memory and a processor, where a computer program is stored in the memory, and the processor is configured to run the computer program to perform the steps in any one of the above method embodiments.
在一个实施例中,上述电子设备还可以包括传输设备以及输入输出设备,其中,该传输设备和上述处理器连接,该输入输出设备和上述处理器连接。In an embodiment, the electronic device may further include a transmission device and an input and output device, wherein the transmission device is connected to the processor, and the input and output device is connected to the processor.
本实施例中的具体示例可以参考上述实施例及一些实施方式中所描述的示例,本实施例在此不再赘述。For specific examples in this embodiment, reference may be made to the examples described in the foregoing embodiments and some implementation manners, and details are not repeated in this embodiment.
本申请实施例,接收第一CPE通过隧道转发的业务终端的业务报文;在所述业务报文为单播报文的情况下,根据单播转发表将所述业务报文转发给目的业务终端;在所述业务报文为组播报文的情况下,根据组播转发表将所述业务报文转发给目的业务终端,可以解决相关的技术方案中通过CPE设备组网,对终端的处理能力和基站的空口上行带宽带来很大挑战的问题,CPE只需与集中转发设备建立端到端连接,通过集中转发设备转发业务报文,将纯分布式处理网络转变为由集中转发设备转发的网络,大大降低了5G网络的上行带宽,简化了CPE的功能,提高了转发效率。In the embodiment of the present application, the service message of the service terminal forwarded by the first CPE through the tunnel is received; when the service message is a unicast message, the service message is forwarded to the destination service terminal according to the unicast forwarding table ; In the case that the service message is a multicast message, the service message is forwarded to the destination service terminal according to the multicast forwarding table, which can solve the problem of terminal processing through CPE equipment networking in related technical solutions The capacity and the uplink bandwidth of the air interface of the base station bring great challenges. The CPE only needs to establish an end-to-end connection with the centralized forwarding device, and forward the service packets through the centralized forwarding device, transforming the purely distributed processing network into forwarding by the centralized forwarding device. The network greatly reduces the uplink bandwidth of the 5G network, simplifies the functions of the CPE, and improves the forwarding efficiency.
显然,本领域的技术人员应该明白,上述的本申请的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本申请不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that each module or each step of the above-mentioned application can be realized by a general-purpose computing device, and they can be concentrated on a single computing device, or distributed in a network composed of multiple computing devices In fact, they can be implemented in program code executable by a computing device, and thus, they can be stored in a storage device to be executed by a computing device, and in some cases, can be executed in an order different from that shown here. Or described steps, or they are fabricated into individual integrated circuit modules, or multiple modules or steps among them are fabricated into a single integrated circuit module for implementation. As such, the present application is not limited to any specific combination of hardware and software.
以上所述仅为本申请的一些实施例而已,并不用于限制本申请,对于本领域的技术人员来说,本申请可以有各种更改和变化。凡在本申请的原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above descriptions are only some embodiments of the present application, and are not intended to limit the present application. For those skilled in the art, there may be various modifications and changes in the present application. Any modifications, equivalent replacements, improvements, etc. made within the principles of this application shall be included within the scope of protection of this application.

Claims (17)

  1. 一种分布式业务转发方法,应用于集中转发设备,包括:A distributed service forwarding method applied to centralized forwarding equipment, including:
    接收第一客户前端设备CPE通过隧道转发的业务终端的业务报文;receiving the service message of the service terminal forwarded by the first customer front-end equipment CPE through the tunnel;
    在所述业务报文为单播报文的情况下,根据预先建立的单播转发表将所述业务报文转发给目的业务终端;When the service message is a unicast message, forwarding the service message to a destination service terminal according to a pre-established unicast forwarding table;
    在所述业务报文为组播报文的情况下,根据预先建立的组播转发表将所述业务报文转发给所述目的业务终端。If the service message is a multicast message, forward the service message to the destination service terminal according to a pre-established multicast forwarding table.
  2. 根据权利要求1所述的方法,其中,根据预先建立的组播转发表将所述业务报文转发给所述目的业务终端包括:The method according to claim 1, wherein forwarding the service message to the destination service terminal according to a pre-established multicast forwarding table comprises:
    根据所述组播转发表,获取第二CPE的IP地址与所述目的业务终端的IP地址,其中,所述第二CPE为一个或多个,一个所述第二CPE对应一个所述IP地址;Obtain the IP address of the second CPE and the IP address of the destination service terminal according to the multicast forwarding table, wherein the second CPE is one or more, and one second CPE corresponds to one IP address ;
    根据所述第二CPE的IP地址与所述目的业务终端的IP地址将所述业务报文转发给所述目的业务终端。forwarding the service packet to the destination service terminal according to the IP address of the second CPE and the IP address of the destination service terminal.
  3. 根据权利要求2所述的方法,其中,根据所述组播转发表,获取所述第二CPE的IP地址与所述目的业务终端的IP地址包括:The method according to claim 2, wherein, according to the multicast forwarding table, obtaining the IP address of the second CPE and the IP address of the destination service terminal comprises:
    获取所述业务报文的组播IP地址;Obtain the multicast IP address of the service message;
    根据所述组播转发表获取所述组播IP地址对应的多个CPE的IP地址与多个业务终端的IP地址,其中,所述组播转发表包括所述组播IP地址、多个CPE的IP地址以及多个业务终端的IP地址的对应关系;Obtain the IP addresses of multiple CPEs corresponding to the multicast IP address and the IP addresses of multiple service terminals according to the multicast forwarding table, wherein the multicast forwarding table includes the multicast IP address, multiple CPEs The corresponding relationship between the IP address of the IP address and the IP addresses of multiple service terminals;
    根据所述多个CPE的IP地址确定所述第二CPE的IP地址,并确定所述第二CPE的IP地址对应的业务终端的IP地址为所述目的业务终端的IP地址。Determine the IP address of the second CPE according to the IP addresses of the multiple CPEs, and determine that the IP address of the service terminal corresponding to the IP address of the second CPE is the IP address of the destination service terminal.
  4. 根据权利要求3所述的方法,其中,根据所述第二CPE的IP地址与所述目的业务终端的IP地址将所述业务报文转发给所述目的业务终端包括:The method according to claim 3, wherein forwarding the service message to the destination service terminal according to the IP address of the second CPE and the IP address of the destination service terminal comprises:
    将所述业务报文中所述组播IP地址修改为所述目的业务终端的IP地址,得到目标业务报文;Modifying the multicast IP address in the service message to the IP address of the destination service terminal to obtain the target service message;
    根据所述第二CPE的IP地址将所述目标业务报文转发给所述第二CPE,其中,所述第二CPE用于将所述目标业务报文转发给所述目的业务终端。Forwarding the target service packet to the second CPE according to the IP address of the second CPE, where the second CPE is configured to forward the target service packet to the target service terminal.
  5. 根据权利要求4所述的方法,其中,根据所述第二CPE的IP地址将所述目标业务报文转发给所述第二CPE包括:The method according to claim 4, wherein forwarding the target service packet to the second CPE according to the IP address of the second CPE comprises:
    根据所述第二CPE的IP地址封装隧道标签;encapsulating a tunnel label according to the IP address of the second CPE;
    通过所述隧道标签对应的隧道将所述目标业务报文转发给所述第二CPE。Forwarding the target service packet to the second CPE through the tunnel corresponding to the tunnel label.
  6. 根据权利要求5所述的方法,其中,根据所述第二CPE的IP地址将所述目标业务报文转发给所述第二CPE包括:The method according to claim 5, wherein forwarding the target service packet to the second CPE according to the IP address of the second CPE comprises:
    在所述第二CPE支持组播的情况下,则根据所述第二CPE的IP地址数量复制所述目标业务报文,其中,一个所述第二CPE对应一个所述目标业务报文;将复制的所述目标业务报文发送给对应的所述第二CPE,通过所述第二CPE通过单播方式或组播方式发送给所述目的业务终端;In the case where the second CPE supports multicast, copy the target service message according to the number of IP addresses of the second CPE, wherein one second CPE corresponds to one target service message; Sending the copied target service message to the corresponding second CPE, and sending it to the target service terminal through the second CPE in unicast or multicast mode;
    在所述第二CPE不支持组播的情况下,则根据所述目的业务终端的IP地址数量复制所述 目标业务报文,其中,一个所述目的业务终端对应一个所述目标业务报文;将复制的所述目标业务报文发送给对应的所述第二CPE,通过所述第二CPE通过单播方式发送给所述目的业务终端。When the second CPE does not support multicast, copy the target service message according to the number of IP addresses of the target service terminal, wherein one target service terminal corresponds to one target service message; Send the copied target service message to the corresponding second CPE, and send it to the target service terminal through the second CPE in a unicast manner.
  7. 根据权利要求1至6中任一项所述的方法,其中,根据预先建立的单播转发表将所述业务报文转发给目的业务终端包括:The method according to any one of claims 1 to 6, wherein forwarding the service message to the destination service terminal according to a pre-established unicast forwarding table comprises:
    从所述单播转发表中获取对应的第三CPE的IP地址,根据所述第三CPE的IP地址封装隧道标签;Obtain the IP address of the corresponding third CPE from the unicast forwarding table, and encapsulate the tunnel label according to the IP address of the third CPE;
    通过所述隧道标签对应的隧道将所述业务报文转发给所述第三CPE,其中,所述第三CPE被设置成将所述业务报文转发给所述目的业务终端。Forwarding the service packet to the third CPE through the tunnel corresponding to the tunnel label, where the third CPE is configured to forward the service packet to the destination service terminal.
  8. 一种分布式业务转发方法,应用于客户前端设备CPE,包括:A distributed service forwarding method, applied to customer front-end equipment CPE, including:
    接收业务终端发送的业务报文;Receive the service message sent by the service terminal;
    通过隧道将所述业务报文发送给集中转发设备,其中,所述集中转发设备被设置成在所述业务报文为单播报文的情况下,则根据预先建立的单播转发表将所述业务报文转发给目的业务终端;在所述业务报文为组播报文的情况下,则根据预先建立的组播转发表将所述业务报文转发给所述目的业务终端。Send the service message to the centralized forwarding device through a tunnel, wherein the centralized forwarding device is configured to forward the service message according to a pre-established unicast forwarding table when the service message is a unicast message The service message is forwarded to the destination service terminal; if the service message is a multicast message, the service message is forwarded to the destination service terminal according to the pre-established multicast forwarding table.
  9. 根据权利要求8所述的方法,还包括:The method of claim 8, further comprising:
    接收所述集中转发设备根据所述CPE的IP地址转发的目标业务报文,其中,所述目标业务报文是所述集中转发设备将所述业务报文中所述组播IP地址修改为所述目的业务终端的IP地址之后得到的;receiving the target service message forwarded by the centralized forwarding device according to the IP address of the CPE, wherein the target service message is the multicast IP address in the service message modified by the centralized forwarding device to the Obtained after stating the IP address of the destination service terminal;
    将所述目标业务报文转发给所述目的业务终端。Forwarding the target service packet to the target service terminal.
  10. 根据权利要求9所述的方法,其中,接收所述集中转发设备根据所述CPE的IP地址转发的目标业务报文包括:The method according to claim 9, wherein receiving the target service message forwarded by the centralized forwarding device according to the IP address of the CPE comprises:
    通过隧道标签对应的隧道接收所述集中转发设备转发的所述目标业务报文,其中,所述隧道标签是所述集中转发设备根据所述CPE的IP地址封装得到的。The target service packet forwarded by the centralized forwarding device is received through a tunnel corresponding to a tunnel label, where the tunnel label is obtained by encapsulating the centralized forwarding device according to the IP address of the CPE.
  11. 根据权利要求10所述的方法,其中,通过隧道标签对应的隧道接收所述集中转发设备转发的所述目标业务报文包括:The method according to claim 10, wherein receiving the target service message forwarded by the centralized forwarding device through the tunnel corresponding to the tunnel label comprises:
    在支持组播的情况下,接收所述集中转发设备根据所述CPE的IP地址数量复制的所述目标业务报文,通过单播方式或组播方式发送给所述目的业务终端,其中,一个所述CPE对应一个所述目标业务报文;In the case of supporting multicast, receive the target service message copied by the centralized forwarding device according to the number of IP addresses of the CPE, and send it to the target service terminal in a unicast or multicast mode, wherein one The CPE corresponds to one target service message;
    在不支持组播的情况下,接收所述集中转发设备根据所述目的业务终端的IP地址数量复制的所述目标业务报文,通过单播方式发送给所述目的业务终端,其中,一个所述目的业务终端对应一个所述目标业务报文。When multicast is not supported, receive the target service message copied by the centralized forwarding device according to the number of IP addresses of the target service terminal, and send it to the target service terminal in a unicast manner, wherein one of the The target service terminal corresponds to one target service message.
  12. 根据权利要求8至11中任一项所述的方法,其中,所述方法还包括:The method according to any one of claims 8 to 11, wherein the method further comprises:
    通过隧道标签对应的隧道接收所述集中转发设备转发的所述业务报文,其中,所述隧道标签是所述集中转发设备从所述单播转发表中获取所述CPE的IP地址,并根据所述CPE的IP地址封装得到的;Receive the service packet forwarded by the centralized forwarding device through the tunnel corresponding to the tunnel label, where the tunnel label is the IP address of the CPE obtained by the centralized forwarding device from the unicast forwarding table, and according to obtained by encapsulating the IP address of the CPE;
    将所述业务报文转发给所述目的业务终端。Forwarding the service message to the destination service terminal.
  13. 一种分布式业务转发装置,应用于集中转发设备,包括:A distributed service forwarding device, applied to centralized forwarding equipment, comprising:
    第一接收模块,被设置成接收第一客户前端设备CPE通过隧道转发的业务终端的业务报 文;The first receiving module is configured to receive the service message of the service terminal forwarded by the first client front-end equipment CPE through the tunnel;
    单播转发模块,被设置成在所述业务报文为单播报文的情况下,根据预先建立的单播转发表将所述业务报文转发给目的业务终端;The unicast forwarding module is configured to forward the service message to the destination service terminal according to a pre-established unicast forwarding table when the service message is a unicast message;
    组播转发模块,被设置成在所述业务报文为组播报文的情况下,根据预先建立的组播转发表将所述业务报文转发给目的业务终端。The multicast forwarding module is configured to forward the service message to the destination service terminal according to the pre-established multicast forwarding table if the service message is a multicast message.
  14. 一种分布式业务转发装置,应用于客户前端设备CPE,包括:A distributed service forwarding device, applied to customer front-end equipment CPE, including:
    第二接收模块,被设置成接收业务终端发送的业务报文;The second receiving module is configured to receive the service message sent by the service terminal;
    发送模块,被设置成通过隧道将所述业务报文发送给集中转发设备,其中,所述集中转发设备被设置成在所述业务报文为单播报文的情况下,则根据预先建立的单播转发表将所述业务报文转发给目的业务终端;在所述业务报文为组播报文的情况下,则根据预先建立的组播转发表将所述业务报文转发给所述目的业务终端。The sending module is configured to send the service message to the centralized forwarding device through the tunnel, wherein the centralized forwarding device is configured to send the service message according to the pre-established unicast message when the service message is a unicast message. The broadcast forwarding table forwards the service message to the destination service terminal; when the service message is a multicast message, forwards the service message to the destination terminal according to the pre-established multicast forwarding table business terminal.
  15. 一种分布式业务转发系统,至少包括:第一客户前端设备CPE以及集中转发设备,其中,A distributed service forwarding system, at least including: a first customer front-end equipment CPE and a centralized forwarding device, wherein,
    第一CPE,被设置成接收业务终端发送的业务报文,并通过隧道将所述业务报文转发给所述集中转发设备;The first CPE is configured to receive a service message sent by a service terminal, and forward the service message to the centralized forwarding device through a tunnel;
    所述集中转发设备,被设置成执行如权利要求1-7中任一项所述的方法。The centralized forwarding device is configured to execute the method according to any one of claims 1-7.
  16. 一种计算机可读的存储介质,存储有计算机程序,其中,所述计算机程序被设置为运行时执行所述权利要求1至7,8至12任一项中所述的方法。A computer-readable storage medium storing a computer program, wherein the computer program is configured to perform the method described in any one of claims 1-7, 8-12 when running.
  17. 一种电子设备,包括存储器和处理器,其中,所述存储器中存储有计算机程序,所述处理器被设置为运行所述计算机程序以执行所述权利要求1至7,8至12任一项中所述的方法。An electronic device, comprising a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to perform any one of claims 1 to 7, 8 to 12 method described in .
PCT/CN2022/070569 2021-08-20 2022-01-06 Distributed service forwarding method, apparatus and system, storage medium, and electronic device WO2023019874A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110963727.X 2021-08-20
CN202110963727.XA CN115708384A (en) 2021-08-20 2021-08-20 Distributed service forwarding method, device, system, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
WO2023019874A1 true WO2023019874A1 (en) 2023-02-23

Family

ID=85212856

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/070569 WO2023019874A1 (en) 2021-08-20 2022-01-06 Distributed service forwarding method, apparatus and system, storage medium, and electronic device

Country Status (2)

Country Link
CN (1) CN115708384A (en)
WO (1) WO2023019874A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104954245A (en) * 2014-03-27 2015-09-30 中兴通讯股份有限公司 Service function chaining (SFC) processing method and device
US20170085525A1 (en) * 2012-08-03 2017-03-23 Huawei Technologies Co., Ltd. Method, device, and system for quickly informing cgn exception
CN110446275A (en) * 2019-07-15 2019-11-12 安科讯(福建)科技有限公司 A kind of method, terminal and the system of E1 point-to-point communication
CN110677822A (en) * 2019-10-29 2020-01-10 深圳震有科技股份有限公司 Method and system for realizing multicast function by using unicast protocol
CN111404816A (en) * 2020-03-06 2020-07-10 联想(北京)有限公司 Method, device, system and storage medium for sending multicast message across network
CN112105088A (en) * 2019-06-17 2020-12-18 华为技术有限公司 Multicast communication method, device and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170085525A1 (en) * 2012-08-03 2017-03-23 Huawei Technologies Co., Ltd. Method, device, and system for quickly informing cgn exception
CN104954245A (en) * 2014-03-27 2015-09-30 中兴通讯股份有限公司 Service function chaining (SFC) processing method and device
CN112105088A (en) * 2019-06-17 2020-12-18 华为技术有限公司 Multicast communication method, device and system
CN110446275A (en) * 2019-07-15 2019-11-12 安科讯(福建)科技有限公司 A kind of method, terminal and the system of E1 point-to-point communication
CN110677822A (en) * 2019-10-29 2020-01-10 深圳震有科技股份有限公司 Method and system for realizing multicast function by using unicast protocol
CN111404816A (en) * 2020-03-06 2020-07-10 联想(北京)有限公司 Method, device, system and storage medium for sending multicast message across network

Also Published As

Publication number Publication date
CN115708384A (en) 2023-02-21

Similar Documents

Publication Publication Date Title
US7796593B1 (en) Router using internal flood groups for flooding VPLS traffic
ES2565827T3 (en) Layer 3 routing, device and virtual private network system control method
JP2019518393A (en) Packet processing method and device
US9504016B2 (en) Optimized multicast routing in a Clos-like network
US20130232492A1 (en) Method and system for realizing virtual machine mobility
US20080159277A1 (en) Ethernet over fibre channel
EP3275131A1 (en) Integrated services processing for mobile networks
CN108964940B (en) Message sending method and device and storage medium
CN113170005B (en) Method and device for supporting selective forwarding of messages in a network of communicatively coupled communication devices
CN102025591A (en) Method and system for implementing virtual private network
WO2012156852A1 (en) Label switched routing to connect low power network domains
US11388089B2 (en) Downstream packet sending and forwarding method and apparatus
US11088869B2 (en) Virtual private network interworking
US9049030B1 (en) Methods and apparatus for efficient multicast
US20230291682A1 (en) Method and device for processing data packet, storage medium, and electronic device
CN106790146A (en) The system and its operation method of mobile multicast are realized under a kind of cloud environment based on SDN technologies
Guo et al. An efficient NDN routing mechanism design in P4 environment
CN108601055B (en) Method and system for deploying L3 VPN in L TE mobile backhaul network
WO2015070763A1 (en) Self-establishing method and apparatus for x2 interface
WO2023019874A1 (en) Distributed service forwarding method, apparatus and system, storage medium, and electronic device
JPWO2019240158A1 (en) Communication system and communication method
WO2022143395A1 (en) Redundant path creating method, apparatus, and system
US20220166711A1 (en) System and method for routing traffic onto an mpls network
CN104639417B (en) A kind of method and apparatus of ADVPN tunnel binding public network link
CN114221895A (en) Data transmission method, device and network equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22857198

Country of ref document: EP

Kind code of ref document: A1