[go: up one dir, main page]

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

A kind of message forwarding method and device Download PDF

Info

Publication number
CN106789657B
CN106789657B CN201611203529.9A CN201611203529A CN106789657B CN 106789657 B CN106789657 B CN 106789657B CN 201611203529 A CN201611203529 A CN 201611203529A CN 106789657 B CN106789657 B CN 106789657B
Authority
CN
China
Prior art keywords
gre
head
public network
message
label
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201611203529.9A
Other languages
Chinese (zh)
Other versions
CN106789657A (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

Landscapes

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

Abstract

The present invention provides a kind of message forwarding method and devices, applied to PE, the device includes: main Switching Module, MPLS encapsulation is carried out to the ether network packet received from user side interface, is sent to first line of a couplet port after successively adding two layers of private network VC label, public network LSP label and public network head for the ether network packet;GRE module, the MPLS message encapsulated by MPLS is received from first line of a couplet port, after pop-up two layers of head of public network and public network LSP label, two layers of gre tunneling head, IP packet head and public network head are successively increased on private network VC label, the MPLS message received is encapsulated as IP GRE message, and sends the IP GRE message in physical port;Wherein, source IP address and purpose IP address when GRE is encapsulated in IP packet head are determined according to preset public network LSP label and the corresponding relationship of IP address.The transmission of MPLS data in an ip network is realized using the present invention.

Description

A kind of message forwarding method and device
Technical field
The present invention relates to field of communication technology, in particular to a kind of message forwarding method and device.
Background technique
In multiprotocol label switching (MPLS, Multi-Protocol Label Switching) network, label is used The forward-path of designation date is carried out in the channel of switching path (LSP, Label Switched Path) tag identifier.And in IP network It is then routed using the forward-path that IP address carrys out mark data in network.In practical applications, there are the data in MPLS network The case where passing through IP network, then, the transmission of MPLS data in an ip network how is completed, becomes and needs what is solved to ask now Topic.
Summary of the invention
The embodiment of the invention provides a kind of message forwarding method and devices, realize the biography of MPLS data in an ip network It is defeated.
Technical solution of the present invention is specifically achieved in that
A kind of apparatus for forwarding message, is applied to service provider edge devices PE, which includes:
Main Switching Module carries out multiprotocol label switching MPLS envelope to the ether network packet received from user side interface Dress successively adds private network virtual link VC label, public network label switching path LSP label and two layers of public network for the ether network packet First line of a couplet port is sent to after head;
Generic route encapsulation GRE module receives the MPLS message encapsulated by MPLS from first line of a couplet port, in pop-up public network two After layer head and public network LSP label, two layers of gre tunneling head, IP packet head and public network head are successively increased on private network VC label, will be received To MPLS message be encapsulated as IP GRE message, and send the IP GRE message in physical port;Wherein, IP when GRE is encapsulated Source IP address and purpose IP address in heading are determined according to preset public network LSP label and the corresponding relationship of IP address 's.
A kind of apparatus for forwarding message, is applied to service provider edge devices PE, which includes:
GRE module carries out GRE decapsulation to the IP GRE message received from physical port, pops up public network two layers of head, IP Heading and gre tunneling head successively increase two layers of head of public network LSP label and public network on private network VC label;And by the deblocking IP GRE message after dress is forwarded to first line of a couplet port;Wherein, increased public network LSP label is according to preset when GRE is decapsulated The corresponding relationship of IP address determines in public network LSP label and IP packet head;
Main Switching Module receives the message after GRE decapsulation from first line of a couplet port, removes private network VC label, public network LSP mark Label and two layers of head of public network, are descapsulated into ether network packet and are sent to user side interface.
A kind of apparatus for forwarding message, is applied to service provider edge devices PE, which includes:
Main Switching Module carries out multiprotocol label switching MPLS envelope to the ether network packet received from user side interface Dress is sent to the first side extension after successively adding two layers of private network VC label, public network LSP label and public network head for the ether network packet Port;
GRE module hangs port from the first side and receives the MPLS message encapsulated by MPLS, in pop-up two layers of head of public network and public affairs After net LSP label, two layers of gre tunneling head, IP packet head and public network head, the MPLS that will be received are successively increased on private network VC label Message is encapsulated as IP GRE message, and hangs port on the second side and send the IP GRE message;Wherein, IP packet when GRE is encapsulated Source IP address and purpose IP address in head are determined according to preset public network LSP label and the corresponding relationship of IP address;
Main Switching Module, after receiving the IP GRE message from the second side extension port, according in the IP packet head Purpose IP address searches route forwarding table, determines corresponding first line of a couplet port, and the IP GRE message is forwarded to the first line of a couplet end Mouthful.
A kind of apparatus for forwarding message, is applied to service provider edge devices PE, which includes:
Main Switching Module receives IP GRE message from first line of a couplet port, and is forwarded to the second side and hangs port;
GRE module carries out GRE decapsulation to the IP GRE message that port receives is hung from the second side, pops up two layers of public network Head, IP packet head and gre tunneling head, successively increase two layers of head of public network LSP label and public network on private network VC label;And it will be described IP GRE message after decapsulation is forwarded to the first side and hangs port;Wherein, increased public network LSP label is root when GRE is decapsulated It is determined according to the corresponding relationship of IP address in preset public network LSP label and IP packet head;
Main Switching Module hangs the message after port receives GRE decapsulation from the first side, removes private network VC label, 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, this method comprises:
Multiprotocol label switching MPLS encapsulation is carried out to the ether network packet received from user side interface, is the ether Network packet is sent to first line of a couplet port after successively adding two layers of private network VC label, public network LSP label and public network head;
The MPLS message encapsulated by MPLS is received from first line of a couplet port, after pop-up two layers of head of public network and public network LSP label, Two layers of gre tunneling head, IP packet head and public network head are successively increased on private network VC label, and the MPLS message received is encapsulated as IP GRE message, and the IP GRE message is sent in physical port;Wherein, source IP address and mesh when GRE is encapsulated in IP packet head IP address be to be determined according to preset public network LSP label and the corresponding relationship of IP address.
A kind of message forwarding method is applied to service provider edge devices PE, this method comprises:
GRE decapsulation carried out to the IP GRE message that receives from physical port, pop-up two layers of head of public network, IP packet head and Gre tunneling head successively increases two layers of head of public network LSP label and public network on private network VC label;And by the IP after the decapsulation GRE message is forwarded to first line of a couplet port;Wherein, increased public network LSP label is according to preset public network LSP mark when GRE is decapsulated What label and the corresponding relationship of IP address in IP packet head determined;
The message after GRE decapsulation is received from first line of a couplet port, removes private network VC label, 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, this method comprises:
Multiprotocol label switching MPLS encapsulation is carried out to the ether network packet received from user side interface, is the ether Network packet is sent to the first side extension port after successively adding two layers of private network VC label, public network LSP label and public network head;
Port is hung from the first side and receives the MPLS message encapsulated by MPLS, in pop-up two layers of head of public network and public network LSP mark After label, two layers of gre tunneling head, IP packet head and public network head are successively increased on private network VC label, and the MPLS message received is sealed Dress is IP GRE message, and hangs port on the second side and send the IP GRE message;Wherein, when GRE is encapsulated in IP packet head Source IP address and purpose IP address are determined according to preset public network LSP label and the corresponding relationship of IP address;
After receiving the IP GRE message from the second side extension port, looked into according to the purpose IP address in the IP packet head Route forwarding table is looked for, determines corresponding first line of a couplet port, and the IP GRE message is forwarded to the first line of a couplet port.
A kind of message forwarding method is applied to service provider edge devices PE, this method comprises:
IP GRE message is received from first line of a couplet port, and is forwarded to the second side and hangs port;
GRE decapsulation is carried out to the IP GRE message that port receives is hung from the second side, pops up public network two layers of head, IP packet Head and gre tunneling head, successively increase two layers of head of public network LSP label and public network on private network VC label;And it will be after the decapsulation IP GRE message be forwarded to first side hang port;Wherein, increased public network LSP label is according to preset when GRE is decapsulated The corresponding relationship of IP address determines in public network LSP label and IP packet head;
The message after port receives GRE decapsulation is hung from the first side, removes private network VC label, 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 establish an IP gre tunneling, by MPLS in IP network Message carries out IP GRE encapsulation, in this way, MPLS message can transmit in the IP gre tunneling and need not be concerned about in IP network Routing forwarding treatment process, to realize the transmission of MPLS data in an ip network.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention without any creative labor, may be used also for those of ordinary skill in the art To obtain other drawings based on these drawings.
Fig. 1 is the structural schematic diagram of one apparatus for forwarding message of the embodiment of the present invention.
Fig. 2 is the flow diagram of one up direction message forwarding method of embodiment.
Fig. 3 a is the structural schematic diagram of two apparatus for forwarding message of the embodiment of the present invention (forwarding of message up direction is illustrated).
Fig. 3 b is the structural schematic diagram of two apparatus for forwarding message of the embodiment of the present invention (forwarding in message downlink direction is illustrated).
Specific embodiment
For the purpose of the present invention, technical solution and advantage is more clearly understood, hereinafter, referring to the drawings and the embodiments, The present invention is described in more detail.
The present invention establishes an IP GRE (Generic Routing Encapsulation, general routing in IP network Encapsulation) tunnel, that is, an IP gre tunneling is established between local PE equipment and opposite end PE equipment.To MPLS in PE equipment Message carries out IP GRE encapsulation, or decapsulates to IP GRE message.Specifically, it is divided into two kinds of implementations, one is First line of a couplet type, increased GRE module is located between the first line of a couplet port and physical port of main Switching Module in PE equipment.One is sides to hang Type, increased GRE module is located at two of main Switching Module and other hangs between ports in PE equipment.Uplink is realized in GRE module The GRE of MPLS message is encapsulated and the GRE of downstream IP GRE message decapsulation.
Embodiment one (first line of a couplet type)
Fig. 1 is the structural schematic diagram of one apparatus for forwarding message of the embodiment of the present invention.
GRE module 102 is located between the first line of a couplet port and physical port of main Switching Module 101.In existing structure, main friendship The first line of a couplet port of mold changing 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 It is connected to GRE module 102, GRE module 102 is directly connected to physical port.
In up direction, main Switching Module 101 carries out multi-protocols mark to the ether network packet received from user side interface Label exchange (MPLS) encapsulation, after successively adding two layers of private network VC label, public network LSP label and public network head for the ether network packet It is sent to first line of a couplet port;
GRE module 102 receives the MPLS message encapsulated by MPLS from first line of a couplet port, in pop-up two layers of head of public network and public affairs After net LSP label, two layers of gre tunneling head, IP packet head and public network head, the MPLS that will be received are successively increased on private network VC label Message is encapsulated as IP GRE message, and sends the IP GRE message in physical port;Wherein, when GRE is encapsulated in IP packet head Source IP address and purpose IP address be to be determined according to preset public network LSP label and the corresponding relationship of IP address.
Wherein, two layers of head of public network then include VLAN, source and destination MAC Address part by taking Ethernet as an example) part.Private network VC (Virtual Circuit, virtual link) label receives the private network after IP GRE message according to carrying for opposite end PE equipment VC label forwards the packet to the access link (AC, Attached Circuit) of VC binding.Customer edge (CE, Custom Edge) and provider edge equipment (PE, Provider Edge) between link be access link.IP packet head packet Include source IP address and purpose IP address etc..The gre tunneling head that is successively increased on private network VC label, IP packet head and two layers of public network Head is exactly the head IP GRE of GRE encapsulation.
In down direction, GRE module 102 carries out GRE decapsulation, bullet to the IP GRE message received from physical port Two layers of head of public network, IP packet head and gre tunneling head out, successively increase public network LSP label and two layers of public network on private network VC label Head;And the IP GRE message after the decapsulation is 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 relationship of IP address in preset public network LSP label and IP packet head;
Main Switching Module 101 receives the message after GRE decapsulation from first line of a couplet port, removes private network VC label, 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 relationship of IP address in public network LSP label and IP packet head is preset in PE equipment, also It is to say, the source and destination IP address of public network LSP label value and IP packet head corresponds.So in up direction, GRE module energy Public network LSP label is enough popped up, IP packet head is replaced with according to corresponding relationship;In down direction, GRE module can pop up IP packet Head replaces with public network LSP label according to corresponding relationship.
From the above, it is seen that main Switching Module 101 does not perceive the variation of message format completely in the embodiment of the present invention, still So like the prior art, ether network packet is encapsulated as MPLS message in up direction and is sent, received in down direction Message is subjected to MPLS decapsulation 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, sets applied to Provider Edge Standby PE, flow diagram as shown in Fig. 2, this method comprises:
Step 21 carries out multiprotocol label switching MPLS encapsulation to the ether network packet received from user side interface, is The ether network packet is sent to first line of a couplet port after successively adding two layers of private network VC label, public network LSP label and public network head;
Step 22 receives the MPLS message encapsulated by MPLS from first line of a couplet port, in pop-up two layers of head of public network and public network LSP After label, two layers of gre tunneling head, IP packet head and public network head, the MPLS message that will be received are successively increased on private network VC label It is encapsulated as IP GRE message, and sends the IP GRE message in physical port;Wherein, source when GRE is encapsulated in IP packet head IP address and purpose IP address are determined according to preset public network LSP label and the corresponding relationship of 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, this method comprises:
Step 31 carries out GRE decapsulation to the IP GRE message received from physical port, pops up public network two layers of head, IP Heading and gre tunneling head successively increase two layers of head of public network LSP label and public network on private network VC label;And by the deblocking IP GRE message after dress is forwarded to first line of a couplet port;Wherein, increased public network LSP label is according to preset when GRE is decapsulated The corresponding relationship of IP address determines in public network LSP label and IP packet head;
Step 32, received from the first line of a couplet port GRE decapsulation after message, remove private network VC label, 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 schematic diagram of two apparatus for forwarding message of the embodiment of the present invention.Fig. 3 a is message up direction Forwarding schematic diagram.Fig. 3 b is the forwarding schematic diagram in message downlink direction.
GRE module is located at the other of main Switching Module and hangs on port.The existing typical case that side hangs port includes operation dimension Pillar manages (OAM), service quality (QOS) etc..
In up direction, main Switching Module 101 carries out multi-protocols mark to the ether network packet received from user side interface Label exchange MPLS encapsulation, sends out after successively adding two layers of private network VC label, public network LSP label and public network head for the ether network packet It is sent to the first side and hangs port;
GRE module 102 hangs port from the first side and receives the MPLS message encapsulated by MPLS, in pop-up two layers of head of public network After public network LSP label, two layers of gre tunneling head, IP packet head and public network head are successively increased on private network VC label, by what is received MPLS message is encapsulated as IP GRE message, and hangs port on the second side and send the IP GRE message;Wherein, IP when GRE is encapsulated Source IP address and purpose IP address in heading are determined according to preset public network LSP label and the corresponding relationship of IP address 's;
Main Switching Module 101, after receiving the IP GRE message from the second side extension port, according in the IP packet head Purpose IP address search route forwarding table, determine corresponding first line of a couplet port, and the IP GRE message is forwarded to the first line of a couplet Port.
In down direction, main Switching Module 101 receives IP GRE message from first line of a couplet port, and is forwarded to the second side and hangs end Mouthful;
GRE module 102 carries out GRE decapsulation to the IP GRE message that port receives is hung from the second side, pops up public network two Layer head, IP packet head and gre tunneling head, successively increase two layers of head of public network LSP label and public network on private network VC label;And by institute IP GRE message after stating decapsulation is forwarded to the first side and hangs port;Wherein, increased public network LSP label is when GRE is decapsulated It is determined according to the corresponding relationship of IP address in preset public network LSP label and IP packet head;
Main Switching Module 101 hangs the message after port receives GRE decapsulation from the first side, removes private network VC label, 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 relationship of IP address in public network LSP label and IP packet head is preset in PE equipment, also It is to say, the source and destination IP address of public network LSP label value and IP packet head corresponds.So in up direction, GRE module energy Public network LSP label is enough popped up, IP packet head is replaced with according to corresponding relationship;In down direction, GRE module can pop up IP packet Head replaces with public network LSP label according to corresponding relationship.
According to the apparatus structure in embodiment two, since the setting of GRE module hangs port and the second side extension port on the first side Between, so message no longer as in embodiment one, enters from user side interface, goes out from first line of a couplet port.In other hung type knot In structure, main Switching Module needs to increase routing forwarding presentation in up direction, and data are hung port by side and are 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 message turns Hair mode does not change, and it is compatible to realize basic function and structure.
Based on identical inventive concept, the present invention proposes a kind of message forwarding method, sets applied to Provider Edge Standby PE, this method comprises:
Step 41 carries out multiprotocol label switching MPLS encapsulation to the ether network packet received from user side interface, is The ether network packet is sent to the first side extension port after successively adding two layers of private network VC label, public network LSP label and public network head;
Step 42 hangs the MPLS message that port reception is encapsulated by MPLS from the first side, in pop-up two layers of head of public network and public affairs After net LSP label, two layers of gre tunneling head, IP packet head and public network head, the MPLS that will be received are successively increased on private network VC label Message is encapsulated as IP GRE message, and hangs port on the second side and send the IP GRE message;Wherein, IP packet when GRE is encapsulated Source IP address and purpose IP address in head are determined according to preset public network LSP label and the corresponding relationship of IP address;
Step 43 is hung after port receives the IP GRE message from the second side, according to the purpose in the IP packet head IP address searches route forwarding table, determines corresponding first line of a couplet port, and the IP GRE message is forwarded to 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, this method comprises:
Step 51 receives IP GRE message from first line of a couplet port, and is forwarded to the second side and hangs port;
Step 52 hangs the IP GRE message progress GRE decapsulation that port receives to from the second side, pops up two layers of public network Head, IP packet head and gre tunneling head, successively increase two layers of head of public network LSP label and public network on private network VC label;And it will be described IP GRE message after decapsulation is forwarded to the first side and hangs port;Wherein, increased public network LSP label is root when GRE is decapsulated It is determined according to the corresponding relationship of IP address in preset public network LSP label and IP packet head;
Step 53 hangs the message after port receives GRE decapsulation from the first side, removes private network VC label, public network LSP mark Label and two layers of head of public network, are descapsulated into ether network packet and are sent to user side interface.
In conclusion the message forwarding method and device of the embodiment of the present invention one and embodiment two, compatible existing PTN/ IPRAN equipment realizes MPLS data in an ip network saturating by way of exchanging public network LSP label and the head IP GRE Bright transmission avoids changing existing hardware as far as possible, software configuration, reduces cost.In addition, it is necessary to explanation, due to up direction Message length becomes larger, and bandwidth increases accordingly, therefore uplink message is stored in either internally or externally caching, to realize burst number According to traffic shaping, avoid generating a large amount of packet losses because bandwidth is insufficient.Lead to simultaneously when bandwidth is continuously maintained in line speed Transmitted traffic control message is crossed to avoid cache overflow and packet loss phenomenon.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the present invention.

Claims (8)

1. a kind of apparatus for forwarding message, it is applied to service provider edge devices PE, which is characterized in that the device includes:
Main Switching Module carries out multiprotocol label switching MPLS encapsulation to the ether network packet received from user side interface, is After the ether network packet successively adds two layers of private network virtual link VC label, public network label switching path LSP label and public network head It is sent to first line of a couplet port;
Generic route encapsulation GRE module receives the MPLS message encapsulated by MPLS from first line of a couplet port, in pop-up two layers of head of public network After public network LSP label, two layers of gre tunneling head, IP packet head and public network head are successively increased on private network VC label, by what is received MPLS message is encapsulated as IP GRE message, and sends the IP GRE message in physical port;Wherein, IP packet when GRE is encapsulated Source IP address and purpose IP address in head are determined according to preset public network LSP label and the corresponding relationship of IP address.
2. a kind of apparatus for forwarding message, it is applied to service provider edge devices PE, which is characterized in that the device includes:
GRE module carries out GRE decapsulation to the IP GRE message received from physical port, pops up public network two layers of head, IP packet Head and gre tunneling head, successively increase two layers of head of public network LSP label and public network on private network VC label;And it will be after the decapsulation IP GRE message be forwarded to first line of a couplet port;Wherein, increased public network LSP label is according to preset public network when GRE is decapsulated The corresponding relationship of IP address determines in LSP label and IP packet head;
Main Switching Module, from first line of a couplet port receive GRE decapsulation after message, remove private network VC label, 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, it is applied to service provider edge devices PE, which is characterized in that the device includes:
Main Switching Module carries out multiprotocol label switching MPLS encapsulation to the ether network packet received from user side interface, is The ether network packet is sent to the first side extension port after successively adding two layers of private network VC label, public network LSP label and public network head;
GRE module hangs port from the first side and receives the MPLS message encapsulated by MPLS, in pop-up two layers of head of public network and public network After LSP label, two layers of gre tunneling head, IP packet head and public network head are successively increased on private network VC label, and the MPLS received is reported Text is encapsulated as IP GRE message, and hangs port on the second side and send the IP GRE message;Wherein, IP packet head when GRE is encapsulated In source IP address and purpose IP address be to be determined according to preset public network LSP label and the corresponding relationship of IP address;
Main Switching Module, after receiving the IP GRE message from the second side extension port, according to the purpose in the IP packet head IP address searches route forwarding table, determines corresponding first line of a couplet port, and the IP GRE message is forwarded to the first line of a couplet port.
4. a kind of apparatus for forwarding message, it is applied to service provider edge devices PE, which is characterized in that the device includes:
Main Switching Module receives IP GRE message from first line of a couplet port, and is forwarded to the second side and hangs port;
GRE module carries out GRE decapsulation to the IP GRE message that port receives is hung from the second side, pops up public network two layers of head, IP Heading and gre tunneling head successively increase two layers of head of public network LSP label and public network on private network VC label;And by the deblocking IP GRE message after dress is forwarded to the first side and hangs port;Wherein, increased public network LSP label is according to pre- when GRE is decapsulated If public network LSP label and IP packet head in IP address corresponding relationship determine;
Main Switching Module hangs the message after port receives GRE decapsulation from the first side, removes private network VC label, public network LSP mark Label and two layers of head of public network, are descapsulated into ether network packet and are sent to user side interface.
5. a kind of message forwarding method is applied to service provider edge devices PE, which is characterized in that this method comprises:
Multiprotocol label switching MPLS encapsulation is carried out to the ether network packet received from user side interface, is the Ethernet report Text is sent to first line of a couplet port after successively adding two layers of private network VC label, public network LSP label and public network head;
The MPLS message encapsulated by MPLS is received from first line of a couplet port, after pop-up two layers of head of public network and public network LSP label, in private Two layers of gre tunneling head, IP packet head and public network head are successively increased on net VC label, the MPLS message received is encapsulated as IP GRE Message, and the IP GRE message is sent in physical port;Wherein, source IP address and purpose when GRE is encapsulated in IP packet head IP address is determined according to preset public network LSP label and the corresponding relationship of IP address.
6. a kind of message forwarding method is applied to service provider edge devices PE, which is characterized in that this method comprises:
GRE decapsulation, pop-up two layers of head of public network, IP packet head and GRE are carried out to the IP GRE message received from physical port Tunnel head successively increases two layers of head of public network LSP label and public network on private network VC label;And by the IP GRE after the decapsulation Message is forwarded to first line of a couplet port;Wherein, when GRE is decapsulated increased public network LSP label be according to preset public network LSP label with The corresponding relationship of IP address determines in IP packet head;
The message after GRE decapsulation is received from first line of a couplet port, removes two layers of private network VC label, public network LSP label and public network head, 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, which is characterized in that this method comprises:
Multiprotocol label switching MPLS encapsulation is carried out to the ether network packet received from user side interface, is the Ethernet report Text is sent to the first side extension port after successively adding two layers of private network VC label, public network LSP label and public network head;
Port, which is hung, from the first side receives the MPLS message encapsulated by MPLS, after pop-up two layers of head of public network and public network LSP label, Two layers of gre tunneling head, IP packet head and public network head are successively increased on private network VC label, and the MPLS message received is encapsulated as IP GRE message, and hang port on the second side and send the IP GRE message;Wherein, source IP address when GRE is encapsulated in IP packet head It with purpose IP address is determined according to preset public network LSP label and the corresponding relationship of IP address;
After receiving the IP GRE message from the second side extension port, road is searched according to the purpose IP address in the IP packet head By forwarding table, corresponding first line of a couplet port is determined, and the IP GRE message is forwarded to the first line of a couplet port.
8. a kind of message forwarding method is applied to service provider edge devices PE, which is characterized in that this method comprises:
IP GRE message is received from first line of a couplet port, and is forwarded to the second side and hangs port;
Carry out GRE decapsulation to the IP GRE message that receives of port is hung from the second side, pop-up two layers of head of public network, IP packet head and Gre tunneling head successively increases two layers of head of public network LSP label and public network on private network VC label;And by the IP after the decapsulation GRE message is forwarded to the first side and hangs port;Wherein, increased public network LSP label is according to preset public network when GRE is decapsulated The corresponding relationship of IP address determines in LSP label and IP packet head;
The message after port receives GRE decapsulation is hung from the first side, removes private network VC label, 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 CN106789657A (en) 2017-05-31
CN106789657B true 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)

Families Citing this family (8)

* 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
CN107770071B (en) * 2017-10-19 2021-03-23 盛科网络(苏州)有限公司 OpenFlow-based MPLS message processing 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
CN114666269B (en) * 2022-04-11 2024-05-14 浪潮思科网络科技有限公司 VLAN message forwarding method, device, equipment and medium based on IP subnet

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 华为技术有限公司 A method of routing and forwarding in the 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 华为技术有限公司 A method of routing and forwarding in the 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

Also Published As

Publication number Publication date
CN106789657A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
CN106789657B (en) A kind of message forwarding method and device
CN111385206B (en) Message forwarding method, network system, related equipment and computer storage medium
US8867349B2 (en) Regulation of network traffic in virtual private networks
US7486674B2 (en) Data mirroring in a service
US9167501B2 (en) Implementing a 3G packet core in a cloud computer with openflow data and control planes
US8295278B2 (en) Systems and methods for pseudowire-in-pseudowire to transport pseudowire payload across packet switched networks
EP3140964B1 (en) Implementing a 3g packet core in a cloud computer with openflow data and control planes
EP1713197A1 (en) A method for implementing the virtual leased line
US9531663B2 (en) Method and device for storing and sending MAC address entry, and system
CN111510378A (en) EVPN packet processing method, device and system
WO2008092357A1 (en) A method and device for establishing a pseudo wire tunnel and transmitting message using it
US20100118882A1 (en) Method, Apparatus, and System For Packet Transmission
US11563680B2 (en) Pseudo wire load sharing method and device
CN112583718B (en) SRv6 message transmission method, system, equipment and medium in SRoU scene
CN105553810A (en) Method and device for forwarding special line service packet
CN103379033B (en) Message forwarding method and packet optical transport network equipment
CN110199504B (en) Method and system for enhanced use of switching fabric within central office delivery point
CN109462558A (en) A kind of pair of MPLS message carries out the device of GRE encapsulation process
US9473399B2 (en) System and method for aggregating pseudowires
WO2014183579A1 (en) Data forwarding control method and logic switch
CN214799523U (en) Flow guiding system
CN111182016B (en) PPPoE dialing message transmission method and device
WO2018158615A1 (en) Method and apparatus for enabling the creation of a point-to-multipoint label switched path multicast distribution tree for a given ip multicast stream
EP2182749B1 (en) Method and device for forwarding data transport frames
WO2023207227A1 (en) Router advertisement message processing method, apparatus, storage medium and electronic apparatus

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