CN106789657A - A kind of message forwarding method and device - Google Patents

A kind of message forwarding method and device Download PDF

Info

Publication number
CN106789657A
CN106789657A CN201611203529.9A CN201611203529A CN106789657A CN 106789657 A CN106789657 A CN 106789657A CN 201611203529 A CN201611203529 A CN 201611203529A CN 106789657 A CN106789657 A CN 106789657A
Authority
CN
China
Prior art keywords
gre
public network
head
messages
port
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
CN201611203529.9A
Other languages
Chinese (zh)
Other versions
CN106789657B (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.)
Beijing Green Wei Di Communication Technology Co Ltd
GELIN WEIER SCI-TECH DEVELOPMENT Co Ltd BEIJING
Gw Delight Technology Co Ltd
Original Assignee
Beijing Green Wei Di Communication Technology Co Ltd
GELIN WEIER SCI-TECH DEVELOPMENT Co Ltd BEIJING
Gw Delight 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 Beijing Green Wei Di Communication Technology Co Ltd, GELIN WEIER SCI-TECH DEVELOPMENT Co Ltd BEIJING, Gw Delight Technology Co Ltd filed Critical Beijing Green Wei Di Communication Technology Co Ltd
Priority to CN201611203529.9A priority Critical patent/CN106789657B/en
Publication of CN106789657A publication Critical patent/CN106789657A/en
Application granted granted Critical
Publication of CN106789657B publication Critical patent/CN106789657B/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/50Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling

Abstract

The invention provides a kind of message forwarding method and device, PE is applied to, the device includes:Main Switching Module, the ether network packet to being received from user side interface carries out MPLS encapsulation, is to be sent to first line of a couplet port after the ether network packet adds private network VC labels, two layers of head of public network LSP label and public network successively;GRE modules, the MPLS messages encapsulated by MPLS are received from first line of a couplet port, after ejection two layers of head of public network and public network LSP label, increase gre tunneling head, two layers of head of IP headings and public network successively on private network VC labels, the MPLS messages that will be received are encapsulated as IP GRE messages, and send the IP GRE messages in physical port;Wherein, source IP address and purpose IP address when GRE is encapsulated in IP headings are determined according to the corresponding relation of default public network LSP label and IP address.The transmission in an ip network of MPLS data is realized using the present invention.

Description

A kind of message forwarding method and device
Technical field
The present invention relates to communication technical field, more particularly to a kind of message forwarding method and device.
Background technology
In multiprotocol label switching (MPLS, Multi-Protocol Label Switching) network, label is used The passage of switching path (LSP, Label Switched Path) tag identifier indicates the forward-path of data.And in IP network The forward-path for then carrying out mark data using IP address in network route.In actual applications, there are the data in MPLS network Will be by the situation of IP network, then, the transmission in an ip network of MPLS data how is completed, as asking that needs now are solved Topic.
The content of the invention
A kind of message forwarding method and device are the embodiment of the invention provides, MPLS data biography in an ip network is realized It is defeated.
What technical scheme was specifically realized in:
A kind of apparatus for forwarding message, is applied to service provider edge devices PE, and the device includes:
Main Switching Module, the ether network packet to being received from user side interface carries out multiprotocol label switching MPLS envelopes Dress, is that the ether network packet adds two layers of private network virtual link VC labels, public network label switching path LSP label and public network successively First line of a couplet port is sent to after head;
Generic route encapsulation GRE modules, the MPLS messages encapsulated by MPLS are received from first line of a couplet port, in ejection public network two After layer head and public network LSP label, increase gre tunneling head, two layers of head of IP headings and public network successively on private network VC labels, will receive To MPLS messages be encapsulated as IP GRE messages, and send the IP GRE messages in physical port;Wherein, IP when GRE is encapsulated Source IP address and purpose IP address in heading are determined according to the corresponding relation of default public network LSP label and IP address 's.
A kind of apparatus for forwarding message, is applied to service provider edge devices PE, and the device includes:
GRE modules, the IP GRE messages to being received from physical port carry out GRE decapsulations, ejection public network two layers of head, IP Heading and gre tunneling head, increase by two layers of head of public network LSP label and public network successively on private network VC labels;And by the deblocking IP GRE messages after dress are forwarded to first line of a couplet port;Wherein, increased public network LSP label is according to default when GRE is decapsulated Public network LSP label determines with the corresponding relation of IP address in IP headings;
Main Switching Module, the message after GRE decapsulations is received from first line of a couplet port, removes private network VC labels, public network LSP mark Sign and two layers of head of public network, be descapsulated into ether network packet and be sent to user side interface.
A kind of apparatus for forwarding message, is applied to service provider edge devices PE, and the device includes:
Main Switching Module, the ether network packet to being received from user side interface carries out multiprotocol label switching MPLS envelopes Dress, is to be sent to the first side extension after the ether network packet adds private network VC labels, two layers of head of public network LSP label and public network successively Port;
GRE modules, hang the MPLS messages that port reception is encapsulated by MPLS, in ejection two layers of head of public network and public affairs from the first side After net LSP label, increase gre tunneling head, two layers of head of IP headings and public network, the MPLS that will be received successively on private network VC labels Message is encapsulated as IP GRE messages, and hangs the port transmission IP GRE messages on the second side;Wherein, IP messages when GRE is encapsulated Source IP address and purpose IP address in head are determined according to the corresponding relation of default public network LSP label and IP address;
Main Switching Module, after receiving the IP GRE messages from the second side extension port, according in the IP headings Purpose IP address search route forwarding table, determine corresponding first line of a couplet port, and the IP GRE messages are forwarded into the first line of a couplet end Mouthful.
A kind of apparatus for forwarding message, is applied to service provider edge devices PE, and the device includes:
Main Switching Module, receives IP GRE messages, and is forwarded to the second side and hang port from first line of a couplet port;
GRE modules, the IP GRE messages to being received from the second side extension port carry out GRE decapsulations, eject two layers of public network Head, IP headings and gre tunneling head, increase by two layers of head of public network LSP label and public network successively on private network VC labels;And will be described IP GRE messages after decapsulation are forwarded to the first side and hang port;Wherein, increased public network LSP label is root when GRE is decapsulated Determine according to the corresponding relation of IP address in default public network LSP label and IP headings;
Main Switching Module, the message after port receives GRE decapsulations is hung from the first side, removes private network VC labels, public network Two layers of head of LSP label and public network, are descapsulated into ether network packet and are sent to user side interface.
A kind of message forwarding method, is applied to service provider edge devices PE, and the method includes:
Ether network packet to being received from user side interface carries out multiprotocol label switching MPLS encapsulation, is the ether Network packet is sent to first line of a couplet port after adding private network VC labels, two layers of head of public network LSP label and public network successively;
The MPLS messages encapsulated by MPLS are received from first line of a couplet port, after ejection two layers of head of public network and public network LSP label, Increase gre tunneling head, two layers of head of IP headings and public network successively on private network VC labels, the MPLS messages that will be received are encapsulated as IP GRE messages, and send the IP GRE messages in physical port;Wherein, source IP address and mesh when GRE is encapsulated in IP headings IP address be to be determined according to the corresponding relation of default public network LSP label and IP address.
A kind of message forwarding method, is applied to service provider edge devices PE, and the method includes:
IP GRE messages to being received from physical port carry out GRE decapsulations, two layers of head of ejection public network, IP headings and Gre tunneling head, increases by two layers of head of public network LSP label and public network successively on private network VC labels;And by the IP after the decapsulation GRE messages are forwarded to first line of a couplet port;Wherein, increased public network LSP label is according to default public network LSP mark when GRE is decapsulated Sign and the corresponding relation determination of IP address in IP headings;
The message after GRE decapsulations is received from first line of a couplet port, removes private network VC labels, public network LSP label and public network two Layer head, is descapsulated into ether network packet and is sent to user side interface.
A kind of message forwarding method, is applied to service provider edge devices PE, and the method includes:
Ether network packet to being received from user side interface carries out multiprotocol label switching MPLS encapsulation, is the ether Network packet is sent to the first side extension port after adding private network VC labels, two layers of head of public network LSP label and public network successively;
The MPLS messages that port reception is encapsulated by MPLS are hung from the first side, in ejection two layers of head of public network and public network LSP mark After label, increase gre tunneling head, two layers of head of IP headings and public network successively on private network VC labels, the MPLS messages envelope that will be received It is IP GRE messages to fill, and hangs the port transmission IP GRE messages on the second side;Wherein, when GRE is encapsulated in IP headings Source IP address and purpose IP address are determined according to the corresponding relation of default public network LSP label and IP address;
After receiving the IP GRE messages from the second side extension port, the purpose IP address in the IP headings are looked into Route forwarding table is looked for, corresponding first line of a couplet port is determined, and the IP GRE messages are forwarded to the first line of a couplet port.
A kind of message forwarding method, is applied to service provider edge devices PE, and the method includes:
IP GRE messages are received from first line of a couplet port, and is forwarded to the second side and hang port;
IP GRE messages to being received from the second side extension port carry out GRE decapsulations, two layers of head of ejection public network, IP messages Head and gre tunneling head, increase by two layers of head of public network LSP label and public network successively on private network VC labels;And by after the decapsulation IP GRE messages be forwarded to first side hang port;Wherein, increased public network LSP label is according to default when GRE is decapsulated Public network LSP label determines with the corresponding relation of IP address in IP headings;
The message after port receives GRE decapsulations is hung from the first side, removes private network VC labels, public network LSP label and public affairs Two layers of head of net, are descapsulated into ether network packet and are sent to user side interface.
The message forwarding method and device of the embodiment of the present invention, set up an IP gre tunneling, by MPLS in IP network Message carries out IP GRE encapsulation, in this way, MPLS messages can need not be just concerned about in IP network in transmission in the IP gre tunnelings Routing forwarding processing procedure, it is achieved thereby that the transmission in an ip network of MPLS data.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing The accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, without having to pay creative labor, may be used also Other accompanying drawings are obtained with according to these accompanying drawings.
Fig. 1 is the structural representation of the apparatus for forwarding message of the embodiment of the present invention one.
Fig. 2 is the schematic flow sheet of the up direction message forwarding method of embodiment one.
Fig. 3 a are the structural representation (forwarding of message up direction is illustrated) of the apparatus for forwarding message of the embodiment of the present invention two.
Fig. 3 b are the structural representation (forwarding in message downlink direction is illustrated) of the apparatus for forwarding message of the embodiment of the present invention two.
Specific embodiment
To make the purpose of the present invention, technical scheme and advantage become more apparent, develop simultaneously embodiment referring to the drawings, The present invention is described in more detail.
The present invention sets up an IP GRE (Generic Routing Encapsulation, general route in IP network Encapsulation) tunnel, i.e. an IP gre tunneling is set up between local PE equipment and opposite end PE equipment.To MPLS in PE equipment Message carries out IP GRE encapsulation, or IP GRE messages are decapsulated.Specifically, it is divided into two kinds of implementations, Yi Zhongshi First line of a couplet type, increased GRE modules are located between the first line of a couplet port of main Switching Module and physical port in PE equipment.One kind is other extension Type, increased GRE modules are located between two other extension ports of main Switching Module in PE equipment.Realized in GRE modules up The GRE encapsulation of MPLS messages, and the GRE of downstream IP GRE messages is decapsulated.
Embodiment one (first line of a couplet type)
Fig. 1 is the structural representation of the apparatus for forwarding message of the embodiment of the present invention one.
GRE modules 102 are located between the first line of a couplet port of main Switching Module 101 and physical port.In existing structure, main friendship The first line of a couplet port for changing the mold block 101 is directly connected with physical port, and the first line of a couplet port of main Switching Module 101 is first in the present invention GRE modules 102 are connected to, GRE modules 102 are directly connected to physical port.
In up direction, main Switching Module 101, the ether network packet to being received from user side interface carries out multi-protocols mark Sign and exchange (MPLS) encapsulation, be after the ether network packet adds private network VC labels, two layers of head of public network LSP label and public network successively It is sent to first line of a couplet port;
GRE modules 102, the MPLS messages encapsulated by MPLS are received from first line of a couplet port, in ejection two layers of head of public network and public affairs After net LSP label, increase gre tunneling head, two layers of head of IP headings and public network, the MPLS that will be received successively on private network VC labels Message is encapsulated as IP GRE messages, and sends the IP GRE messages in physical port;Wherein, when GRE is encapsulated in IP headings Source IP address and purpose IP address be to be determined according to the corresponding relation of default public network LSP label and IP address.
Wherein, two layers of head of public network are by taking Ethernet as an example, then including VLAN, source and destination MAC Address part) part.Private network VC (Virtual Circuit, virtual link) label is used for opposite end PE equipment and receives after IP GRE messages according to the private network for carrying VC labels forward the packet to the access link (AC, Attached Circuit) of VC bindings.Customer edge (CE, Custom Edge) link and provider edge equipment (PE, Provider Edge) between is access link.IP heading bags Include source IP address and purpose IP address etc..Two layers of increased gre tunneling head, IP headings and public network successively on private network VC labels Head, is exactly the IP GRE heads of GRE encapsulation.
In down direction, GRE modules 102, the IP GRE messages to being received from physical port carry out GRE decapsulations, bullet Go out two layers of head of public network, IP headings and gre tunneling head, increase by two layers of public network LSP label and public network successively on private network VC labels Head;And the IP GRE messages after the decapsulation are forwarded to first line of a couplet port;Wherein, increased public network LSP mark when GRE is decapsulated Label are determined according to the corresponding relation of IP address in default public network LSP label and IP headings;
Main Switching Module 101, the message after GRE decapsulations is received from first line of a couplet port, removes private network VC labels, public network Two layers of head of LSP label and public network, are descapsulated into ether network packet and are sent to user side interface.
In the present invention, the corresponding relation of public network LSP label and IP address in IP headings is preset with PE equipment, also It is to say, public network LSP label value is corresponded with the source and destination IP address of IP headings.So in up direction, GRE module energy Public network LSP label is enough ejected, IP headings are replaced with according to corresponding relation;In down direction, GRE modules can eject IP messages Head, public network LSP label is replaced with according to corresponding relation.
From the above, it is seen that main Switching Module 101 does not perceive the change of message format completely in the embodiment of the present invention, still So like the prior art, ether network packet is encapsulated as MPLS messages in up direction and is transmitted, received in down direction Message is carried out into MPLS decapsulations after to message.Therefore the embodiment of the present invention is realized to the completely compatible of existing device.
Based on identical inventive concept, the present invention proposes a kind of message forwarding method, is applied to Provider Edge and sets Standby PE, its schematic flow sheet is as shown in Fig. 2 the method includes:
Step 21, the ether network packet to being received from user side interface carry out multiprotocol label switching MPLS encapsulation, are The ether network packet is sent to first line of a couplet port after adding private network VC labels, two layers of head of public network LSP label and public network successively;
Step 22, the MPLS messages encapsulated by MPLS from the reception of first line of a couplet port, in ejection two layers of head of public network and public network LSP After label, increase gre tunneling head, two layers of head of IP headings and public network, the MPLS messages that will be received successively on private network VC labels IP GRE messages are encapsulated as, and the IP GRE messages are sent in physical port;Wherein, source when GRE is encapsulated in IP headings IP address and purpose IP address are determined according to the corresponding relation of default public network LSP label and IP address.
Based on identical inventive concept, the present invention also proposes a kind of message forwarding method, is applied to Provider Edge Equipment PE, the method includes:
Step 31, the IP GRE messages to being received from physical port carry out GRE decapsulations, ejection public network two layers of head, IP Heading and gre tunneling head, increase by two layers of head of public network LSP label and public network successively on private network VC labels;And by the deblocking IP GRE messages after dress are forwarded to first line of a couplet port;Wherein, increased public network LSP label is according to default when GRE is decapsulated Public network LSP label determines with the corresponding relation of IP address in IP headings;
Step 32, received from the first line of a couplet port GRE decapsulation after message, remove private network VC labels, public network LSP label and Two layers of head of public network, are descapsulated into ether network packet and are sent to user side interface.
Embodiment two (other hung type)
Fig. 3 a and Fig. 3 b are the structural representation of the apparatus for forwarding message of the embodiment of the present invention two.Fig. 3 a are message up direction Forwarding schematic diagram.Fig. 3 b are the forwarding schematic diagram in message downlink direction.
GRE modules are located at the other of main Switching Module and hang on port.Existing typical case's application that side hangs port includes operation dimension Pillar reason (OAM), service quality (QOS) etc..
In up direction, main Switching Module 101, the ether network packet to being received from user side interface carries out multi-protocols mark Sign and exchange MPLS encapsulation, be to be sent out after the ether network packet adds private network VC labels, two layers of head of public network LSP label and public network successively It is sent to the first side and hangs port;
GRE modules 102, hang the MPLS messages that port reception is encapsulated by MPLS, in ejection two layers of head of public network from the first side After public network LSP label, increase gre tunneling head, two layers of head of IP headings and public network successively on private network VC labels, by what is received MPLS messages are encapsulated as IP GRE messages, and hang the port transmission IP GRE messages on the second side;Wherein, IP when GRE is encapsulated Source IP address and purpose IP address in heading are determined according to the corresponding relation of default public network LSP label and IP address 's;
Main Switching Module 101, after receiving the IP GRE messages from the second side extension port, according in the IP headings Purpose IP address search route forwarding table, determine corresponding first line of a couplet port, and the IP GRE messages are forwarded to the first line of a couplet Port.
In down direction, main Switching Module 101 receives IP GRE messages, and is forwarded to the second side and hangs end from first line of a couplet port Mouthful;
GRE modules 102, the IP GRE messages to being received from the second side extension port carry out GRE decapsulations, eject public network two Layer head, IP headings and gre tunneling head, increase by two layers of head of public network LSP label and public network successively on private network VC labels;And by institute State the IP GRE messages after decapsulation and be forwarded to the first side extension port;Wherein, increased public network LSP label is when GRE is decapsulated What the corresponding relation according to IP address in default public network LSP label and IP headings determined;
Main Switching Module 101, the message after port receives GRE decapsulations is hung from the first side, removes private network VC labels, public affairs Two layers of head of net LSP label and public network, are descapsulated into ether network packet and are sent to user side interface.
In the present invention, the corresponding relation of public network LSP label and IP address in IP headings is preset with PE equipment, also It is to say, public network LSP label value is corresponded with the source and destination IP address of IP headings.So in up direction, GRE module energy Public network LSP label is enough ejected, IP headings are replaced with according to corresponding relation;In down direction, GRE modules can eject IP messages Head, public network LSP label is replaced with according to corresponding relation.
According to the apparatus structure in embodiment two, because GRE modules are arranged on, the first side hangs port and the second side hangs port Between, so message is no longer as in embodiment one, enter from user side interface, gone out from first line of a couplet port.In other hung type knot In structure, main Switching Module is in up direction, it is necessary to increase routing forwarding presentation, data are hung into port by side is forwarded to first line of a couplet end Mouthful;And in down direction, according to pre-defined rule, data are forwarded to other extension port by first line of a couplet port.But MPLS messages turn Hair pattern does not change, and realizes basic function and structure compatible.
Based on identical inventive concept, the present invention proposes a kind of message forwarding method, is applied to Provider Edge and sets Standby PE, the method includes:
Step 41, the ether network packet to being received from user side interface carry out multiprotocol label switching MPLS encapsulation, are The ether network packet is sent to the first side extension port after adding private network VC labels, two layers of head of public network LSP label and public network successively;
Step 42, the MPLS messages encapsulated by MPLS from the first side extension port reception, in ejection two layers of head of public network and public affairs After net LSP label, increase gre tunneling head, two layers of head of IP headings and public network, the MPLS that will be received successively on private network VC labels Message is encapsulated as IP GRE messages, and hangs the port transmission IP GRE messages on the second side;Wherein, IP messages when GRE is encapsulated Source IP address and purpose IP address in head are determined according to the corresponding relation of default public network LSP label and IP address;
Step 43, hung after port receives the IP GRE messages from the second side, according to the purpose in the IP headings IP address searches route forwarding table, determines corresponding first line of a couplet port, and the IP GRE messages are forwarded into the first line of a couplet port.
Based on identical inventive concept, the present invention also proposes a kind of message forwarding method, is applied to Provider Edge Equipment PE, the method includes:
Step 51, from first line of a couplet port receive IP GRE messages, and be forwarded to second side hang port;
Step 52, the IP GRE messages to being received from the second side extension port carry out GRE decapsulations, eject two layers of public network Head, IP headings and gre tunneling head, increase by two layers of head of public network LSP label and public network successively on private network VC labels;And will be described IP GRE messages after decapsulation are forwarded to the first side and hang port;Wherein, increased public network LSP label is root when GRE is decapsulated Determine according to the corresponding relation of IP address in default public network LSP label and IP headings;
Step 53, from first side hang port receive GRE decapsulation after message, remove private network VC labels, public network LSP mark Sign and two layers of head of public network, be descapsulated into ether network packet and be sent to user side interface.
In sum, the message forwarding method and device of the embodiment of the present invention one and embodiment two, the existing PTN/ of compatibility IPRAN equipment, by way of public network LSP label and IP GRE heads are exchanged, realizes MPLS data in an ip network saturating Bright transmission, avoids changing existing hardware, software configuration, reduces cost as far as possible.In addition, it is necessary to explanation, due to up direction Message length becomes big, and bandwidth accordingly increases, therefore by uplink message storage internally or in external cache, to realize burst number According to traffic shaping, it is to avoid produce a large amount of packet losses because bandwidth is not enough.Lead to when bandwidth is continuously maintained in line speed simultaneously Transmitted traffic control message is crossed to avoid cache overflow and packet loss phenomenon.
Presently preferred embodiments of the present invention is the foregoing is only, is not intended to limit the invention, it is all in essence of the invention Within god and principle, any modification, equivalent substitution and improvements done etc. should be included within the scope of protection of the invention.

Claims (8)

1. a kind of apparatus for forwarding message, is applied to service provider edge devices PE, it is characterised in that the device includes:
Main Switching Module, the ether network packet to being received from user side interface carries out multiprotocol label switching MPLS encapsulation, is After the ether network packet adds private network virtual link VC labels, two layers of head of public network label switching path LSP label and public network successively It is sent to first line of a couplet port;
Generic route encapsulation GRE modules, the MPLS messages encapsulated by MPLS are received from first line of a couplet port, in ejection two layers of head of public network After public network LSP label, increase gre tunneling head, two layers of head of IP headings and public network successively on private network VC labels, by what is received MPLS messages are encapsulated as IP GRE messages, and send the IP GRE messages in physical port;Wherein, IP messages when GRE is encapsulated Source IP address and purpose IP address in head are determined according to the corresponding relation of default public network LSP label and IP address.
2. a kind of apparatus for forwarding message, is applied to service provider edge devices PE, it is characterised in that the device includes:
GRE modules, the IP GRE messages to being received from physical port carry out GRE decapsulations, two layers of head of ejection public network, IP messages Head and gre tunneling head, increase by two layers of head of public network LSP label and public network successively on private network VC labels;And by after the decapsulation IP GRE messages be forwarded to first line of a couplet port;Wherein, increased public network LSP label is according to default public network when GRE is decapsulated LSP label determines with the corresponding relation of IP address in IP headings;
Main Switching Module, from first line of a couplet port receive GRE decapsulation after message, remove private network VC labels, public network LSP label and Two layers of head of public network, are descapsulated into ether network packet and are sent to user side interface.
3. a kind of apparatus for forwarding message, is applied to service provider edge devices PE, it is characterised in that the device includes:
Main Switching Module, the ether network packet to being received from user side interface carries out multiprotocol label switching MPLS encapsulation, is The ether network packet is sent to the first side extension port after adding private network VC labels, two layers of head of public network LSP label and public network successively;
GRE modules, hang the MPLS messages that port reception is encapsulated by MPLS, in ejection two layers of head of public network and public network from the first side After LSP label, increase gre tunneling head, two layers of head of IP headings and public network successively on private network VC labels, the MPLS reports that will be received Text is encapsulated as IP GRE messages, and hangs the port transmission IP GRE messages on the second side;Wherein, IP headings when GRE is encapsulated In source IP address and purpose IP address be to be determined according to the corresponding relation of default public network LSP label and IP address;
Main Switching Module, after receiving the IP GRE messages from the second side extension port, according to the purpose in the IP headings IP address searches route forwarding table, determines corresponding first line of a couplet port, and the IP GRE messages are forwarded into the first line of a couplet port.
4. a kind of apparatus for forwarding message, is applied to service provider edge devices PE, it is characterised in that the device includes:
Main Switching Module, receives IP GRE messages, and is forwarded to the second side and hang port from first line of a couplet port;
GRE modules, the IP GRE messages to being received from the second side extension port carry out GRE decapsulations, ejection public network two layers of head, IP Heading and gre tunneling head, increase by two layers of head of public network LSP label and public network successively on private network VC labels;And by the deblocking IP GRE messages after dress are forwarded to the first side and hang port;Wherein, increased public network LSP label is according to pre- when GRE is decapsulated If public network LSP label and IP headings in the corresponding relation of IP address determine;
Main Switching Module, the message after port receives GRE decapsulations is hung from the first side, removes private network VC labels, public network LSP mark Sign and two layers of head of public network, be descapsulated into ether network packet and be sent to user side interface.
5. a kind of message forwarding method, is applied to service provider edge devices PE, it is characterised in that the method includes:
Ether network packet to being received from user side interface carries out multiprotocol label switching MPLS encapsulation, is the Ethernet report Text is sent to first line of a couplet port after adding private network VC labels, two layers of head of public network LSP label and public network successively;
The MPLS messages encapsulated by MPLS are received from first line of a couplet port, after ejection two layers of head of public network and public network LSP label, in private Increase gre tunneling head, two layers of head of IP headings and public network successively on net VC labels, the MPLS messages that will be received are encapsulated as IP GRE Message, and send the IP GRE messages in physical port;Wherein, source IP address and purpose when GRE is encapsulated in IP headings IP address is determined according to the corresponding relation of default public network LSP label and IP address.
6. a kind of message forwarding method, is applied to service provider edge devices PE, it is characterised in that the method includes:
IP GRE messages to being received from physical port carry out GRE decapsulations, two layers of head of ejection public network, IP headings and GRE Tunnel head, increases by two layers of head of public network LSP label and public network successively on private network VC labels;And by the IP GRE after the decapsulation Message is forwarded to first line of a couplet port;Wherein, GRE decapsulate when increased public network LSP label be according to default public network LSP label with The corresponding relation of IP address determines in IP headings;
The message after GRE decapsulations is received from first line of a couplet port, removes private network VC labels, two layers of head of public network LSP label and public network, It is descapsulated into ether network packet and is sent to user side interface.
7. a kind of message forwarding method, is applied to service provider edge devices PE, it is characterised in that the method includes:
Ether network packet to being received from user side interface carries out multiprotocol label switching MPLS encapsulation, is the Ethernet report Text is sent to the first side extension port after adding private network VC labels, two layers of head of public network LSP label and public network successively;
The MPLS messages that port reception is encapsulated by MPLS are hung from the first side, after ejection two layers of head of public network and public network LSP label, Increase gre tunneling head, two layers of head of IP headings and public network successively on private network VC labels, the MPLS messages that will be received are encapsulated as IP GRE messages, and hang the port transmission IP GRE messages on the second side;Wherein, source IP address when GRE is encapsulated in IP headings With purpose IP address determined according to the corresponding relation of default public network LSP label and IP address;
After receiving the IP GRE messages from the second side extension port, the purpose IP address in the IP headings search road By forward table, corresponding first line of a couplet port is determined, and the IP GRE messages are forwarded to the first line of a couplet port.
8. a kind of message forwarding method, is applied to service provider edge devices PE, it is characterised in that the method includes:
IP GRE messages are received from first line of a couplet port, and is forwarded to the second side and hang port;
Carry out GRE decapsulations to hanging the IP GRE messages that receive of port from the second side, two layers of head of ejection public network, IP headings and Gre tunneling head, increases by two layers of head of public network LSP label and public network successively on private network VC labels;And by the IP after the decapsulation GRE messages are forwarded to the first side and hang port;Wherein, increased public network LSP label is according to default public network when GRE is decapsulated LSP label determines with the corresponding relation of IP address in IP headings;
The message after port receives GRE decapsulations is hung from the first side, removes private network VC labels, public network LSP label and public network two Layer head, is descapsulated into ether network packet and is sent to user side interface.
CN201611203529.9A 2016-12-23 2016-12-23 A kind of message forwarding method and device Active CN106789657B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611203529.9A CN106789657B (en) 2016-12-23 2016-12-23 A kind of message forwarding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611203529.9A CN106789657B (en) 2016-12-23 2016-12-23 A kind of message forwarding method and device

Publications (2)

Publication Number Publication Date
CN106789657A true CN106789657A (en) 2017-05-31
CN106789657B CN106789657B (en) 2019-10-29

Family

ID=58900012

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611203529.9A Active CN106789657B (en) 2016-12-23 2016-12-23 A kind of message forwarding method and device

Country Status (1)

Country Link
CN (1) CN106789657B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107395504A (en) * 2017-07-28 2017-11-24 江西山水光电科技股份有限公司 A kind of method and device of oversized frame service message forwarding
CN107689952A (en) * 2017-07-28 2018-02-13 江西山水光电科技股份有限公司 A kind of implementation method for supporting MPLS and GRE messages to change mutually
CN107770071A (en) * 2017-10-19 2018-03-06 盛科网络(苏州)有限公司 A kind of MPLS message processing methods and device based on OpenFlow
CN108632126A (en) * 2018-04-26 2018-10-09 新华三技术有限公司 A kind of message forwarding channel method for building up, device and message forwarding method and device
CN109246012A (en) * 2017-07-10 2019-01-18 中兴通讯股份有限公司 Message forwarding method, device and computer readable storage medium
CN109462558A (en) * 2018-10-23 2019-03-12 北京华环电子股份有限公司 A kind of pair of MPLS message carries out the device of GRE encapsulation process
CN112583731A (en) * 2021-01-11 2021-03-30 北京华环电子设备有限公司 Method and device for fragmenting and recombining GRE (generic routing encapsulation) message

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1750504A (en) * 2004-09-15 2006-03-22 华为技术有限公司 Route repeating method in network
CN103368806A (en) * 2012-03-26 2013-10-23 华为技术有限公司 Method and system for processing data flow and device
CN105553810A (en) * 2015-12-14 2016-05-04 中国联合网络通信集团有限公司 Method and device for forwarding special line service packet
CN105991433A (en) * 2015-01-29 2016-10-05 杭州华三通信技术有限公司 Method and device of accessing layer 3 virtual private network (L3VPN) in layer 2 virtual private network (L2VPN)

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1750504A (en) * 2004-09-15 2006-03-22 华为技术有限公司 Route repeating method in network
CN103368806A (en) * 2012-03-26 2013-10-23 华为技术有限公司 Method and system for processing data flow and device
CN105991433A (en) * 2015-01-29 2016-10-05 杭州华三通信技术有限公司 Method and device of accessing layer 3 virtual private network (L3VPN) in layer 2 virtual private network (L2VPN)
CN105553810A (en) * 2015-12-14 2016-05-04 中国联合网络通信集团有限公司 Method and device for forwarding special line service packet

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109246012A (en) * 2017-07-10 2019-01-18 中兴通讯股份有限公司 Message forwarding method, device and computer readable storage medium
CN107395504A (en) * 2017-07-28 2017-11-24 江西山水光电科技股份有限公司 A kind of method and device of oversized frame service message forwarding
CN107689952A (en) * 2017-07-28 2018-02-13 江西山水光电科技股份有限公司 A kind of implementation method for supporting MPLS and GRE messages to change mutually
CN107770071A (en) * 2017-10-19 2018-03-06 盛科网络(苏州)有限公司 A kind of MPLS message processing methods and device based on OpenFlow
CN107770071B (en) * 2017-10-19 2021-03-23 盛科网络(苏州)有限公司 OpenFlow-based MPLS message processing method and device
CN108632126A (en) * 2018-04-26 2018-10-09 新华三技术有限公司 A kind of message forwarding channel method for building up, device and message forwarding method and device
CN108632126B (en) * 2018-04-26 2020-12-08 新华三技术有限公司 Message forwarding channel establishing method and device and message forwarding method and device
CN109462558A (en) * 2018-10-23 2019-03-12 北京华环电子股份有限公司 A kind of pair of MPLS message carries out the device of GRE encapsulation process
CN112583731A (en) * 2021-01-11 2021-03-30 北京华环电子设备有限公司 Method and device for fragmenting and recombining GRE (generic routing encapsulation) message

Also Published As

Publication number Publication date
CN106789657B (en) 2019-10-29

Similar Documents

Publication Publication Date Title
CN106789657B (en) A kind of message forwarding method and device
US7486674B2 (en) Data mirroring in a service
CN101394361B (en) Packet transmission method, device and system
US7873053B2 (en) Method and apparatus for reserving network resources for pseudo point-to-point connections
ES2425227T3 (en) An access device and a method of service transmission
CN102571426B (en) Double-homing protection method and device
EP2314022B1 (en) Establishing pseudowires in packet switching networks
US20070030851A1 (en) Method and arrangement for routing pseudo-wire encapsulated packets
CN107181663A (en) A kind of message processing method, relevant device and computer-readable recording medium
EP2214352A1 (en) Layer two virtual private network cross-domain implementation (l2vpn) method, system and device
EP2571203B1 (en) Tunnel switching method and system for multi-protocol label switching services
CN100393062C (en) Method for core network access to multi-protocol sign exchange virtual special network
CN105791153A (en) Service traffic scheduling method and system, traffic controller and network edge device
CN101926132B (en) Circuit emulation over ip interworking vll
CN105553810A (en) Method and device for forwarding special line service packet
EP2852115B1 (en) Information processing method, apparatus and system in trill networks
US9479439B1 (en) Methods and apparatus for load balancing VLAN traffic
US8848716B2 (en) Termination of a pseudowires on multiple line cards
US9473399B2 (en) System and method for aggregating pseudowires
EP2627037A1 (en) Network configuration method, ring network system, and node
CN109462558A (en) A kind of pair of MPLS message carries out the device of GRE encapsulation process
CN106169969B (en) Method, related equipment and system for establishing label switching path of virtual private network
CN101695041B (en) Method for realizing routing notification between every two virtual routers and physical router
CN102957614A (en) Method and device for realizing dynamic routing
CN106302264A (en) Unicast message interoperability methods between Dune switched line clamp and flexibly cable card board and device

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