CN109039916B - Message forwarding method, device and storage medium - Google Patents

Message forwarding method, device and storage medium Download PDF

Info

Publication number
CN109039916B
CN109039916B CN201811071430.7A CN201811071430A CN109039916B CN 109039916 B CN109039916 B CN 109039916B CN 201811071430 A CN201811071430 A CN 201811071430A CN 109039916 B CN109039916 B CN 109039916B
Authority
CN
China
Prior art keywords
forwarded
message
tunnel
address
forwarding
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
CN201811071430.7A
Other languages
Chinese (zh)
Other versions
CN109039916A (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.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication Technology 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 Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN201811071430.7A priority Critical patent/CN109039916B/en
Publication of CN109039916A publication Critical patent/CN109039916A/en
Application granted granted Critical
Publication of CN109039916B publication Critical patent/CN109039916B/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/74Address processing for routing
    • H04L45/741Routing in networks with a plurality of addressing schemes, e.g. with both IPv4 and IPv6
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/66Layer 2 routing, e.g. in Ethernet based MAN's
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/82Miscellaneous aspects
    • H04L47/825Involving tunnels, e.g. MPLS

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the application provides a message forwarding method, a message forwarding device and a storage medium, and relates to the technical field of communication. The method comprises the following steps: acquiring a tunnel message to be forwarded; determining that the tunnel message to be forwarded needs to be decapsulated according to the outer layer destination IP address of the tunnel message to be forwarded; and obtaining the inner layer destination IP address in the tunnel message to be forwarded for routing forwarding. The tunnel message to be forwarded can be directly forwarded to the target device without other node devices participating in forwarding of the node device, so that the repeated forwarding of the other node devices is prevented from becoming a network performance bottleneck, the available links are fully utilized for forwarding, and the utilization rate of the links is improved.

Description

Message forwarding method, device and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a forwarding path detection method, apparatus, and storage medium.
Background
After a device is deployed in a wide area network, in order to ensure reliability of service processing by the device, multiple wide area network lines are often used to perform link backup and traffic sharing on the service on the device. However, this also entails corresponding problems. For example, the high cost and low utilization rate associated with the provision of multiple wan lines, especially dedicated lines.
In order to solve the high cost and low utilization of multiple WAN lines, SD-WAN (Software-Defined Wide Area network) technology has been consistently adopted in recent years. The SD-WAN is a technology that monitors, collects information and intelligently schedules devices in a wide area Network link of an enterprise or an organization through a centralized SD-WAN controller by means of an idea of separation of control and forwarding of an SDN (Software Defined Network). On the premise of ensuring the reliability of each device in the wide area network link, the utilization rate of the link in the wide area network is improved, and finally the construction cost and the operation cost of the user to the wide area network are reduced.
Disclosure of Invention
The application provides a message forwarding method, a message forwarding device and a storage medium. So as to effectively improve the performance of the whole communication network and also improve the utilization rate of the links in the network.
The embodiment of the application is realized by the following steps:
in a first aspect, an embodiment of the present application provides a packet forwarding method, which is applied to a node device in a communication network, and the method includes: acquiring a tunnel message to be forwarded; determining that the tunnel message to be forwarded needs to be decapsulated according to the outer layer destination IP address of the tunnel message to be forwarded; and obtaining the inner layer destination IP address in the tunnel message to be forwarded for routing forwarding.
In the embodiment of the application, the node device determines that the tunnel message to be forwarded needs to be decapsulated according to the outer-layer destination IP address of the tunnel message to be forwarded. The node device can obtain the inner layer destination IP address in the tunnel message to be forwarded, and the routing forwarding is carried out according to the inner layer destination IP address, so that the tunnel message to be forwarded can be directly forwarded to the destination device without other node devices participating in forwarding, the repeated forwarding of the other node devices is prevented from becoming a network performance bottleneck, the available links are fully utilized for forwarding, and the utilization rate of the links is improved.
With reference to the technical solution provided by the first aspect, in some possible implementation manners, the determining that the tunnel packet to be forwarded needs to be decapsulated according to the outer layer destination IP address of the tunnel packet to be forwarded includes: judging whether an IP address matched with the outer layer target IP address exists in a preset equipment table entry or not according to the outer layer target IP address in the tunnel message to be forwarded; the device table entry is used for storing an IP address of a device which delegates the node device to decapsulate the tunnel message to be forwarded; and if so, determining that the tunnel message to be forwarded needs to be decapsulated by the node equipment.
In the embodiment of the application, the device table entry is preset in the node device, so that when the node device determines that the outer-layer destination IP address of the tunnel message to be forwarded is matched with the IP address in the device table entry, it is determined that the tunnel message to be forwarded can be entrusted to the node device for forwarding, thereby avoiding the occurrence of the situation of incorrect forwarding when the node device forwards the tunnel message to be forwarded, and improving the accuracy of forwarding instead.
With reference to the technical solution provided by the first aspect, in some possible implementation manners, the node device is connected to a controller, and before the obtaining of the tunnel packet to be forwarded, the method further includes:
and obtaining the information of the equipment table items sent by the controller.
In the embodiment of the application, the device table entry depending on the node device forwarding can be obtained from the controller, so that the generation forwarding error of the tunnel message to be forwarded, which is caused by the aging of the table entry due to the own storage device table entry of the node device, is avoided.
With reference to the technical solution provided in the first aspect, in some possible implementation manners, the obtaining a tunnel packet to be forwarded includes: obtaining a message to be forwarded; judging whether the message to be forwarded is a tunnel message meeting a message matching rule; if so, determining that the message to be forwarded is the tunnel message to be forwarded.
In the embodiment of the application, the node device determines whether the tunnel message to be forwarded needs to be forwarded instead by determining that the message to be forwarded is the tunnel message to be forwarded, so as to avoid the occurrence of the situation of forwarding by mistake instead.
With reference to the technical solution provided by the first aspect, in some possible implementations, the method further includes: and when determining that the tunnel message to be forwarded does not need to be decapsulated, performing routing forwarding according to the outer-layer destination IP address of the tunnel message to be forwarded.
In the embodiment of the application, when it is determined that the tunnel message to be forwarded does not need to be forwarded by decapsulation, routing forwarding can be performed according to the outer-layer destination IP address, so that it is ensured that the tunnel message to be forwarded can be correctly forwarded no matter whether the tunnel message to be forwarded needs to be forwarded or not, and the success rate of forwarding the tunnel message to be forwarded is improved.
In a second aspect, an embodiment of the present application provides a packet forwarding apparatus, which is applied to a node device in a communication network, where the apparatus includes: and the message obtaining module is used for obtaining the tunnel message to be forwarded. And the decapsulation module is used for determining that the tunnel message to be forwarded needs to be decapsulated according to the outer-layer destination IP address of the tunnel message to be forwarded. And the first forwarding module is used for obtaining the inner-layer destination IP address in the tunnel message to be forwarded for routing forwarding.
With reference to the technical solution provided by the second aspect, in some possible implementation manners, the decapsulation module is further configured to determine whether an IP address matching the outer layer destination IP address exists in a preset device table entry according to the outer layer destination IP address in the tunnel message to be forwarded; the device table entry is used for storing an IP address of a device which delegates the node device to decapsulate the tunnel message to be forwarded; and if so, determining that the tunnel message to be forwarded needs to be decapsulated by the node equipment.
With reference to the technical solution provided by the second aspect, in some possible implementations, the node device is connected to a controller, and the apparatus further includes: and the table entry obtaining module is used for obtaining the information of the equipment table entry sent by the controller.
With reference to the technical solution provided in the second aspect, in some possible implementation manners, the packet obtaining module is further configured to obtain a packet to be forwarded; judging whether the message to be forwarded is a tunnel message meeting a message matching rule; if so, determining that the message to be forwarded is the tunnel message to be forwarded.
In combination with the technical solution provided by the second aspect, in some possible implementation manners, the second forwarding module is configured to perform routing forwarding according to the outer-layer destination IP address of the tunnel packet to be forwarded when it is determined that the tunnel packet to be forwarded does not need to be decapsulated.
In a third aspect, an embodiment of the present application provides a computer-readable storage medium having non-volatile program code executable by a processor, where the program code causes the processor to execute the message forwarding method.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 shows a block diagram of a message forwarding system according to a first embodiment of the present application;
fig. 2 is a flowchart illustrating a message forwarding method according to a second embodiment of the present application;
fig. 3 shows a block diagram of a message forwarding apparatus according to a third embodiment of the present application.
Detailed Description
In the SD-WAN technology, a multipath load balancing technology is a core method for improving the utilization rate of links in a wide area network. Currently, the multi-path load balancing technology is usually implemented by GRE (Generic Route Encapsulation) + BGP (Border Gateway Protocol) + PBR (Policy Based Route).
Specifically, the SD-WAN controller may plan different forwarding paths for different application devices in the same network segment for each node device used for packet forwarding, and each forwarding path may adopt a tunnel manner. And the SD-WAN controller sets a corresponding message matching strategy for each initial node device on each node device and sets a corresponding strategy routing rule for each node device. And the SD-WAN controller sets a corresponding tunnel message encapsulation rule for each node device through a BGP protocol. Then, based on the configuration of the SD-WAN controller for each node device, it can be ensured that each node device can forward according to the planned forwarding path and effectively send the forwarding path to the corresponding application device when each node device obtains the tunnel packet.
However, long-term practical research by the inventor finds that, when two endpoint devices at two tunnel endpoints have a condition of forwarding messages to each other on a forwarding path planned for an application device by an SD-WAN controller, one endpoint device needs to forward the tunnel message to another endpoint device for decapsulation according to a destination IP address of the tunnel message, and then forward the tunnel message to the application device by another endpoint device, which results in that the tunnel message needs to pass through a section of route before reaching the application device, thereby causing the endpoint device to become a performance bottleneck in a network, and finally causing a link to still not be effectively utilized.
The above prior art solutions have drawbacks that are the results of practical and careful study of the inventor, and therefore, the discovery process of the above problems and the solutions proposed by the following embodiments of the present application for the above problems should be the contributions of the inventor to the present application in the process of the present application.
Based on the above research, embodiments of the present application provide a message forwarding method, a message forwarding device, and a storage medium. And determining that the tunnel message to be forwarded needs to be decapsulated by the node equipment through the outer-layer destination IP address of the tunnel message to be forwarded. The node device can obtain the inner layer destination IP address in the tunnel message to be forwarded, and the routing forwarding is carried out according to the inner layer destination IP address, so that the tunnel message to be forwarded can be directly forwarded to the destination device without other node devices participating in forwarding, the repeated forwarding of the other node devices is prevented from becoming a network performance bottleneck, the available links are fully utilized for forwarding, and the utilization rate of the links is improved.
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. The terms "first," "second," and the like are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
First embodiment
Referring to fig. 1, an embodiment of the present application provides a message forwarding system 10, where the message forwarding system 10 includes: a communication network 11, a first IP segment 12, a second IP segment 13, and a controller 14.
The communication network 11 is configured to connect the first IP segment 12 and the second IP segment 13 to implement cross-segment forwarding of the packet, that is, the first IP segment 12 sends data to the second IP segment 13 through the communication network 11, where the first IP segment 12 may be a wide area network and the second IP segment 13 may be a service network. To achieve the forwarding effect, at least one tunnel is established in the communication network 11, each tunnel may be connected to the first IP network segment 12 and the second IP network segment 13, and each tunnel may be an L2TP tunnel (Layer 2Tunneling Protocol).
In the present embodiment, the communication network 11 includes: a plurality of node devices (node device 111, node device 112, up to node device 11N, N being greater than or equal to 2), each of which may be a conventional switch or router. Wherein each node device of the plurality of node devices is connected to at least one node device of the plurality of node devices. Each node device of the plurality of node devices is used as an end device on at least one tunnel end point, each end device is connected with the second IP network segment 13, and a route reaching the second IP network segment 13 is arranged in each end device, so that data can be transmitted from the first IP network segment 12 to the second IP network segment 13 by forwarding tunnel messages through the plurality of node devices.
In this embodiment, each node device may be configured to help other node devices to forward a packet that needs to be forwarded by the other node devices themselves, and then, compared with the other node devices, each node device may be a proxy node device of the other node devices, and conversely, the other node devices may be proxy node devices of the proxy node device. It is understood that any node device 111 of the plurality of node devices may act as a proxy node device.
The controller 14 may be an SD-WAN controller, the controller 14 is connected to each node device in the plurality of node devices, and the controller 14 is configured to set a forwarding rule for each node device, so that each node device forwards the packet to be forwarded according to the rule.
Second embodiment
Referring to fig. 1, an embodiment of the present application provides a packet forwarding method, where the packet forwarding method is applied to a node device in a communication network, and the packet forwarding method includes: step S100, step S200, and step S300.
Step S100: and acquiring the tunnel message to be forwarded.
Step S200: and determining that the tunnel message to be forwarded needs to be decapsulated according to the outer-layer destination IP address of the tunnel message to be forwarded.
Step S300: and obtaining the inner layer destination IP address in the tunnel message to be forwarded for routing forwarding.
The following describes the flow of the message forwarding method in detail.
Step S100: and acquiring the tunnel message to be forwarded.
The node device in the communication network may obtain the packet to be forwarded through its WAN interface, but when obtaining the packet to be forwarded, the node device may not determine whether the packet to be forwarded is a normal packet or a tunnel packet transmitted through a tunnel to satisfy a tunnel protocol. Then, the node device may utilize the outer header of the packet to be forwarded, and the node device may obtain the source IP address, the outer destination IP address, and the tunneling protocol number included in the packet to be forwarded. The node device can determine whether the message to be forwarded is a tunnel message meeting the message matching rule by using the source IP address and the tunnel protocol number according to the preset message matching rule.
If the node device determines that the tunnel protocol number does not match the preset tunnel protocol number and/or the source IP address does not correspond to the preset tunnel protocol number, the node device may determine that the packet to be forwarded is not the tunnel packet to be forwarded that satisfies the packet matching rule. The node device can use the message to be forwarded as a common message, and traverse the outer layer destination IP address in the routing table entry preset by the node device, so as to find a corresponding port and route and forward the message to be forwarded from the port. Of course, if the corresponding port is not found, the node device may discard the tunnel packet to be forwarded.
If the node device determines that the tunnel protocol number matches the preset tunnel protocol number and the source IP address also corresponds to the preset tunnel protocol number, the node device may determine that the packet to be forwarded is a tunnel packet to be forwarded that satisfies the packet matching rule, and then the node device needs to determine whether the tunnel packet to be forwarded needs to be forwarded by itself.
It should be noted that, in the case that each node device is used as a proxy node device of another node device, the preset matching rule in each node device may include not only the matching rule of the node device itself for the tunnel packet to be forwarded, but also the matching rule of the other node device for the tunnel packet to be forwarded, so that each node device can assist the other node device in forwarding the tunnel packet to be forwarded. Alternatively, the matching rule preset in each node device may be preset by the controller.
Step S200: and determining that the tunnel message to be forwarded needs to be decapsulated according to the outer-layer destination IP address of the tunnel message to be forwarded.
After the node device determines to obtain the tunnel packet to be forwarded, the node device needs to determine whether the tunnel packet to be forwarded needs to be used as a proxy node device of other entrusting node devices to forward the tunnel packet to be forwarded.
As an optional manner in this embodiment, a device table entry is preset in the node device, where the device table entry is used to store an IP address of a device that delegates the node device to decapsulate the tunnel packet to be forwarded, that is, the device table entry is provided with an IP address of the delegated node device. Therefore, the node device can determine whether to forward the tunnel message to be forwarded instead by traversing the device table entry and judging whether the IP address of the entrusting node device in the device table entry is matched with the outer-layer destination IP address.
Of course, traversing the table entry is an optional implementation manner in this embodiment, and is not limited to this embodiment.
If the node device determines that the IP address of the entrusting node device in the device table entry is not matched with the outer-layer destination IP address, the node device may determine that the tunnel packet to be forwarded is forwarded by other entrusting node devices. Therefore, the node device can also traverse the outer layer destination IP address in the preset routing table entry of the node device, so as to find the corresponding port and perform routing forwarding on the tunnel message to be forwarded from the port. Of course, if the corresponding port is not found, the node device may discard the tunnel packet to be forwarded.
If the node device determines that the device table entry has the IP address of the entrusted node device matched with the outer-layer destination IP address, the node device can determine that the tunnel message to be forwarded needs to be decapsulated by the node device, so as to help other entrusted node devices to send the tunnel message to be forwarded to the destination device to which the tunnel message needs to be sent. In this embodiment, to improve the efficiency of the link, the node device may further determine whether it can assist the entrusting node device to forward the tunnel packet to be forwarded instead.
Step S300: and obtaining the inner layer destination IP address in the tunnel message to be forwarded for routing forwarding.
Correspondingly, the node device needs to determine whether it can assist the entrusted adjacent node device to forward the tunnel message to be forwarded, the node device can decapsulate the tunnel message to be forwarded, obtain the original message through decapsulation, and obtain the IP address of the original message, where the IP address of the original message can be the inner-layer destination IP address of the tunnel message to be forwarded.
Since the inner-layer destination IP address is the destination device to which the tunnel packet to be forwarded needs to be sent, the node device can determine whether the packet to be forwarded can be forwarded to the destination device by determining whether the node device establishes a connection with the destination device.
Optionally, the node device may traverse a preset routing table entry, and determine whether the tunnel packet to be forwarded may be sent to the destination device by determining whether the IP address of the destination device in the routing table entry matches the inner-layer destination IP address.
If the node device determines that the IP address of the destination device is not matched with the inner P address in the routing table entry, the node device may determine that the node device does not establish a direct connection relationship with the destination device, so that the node device cannot assist the entrusting node device in forwarding the tunnel packet to be forwarded. Therefore, based on this situation, the node device may continue to perform routing forwarding on the tunnel packet to be forwarded according to the outer layer destination IP address of the tunnel packet to be forwarded.
If the node device determines that the IP address of the destination device in the routing table entry matches the inner-layer destination IP address, the node device may determine that it has established a direct connection relationship with the destination device, and thus the node device may determine that it can assist the entrusting node device in forwarding the tunnel packet to be forwarded.
The node device can determine a corresponding forwarding port from the routing table entry based on the inner-layer destination IP address of the tunnel packet to be forwarded. Then, the node device can perform routing forwarding on the tunnel packet to be forwarded based on the forwarding port.
The method flow of the present embodiment will be described as an example.
It is assumed that node device a and node device B are both endpoint devices of the tunnel, node device a and node device B are connected, and node device a and node device B are both connected to application device C. After the node device a obtains the forwarding tunnel message, the node device a determines that the forwarding tunnel message needs to be sent to the node device B through the outer layer destination IP address of the forwarding tunnel message. At this time, the node device a decapsulates and finds that the inner layer destination IP address of the forwarding tunnel packet is the IP address of the application device C. It indicates that the forwarding tunnel packet originally needs to be sent from node device B to application device C. At this time, the node device a also determines that the node device a establishes a connection relationship with the application device C, and then the node device a directly sends the forwarding tunnel packet to the application device C. Therefore, the two-time forwarding of the data forwarded to the node device B by the node device A and then forwarded to the node device C by the node device B is avoided, and the utilization efficiency of the link is improved.
In this embodiment, it should be further noted that the controller may issue the information of the device table entry to each corresponding node device, so that each node device may implement the execution of the packet forwarding method based on the device table entry. However, The controller not only sets a matching rule for each node device, but also can set and update The device table entry in each node device, wherein The controller controls each node device to forward The message through Netconf (The Network Configuration Protocol), SNMP (Simple Network Management Protocol), CLI (Command-Line Interface Protocol), or The like.
In addition, the controller can realize the adjustment of the number of the node devices in the communication network by updating the device table entry in each node device. Then, when the device table entry in each node device of the controller is updated, the node device may correspondingly obtain the table entry update data sent by the controller, and the node device updates the data in the device table entry based on the table entry update data, so as to increase or delete the number of the adjacent node devices in the device table entry.
Third embodiment
Referring to fig. 3, an embodiment of the present application provides a message forwarding apparatus 100, where the message forwarding apparatus 100 is applied to each node device in a communication network, and the message forwarding apparatus 100 includes:
the message obtaining module 110 is configured to obtain a tunnel message to be forwarded.
A decapsulation module 120, configured to determine that the tunnel packet to be forwarded needs to be decapsulated according to the outer layer destination IP address of the tunnel packet to be forwarded.
The first forwarding module 130 is configured to obtain an inner layer destination IP address in the tunnel message to be forwarded for performing routing forwarding.
The second forwarding module 140 is configured to perform routing forwarding according to the outer-layer destination IP address of the tunnel packet to be forwarded when it is determined that the tunnel packet to be forwarded does not need to be decapsulated.
An entry obtaining module 150, configured to obtain the information of the device entry sent by the controller.
The decapsulation module 120 is further configured to determine, according to an outer layer destination IP address in the tunnel message to be forwarded, whether an IP address matching the outer layer destination IP address exists in a preset device table entry; the device table entry is used for storing an IP address of a device which delegates the node device to decapsulate the tunnel message to be forwarded; and if so, determining that the tunnel message to be forwarded needs to be decapsulated by the node equipment.
The message obtaining module 110 is further configured to obtain a message to be forwarded; judging whether the message to be forwarded is a tunnel message meeting a message matching rule; if so, determining that the message to be forwarded is the tunnel message to be forwarded.
It should be noted that, as those skilled in the art can clearly understand, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, embodiments of the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
To sum up, the embodiments of the present application provide a method, an apparatus, and a storage medium for forwarding a packet. The method comprises the following steps: acquiring a tunnel message to be forwarded; determining that the tunnel message to be forwarded needs to be decapsulated according to the outer layer destination IP address of the tunnel message to be forwarded; and obtaining the inner layer destination IP address in the tunnel message to be forwarded for routing forwarding.
And determining that the tunnel message to be forwarded needs to be decapsulated. The node device can obtain the inner layer destination IP address in the tunnel message to be forwarded, and the routing forwarding is carried out according to the inner layer destination IP address, so that the tunnel message to be forwarded can be directly forwarded to the destination device without other node devices participating in forwarding, the repeated forwarding of the other node devices is prevented from becoming a network performance bottleneck, the available links are fully utilized for forwarding, and the utilization rate of the links is improved.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (9)

1. A message forwarding method is applied to a node device in a communication network, and the method comprises the following steps:
acquiring a tunnel message to be forwarded;
determining that the tunnel message to be forwarded needs to be decapsulated according to the outer layer destination IP address of the tunnel message to be forwarded;
obtaining an inner layer destination IP address in the tunnel message to be forwarded for routing forwarding;
wherein, the determining that the tunnel message to be forwarded needs to be decapsulated according to the outer layer destination IP address of the tunnel message to be forwarded includes:
judging whether an IP address matched with the outer layer target IP address exists in a preset equipment table entry or not according to the outer layer target IP address in the tunnel message to be forwarded; the device table entry is used for storing an IP address of a device which delegates the node device to decapsulate the tunnel message to be forwarded;
and if so, determining that the tunnel message to be forwarded needs to be decapsulated by the node equipment.
2. The message forwarding method according to claim 1, wherein the node device is connected to a controller, and before the obtaining of the tunnel message to be forwarded, the method further comprises:
and obtaining the information of the equipment table items sent by the controller.
3. The message forwarding method according to claim 1 or 2, wherein the obtaining the tunnel message to be forwarded comprises:
obtaining a message to be forwarded;
judging whether the message to be forwarded is a tunnel message meeting a message matching rule;
if so, determining that the message to be forwarded is the tunnel message to be forwarded.
4. The packet forwarding method according to claim 3, wherein the method further comprises:
and when determining that the tunnel message to be forwarded does not need to be decapsulated, performing routing forwarding according to the outer-layer destination IP address of the tunnel message to be forwarded.
5. A message forwarding apparatus, applied to a node device in a communication network, the apparatus comprising:
the message obtaining module is used for obtaining a tunnel message to be forwarded;
the decapsulation module is used for determining that the tunnel message to be forwarded needs to be decapsulated according to the outer-layer destination IP address of the tunnel message to be forwarded;
the decapsulation module is further configured to determine, according to an outer layer destination IP address in the tunnel message to be forwarded, whether an IP address matching the outer layer destination IP address exists in a preset device table entry; the device table entry is used for storing an IP address of a device which delegates the node device to decapsulate the tunnel message to be forwarded; if so, determining that the tunnel message to be forwarded needs to be decapsulated by the node equipment;
and the first forwarding module is used for obtaining the inner-layer destination IP address in the tunnel message to be forwarded for routing forwarding.
6. The message forwarding device of claim 5, wherein the node equipment is connected to a controller, the device further comprising:
and the table entry obtaining module is used for obtaining the information of the equipment table entry sent by the controller.
7. The message forwarding device of claim 5 or 6,
the message obtaining module is also used for obtaining a message to be forwarded; judging whether the message to be forwarded is a tunnel message meeting a message matching rule; if so, determining that the message to be forwarded is the tunnel message to be forwarded.
8. The message forwarding device of claim 7, wherein the device further comprises:
and the second forwarding module is used for performing routing forwarding according to the outer-layer destination IP address of the tunnel message to be forwarded when determining that the tunnel message to be forwarded does not need to be decapsulated.
9. A computer-readable storage medium having non-volatile program code executable by a processor, the program code causing the processor to perform the message forwarding method of any of claims 1-4.
CN201811071430.7A 2018-09-13 2018-09-13 Message forwarding method, device and storage medium Active CN109039916B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811071430.7A CN109039916B (en) 2018-09-13 2018-09-13 Message forwarding method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811071430.7A CN109039916B (en) 2018-09-13 2018-09-13 Message forwarding method, device and storage medium

Publications (2)

Publication Number Publication Date
CN109039916A CN109039916A (en) 2018-12-18
CN109039916B true CN109039916B (en) 2021-08-06

Family

ID=64621588

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811071430.7A Active CN109039916B (en) 2018-09-13 2018-09-13 Message forwarding method, device and storage medium

Country Status (1)

Country Link
CN (1) CN109039916B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110601893B (en) * 2019-09-18 2022-12-20 成都西加云杉科技有限公司 Data transmission system, method and device
CN114338851B (en) * 2021-12-29 2022-08-19 武汉绿色网络信息服务有限责任公司 Matching method and device based on tunnel message
CN114363257B (en) * 2021-12-29 2023-10-17 杭州迪普信息技术有限公司 Five-tuple matching method and device for tunnel message

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1770767A (en) * 2005-09-01 2006-05-10 武汉思为同飞网络技术有限公司 System and its method for carrying out TCP application layer protocol package for VPN message
CN1863139A (en) * 2005-07-05 2006-11-15 华为技术有限公司 L2TP message processing method
CN101247314A (en) * 2007-02-15 2008-08-20 华为技术有限公司 Routing optimization method, proxy mobile media PMA and packet transmission system
WO2012083657A1 (en) * 2010-12-20 2012-06-28 刘建 Packet processing method, system and customer premises equipment
CN107809364A (en) * 2016-09-09 2018-03-16 新华三技术有限公司 Message forwarding method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8990892B2 (en) * 2011-07-06 2015-03-24 Cisco Technology, Inc. Adapting extensible authentication protocol for layer 3 mesh networks
CN103841023B (en) * 2012-11-22 2017-03-08 华为技术有限公司 The method and apparatus of data forwarding
CN103023898B (en) * 2012-12-03 2016-05-11 杭州迪普科技有限公司 A kind of method and device of accessing VPN service end Intranet resource
US9350657B2 (en) * 2013-07-08 2016-05-24 Nicira, Inc. Encapsulating data packets using an adaptive tunnelling protocol
CN106534278A (en) * 2016-11-01 2017-03-22 锐捷网络股份有限公司 Message forwarding method and switching equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1863139A (en) * 2005-07-05 2006-11-15 华为技术有限公司 L2TP message processing method
CN1770767A (en) * 2005-09-01 2006-05-10 武汉思为同飞网络技术有限公司 System and its method for carrying out TCP application layer protocol package for VPN message
CN101247314A (en) * 2007-02-15 2008-08-20 华为技术有限公司 Routing optimization method, proxy mobile media PMA and packet transmission system
WO2012083657A1 (en) * 2010-12-20 2012-06-28 刘建 Packet processing method, system and customer premises equipment
CN107809364A (en) * 2016-09-09 2018-03-16 新华三技术有限公司 Message forwarding method and device

Also Published As

Publication number Publication date
CN109039916A (en) 2018-12-18

Similar Documents

Publication Publication Date Title
US10637686B2 (en) Capability aware routing
US9954769B2 (en) Inter-domain fast reroute methods and network devices
US11032197B2 (en) Reroute detection in segment routing data plane
EP2911348B1 (en) Control device discovery in networks having separate control and forwarding devices
EP3022877B1 (en) Extended remote lfa fast reroute
EP3304812B1 (en) Method and system for resynchronization of forwarding states in a network forwarding device
EP2364539B1 (en) A system and method of implementing lightweight not-via ip fast reroutes in a telecommunications network
US20220272032A1 (en) Malleable routing for data packets
US9668160B2 (en) Topology discovery based on SCTP/X2 snooping
IL230202A (en) Method and apparatus for resilient routing of control traffic in a split-architecture system
CN109039916B (en) Message forwarding method, device and storage medium
EP3058777B1 (en) Topology discovery based on explicit signaling
WO2016174598A1 (en) Sdn network element affinity based data partition and flexible migration schemes
CN110611616A (en) Traffic scheduling method, system, device and medium based on Radius server
US10069763B2 (en) Method to establish a non-disruptive communications path between multiple devices
WO2016123904A1 (en) Routing convergence method, device and virtual private network system
CN107770061B (en) Method and equipment for forwarding message
US8923312B2 (en) OSPF nonstop routing synchronization nack
US20220070084A1 (en) Method and system to prevent micro-loops during a network topology change
WO2016070406A1 (en) Topology discovery method and device
US11936559B2 (en) Fast receive re-convergence of multi-pod multi-destination traffic in response to local disruptions
JP2005176268A (en) Ip network rerouting system using life-and-death supervision

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