CN113949662B - Message forwarding method, device, network equipment and storage medium - Google Patents

Message forwarding method, device, network equipment and storage medium Download PDF

Info

Publication number
CN113949662B
CN113949662B CN202111370224.8A CN202111370224A CN113949662B CN 113949662 B CN113949662 B CN 113949662B CN 202111370224 A CN202111370224 A CN 202111370224A CN 113949662 B CN113949662 B CN 113949662B
Authority
CN
China
Prior art keywords
label
private network
forwarding table
forwarding
action
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111370224.8A
Other languages
Chinese (zh)
Other versions
CN113949662A (en
Inventor
郑刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Big Data Technologies Co Ltd
Original Assignee
New H3C Big Data Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Big Data Technologies Co Ltd filed Critical New H3C Big Data Technologies Co Ltd
Priority to CN202111370224.8A priority Critical patent/CN113949662B/en
Publication of CN113949662A publication Critical patent/CN113949662A/en
Application granted granted Critical
Publication of CN113949662B publication Critical patent/CN113949662B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/50Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/50Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]
    • H04L45/507Label distribution
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0807Network architectures or network communication protocols for network security for authentication of entities using tickets, e.g. Kerberos

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a message forwarding method, a device, a network device and a storage medium, wherein the method is applied to convergence layer equipment in an IPRAN network, and comprises the following steps: receiving an MPLS message, and searching a label action corresponding to a private network label in the MPLS message from a preset label forwarding table; if the found label action is a preset action, stripping off the private network label in the MPLS message; and forwarding the stripped MPLS message to mobile edge computing MEC equipment for processing. By presetting the label action corresponding to the flow needing to be locally unloaded in the label forwarding table, when the MPLS message is received, the corresponding label action is searched in the preset label forwarding table by utilizing the private network label carried in the MPLS message, when the searched label action is the preset action, the private network label in the MPLS message is stripped off to separate from the MPLS domain, and the MPLS message with the label stripped off is forwarded to MEC equipment for processing, so that the flow local unloading is realized.

Description

Message forwarding method, device, network equipment and storage medium
Technical Field
The present invention relates to the field of network communications technologies, and in particular, to a method and apparatus for forwarding a packet, a network device, and a storage medium.
Background
In an IP ran (IP Radio Access Network, IP-based radio access network) network, traffic transmission between a base station (BTS) and a core network (EPC) is typically implemented using an MPLS (Multi-Protocol Label Switching, multiprotocol label switching) networking architecture.
In order to meet the requirements of low latency, high bandwidth and high reliability of the IPRAN network, an MEC (Mobile Edge Computing ) device is introduced into the convergence layer device of the IPRAN network, so that traffic between the base station and the core network is introduced into the MEC device, and is forwarded to the local server after being processed by the MEC device, thereby realizing local offloading of the traffic.
However, the traffic between the base station and the core network enters the convergence layer device, and because the traffic belongs to the MPLS packet, the convergence layer device only searches the label forwarding table, and according to the label action in the searched label forwarding table item, the private network label encapsulated on the traffic is subjected to label switching and then directly enters the public network tunnel of MPLS, so that the traffic cannot be imported into the MEC device, and local unloading of the traffic is realized.
Disclosure of Invention
The invention aims at providing a message forwarding method, a device, a network device and a storage medium aiming at the defects of the prior art, and the aim is achieved through the following technical scheme.
The first aspect of the present invention proposes a method for forwarding a message, where the method is applied to a convergence layer device in an ip ran network, and the method includes:
receiving an MPLS message, and searching a label action corresponding to a private network label in the MPLS message from a preset label forwarding table;
if the found label action is a preset action, stripping off the private network label in the MPLS message;
and forwarding the stripped MPLS message to mobile edge computing MEC equipment for processing.
In some embodiments of the present application, the label forwarding table records a correspondence between an incoming label, a label action, a next hop, and an outgoing interface; the searching the label action corresponding to the private network label in the MPLS message from the preset label forwarding table comprises the following steps:
searching an incoming label matched with the private network label in the label forwarding table; acquiring the label action corresponding to the searched label from the label forwarding table; and determining the acquired label action as the label action corresponding to the private network label.
In some embodiments of the present application, the forwarding the stripped MPLS packet to the mobile edge computing MEC device for processing includes:
obtaining a destination address in the stripped MPLS message, and obtaining a private network forwarding table included in a virtual private network VPN instance to which the MPLS message belongs; searching a next hop and an outgoing interface corresponding to the destination address in the private network forwarding table; and forwarding the stripped MPLS message to the MEC equipment for processing by utilizing the next hop and the outgoing interface.
In some embodiments of the present application, before receiving the MPLS packet, the method further includes setting the label forwarding table by:
acquiring VPN indexes provided with unloading marks in VPN table items, and acquiring private network labels included in VPN examples corresponding to the VPN indexes; searching a label forwarding table item corresponding to the private network label in the label forwarding table; changing all the label actions in the searched label forwarding table item into preset actions, and deleting the next hop and the output interface in the label forwarding table item.
In some embodiments of the present application, after deleting the next hop and egress interface in the label forwarding table entry, the method further comprises:
binding an interface of the convergence layer equipment for connecting the MEC equipment to a VPN instance corresponding to the VPN index; generating a routing table entry by taking the address of the MEC equipment as a next hop and the address of a local server as a destination address; generating a private network forwarding table item according to the routing table item and an interface of the convergence layer equipment connected with the MEC equipment; and adding the private network forwarding table item into a private network forwarding table included in the VPN example.
A second aspect of the present invention proposes a message forwarding apparatus, the apparatus being applied to a convergence layer device in an ip ran network, the apparatus comprising:
the receiving module is used for receiving the MPLS message;
the action inquiry module is used for searching the label action corresponding to the private network label in the MPLS message from a preset label forwarding table;
the label stripping module is used for stripping off the private network label in the MPLS message when the searched label action is a preset action;
and the forwarding module is used for forwarding the stripped MPLS message to mobile edge computing MEC equipment for processing.
A third aspect of the invention proposes a network device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, said processor implementing the steps of the method according to the first aspect described above when said program is executed.
A fourth aspect of the invention proposes a computer readable storage medium having stored thereon a computer program which when executed by a processor implements the steps of the method according to the first aspect described above.
Based on the message forwarding method and device described in the first and second aspects, the present invention has at least the following beneficial effects or advantages:
by presetting the label action corresponding to the flow needing to be locally unloaded in the label forwarding table, when the MPLS message is received, the corresponding label action is searched in the preset label forwarding table by utilizing the private network label carried in the MPLS message, when the searched label action is the preset action, the private network label in the MPLS message is stripped off to separate from the MPLS domain, and the MPLS message with the label stripped off is forwarded to MEC equipment for processing, so that the flow local unloading is realized.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention and do not constitute a limitation on the invention. In the drawings:
FIG. 1 is a schematic illustration of an application scenario in accordance with an exemplary embodiment of the present invention;
FIG. 2A is a flow chart illustrating an exemplary message forwarding method according to an exemplary embodiment of the present invention;
fig. 2B is a schematic diagram illustrating a setup flow of a label forwarding table according to the embodiment shown in fig. 2A;
fig. 3 is a schematic structural diagram of a packet forwarding device according to an exemplary embodiment of the present invention;
fig. 4 is a schematic diagram of a hardware structure of a network device according to an exemplary embodiment of the present invention;
fig. 5 is a schematic diagram illustrating a structure of a storage medium according to an exemplary embodiment of the present invention.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the invention. Rather, they are merely examples of apparatus and methods consistent with aspects of the invention as detailed in the accompanying claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any or all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the invention. The word "if" as used herein may be interpreted as "at … …" or "at … …" or "responsive to a determination", depending on the context.
Referring to fig. 1, the application scenario structure of the ip ran network includes an access layer device (a device for short), a convergence layer device (B device for short), and a core layer device (ER device for short). The core layer equipment is used for forwarding data service and interconnecting other networks; the convergence layer equipment is used for converging and forwarding the access layer service and is an inlet and a separation point of multi-service bearing; the access layer equipment is used as an access point of the service and is deployed in the base station.
As can be seen from fig. 1, the network of the ip ran is an MPLS L3VPN (three-layer VPN technology) to access the MPLS L3VPN, in order to implement traffic splitting at the convergence layer device, a MEC device is introduced at the convergence layer device, traffic between the base station and the core network is introduced at the MEC device, the convergence layer device binds the interface connected to the MEC device to a corresponding VPN instance, and a BGP VPNv4 routing table item for forwarding the traffic to the MEC device is set in the VPN instance.
However, the traffic between the base station and the core network enters the convergence layer device, and because the traffic is transmitted in the MPLS domain, the convergence layer device only searches the label forwarding table, and according to the label action in the searched label forwarding table item, the private network label encapsulated on the traffic is subjected to label switching and then directly enters the public network tunnel of MPLS, so that the traffic cannot be led into the MEC device, and the local unloading of the traffic is realized.
In order to solve the problem that in the prior art, the convergence layer equipment performs flow forwarding without realizing local unloading of flow due to searching of a label forwarding table, the application provides a message forwarding method, after receiving an MPLS message, the convergence layer equipment searches for a label action corresponding to a private network label in the MPLS message from a preset label forwarding table, and when the searched label action is the preset action, the private network label in the MPLS message is stripped off, and the stripped MPLS message is forwarded to MEC equipment for processing.
The technical effects which can be achieved based on the above description are as follows:
by presetting the label action corresponding to the flow needing to be locally unloaded in the label forwarding table, when the MPLS message is received, the corresponding label action is searched in the preset label forwarding table by utilizing the private network label carried in the MPLS message, when the searched label action is the preset action, the private network label in the MPLS message is stripped off to separate from the MPLS domain, and the MPLS message with the label stripped off is forwarded to MEC equipment for processing, so that the flow local unloading is realized.
In order to enable those skilled in the art to better understand the present application, the following description will make clear and complete descriptions of the technical solutions in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application.
Embodiment one:
fig. 2A is a flowchart of an embodiment of a packet forwarding method according to an exemplary embodiment of the present invention, where the packet forwarding method is applied to a convergence layer device in an IPRAN network, and in combination with the application scenario structure schematic diagram of the IPRAN network shown in fig. 1, as shown in fig. 2A, the packet forwarding method includes the following steps:
step 201: and receiving the MPLS message, and searching a label action corresponding to a private network label in the MPLS message from a preset label forwarding table.
The MPLS packet received by the convergence layer device may be from an access layer device or from a core layer device.
It should be noted that, before executing step 201, if local offloading of traffic of a VPN needs to be achieved, a label forwarding table needs to be preset to achieve local offloading of traffic.
In an alternative embodiment, as shown in fig. 2B, the setting procedure for the label forwarding table includes the following steps:
step 301: and acquiring a VPN index with an unloading mark in the VPN table item, and acquiring a private network label included in a VPN instance corresponding to the VPN index.
The VPN table entry records indexes of all VPNs in the IPRAN network, and a user can add an unloading mark for VPN indexes needing to locally unload the flow on the convergence layer equipment according to actual use requirements.
Specifically, a column of offload flag bit field may be added to the VPN entry, then an offload flag is set for the offload flag bit corresponding to the VPN index that needs to locally offload traffic, for example, the offload flag is marked as 1, and an offload flag is not set for the offload flag bit corresponding to the VPN index that does not need to locally offload traffic, for example, the offload flag is marked as 0.
In this embodiment, the VPN index is used to identify only one VPN instance for which a private network label used for traffic forwarding is managed, and the private network label is used to indicate the site (site) to which traffic should be sent.
Step 302: and searching a label forwarding table item corresponding to the private network label in the label forwarding table.
The label forwarding table records the corresponding relation among the label entering, the label action, the next hop and the interface exiting. The label entering refers to a private network label carried by the traffic received by the convergence layer device, and the label entering is searched for realizing the forwarding when the table is searched for and forwarded.
Therefore, when searching the label forwarding table entry, specifically, searching the label forwarding table entry which belongs to the same incoming label as the private network label.
Step 303: changing all the label actions in the searched label forwarding table item into preset actions, and deleting the next hop and the outgoing interface in the label forwarding table item.
In this embodiment, the convergence layer device belongs to a transmission node in the MPLS domain, in order to implement traffic transmission in the MPLS domain, the label actions in the label forwarding table are label Switching (SWAP), and in order to implement local traffic offloading, the present invention changes the label actions to enable traffic to leave the MPLS domain, and forwards the traffic to the MEC device for processing.
If traffic is transmitted out of the MPLS domain, the private network label encapsulated on the traffic needs to be stripped, so the preset action to be changed may be a label POP action (POP), and the next hop and outgoing interface originally recorded in the label forwarding table entry need to be deleted.
It should be noted that, after the label forwarding table is set, a private network forwarding path is also configured for the traffic leaving the MPLS domain, so as to forward the traffic to the local server. The specific configuration process comprises the following steps: binding an interface of the convergence layer equipment connected with the MEC equipment to a VPN instance corresponding to the VPN index, taking the address of the MEC equipment as a next hop and the address of the local server as a destination address to generate a routing table item, generating a private network forwarding table item according to the routing table item and the interface of the convergence layer equipment connected with the MEC equipment, and further adding the private network forwarding table item to a private network forwarding table included in the VPN instance to complete configuration of a private network forwarding path.
The VPN is a private network, different VPNs independently manage the address space used by themselves, and in order to avoid the overlapping of the address spaces among different VPNs, a routing table entry generated by utilizing the address of MEC equipment and the address of a local server is specifically a BGP VPNv4 routing table entry, and further, a private network forwarding table entry is generated according to the routing table entry.
Based on the above description, for the process of searching the label action corresponding to the private network label in the MPLS packet from the preset label forwarding table, the label action corresponding to the searched label is determined as the label action corresponding to the private network label by searching the label forwarding table for the label matching with the private network label.
The tag entering value matched with the private network tag can be the same as the tag entering value of the private network tag.
Step 202: if the found label action is the preset action, the private network label in the MPLS message is stripped.
Based on the description of step 201, if the label action corresponding to the private network label in the MPLS packet is a preset action, that is, a POP action, it is indicated that the MPLS packet needs to be locally unloaded, and the private network label in the MPLS packet needs to be stripped, so that the MPLS packet is separated from the MPLS domain.
It can be understood by those skilled in the art that if the label action corresponding to the private network label in the MPLS packet is not a modified action, it is indicated that the MPLS packet does not need to be locally unloaded, and then forwarded according to the original forwarding flow.
Step 203: and forwarding the stripped MPLS message to MEC equipment for processing.
Based on the configuration description of the private network forwarding path in the above step 201, for the forwarding process of the MPLS packet, the destination address in the stripped MPLS packet is obtained, and the private network forwarding table included in the VPN instance to which the MPLS packet belongs is obtained, so that the next hop and the egress interface corresponding to the destination address are searched in the private network forwarding table, and the stripped MPLS packet is forwarded to the MEC device for processing by using the next hop and the egress interface.
The destination address in the MPLS message is the IP address of the local server, the corresponding next hop is the IP address of the MEC device, and the outgoing interface is the interface connected with the MEC device.
Further, after receiving the MPLS packet with the label stripped, the MEC needs to decapsulate the packet to obtain an IP packet, and forward the IP packet to a local server.
In an alternative embodiment, since the purpose of the present invention is to forward the traffic leaving the MPLS domain to the MEC device for processing, and forward the traffic to the MEC device for processing by using the address of the MEC device and the interface connected to the MEC device, in the above-mentioned setting of the label forwarding table, after the label actions in the searched label forwarding table are changed to preset actions, the next hop and the outgoing interface in the label forwarding table may be changed to the address of the MEC device and the interface connected to the MEC device, so that the subsequent configuration of the private network forwarding path is not required.
After the private network label in the MPLS message is stripped, the stripped MPLS message can be forwarded to MEC equipment for processing by directly utilizing the next hop and the outgoing interface corresponding to the changed action.
Thus, the flow unloading flow shown in fig. 2A is completed, by presetting the label action corresponding to the flow to be locally unloaded in the label forwarding table, when the MPLS packet is received, the corresponding label action is searched in the preset label forwarding table by utilizing the private network label carried in the MPLS packet, when the searched label action is the preset action, the private network label in the MPLS packet is stripped off to separate from the MPLS domain, and the MPLS packet with the stripped label is forwarded to the MEC device for processing, thereby realizing the local unloading of the flow.
The invention also provides an embodiment of the message forwarding device corresponding to the embodiment of the message forwarding method.
Fig. 3 is a schematic structural diagram of a packet forwarding device according to an exemplary embodiment of the present invention, where the device is applied to a convergence layer device in an ip ran network, and the device is configured to execute the packet forwarding method provided in any one of the foregoing embodiments, and as shown in fig. 3, the packet forwarding device includes:
a receiving module 310, configured to receive an MPLS packet;
the action query module 320 is configured to search a label action corresponding to a private network label in the MPLS packet from a preset label forwarding table;
the label stripping module 330 is configured to strip off the private network label in the MPLS packet when the searched label action is a preset action;
and the forwarding module 340 is configured to forward the stripped MPLS packet to the mobile edge computing MEC device for processing.
In an optional implementation manner, the label forwarding table records a correspondence among a label entering, a label action, a next hop and an interface exiting; the action query module 320 is specifically configured to search the tag forwarding table for an incoming tag that matches the private network tag; acquiring the label action corresponding to the searched label from the label forwarding table; and determining the acquired label action as the label action corresponding to the private network label.
In an optional implementation manner, the forwarding module 340 is specifically configured to obtain a destination address in the stripped MPLS packet, and obtain a private network forwarding table included in a VPN instance to which the MPLS packet belongs; searching a next hop and an outgoing interface corresponding to the destination address in the private network forwarding table; and forwarding the stripped MPLS message to the MEC equipment for processing by utilizing the next hop and the outgoing interface.
In an alternative implementation, the apparatus further comprises (not shown in fig. 3):
a label forwarding table setting module, configured to obtain a VPN index with an offload flag set in a VPN entry and obtain a private network label included in a VPN instance corresponding to the VPN index before the receiving module 310 receives an MPLS packet; searching a label forwarding table item corresponding to the private network label in the label forwarding table; changing all the label actions in the searched label forwarding table item into preset actions, and deleting the next hop and the output interface in the label forwarding table item.
In an alternative implementation, the apparatus further comprises (not shown in fig. 3):
a forwarding path configuration module, configured to bind an interface of the convergence layer device connected to the MEC device to a VPN instance corresponding to the VPN index after the label forwarding table modification module deletes a next hop and an outgoing interface in the label forwarding table entry; generating a routing table entry by taking the address of the MEC equipment as a next hop and the address of a local server as a destination address; generating a private network forwarding table item according to the routing table item and an interface of the convergence layer equipment connected with the MEC equipment; and adding the private network forwarding table item into a private network forwarding table included in the VPN example.
The implementation process of the functions and roles of each unit in the above device is specifically shown in the implementation process of the corresponding steps in the above method, and will not be described herein again.
For the device embodiments, reference is made to the description of the method embodiments for the relevant points, since they essentially correspond to the method embodiments. The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purposes of the present invention. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
The embodiment of the invention also provides network equipment corresponding to the message forwarding method provided by the previous embodiment, so as to execute the message forwarding method.
Fig. 4 is a hardware configuration diagram of a network device according to an exemplary embodiment of the present invention, the network device including: a communication interface 601, a processor 602, a memory 603 and a bus 604; wherein the communication interface 601, the processor 602 and the memory 603 perform communication with each other via a bus 604. The processor 602 may perform the message forwarding method described above by reading and executing machine executable instructions in the memory 603 corresponding to the control logic of the message forwarding method, the details of which are referred to in the above embodiments and will not be further described herein.
The memory 603 referred to herein may be any electronic, magnetic, optical, or other physical storage device that may contain stored information, such as executable instructions, data, or the like. In particular, the memory 603 may be RAM (Random Access Memory ), flash memory, a storage drive (e.g., hard drive), any type of storage disk (e.g., optical disk, DVD, etc.), or a similar storage medium, or a combination thereof. The communication connection between the system network element and at least one other network element is achieved through at least one communication interface 601 (which may be wired or wireless), the internet, a wide area network, a local network, a metropolitan area network, etc. may be used.
Bus 604 may be an ISA bus, a PCI bus, an EISA bus, or the like. The buses may be classified as address buses, data buses, control buses, etc. The memory 603 is configured to store a program, and the processor 602 executes the program after receiving an execution instruction.
The processor 602 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuitry in hardware or instructions in software in the processor 602. The processor 602 may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but may also be a Digital Signal Processor (DSP), application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. The disclosed methods, steps, and logic blocks in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the embodiments of the present application may be embodied directly in hardware, in a decoded processor, or in a combination of hardware and software modules in a decoded processor.
The network device provided by the embodiment of the application and the message forwarding method provided by the embodiment of the application are the same in inventive concept, and have the same beneficial effects as the method adopted, operated or implemented by the network device.
The present embodiment also provides a computer readable storage medium corresponding to the message forwarding method provided in the foregoing embodiment, and referring to fig. 5, the computer readable storage medium is shown as an optical disc 30, on which a computer program (i.e. a program product) is stored, where the computer program, when executed by a processor, performs the message forwarding method provided in any of the foregoing embodiments.
It should be noted that examples of the computer readable storage medium may also include, but are not limited to, a phase change memory (PRAM), a Static Random Access Memory (SRAM), a Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a flash memory, or other optical or magnetic storage medium, which will not be described in detail herein.
The computer readable storage medium provided in the above embodiment of the present application and the message forwarding method provided in the embodiment of the present application have the same beneficial effects as the method adopted, operated or implemented by the application program stored therein, because of the same inventive concept.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
The foregoing description of the preferred embodiments of the invention is not intended to be limiting, but rather to enable any modification, equivalent replacement, improvement or the like to be made within the spirit and principles of the invention.

Claims (9)

1. A method for forwarding a message, the method being applied to a convergence layer device in an IP-based radio access network, IPRAN, network, the method comprising:
receiving a multiprotocol label switching MPLS message, and searching a label action corresponding to a private network label in the MPLS message from a preset label forwarding table;
if the found label action is a preset action, stripping off the private network label in the MPLS message;
forwarding the stripped MPLS message to mobile edge computing MEC equipment for processing;
the method further comprises setting the label forwarding table by the following steps:
acquiring VPN indexes provided with unloading marks in VPN table items of a virtual private network, and acquiring private network labels included in VPN examples corresponding to the VPN indexes;
searching a label forwarding table item corresponding to the private network label in the label forwarding table;
changing all the label actions in the searched label forwarding table item into preset actions, and deleting the next hop and the output interface in the label forwarding table item.
2. The method of claim 1, wherein the label forwarding table records correspondence between incoming labels, label actions, next hops, and outgoing interfaces; the searching the label action corresponding to the private network label in the MPLS message from the preset label forwarding table comprises the following steps:
searching an incoming label matched with the private network label in the label forwarding table;
acquiring the label action corresponding to the searched label from the label forwarding table;
and determining the acquired label action as the label action corresponding to the private network label.
3. The method of claim 1, wherein forwarding the stripped MPLS packet to a mobile edge computing MEC device for processing, comprises:
obtaining a destination address in the stripped MPLS message, and obtaining a private network forwarding table included in a virtual private network VPN instance to which the MPLS message belongs;
searching a next hop and an outgoing interface corresponding to the destination address in the private network forwarding table;
and forwarding the stripped MPLS message to the MEC equipment for processing by utilizing the next hop and the outgoing interface.
4. The method of claim 1, wherein after deleting the next hop and egress interface in the label forwarding table entry, the method further comprises:
binding an interface of the convergence layer equipment for connecting the MEC equipment to a VPN instance corresponding to the VPN index;
generating a routing table entry by taking the address of the MEC equipment as a next hop and the address of a local server as a destination address;
generating a private network forwarding table item according to the routing table item and an interface of the convergence layer equipment connected with the MEC equipment;
and adding the private network forwarding table item into a private network forwarding table included in the VPN example.
5. A message forwarding apparatus, the apparatus being applied to a convergence layer device in an IPRAN network, the apparatus comprising:
the receiving module is used for receiving the MPLS message;
the action inquiry module is used for searching the label action corresponding to the private network label in the MPLS message from a preset label forwarding table;
the label stripping module is used for stripping off the private network label in the MPLS message when the searched label action is a preset action;
the forwarding module is used for forwarding the stripped MPLS message to mobile edge computing MEC equipment for processing;
the label forwarding table setting module is used for acquiring a VPN index with an unloading mark in a VPN table before the receiving module receives the MPLS message, and acquiring a private network label included in a VPN instance corresponding to the VPN index; searching a label forwarding table item corresponding to the private network label in the label forwarding table; changing all the label actions in the searched label forwarding table item into preset actions, and deleting the next hop and the output interface in the label forwarding table item.
6. The apparatus of claim 5, wherein the label forwarding table records correspondence between incoming labels, label actions, next hops, and outgoing interfaces; the action query module is specifically configured to find an incoming label matched with the private network label in the label forwarding table; acquiring the label action corresponding to the searched label from the label forwarding table; and determining the acquired label action as the label action corresponding to the private network label.
7. The apparatus of claim 5, wherein the forwarding module is specifically configured to obtain a destination address in the stripped MPLS packet, and obtain a private network forwarding table included in a VPN instance to which the MPLS packet belongs; searching a next hop and an outgoing interface corresponding to the destination address in the private network forwarding table; and forwarding the stripped MPLS message to the MEC equipment for processing by utilizing the next hop and the outgoing interface.
8. A network device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of claims 1-4 when the program is executed.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the steps of the method according to any of claims 1-4.
CN202111370224.8A 2021-11-18 2021-11-18 Message forwarding method, device, network equipment and storage medium Active CN113949662B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111370224.8A CN113949662B (en) 2021-11-18 2021-11-18 Message forwarding method, device, network equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111370224.8A CN113949662B (en) 2021-11-18 2021-11-18 Message forwarding method, device, network equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113949662A CN113949662A (en) 2022-01-18
CN113949662B true CN113949662B (en) 2023-04-21

Family

ID=79338358

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111370224.8A Active CN113949662B (en) 2021-11-18 2021-11-18 Message forwarding method, device, network equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113949662B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110868352A (en) * 2019-11-14 2020-03-06 迈普通信技术股份有限公司 Private network application identification system and method, SDN controller and P device
CN111865898A (en) * 2016-03-21 2020-10-30 华为技术有限公司 Communication method, device and system based on flow rule protocol

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101572669A (en) * 2009-05-27 2009-11-04 中兴通讯股份有限公司 Transmitting method of VPN message as well as allocating and deleting method of the router marks thereof
CN102025586B (en) * 2009-09-09 2014-07-09 华为技术有限公司 Intercommunicating method, device and system for multiple protocol label switching network and Ethernet
US20130308617A1 (en) * 2012-05-16 2013-11-21 International Business Machines Corporation Continuous Virtual Private Local Area Network (LAN) Service (VPLS) Over Wireline and Wireless Networks
CN105991433B (en) * 2015-01-29 2019-06-07 新华三技术有限公司 The method and apparatus of Layer3 Virtual Private Network access Layer 2 virtual private network
CN106101023B (en) * 2016-05-24 2019-06-28 华为技术有限公司 A kind of VPLS message processing method and equipment
CN110650147A (en) * 2019-09-27 2020-01-03 视联动力信息技术股份有限公司 Data acquisition method and system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111865898A (en) * 2016-03-21 2020-10-30 华为技术有限公司 Communication method, device and system based on flow rule protocol
CN110868352A (en) * 2019-11-14 2020-03-06 迈普通信技术股份有限公司 Private network application identification system and method, SDN controller and P device

Also Published As

Publication number Publication date
CN113949662A (en) 2022-01-18

Similar Documents

Publication Publication Date Title
US10027623B2 (en) Internet protocol address resolution
CN113645136B (en) Method, network node and network system for forwarding message in network
US9992106B2 (en) Generating a host route
WO2016165492A1 (en) Method and apparatus for implementing service function chain
US11012350B2 (en) Network interworking with no cross-domain state
US20190116063A1 (en) Transforming a service packet from a first domain to a second domain
US11405307B2 (en) Information transfer method and device
CN106982163B (en) Method and gateway for acquiring route on demand
CN108259298B (en) Message forwarding method and device
US20070091899A1 (en) Data structure for storing and accessing multiple independent sets of forwarding information
CN113472699A (en) Network table item synchronization method and device
CN113949662B (en) Message forwarding method, device, network equipment and storage medium
JP6064757B2 (en) Communication system and communication method
CN111385195A (en) Information processing method, device and storage medium
CN115834472A (en) Message processing method, forwarding strategy obtaining method and device
US7860115B1 (en) Withdrawing multiple advertised routes based on a single tag which may be of particular use in border gateway protocol
CN107948072B (en) Message forwarding method and device
US9918217B1 (en) Fast roaming across a network fabric
CN112565044A (en) Message processing method and device
EP4336794A1 (en) Cross-autonomous system (as) multicast forwarding method and apparatus
CN112468600B (en) Application message notification method, system and storage medium based on network matrix
CN110418218B (en) Message processing method and device and FCF switching equipment
US11916789B2 (en) Prefix length expansion in packet processors
WO2024094082A1 (en) Information transmission method and apparatus, node, and storage medium
US11902166B2 (en) Policy based routing in extranet networks

Legal Events

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