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

Message forwarding method, device and storage medium Download PDF

Info

Publication number
CN109039916A
CN109039916A CN201811071430.7A CN201811071430A CN109039916A CN 109039916 A CN109039916 A CN 109039916A CN 201811071430 A CN201811071430 A CN 201811071430A CN 109039916 A CN109039916 A CN 109039916A
Authority
CN
China
Prior art keywords
forwarded
message
tunnel packet
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.)
Granted
Application number
CN201811071430.7A
Other languages
Chinese (zh)
Other versions
CN109039916B (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

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

Abstract

The embodiment of the present application provides a kind of message forwarding method, device and storage medium, is related to field of communication technology.Method includes: to obtain tunnel packet to be forwarded;According to the outer layer purpose IP address of tunnel packet to be forwarded, determine that tunnel packet to be forwarded is decapsulated;The internal layer purpose IP address obtained in tunnel packet to be forwarded carries out routing forwarding.It realizes and participates in that the node device is forwarded the tunnel packet to be forwarded directly can be forwarded to its purpose equipment without other node devices, and then the repetition of other node devices is avoided to forward as network performance bottleneck, and available link is made full use of to be forwarded, improve the utilization rate of link.

Description

Message forwarding method, device and storage medium
Technical field
This application involves fields of communication technology, are situated between in particular to a kind of forward-path detection method, device and storage Matter.
Background technique
After equipment is deployed in wide area network, in order to guarantee the reliability of equipment processing business, often using a plurality of Wide area network connection is shared to carry out link backup and flow to the business in the equipment.But meanwhile this also brings and asks accordingly Topic.For example, a plurality of wide area network connection is arranged, especially great number cost and utilization rate brought by special line route are also low.
In order to which the great number cost and the utilization rate that solve a plurality of wide area network connection are also low, industry is unanimously praised highly in recent years to be made With SD-WAN technology (Software-Defined Wide Area Networking, software definition wide area network).SD-WAN is to borrow The theory for helping the control and forward separating of SDN (Software Defined Network, software defined network), passes through concentration SD-WAN controller is monitored the equipment in the wide area network link of enterprise or mechanism, information collection and intelligent scheduling.Make It must ensure in wide area network link under the premise of the reliability of each equipment, improve the utilization rate of link in wide area network, and finally reduce and use Construction cost and operation cost of the family to wide area network.
Summary of the invention
The application is to provide a kind of message forwarding method, device and storage medium.Effectively to improve entire communication network The performance of network, and also improve the utilization rate of link in network.
Embodiments herein is accomplished in that
In a first aspect, the embodiment of the present application provides a kind of message forwarding method, set applied to the node in communication network It is standby, which comprises to obtain tunnel packet to be forwarded;According to the outer layer purpose IP address of the tunnel packet to be forwarded, really The fixed tunnel packet to be forwarded is decapsulated;Obtain internal layer purpose IP address in the tunnel packet to be forwarded into Row routing forwarding.
In the embodiment of the present application, in node device by the outer layer purpose IP address of tunnel packet to be forwarded, determining should Tunnel packet to be forwarded is decapsulated.So node device can obtain the internal layer destination IP in tunnel packet to be forwarded Address, and by carrying out routing forwarding according to internal layer purpose IP address, it has been achieved and has participated in forwarding without other node devices The tunnel packet to be forwarded directly can be forwarded to its purpose equipment by the node device, and then avoid other node devices Repetition forwarding become network performance bottleneck, and make full use of available link to be forwarded, improve the utilization rate of link.
The technical solution provided with reference to first aspect, it is described according to described to be forwarded in some possible implementations The outer layer purpose IP address of tunnel packet determines that the tunnel packet to be forwarded is decapsulated, comprising: according to it is described to Outer layer purpose IP address in forwarding tunnel message judges whether deposit in preset equipment list item and the outer layer purpose IP address Matched IP address;The equipment list item entrusts the node device to unseal the tunnel packet to be forwarded for saving The IP address of the equipment of dress;If so, determining that the tunnel packet needs to be forwarded are decapsulated by the node device.
In the embodiment of the present application, it by presetting equipment list item in node device, therefore sets and is determined wait turn in node The outer layer purpose IP address of hair tunnel packet is matched with the IP address in equipment list item, then just determines that the tunnel packet to be forwarded can It is forwarded with other equipment by entrusting the node device, therefore avoids node device and forward the tunnel packet to be forwarded in generation When, there is the case where accidentally generation forwards and occur, improves the accuracy of generation forwarding.
The technical solution provided with reference to first aspect, in some possible implementations, the node device and control Device connection, before the acquisition tunnel packet to be forwarded, the method also includes:
Obtain the information for the equipment list item that the controller is sent.
In the embodiment of the present application, node device forwards relied on equipment list item that can obtain from controller, avoids Entry aging is led to by node device oneself storage equipment list item and the generation forwarding for treating forwarding tunnel message is caused to malfunction.
The technical solution provided with reference to first aspect, it is described to obtain tunnel to be forwarded in some possible implementations Message, comprising: obtain message to be forwarded;Judge whether the message to be forwarded is the tunnel packet for meeting message matching rule; If so, determining that the message to be forwarded is the tunnel packet to be forwarded.
In the embodiment of the present application, when node device is by determining that message to be forwarded is the tunnel packet to be forwarded, The case where determining the need for the generation forwarding tunnel packet to be forwarded, avoiding the occurrence of accidentally generation forwarding appearance.
The technical solution provided with reference to first aspect, in some possible implementations, the method also includes: it determines When the tunnel packet to be forwarded does not need to be decapsulated, according to the outer layer purpose IP address of the tunnel packet to be forwarded into Row routing forwarding.
In the embodiment of the present application, due to determining that tunnel packet to be forwarded do not need to realize generation forwarding by decapsulating When, routing forwarding can also be carried out according to outer layer purpose IP address, therefore ensure that this is to be forwarded regardless of whether needs are to be forwarded Tunnel packet can be forwarded correctly, therefore improve tunnel packet forwarding success rate to be forwarded.
Second aspect, the embodiment of the present application provide a kind of apparatus for forwarding message, set applied to the node in communication network Standby, described device includes: that message obtains module, for obtaining tunnel packet to be forwarded.Decapsulation module, for according to it is described to The outer layer purpose IP address of forwarding tunnel message determines that the tunnel packet to be forwarded is decapsulated.First forwarding mould Block carries out routing forwarding for obtaining the internal layer purpose IP address in the tunnel packet to be forwarded.
In conjunction with the technical solution that second aspect provides, in some possible implementations, the decapsulation module is also used According to the outer layer purpose IP address in the tunnel packet to be forwarded, judge whether to deposit in preset equipment list item with it is described outer The layer matched IP address of purpose IP address;The equipment list item entrusts the node device to the tunnel to be forwarded for saving The IP address for the equipment that message is decapsulated;If so, determine the tunnel packet to be forwarded need by the node device into Row decapsulation.
In conjunction with the technical solution that second aspect provides, in some possible implementations, the node device and control Device connection, described device further include: list item obtains module, for obtaining the letter for the equipment list item that the controller is sent Breath.
In conjunction with the technical solution that second aspect provides, in some possible implementations, the message obtains module, also For obtaining message to be forwarded;Judge whether the message to be forwarded is the tunnel packet for meeting message matching rule;If so, really The fixed message to be forwarded is the tunnel packet to be forwarded.
In conjunction with the technical solution that second aspect provides, in some possible implementations, the second forwarding module, for true When the fixed tunnel packet to be forwarded does not need to be decapsulated, according to the outer layer purpose IP address of the tunnel packet to be forwarded Carry out routing forwarding.
The third aspect, the embodiment of the present application provide a kind of meter of non-volatile program code that can be performed with processor The readable storage medium of calculation machine, said program code make the processor execute the message forwarding method.
To enable the above objects, features, and advantages of the application to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate Appended attached drawing, is described in detail below.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application, below will be to needed in the embodiment attached Figure is briefly described, it should be understood that the following drawings illustrates only some embodiments of the application, therefore is not construed as pair The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this A little attached drawings obtain other relevant attached drawings.
Fig. 1 shows a kind of structural block diagram of message forwarding system of the application first embodiment offer;
Fig. 2 shows a kind of flow charts for message forwarding method that the application second embodiment provides;
Fig. 3 shows a kind of structural block diagram of apparatus for forwarding message of the application 3rd embodiment offer.
Specific embodiment
In SD-WAN technology, the load-balancing technique of multipath is the utilization rate core side for improving link in wide area network Method.Currently, the load-balancing technique of multipath would generally use GRE (Generic Route Encapsulation, general road By encapsulating)+bgp protocol (Border Gateway Protocol, Border Gateway Protocol)+PBR (Policy Based Route, Policybased routing) mode realize.
Specifically, SD-WAN controller is directed to each node device for message forwarding, it can be each node device The different forward-paths in phase same network segment to different application apparatus are cooked up, and every forward-path can be using tunnel Mode.SD-WAN controller is that corresponding message matching strategy is arranged in each start node equipment on each node device, with And the rule of corresponding policybased routing is set for each node device.It is each node that SD-WAN controller passes through bgp protocol again The packing rule of corresponding tunnel packet is arranged in equipment.So, the configuration based on SD-WAN controller to each node device, just It can guarantee each node device when obtaining tunnel packet, each node device can be turned according to the forward-path of planning Hair, and effectively it is sent to corresponding application apparatus.
But inventor has found by long-term practical studies, when the forward-path that SD-WAN controller is application apparatus planning On, when two endpoint devices on two endpoint of a tunnel have the case where mutually E-Packeting, then an endpoint device then needs The tunnel packet is transmitted to another endpoint device according to the purpose IP address of tunnel packet to decapsulate, and again by another One endpoint device forwards the tunnel packet to application apparatus, and which results in tunnel packets to need before reaching application apparatus Mostly by stretch by so that the endpoint device be caused to become the performance bottleneck in network, and eventually leading to link and still not having It is effectively utilized.
Defect present in the above scheme in the prior art, is that inventor is obtaining after practicing and carefully studying As a result, therefore, the solution that the discovery procedure of the above problem and hereinafter the embodiment of the present application are proposed regarding to the issue above Scheme all should be the contribution that inventor makes the application during the application.
Based on the studies above, the embodiment of the present application provides a kind of message forwarding method, device and storage medium.In node Equipment determines that the tunnel packet to be forwarded is decapsulated by the outer layer purpose IP address of tunnel packet to be forwarded.That Node device can obtain the internal layer purpose IP address in tunnel packet to be forwarded, and by according to internal layer purpose IP address into Row routing forwarding has been achieved and has participated in forwarding the node device can be directly by the tunnel to be forwarded without other node devices Road message is forwarded to its purpose equipment, and then avoids the repetition of other node devices from forwarding as network performance bottleneck, and fill Divide and be forwarded using available link, improves the utilization rate of link.
Below in conjunction with attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Ground description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.Usually exist The component of the embodiment of the present application described and illustrated in attached drawing can be arranged and be designed with a variety of different configurations herein.Cause This, is not intended to limit claimed the application's to the detailed description of the embodiments herein provided in the accompanying drawings below Range, but it is merely representative of the selected embodiment of the application.Based on embodiments herein, those skilled in the art are not being done Every other embodiment obtained under the premise of creative work out, shall fall in the protection scope of this application.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.Term " first ", " the Two " etc. are only used for distinguishing description, are not understood to indicate or imply relative importance.
First embodiment
Referring to Fig. 1, the embodiment of the present application provides a kind of message forwarding system 10, which includes: Communication network 11, the first IP network section 12, the second IP network section 13 and controller 14.
Communication network 11 is for connecting the first IP network section 12 and the second IP network section 13, to realize the cross-network segment forwarding of message, That is the first IP network section 12 sends data to the second IP network section 13 by communication network 11, wherein the first IP network section 12 can be Wide area network, and the second IP network section 13 then can be service network.For the effect for realizing the forwarding, established at least in communication network 11 One tunnel, every tunnel can be separately connected the first IP network section 12 and the second IP network section 13, and every tunnel can be L2TP tunnel Road (Layer 2Tunneling Protocol, Layer 2 Tunneling Protocol).
In the present embodiment, include: in the communication network 11 multiple node devices (node device 111, node device 112, Until 2) node device 11N, N are more than or equal to, each node device can be conventional interchanger or router.Its In, each node device in multiple node devices is connect at least one node device in multiple node devices.Multiple nodes Each node device in equipment is used as the endpoint device at least one endpoint of a tunnel, and each endpoint device is all connected with this Second IP network section 13 is equipped with the routing for reaching second IP network section 13 in each endpoint device, therefore passes through multiple node devices The forwarding of tunnel packet can be realized, the first IP network section 12 is sent to the second IP network section 13.
In the present embodiment, each node device can be used for helping other node device forwardings are original to need by other nodes The message of equipment oneself forwarding, then each node device, compared to other node devices, each node device can be for it The agent node equipment of its node device, conversely, other node devices can be the commission node device of the agent node equipment. It is understood that any of multiple node devices node device 111 can be used as agent node equipment.
Controller 14 can be SD-WAN controller, and controller passes through 14 and each node device in multiple node devices It is all connected with, controller 14 is used to that forward rule to be arranged for each node device, so that each node device will be wait turn by regular Text of transmitting messages forwards.
Second embodiment
Referring to Fig. 1, the embodiment of the present application provides a kind of message forwarding method, the message forwarding method application communication net Node device in network, the message forwarding method include: step S100, step S200 and step S300.
Step S100: tunnel packet to be forwarded is obtained.
Step S200: according to the outer layer purpose IP address of the tunnel packet to be forwarded, the tunnel report to be forwarded is determined Text is decapsulated.
Step S300: the internal layer purpose IP address obtained in the tunnel packet to be forwarded carries out routing forwarding.
The process of the message forwarding method will be described in detail below.
Step S100: tunnel packet to be forwarded is obtained.
Node device in the communication network can obtain message to be forwarded by the wan interface of itself, but obtain When message to be forwarded, which can not determine that the message to be forwarded is for common message, or to meet tunnel association The tunnel packet discussed and pass through tunnel transmission.So, node device can use the head of the packet outer layer to be forwarded, and node is set It is standby then source IP address, outer layer purpose IP address and tunnel protocol number that the message to be forwarded includes can be obtained.Node device is pressed According to preset message matching rule, it can judge whether the message to be forwarded is full using source IP address and tunnel protocol number The tunnel packet of sufficient message matching rule.
If node device determine tunnel protocol number and preset tunnel protocol number mismatch and/or source IP address also with it is default Tunnel protocol number do not correspond to, then node device be assured that the message to be forwarded be not meet message matching rule to Forwarding tunnel message.Node device can be using the message to be forwarded as common message, and outer layer purpose IP address is being saved It is traversed in the preset route table items of point device, is carried out the message to be forwarded from the port to find corresponding port Routing forwarding.Certainly, if not finding corresponding port, node device can abandon the tunnel packet to be forwarded.
If node device determine tunnel protocol number matched with preset tunnel protocol number, and source IP address also with preset tunnel Road protocol number is corresponding, then node device is assured that the message to be forwarded is the tunnel to be forwarded for meeting message matching rule Message, and then node device just needs to confirm whether the tunnel packet to be forwarded needs oneself to carry out generation forwarding.
It should be noted that the case where each node device is used as the agent node equipment of other node devices, often It can not only include that the node device itself treats forwarding tunnel message that the matching rule being first arranged is preset in a node device Matching rule further includes the matching rule that other node devices treat forwarding tunnel message, node device each in this way Realize the forwarding for helping other node devices to carry out tunnel packet to be forwarded.Optionally, preset matching rule in each node device It can then be preset by controller.
Step S200: according to the outer layer purpose IP address of the tunnel packet to be forwarded, the tunnel report to be forwarded is determined Text is decapsulated.
After node device determines and obtains tunnel packet to be forwarded, node device is it needs to be determined that the tunnel packet to be forwarded is It is no to need oneself to carry out generation commission node device for the tunnel report to be forwarded as the agent node equipment of other commission node devices Text forwarding.
As optionally mode a kind of in the present embodiment, an equipment list item has been preset in node device, wherein the equipment List item is used to save the IP address for entrusting the node device to treat the equipment that forwarding tunnel message is decapsulated, i.e. equipment list item In be equipped with commission node device IP address.Therefore node device can be by traversing the equipment list item, and passes through and judge equipment list In whether have commission node device IP address match with the outer layer purpose IP address determine the need for generation forward be somebody's turn to do to Forwarding tunnel message.
Certainly, traversal list item is a kind of optionally embodiment in the present embodiment, is not intended as the restriction to the present embodiment.
If node device determines do not have the IP address for entrusting node device to match in equipment list item with outer layer purpose IP address, Node device can determine that the tunnel packet to be forwarded is forwarded for other commission node devices.Therefore node device can also be by outer layer Purpose IP address is traversed in the preset route table items of node device, to find corresponding port for the tunnel to be forwarded Message carries out routing forwarding from the port.Certainly, if not finding corresponding port, node device can be by the tunnel to be forwarded Road message is abandoned.
If node device determines that equipment list item has the IP address of commission node device to match with outer layer purpose IP address, node Equipment can determine that tunnel packet needs to be forwarded are decapsulated by node device, help other commission node devices to realize The tunnel packet to be forwarded is sent to its purpose equipment for needing to be sent to.It in this present embodiment, is the efficiency for improving link, Whether node device can confirm again oneself can help commission node device generation to forward the tunnel packet to be forwarded.
Step S300: the internal layer purpose IP address obtained in the tunnel packet to be forwarded carries out routing forwarding.
Correspondingly, node device then needs to confirm again oneself whether can help the generation forwarding of commission adjacent node equipment should be to Forwarding tunnel message, node device can decapsulate the tunnel packet to be forwarded, obtain original message by decapsulation, And obtain the IP address of original message, wherein the IP address of the original message can be with the internal layer for the tunnel packet to be forwarded Purpose IP address.
Since the internal layer purpose IP address is the purpose equipment that the tunnel packet to be forwarded needs to be sent to, then node Equipment is connect by judging oneself with whether purpose equipment establishes, to can determine whether the message to be forwarded It is forwarded to purpose equipment.
Optionally, node device can traverse preset route table items, and by judge in route table items whether There is the IP address of purpose equipment to match with the internal layer purpose IP address to determine whether the tunnel packet to be forwarded can be sent to Purpose equipment.
If node device determines do not have the IP address of purpose equipment to match with internal layer P address in route table items, node device It can determine itself and be not establish direct connection relationship with the purpose equipment, so that node device can not also help the commission section Point device forwards the tunnel packet to be forwarded.Therefore, in view of the situation, node device can continue according to the tunnel to be forwarded The outer layer purpose IP address of road message carries out routing forwarding to the tunnel packet to be forwarded.
If node device determines have the IP address of purpose equipment to match with internal layer purpose IP address in route table items, node is set It is standby to determine that itself establishes direct connection relationship with the purpose equipment, so that node device can determine that oneself can be with The commission node device is helped to forward the tunnel packet to be forwarded.
Internal layer purpose IP address of the node device based on the tunnel packet to be forwarded can be determined pair from route table items The forwarding port answered.So, node device, which is based on the forwarding port, just can carry out routing forwarding for the tunnel packet to be forwarded.
It will illustrate the method flow of the present embodiment with an example below.
It is assumed that node device A and node device B are the endpoint device in tunnel, node device A is connected with node device B, And node device A and node device B are all connected with application apparatus C.After node device A obtains forwarding tunnel message, node is set Standby A determines that the forwarding tunnel message needs to be sent to node device B by the outer layer purpose IP address of the forwarding tunnel message.This When, node device A decapsulates the forwarding tunnel message and finds, the internal layer purpose IP address of the forwarding tunnel message is that application is set The IP address of standby C.Then it illustrates that the forwarding tunnel message needs to be sent to application apparatus C by node device B again originally.At this point, Node device A also determines that oneself and application apparatus C also establish connection relationship, then node device A is just directly by the forwarding tunnel Road message has been sent to application apparatus C.It avoids to be forwarded to node device B by node device A in this way, then by node device B It is forwarded to the forwarding twice of node device C, improves the utilization efficiency of link.
In this present embodiment, it is also necessary to which the information of equipment list item can be issued to corresponding every by explanation, controller A node device, so that each node device can realize the execution to message forwarding method based on equipment list item.But it controls Device is not only that each node device is provided with matching rule, and controller can also be by the equipment list item in each node device It is configured and updates, wherein controller passes through Netconf (The Network Configuration Protocol, network Configuration protocol), SNMP (Simple Network Management Protocol, Simple Network Management Protocol) or CLI Realizations such as (Command-Line Interface, command line interface agreements) control forwarding of each node device to message.
In addition, controller can be realized by being updated to the equipment list item in each node device to communication network The quantity of network interior joint equipment is adjusted.So, it is updated, saves to the equipment list item in each node device of controller Point device can then obtain the list item more new data of controller transmission accordingly, and node device is just based on list item more new data, Data in equipment list item are updated, the quantity of adjacent node equipment in equipment list item is increased or deleted to realize Subtract.
3rd embodiment
Referring to Fig. 3, the embodiment of the present application provides a kind of apparatus for forwarding message 100, the apparatus for forwarding message 100 application Each node device in communication network, the apparatus for forwarding message 100 include:
Message obtains module 110, for obtaining tunnel packet to be forwarded.
Decapsulation module 120 determines described wait turn for the outer layer purpose IP address according to the tunnel packet to be forwarded Hair tunnel packet is decapsulated;
First forwarding module 130 is routed for obtaining the internal layer purpose IP address in the tunnel packet to be forwarded Forwarding.
Second forwarding module 140, when for determining that the tunnel packet to be forwarded does not need to be decapsulated, according to described The outer layer purpose IP address of tunnel packet to be forwarded carries out routing forwarding.
List item obtains module 150, for obtaining the information for the equipment list item that the controller is sent.
Wherein, the decapsulation module 120 is also used to according to the outer layer destination IP in the tunnel packet to be forwarded Location judges whether deposit in preset equipment list item and the matched IP address of outer layer purpose IP address;The equipment list item is used In the IP address for saving the equipment for entrusting the node device to decapsulate the tunnel packet to be forwarded;If so, determining The tunnel packet needs to be forwarded are decapsulated by the node device.
The message obtains module 110, is also used to obtain message to be forwarded;Judge whether the message to be forwarded is to meet The tunnel packet of message matching rule;If so, determining that the message to be forwarded is the tunnel packet to be forwarded.
It should be noted that due to it is apparent to those skilled in the art that, for the convenience and letter of description Clean, system, the specific work process of device and unit of foregoing description can be with reference to corresponding in preceding method embodiment Journey, details are not described herein.
It should be understood by those skilled in the art that, the embodiment of the present application can provide as the production of method, system or computer program Product.Therefore, in terms of the embodiment of the present application can be used complete hardware embodiment, complete software embodiment or combine software and hardware Embodiment form.Moreover, it wherein includes computer available programs generation that the embodiment of the present application, which can be used in one or more, The meter implemented in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of code The form of calculation machine program product.
In conclusion the embodiment of the present application provides a kind of message forwarding method, device and storage medium.Method includes: Obtain tunnel packet to be forwarded;According to the outer layer purpose IP address of tunnel packet to be forwarded, tunnel packet needs to be forwarded are determined It is decapsulated;The internal layer purpose IP address obtained in tunnel packet to be forwarded carries out routing forwarding.
Determine that the tunnel packet to be forwarded is decapsulated.So node device can obtain tunnel packet to be forwarded In internal layer purpose IP address be achieved without other sections and by carrying out routing forwarding according to internal layer purpose IP address Point device participates in that the node device is forwarded the tunnel packet to be forwarded directly can be forwarded to its purpose equipment, and then avoids The repetition forwarding of other node devices becomes network performance bottleneck, and makes full use of available link to be forwarded, and improves The utilization rate of link.
The above is only preferred embodiment of the present application, are not intended to limit this application, for those skilled in the art For member, various changes and changes are possible in this application.Within the spirit and principles of this application, it is made it is any modification, Equivalent replacement, improvement etc., should be included within the scope of protection of this application.It should also be noted that similar label and letter are under Similar terms are indicated in the attached drawing in face, therefore, once being defined in a certain Xiang Yi attached drawing, are not then needed in subsequent attached drawing It is further defined and explained.
More than, the only specific embodiment of the application, but the protection scope of the application is not limited thereto, and it is any to be familiar with Those skilled in the art within the technical scope of the present application, can easily think of the change or the replacement, and should all cover Within the protection scope of the application.Therefore, the protection scope of the application should be subject to the protection scope in claims.

Claims (11)

1. a kind of message forwarding method, which is characterized in that applied to the node device in communication network, which comprises
Obtain tunnel packet to be forwarded;
According to the outer layer purpose IP address of the tunnel packet to be forwarded, determine that the tunnel packet to be forwarded is unsealed Dress;
The internal layer purpose IP address obtained in the tunnel packet to be forwarded carries out routing forwarding.
2. message forwarding method according to claim 1, which is characterized in that described according to the tunnel packet to be forwarded Outer layer purpose IP address determines that the tunnel packet to be forwarded is decapsulated, comprising:
According to the outer layer purpose IP address in the tunnel packet to be forwarded, judge whether to deposit in preset equipment list item with it is described The matched IP address of outer layer purpose IP address;The equipment list item entrusts the node device to the tunnel to be forwarded for saving The IP address for the equipment that road message is decapsulated;
If so, determining that the tunnel packet needs to be forwarded are decapsulated by the node device.
3. message forwarding method according to claim 2, which is characterized in that the node device is connect with controller, Before the acquisition tunnel packet to be forwarded, the method also includes:
Obtain the information for the equipment list item that the controller is sent.
4. message forwarding method described in -3 any claims according to claim 1, which is characterized in that described to obtain tunnel to be forwarded Message, comprising:
Obtain message to be forwarded;
Judge whether the message to be forwarded is the tunnel packet for meeting message matching rule;
If so, determining that the message to be forwarded is the tunnel packet to be forwarded.
5. message forwarding method according to claim 4, which is characterized in that the method also includes:
When determining that the tunnel packet to be forwarded does not need to be decapsulated, according to the outer layer purpose of the tunnel packet to be forwarded IP address carries out routing forwarding.
6. a kind of apparatus for forwarding message, which is characterized in that applied to the node device in communication network, described device includes:
Message obtains module, for obtaining tunnel packet to be forwarded;
Decapsulation module determines the tunnel to be forwarded for the outer layer purpose IP address according to the tunnel packet to be forwarded Message is decapsulated;
First forwarding module carries out routing forwarding for obtaining the internal layer purpose IP address in the tunnel packet to be forwarded.
7. apparatus for forwarding message according to claim 6, which is characterized in that
The decapsulation module is also used to be judged preset according to the outer layer purpose IP address in the tunnel packet to be forwarded Whether deposited in equipment list item and the matched IP address of outer layer purpose IP address;The equipment list item is for saving described in commission The IP address for the equipment that node device decapsulates the tunnel packet to be forwarded;If so, determining the tunnel to be forwarded Message needs are decapsulated by the node device.
8. apparatus for forwarding message according to claim 7, which is characterized in that the node device is connect with controller, institute State device further include:
List item obtains module, for obtaining the information for the equipment list item that the controller is sent.
9. according to apparatus for forwarding message described in any claim of claim 6-8, which is characterized in that
The message obtains module, is also used to obtain message to be forwarded;Judge whether the message to be forwarded is to meet message Tunnel packet with rule;If so, determining that the message to be forwarded is the tunnel packet to be forwarded.
10. apparatus for forwarding message according to claim 9, which is characterized in that described device further include:
Second forwarding module, when for determining that the tunnel packet to be forwarded does not need to be decapsulated, according to described to be forwarded The outer layer purpose IP address of tunnel packet carries out routing forwarding.
11. a kind of computer-readable storage media for the non-volatile program code that can be performed with processor, which is characterized in that institute Stating program code makes the processor execute the message forwarding method as described in any claim of claim 1-5.
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 true CN109039916A (en) 2018-12-18
CN109039916B 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)

Cited By (3)

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

Citations (10)

* 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
US20130014217A1 (en) * 2011-07-06 2013-01-10 Cisco Technology, Inc. Adapting Extensible Authentication Protocol for Layer 3 Mesh Networks
CN103023898A (en) * 2012-12-03 2013-04-03 杭州迪普科技有限公司 Method and device for accessing intranet resource of virtual private network (VPN) server
CN103841023A (en) * 2012-11-22 2014-06-04 华为技术有限公司 Data forwarding method and device
US20150009995A1 (en) * 2013-07-08 2015-01-08 Nicira, Inc. Encapsulating Data Packets Using an Adaptive Tunnelling Protocol
CN106534278A (en) * 2016-11-01 2017-03-22 锐捷网络股份有限公司 Message forwarding method and switching equipment
CN107809364A (en) * 2016-09-09 2018-03-16 新华三技术有限公司 Message forwarding method and device

Patent Citations (10)

* 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
US20130014217A1 (en) * 2011-07-06 2013-01-10 Cisco Technology, Inc. Adapting Extensible Authentication Protocol for Layer 3 Mesh Networks
CN103841023A (en) * 2012-11-22 2014-06-04 华为技术有限公司 Data forwarding method and device
CN103023898A (en) * 2012-12-03 2013-04-03 杭州迪普科技有限公司 Method and device for accessing intranet resource of virtual private network (VPN) server
US20150009995A1 (en) * 2013-07-08 2015-01-08 Nicira, Inc. Encapsulating Data Packets Using an Adaptive Tunnelling Protocol
CN107809364A (en) * 2016-09-09 2018-03-16 新华三技术有限公司 Message forwarding method and device
CN106534278A (en) * 2016-11-01 2017-03-22 锐捷网络股份有限公司 Message forwarding method and switching equipment

Cited By (5)

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

Also Published As

Publication number Publication date
CN109039916B (en) 2021-08-06

Similar Documents

Publication Publication Date Title
US8068442B1 (en) Spanning tree protocol synchronization within virtual private networks
US9130859B1 (en) Methods and apparatus for inter-virtual local area network multicast services
US7583590B2 (en) Router and method for protocol process migration
JP5242591B2 (en) Ethernet (registered trademark) / TMPLS hybrid network OAM frame creation method and corresponding signal
US9621378B2 (en) Methods and routers for connectivity setup between provider edge routers
US11153185B2 (en) Network device snapshots
US20150043348A1 (en) Traffic Flow Redirection between Border Routers using Routing Encapsulation
US20070153741A1 (en) Seamless roaming across wireless subnets using source address forwarding
CN102291455B (en) Distributed cluster processing system and message processing method thereof
EP2996287A1 (en) Method for notifying information of pe device and pe device
CN109039916A (en) Message forwarding method, device and storage medium
CN109120492B (en) Storage unit, source switch, message forwarding method and mirror image system
EP3588859A1 (en) Network device configuration versioning
WO2016095322A1 (en) Vrrp-based data transmission method and apparatus
CN108075969A (en) Message forwarding method and device
CN105791153A (en) Service traffic scheduling method and system, traffic controller and network edge device
CN112333076B (en) Method and device for bearing VXLAN service through FlexE channel
JP2020156088A (en) Packet transmission method and device
US10075522B2 (en) Automated mirroring and remote switch port analyzer (RSPAN)/ encapsulated remote switch port analyzer (ERSPAN) functions using fabric attach (FA) signaling
CN100563194C (en) The method for building up of LSP
WO2014180199A1 (en) Network establishment method and control device
US9954761B2 (en) Dynamic detection of VPN sites
CN109768906A (en) A kind of subnet special line configuration method and device
CN110365578B (en) Network interface control and link switching method, device, network equipment and medium
US10205682B2 (en) Fabric access tunnels

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