WO2016188201A1 - Packet processing method and device - Google Patents

Packet processing method and device Download PDF

Info

Publication number
WO2016188201A1
WO2016188201A1 PCT/CN2016/076535 CN2016076535W WO2016188201A1 WO 2016188201 A1 WO2016188201 A1 WO 2016188201A1 CN 2016076535 W CN2016076535 W CN 2016076535W WO 2016188201 A1 WO2016188201 A1 WO 2016188201A1
Authority
WO
WIPO (PCT)
Prior art keywords
vlan
packet
forwarding
message
user
Prior art date
Application number
PCT/CN2016/076535
Other languages
French (fr)
Chinese (zh)
Inventor
林宁
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016188201A1 publication Critical patent/WO2016188201A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols

Definitions

  • the present invention relates to the field of communications, and in particular to a packet processing method and apparatus.
  • the virtual local area network (VLAN) security function QINQ message is applied to the number of vlans.
  • the two-layer virtual LAN label vlan tag is used to distinguish The vlan tag of the private network of the user side of the packet and the vlan tag of the public network of the network side are forwarded by the outer vlan tag on the public network when the network forwards the packet, and the inner vlan tag of the private network side is public.
  • the network forwards down to the private network it is used to distinguish different service traffic.
  • the device performs Layer 3 forwarding
  • the inner vlan tag of the packet will be stripped off at the forwarding exit because the chip does not recognize the packet.
  • Layer vlan tag Therefore, the vlan tag attribute of the packet on the egress port is determined by the vlan tag attribute of the egress interface. The forwarding mode of the internal user of the QINQ packet is discarded when the Layer 3 forwarding is performed.
  • the QINQ packet in the related art is generally applied in a Layer 2 network or a Layer 2 Virtual Private Network (VPN) network for forwarding.
  • VPN Virtual Private Network
  • the user-side packet carries the user-side vlan tag C-vlan to enter the public network.
  • the public network forwards the packet to the public network side vlan tag P-vlan in the public network.
  • the vlan tag P-vlan on the public network side is stripped off, and the user side vlan tag C-vlan is used for forwarding.
  • the public network side forwarding of the QINQ message is generally performed in the Layer 2 network or the Layer 2 VPN network.
  • the private network vlan on the user side is performed.
  • the tag that is, the vlan tag originally carried by the user
  • the current general QINQ reference does not perform Layer 3 forwarding on the public network side.
  • the Layer 3 forwarding of the packet is performed in the related art, the original vlan tag carried by the user is lost.
  • the invention provides a message processing method and device, which can solve the problem that the vlan tag originally carried by the user is lost when the three-layer forwarding of the packet is performed in the related art.
  • a packet processing method including: a forwarding device receives a Layer 3 forwarded packet; and the forwarding device pairs the packet according to at least a pre-configured virtual local area network label vlan tag retention option. Processing is performed, wherein the hold option is used to indicate that the vlan tag originally carried by the user in the message is maintained.
  • the forwarding by the forwarding device, processing the packet according to the pre-configured virtual local area network label vlan tag holding option, the forwarding device processing the packet according to the holding option and the translation policy, where The translation policy is used to indicate that the public network side P-vlan tag in the message is processed.
  • the translation policy is set on the forwarding device according to a location where the forwarding device is located in the network.
  • the forwarding device processes the packet according to the pre-configured vlan tag retention option and the translation policy, including: And adding the P-vlan to the message according to the translation policy, while maintaining the vlan tag originally carried by the user in the packet.
  • the forwarding device processes the packet according to the pre-configured vlan tag retention option and the translation policy, including: The P-vlan in the packet is replaced according to the translation policy, while the vlan tag originally carried by the user in the packet is maintained.
  • the forwarding device processes the packet according to the pre-configured vlan tag retention option and the translation policy, including: While the vlan tag originally carried by the user in the packet is kept, the P-vlan in the packet is stripped according to the translation policy.
  • a packet processing apparatus is provided.
  • the apparatus is applied to a forwarding device, and includes: a receiving module configured to receive a Layer 3 forwarded packet; and a processing module configured to be at least according to a pre-
  • the configured virtual local area network tag vlan tag keeps the option to process the message, where the hold option is used to indicate that the vlan tag originally carried by the user in the message is maintained.
  • the processing module includes: a processing unit, configured to process the packet according to the holding option and a translation policy, where the translation policy is used to indicate that the public network side in the packet is The P-vlan tag is processed.
  • the translation policy is set on the forwarding device according to a location where the forwarding device is located in the network.
  • the processing unit includes: while maintaining a vlan tag originally carried by the user in the packet, Adding the P-vlan to the message according to the translation policy.
  • the processing unit includes: while maintaining a vlan tag originally carried by the user in the packet, according to the The translation policy performs a replacement process on the P-vlan in the message.
  • the processing unit includes: while maintaining the vlan tag originally carried by the user in the packet, according to The translation strategy strips the said The P-vlan in the message.
  • the forwarding device receives the packet of the Layer 3 forwarding; the forwarding device processes the packet according to at least the pre-configured virtual local area network label vlan tag holding option, wherein the holding option is used to indicate the pair
  • the vlan tag originally carried by the user in the packet is maintained, which solves the problem that the vlan tag originally carried by the user is lost when the packet is forwarded in the layer 3, and the packet is implemented.
  • the effect of the integrity of the vlag tag message originally carried by the user is ensured on the basis of the Layer 3 forwarding.
  • FIG. 1 is a flowchart of a message processing method according to an embodiment of the present invention.
  • FIG. 2 is a block diagram showing the structure of a message processing apparatus according to an embodiment of the present invention.
  • FIG. 3 is a structural block diagram of a processing module 24 in a message processing apparatus according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of Layer 3 forwarding of a QINQ packet in a network according to an embodiment of the present invention
  • FIG. 5 is a flow chart showing the steps of performing three-layer forwarding of a QINQ message in a forwarding device according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a packet processing method according to an embodiment of the present invention. As shown in FIG. 1, the process includes the following steps:
  • Step S102 The forwarding device receives the packet that is forwarded by the third layer.
  • step S104 the forwarding device processes the packet according to the pre-configured virtual local area network label vlan tag holding option, where the holding option is used to indicate that the vlan tag originally carried by the user in the packet is maintained.
  • the above-mentioned steps are used to maintain the vlan tag originally carried by the user in the packet according to the pre-configured vlan tag hold option, so that the user does not appear when the packet is forwarded in the third layer.
  • the problem of the original vlan tag being lost is solved, which solves the problem that the vlan tag originally carried by the user is lost when the packet is forwarded in the layer 3, and the three-layer forwarding of the packet is achieved.
  • the effect of the integrity of the vlag tag message originally carried by the user is guaranteed.
  • the method in the foregoing embodiment is applicable to a chip that supports the inner layer or the outer layer vlan tag while supporting the three-layer forwarding message.
  • the inner vlan tag can be directly maintained (ie, the user
  • the original vlan tag can be used to control the outer vlan tag (ie, the public network side P-vlan tag) by maintaining the inner vlan tag and directly passing the routing table behavior of the Layer 3 forwarding. Add, replace, and strip.
  • the above hold option may have the function of maintaining the vlan tag originally carried by the user, the hold option may also maintain the vlan tag of the inner and outer layers of the message when the layer 3 is forwarded.
  • the auxiliary vlan translation function (ie, the translation policy) is also required to process the outer vlan tag, so that the C-vlan of the user side (that is, the vlan tag originally carried by the user) can be maintained. , can complete the normal three-layer forwarding of P-vlan.
  • the forwarding device processes the packet according to the pre-configured virtual local area network label vlan tag hold option, and the forwarding device processes the message according to the foregoing hold option and the translation policy, where The translation policy is used to instruct the processing of the public network side P-vlan tag in the above message.
  • the P-vlan can be different in different forwarding devices.
  • the foregoing forwarding device may include three types, the first type is a device that forwards packets to the network side, the second type is a device that forwards packets internally, and the third type is that the network side forwards the packet to the user side. device.
  • the translation policy may be set on the forwarding device according to the location of the forwarding device in the network, that is, the translation policy is different for different types of forwarding devices.
  • the forwarding device when the forwarding device is a device that forwards a packet from the user side to the network side, the forwarding device processes the packet according to the pre-configured vlan tag retention option and the translation policy, including: The vlan tag originally carried by the user in the above packet is maintained, and the P-vlan is added to the packet according to the translation policy.
  • the packet is forwarded from the user side to the forwarding device, and the forwarding device is provided with a vlan tag holding function of the Layer 3 forwarding.
  • the configuration corresponds to the C-
  • the vlan translation table of the vlan range adds a vlan tag of the corresponding egress three-layer interface to the vlan of the C-vlan range, that is, the C-vlan of the user side is maintained, and the C-vlan is maintained at the same time. Add a layer of P-vlan to the message on the exit.
  • the forwarding device when the forwarding device is a device that forwards a packet internally, the forwarding device processes the packet according to the pre-configured vlan tag reservation option and the translation policy, including: in the packet The original vlan tag carried by the user is maintained, and the P-vlan carried in the packet is replaced according to the translation policy. That is, when the forwarding device forwards the packet internally on the network side, the forwarding device does not care about the C-vlan of the user side. Therefore, it is not necessary to configure any information related to the C-vlan in the forwarding device.
  • the route forwarding vlan tag hold function is configured on the forwarding device, you only need to write the Layer 3 interface export information corresponding to a port to the vlan translation table based on the forwarding route on the forwarding device, as long as it hits the Layer 3 route forwarding.
  • the packet sent from this port will be replaced by the vlan translation as the vlan of the egress three-layer interface. This completes the C-vlan of the user and completes the Layer 3 forwarding according to the elan tag of the egress three-layer interface. P-vlan replacement.
  • the forwarding device when the forwarding device is a device that forwards a packet to the user side, the forwarding device processes the packet according to the pre-configured vlan tag retention option and the translation policy, including: While maintaining the vlan tag originally carried by the user in the packet, the P-vlan in the packet is stripped according to the above translation policy. That is to say, the packet enters the forwarding device from the network, and the forwarding device is provided with a layer 3 forwarding vlan tag holding function, and A vlan translation table corresponding to the C-vlan range is configured on the forwarding device, and the vlan translation table is used to strip the vlan of the C-vlan range from the outer vlan on the forwarding outlet. In this way, after the packet is forwarded through Layer 3, the P-vlan carried in the original packet is stripped off at the egress of the Layer 3 forwarding.
  • the main purpose of the embodiment of the present invention is to provide a vlan tag that is originally carried by the user, and a normal forwarding of the packet on the public network side.
  • the vlan tag carried by the user is not lost, and the P-vlan on the public network side is also processed based on the normal three-layer forwarding effect.
  • the vlan tag hold function needs to be set on the forwarding device when forwarding at the third layer.
  • the egress vlan translation table on the forwarding device needs to set the corresponding C-vlan translation policy and P-vlan translation policy according to the location of the forwarding device.
  • the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation.
  • the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
  • the optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods of various embodiments of the present invention.
  • a message processing device is also provided, which is used to implement the foregoing embodiments and preferred embodiments, and has not been described again.
  • the term "module” may implement a combination of software and/or hardware of a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
  • FIG. 2 is a structural block diagram of a message processing apparatus according to an embodiment of the present invention.
  • the message processing apparatus may be applied to a forwarding device, and the location of the forwarding device may be multiple.
  • the apparatus includes a receiving module 22 and a processing module 24, the apparatus being described below.
  • the receiving module 22 is configured to receive the three-layer forwarded message; the processing module 24 is connected to the receiving module 22, and is configured to process the packet according to at least the pre-configured virtual local area network tag vlan tag holding option, where The hold option is used to indicate that the vlan tag originally carried by the user in the message is maintained.
  • FIG. 3 is a structural block diagram of a processing module 24 in a message processing apparatus according to an embodiment of the present invention. As shown in FIG. 3, the processing module 24 includes a processing unit 32, which will be described below.
  • the processing unit 32 is configured to process the message according to the hold option and the translation policy, where the translation policy is used to instruct processing on the public network side P-vlan tag in the message.
  • the message When the message is processed, the message may be processed according to the hold option and the translation policy, where the translation policy may be set on the forwarding device according to the location of the forwarding device in the network.
  • the processing unit 32 includes: maintaining the vlan tag originally carried by the user in the packet. At the same time, P-vlan is added to the above message according to the translation strategy.
  • the processing unit 32 includes: while maintaining the vlan tag originally carried by the user in the packet, The P-vlan in the above message is replaced according to the translation policy.
  • the processing unit 32 includes: maintaining the vlan tag originally carried by the user in the packet. At the same time, the P-vlan in the above message is stripped according to the translation strategy.
  • a user packet carries the user-side C-vlan 100 to enter the network, and then passes through devices A, B, and C in the manner of Layer 3 routing forwarding.
  • the device A is a forwarding device that forwards packets from the user side to the network side, and is responsible for completing the action of adding the network side P-vlan 1001.
  • the device B is the internal forwarding device on the network side and is responsible for the normal Layer 3 forwarding.
  • the ingress Layer 3 interface vlan is P-vlan1001, and the vlan of the egress Layer 3 interface is P-vlan 1002.
  • the device C is a forwarding device that forwards packets to the user side, and is responsible for performing the action of stripping the P-vlan 1001.
  • the device A receives the data packet carrying a single-layer vlan tag packet of the original user-side C-vlan 100 (the vlan tag originally carried by the user), and the packet needs to be forwarded in three layers.
  • the option to forward the vlan tag is configured. Therefore, device A forwards the packet to the egress of the routing table, and keeps C-vlan 100 unchanged.
  • the vlan translation action of the service vlan 100 is configured to add a vlan, and the vlan to be added matches the vlan of the egress three-layer interface when the layer 3 is forwarded.
  • the data packet received by device A hits the vlan translation table at the exit, and the original layer vlan 100 is changed into two layers vlan, and the outer layer is P-vlan 1001 added by the vlan translation table, and the inner layer is Keep the original user side C-vlan 100.
  • the packet is forwarded from the user side to the network layer.
  • the user side vlan 100 is reserved and the outer network side vlan 1001 is added.
  • the device B has received the packets carrying the two VLANs.
  • the inner layer is the original user-side C-vlan 100. It is a layer of network side P-vlan 1001 added by device A.
  • the device B does not pay attention to the C-vlan on the user side, performs Layer 3 forwarding according to the Layer 3 forwarding information of the packet, and the Layer 3 forwarding route is also set with the vlan tag reservation flag.
  • the Layer 3 interface vlan of the egress is 1002.
  • the message hits the export vlan translation table, and the outer vlan tag is modified according to the vlan 1002 of the egress three-layer interface, that is, the original C-vlan does not change, and is still vlan 100, and the outer P-vlan 1001, after After forwarding, it becomes the Layer 3 interface vlan 1002 of the destination exit of the Layer 3 route forwarding.
  • the packet is forwarded at Layer 3 inside the network.
  • the user-side vlan 100 is still reserved.
  • the outer network side vlan is replaced by the vlan 1001 of the ingress Layer 3 interface and the vlan 1002 of the egress Layer 3 interface according to the effect of Layer 3 forwarding.
  • the device C receives the data packet, and the data packet carries the original user-side C-vlan 100 and the outer network side P-vlan 1002 that the device B replaces after completing the Layer 3 forwarding.
  • the device C forwards the packet to the egress of the routing table, and keeps the C-vlan 100 and the P-vlan 1002 unchanged.
  • the vlan translation action of the service vlan 100 is configured to strip the outer vlan (where a service vlan can be configured, and multiple services vlan can be configured to simultaneously strip the outer vlan).
  • the original outer vlan 1002 is stripped and restored to retain only the original user-side C-vlan message.
  • the Layer 3 forwarding of the packet from the network side to the user side is completed.
  • the original user side vlan 100 is reserved, and the outer network side vlan 1002 is stripped.
  • FIG. 4 is a schematic diagram of Layer 3 forwarding of a QINQ message in a network according to an embodiment of the present invention.
  • the user-side C-vlan is always maintained during the forwarding process, and the P-vlan is added, replaced, and stripped in order to complete the network side.
  • the action also needs to add, replace and strip the matching entries and actions in the export vlan translation table of the forwarding device, and complete the entire QINQ message in the three-layer network through the cooperative processing of the above steps. Normal forwarding.
  • FIG. 5 is a flowchart of a step of performing Layer 3 forwarding of a QINQ packet in a forwarding device according to an embodiment of the present invention. As shown in FIG. 5, the process includes the following steps:
  • Step S511 completing learning or setting of a routing table related to the QINQ service
  • Step S512 setting a vlan tag retention flag of the route forwarding related to the QINQ service
  • Step S513 setting a user-side vlan or a user-side vlan corresponding to a vlan translation table of a network side P-vlan to add a layer of vlan;
  • step S514 the setting is completed.
  • Step S521 completing learning or setting of a routing table related to the QINQ service
  • Step S522 setting a vlan tag retention flag of the route forwarding related to the QINQ service
  • Step S523 setting a replacement action of the vlan translation table between the vlan tag of the network-side ingress interface and the vlan tag of the egress three-layer interface;
  • step S524 the setting is completed.
  • Step S531 completing learning or setting of a routing table related to the QINQ service
  • Step S532 setting a vlan tag retention flag of the route forwarding related to the QINQ service
  • Step S533 setting the action of stripping the outer vlan of the vlan translation table corresponding to the user side vlan or some user side vlan;
  • step S534 the setting is completed.
  • the Vlan tag holding bit of the route forwarding and the processing method of the vlan translation table in the foregoing solution can make the QINQ message forwarding completely in the third layer.
  • the forwarding environment is supported, and the network side forwarding still does not affect the effect of QINQ packet forwarding on the user side vlan.
  • This technology can greatly enhance the network application capability of QINQ technology, that is, in addition to applying QINQ technology in L2 and L2VPN networks.
  • QINQ technology can also be applied in L3 routing networks.
  • the forwarding device can achieve the forwarding effect of retaining the user vlan and replacing the outer vlan in the case that the forwarding device does not support the Layer 3 forwarding of the QINQ.
  • the forwarding device can not only support Layer 2 forwarding of QINQ packets, but also implement Layer 3 forwarding similar to the effect of Layer 2 forwarding of QINQ. Therefore, the Layer 3 forwarding capability of the QINQ packet is enriched, the packet forwarding application of the QINQ is improved, and the QINQ packet processing capability of the switch or the PTN device is enhanced.
  • each of the above modules may be implemented by software or hardware.
  • the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the modules are located in multiple At In the processor.
  • Embodiments of the present invention also provide a storage medium.
  • the foregoing storage medium may be configured to store program code for performing the following steps:
  • the forwarding device receives the packet that is forwarded by the third layer.
  • the forwarding device processes the packet according to the pre-configured virtual local area network label vlan tag retention option, where the hold option is used to indicate that the vlan tag originally carried by the user in the packet is maintained.
  • the foregoing storage medium may include, but is not limited to, a USB flash drive, a Read-Only Memory (ROM), and a Random Access Memory (RAM).
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the packet processing method and apparatus have the following beneficial effects: the following causes the loss of the vlan tag originally carried by the user when performing the Layer 3 forwarding of the packet in the related art.
  • the problem is that the integrity of the vlag tag message originally carried by the user is ensured on the basis of implementing the Layer 3 forwarding of the packet.

Abstract

Provided are a packet processing method and device. The method comprises: receiving, by a forwarding apparatus, a layer 3 forwarded packet; and processing, by the forwarding apparatus and at least according to a pre-configured virtual local area network (vlan) tag keeping option, the packet, wherein the keeping option is configured to indicate whether to keep the original user vlan tag carried in the packet. The present invention addresses the problem existing in the related art of the loss of a carried original user vlan tag during layer 3 forwarding of a packet, and ensures packet integrity of the carried original user vlan tag with implementation of layer 3 forwarding of the packet.

Description

报文处理方法及装置Message processing method and device 技术领域Technical field
本发明涉及通信领域,具体而言,涉及一种报文处理方法及装置。The present invention relates to the field of communications, and in particular to a packet processing method and apparatus.
背景技术Background technique
一般情况下,双重虚拟局域网(Virtual Local Area Network,简称为vlan)安全功能QINQ报文应用于vlan数量不够,私网vlan和公网vlan出现冲突的时候,用两层虚拟局域网标签vlan tag来区分报文的用户侧私网vlan tag和网络侧的公网vlan tag,利用此技术在网络中进行转发时,在公网上使用外层vlan tag进行转发,而私网侧的内层vlan tag在公网转发下行到私网时,用于区分不同的业务流量。In general, the virtual local area network (VLAN) security function QINQ message is applied to the number of vlans. When the private network vlan and the public network vlan conflict, the two-layer virtual LAN label vlan tag is used to distinguish The vlan tag of the private network of the user side of the packet and the vlan tag of the public network of the network side are forwarded by the outer vlan tag on the public network when the network forwards the packet, and the inner vlan tag of the private network side is public. When the network forwards down to the private network, it is used to distinguish different service traffic.
但是,由于设备进行三层转发的时候,一般情况下QINQ报文经过三层转发的时候,报文的内层vlan tag会在转发出口被剥离,因为一般情况下芯片并不识别报文的内层vlan tag。因此,报文在转发出口的vlan tag属性会由出口的三层接口的vlan tag属性来决定。这样的转发方式,会使得QINQ报文的内层用户vlan信息在进行三层转发的时候被丢弃掉。However, when the device performs Layer 3 forwarding, in general, when the QINQ packet is forwarded through Layer 3, the inner vlan tag of the packet will be stripped off at the forwarding exit because the chip does not recognize the packet. Layer vlan tag. Therefore, the vlan tag attribute of the packet on the egress port is determined by the vlan tag attribute of the egress interface. The forwarding mode of the internal user of the QINQ packet is discarded when the Layer 3 forwarding is performed.
因此,相关技术中QINQ报文一般应用在二层的网络或者二层虚拟专用网络(Virtual Private Network,简称为VPN)网络中进行转发。Therefore, the QINQ packet in the related art is generally applied in a Layer 2 network or a Layer 2 Virtual Private Network (VPN) network for forwarding.
目前普遍的设备进行QINQ报文转发的流程如下:The process of forwarding QINQ packets by devices is as follows:
1、用户侧报文携带用户侧vlan tag C-vlan进入公网。1. The user-side packet carries the user-side vlan tag C-vlan to enter the public network.
2、公网将报文打上公网侧vlan tag P-vlan在公网内进行转发。2. The public network forwards the packet to the public network side vlan tag P-vlan in the public network.
3、到达目的私网侧,将公网侧vlan tag P-vlan剥离,继续使用用户侧vlan tag C-vlan进行转发。3. At the destination private network side, the vlan tag P-vlan on the public network side is stripped off, and the user side vlan tag C-vlan is used for forwarding.
由此可见,目前的技术中,QINQ报文的公网侧转发一般都是在二层网络或二层VPN网络中进行,因为一般情况下,一旦进行了三层转发,用户侧的私网vlan tag(即,用户原始携带的vlan tag)就会丢失,因此,目前的一般QINQ引用,在公网侧是不会进行三层转发的。针对相关技术中存在的在进行报文的三层转发时,会造成用户原始携带的vlan tag丢失的问题。Therefore, in the current technology, the public network side forwarding of the QINQ message is generally performed in the Layer 2 network or the Layer 2 VPN network. Generally, once the Layer 3 forwarding is performed, the private network vlan on the user side is performed. The tag (that is, the vlan tag originally carried by the user) is lost. Therefore, the current general QINQ reference does not perform Layer 3 forwarding on the public network side. When the Layer 3 forwarding of the packet is performed in the related art, the original vlan tag carried by the user is lost.
针对相关技术中存在的在进行报文的三层转发时,会造成用户原始携带的vlan tag丢失的问题,目前尚未提出有效的解决方案。When the Layer 3 forwarding of packets is performed in the related art, the original vlan tag carried by the user is lost. Currently, no effective solution has been proposed.
发明内容Summary of the invention
本发明提供了一种报文处理方法及装置,以至少解决相关技术中存在的在进行报文的三层转发时,会造成用户原始携带的vlan tag丢失的问题。 The invention provides a message processing method and device, which can solve the problem that the vlan tag originally carried by the user is lost when the three-layer forwarding of the packet is performed in the related art.
根据本发明的一个方面,提供了一种报文处理方法,包括:转发设备接收到三层转发的报文;所述转发设备至少根据预先配置的虚拟局域网标签vlan tag保持选项对所述报文进行处理,其中,所述保持选项用于指示对所述报文中的用户原始携带的vlan tag进行保持。According to an aspect of the present invention, a packet processing method is provided, including: a forwarding device receives a Layer 3 forwarded packet; and the forwarding device pairs the packet according to at least a pre-configured virtual local area network label vlan tag retention option. Processing is performed, wherein the hold option is used to indicate that the vlan tag originally carried by the user in the message is maintained.
可选地,所述转发设备至少根据预先配置的虚拟局域网标签vlan tag保持选项对所述报文进行处理包括:所述转发设备根据所述保持选项和翻译策略对所述报文进行处理,其中,所述翻译策略用于指示对所述报文中的公网侧P-vlan标签进行处理。Optionally, the forwarding, by the forwarding device, processing the packet according to the pre-configured virtual local area network label vlan tag holding option, the forwarding device processing the packet according to the holding option and the translation policy, where The translation policy is used to indicate that the public network side P-vlan tag in the message is processed.
可选地,所述翻译策略是根据所述转发设备在网络中所处的位置设置在所述转发设备上的。Optionally, the translation policy is set on the forwarding device according to a location where the forwarding device is located in the network.
可选地,在所述转发设备为从用户侧向网络侧转发报文的设备的情况下,所述转发设备根据预先配置的vlan tag保留选项和翻译策略对所述报文进行处理包括:在对所述报文中的用户原始携带的vlan tag进行保持的同时,根据所述翻译策略在所述报文中添加所述P-vlan。Optionally, in the case that the forwarding device is a device that forwards a packet from the user side to the network side, the forwarding device processes the packet according to the pre-configured vlan tag retention option and the translation policy, including: And adding the P-vlan to the message according to the translation policy, while maintaining the vlan tag originally carried by the user in the packet.
可选地,在所述转发设备为网络侧内部转发报文的设备的情况下,所述转发设备根据预先配置的vlan tag保留选项和翻译策略对所述报文进行处理包括:在对所述报文中的用户原始携带的vlan tag进行保持的同时,根据所述翻译策略对所述报文中的所述P-vlan进行替换处理。Optionally, in the case that the forwarding device is a device that forwards a packet internally, the forwarding device processes the packet according to the pre-configured vlan tag retention option and the translation policy, including: The P-vlan in the packet is replaced according to the translation policy, while the vlan tag originally carried by the user in the packet is maintained.
可选地,在所述转发设备为网络侧向用户侧转发报文的设备的情况下,所述转发设备根据预先配置的vlan tag保留选项和翻译策略对所述报文进行处理包括:在对所述报文中的用户原始携带的vlan tag进行保持的同时,根据所述翻译策略剥离所述报文中的所述P-vlan。Optionally, in the case that the forwarding device is a device that forwards a packet to the user side, the forwarding device processes the packet according to the pre-configured vlan tag retention option and the translation policy, including: While the vlan tag originally carried by the user in the packet is kept, the P-vlan in the packet is stripped according to the translation policy.
根据本发明的另一方面,提供了一种报文处理装置,所述装置应用于转发设备中,包括:接收模块,设置为接收到三层转发的报文;处理模块,设置为至少根据预先配置的虚拟局域网标签vlan tag保持选项对所述报文进行处理,其中,所述保持选项用于指示对所述报文中的用户原始携带的vlan tag进行保持。According to another aspect of the present invention, a packet processing apparatus is provided. The apparatus is applied to a forwarding device, and includes: a receiving module configured to receive a Layer 3 forwarded packet; and a processing module configured to be at least according to a pre- The configured virtual local area network tag vlan tag keeps the option to process the message, where the hold option is used to indicate that the vlan tag originally carried by the user in the message is maintained.
可选地,所述处理模块包括:处理单元,设置为根据所述保持选项和翻译策略对所述报文进行处理,其中,所述翻译策略用于指示对所述报文中的公网侧P-vlan标签进行处理。Optionally, the processing module includes: a processing unit, configured to process the packet according to the holding option and a translation policy, where the translation policy is used to indicate that the public network side in the packet is The P-vlan tag is processed.
可选地,所述翻译策略是根据所述转发设备在网络中所处的位置设置在所述转发设备上的。Optionally, the translation policy is set on the forwarding device according to a location where the forwarding device is located in the network.
可选地,在所述转发设备为从用户侧向网络侧转发报文的设备的情况下,所述处理单元包括:在对所述报文中的用户原始携带的vlan tag进行保持的同时,根据所述翻译策略在所述报文中添加所述P-vlan。Optionally, in a case that the forwarding device is a device that forwards a packet from the user side to the network side, the processing unit includes: while maintaining a vlan tag originally carried by the user in the packet, Adding the P-vlan to the message according to the translation policy.
可选地,在所述转发设备为网络侧内部转发报文的设备的情况下,所述处理单元包括:在对所述报文中的用户原始携带的vlan tag进行保持的同时,根据所述翻译策略对所述报文中的所述P-vlan进行替换处理。Optionally, in a case that the forwarding device is a device that forwards a packet internally, the processing unit includes: while maintaining a vlan tag originally carried by the user in the packet, according to the The translation policy performs a replacement process on the P-vlan in the message.
可选地,在所述转发设备为网络侧向用户侧转发报文的设备的情况下,所述处理单元包括:在对所述报文中的用户原始携带的vlan tag进行保持的同时,根据所述翻译策略剥离所述 报文中的所述P-vlan。Optionally, in a case that the forwarding device is a device that forwards a packet to the user side, the processing unit includes: while maintaining the vlan tag originally carried by the user in the packet, according to The translation strategy strips the said The P-vlan in the message.
通过本发明,采用转发设备接收到三层转发的报文;所述转发设备至少根据预先配置的虚拟局域网标签vlan tag保持选项对所述报文进行处理,其中,所述保持选项用于指示对所述报文中的用户原始携带的vlan tag进行保持,解决了相关技术中存在的在进行报文的三层转发时,会造成用户原始携带的vlan tag丢失的问题,达到了在实现报文的三层转发的基础上保证了用户原始携带的vlag tag报文的完整性的效果。According to the present invention, the forwarding device receives the packet of the Layer 3 forwarding; the forwarding device processes the packet according to at least the pre-configured virtual local area network label vlan tag holding option, wherein the holding option is used to indicate the pair The vlan tag originally carried by the user in the packet is maintained, which solves the problem that the vlan tag originally carried by the user is lost when the packet is forwarded in the layer 3, and the packet is implemented. The effect of the integrity of the vlag tag message originally carried by the user is ensured on the basis of the Layer 3 forwarding.
附图说明DRAWINGS
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the invention, and are intended to be a part of the invention. In the drawing:
图1是根据本发明实施例的报文处理方法的流程图;1 is a flowchart of a message processing method according to an embodiment of the present invention;
图2是根据本发明实施例的报文处理装置的结构框图;2 is a block diagram showing the structure of a message processing apparatus according to an embodiment of the present invention;
图3是根据本发明实施例的报文处理装置中处理模块24的结构框图;FIG. 3 is a structural block diagram of a processing module 24 in a message processing apparatus according to an embodiment of the present invention; FIG.
图4是根据本发明实施例的QINQ报文在网络中的三层转发示意图;4 is a schematic diagram of Layer 3 forwarding of a QINQ packet in a network according to an embodiment of the present invention;
图5是根据本发明实施例的QINQ报文在转发设备中进行三层转发的步骤流程图。FIG. 5 is a flow chart showing the steps of performing three-layer forwarding of a QINQ message in a forwarding device according to an embodiment of the present invention.
具体实施方式detailed description
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The invention will be described in detail below with reference to the drawings in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It is to be understood that the terms "first", "second" and the like in the specification and claims of the present invention are used to distinguish similar objects, and are not necessarily used to describe a particular order or order.
在本发明实施例中提供了一种报文处理方法,图1是根据本发明实施例的报文处理方法的流程图,如图1所示,该流程包括如下步骤:A packet processing method is provided in the embodiment of the present invention. FIG. 1 is a flowchart of a packet processing method according to an embodiment of the present invention. As shown in FIG. 1, the process includes the following steps:
步骤S102,转发设备接收到三层转发的报文;Step S102: The forwarding device receives the packet that is forwarded by the third layer.
步骤S104,该转发设备至少根据预先配置的虚拟局域网标签vlan tag保持选项对该报文进行处理,其中,该保持选项用于指示对报文中的用户原始携带的vlan tag进行保持。In step S104, the forwarding device processes the packet according to the pre-configured virtual local area network label vlan tag holding option, where the holding option is used to indicate that the vlan tag originally carried by the user in the packet is maintained.
通过上述步骤,在对报文进行三层转发时,根据预先配置的vlan tag保持选项对报文中的用户原始携带的vlan tag进行保持,从而在进行报文的三层转发时不会出现用户原始携带的vlan tag丢失的问题,进而解决了相关技术中存在的在进行报文的三层转发时,会造成用户原始携带的vlan tag丢失的问题,达到了在实现报文的三层转发的基础上保证了用户原始携带的vlag tag报文的完整性的效果。 The above-mentioned steps are used to maintain the vlan tag originally carried by the user in the packet according to the pre-configured vlan tag hold option, so that the user does not appear when the packet is forwarded in the third layer. The problem of the original vlan tag being lost is solved, which solves the problem that the vlan tag originally carried by the user is lost when the packet is forwarded in the layer 3, and the three-layer forwarding of the packet is achieved. The effect of the integrity of the vlag tag message originally carried by the user is guaranteed.
上述实施例中的方法适用于在某些支持三层转发报文的同时进行指定内层或外层vlan tag保持的芯片上,在该类芯片中,可以直接保持内层vlan tag(即,用户原始携带的vlan tag),即可以不需要翻译策略进行辅助,通过保持内层vlan tag的方法,直接通过三层转发的路由表行为来控制外层vlan tag(即,公网侧P-vlan标签)的添加,替换以及剥离。同时,还存在另外一种情况,由于上述保持选项可以有保持用户原始携带的vlan tag的功能,但是该保持选项也有可能是同时保持了三层转发时的报文的内外层的vlan tag,因此在转发设备的出口处还需要辅助vlan翻译功能(即,翻译策略)对外层vlan tag进行处理,这样,就可以做到既保持了用户侧的C-vlan(即,用户原始携带的vlan tag),又可以完成P-vlan的正常三层转发。在一个可选的实施例中,上述转发设备至少根据预先配置的虚拟局域网标签vlan tag保持选项对报文进行处理包括:该转发设备根据上述保持选项和翻译策略对报文进行处理,其中,该翻译策略用于指示对上述报文中的公网侧P-vlan标签进行处理。该P-vlan在不同的转发设备中可以是不同的。上述的转发设备可以包括三类,第一类是用户侧向网络侧转发报文的设备,第二类是网络侧内部转发报文的设备,第三类是网络侧向用户侧转发报文的设备。The method in the foregoing embodiment is applicable to a chip that supports the inner layer or the outer layer vlan tag while supporting the three-layer forwarding message. In the chip, the inner vlan tag can be directly maintained (ie, the user The original vlan tag can be used to control the outer vlan tag (ie, the public network side P-vlan tag) by maintaining the inner vlan tag and directly passing the routing table behavior of the Layer 3 forwarding. Add, replace, and strip. At the same time, there is another case. Since the above hold option may have the function of maintaining the vlan tag originally carried by the user, the hold option may also maintain the vlan tag of the inner and outer layers of the message when the layer 3 is forwarded. At the exit of the forwarding device, the auxiliary vlan translation function (ie, the translation policy) is also required to process the outer vlan tag, so that the C-vlan of the user side (that is, the vlan tag originally carried by the user) can be maintained. , can complete the normal three-layer forwarding of P-vlan. In an optional embodiment, the forwarding device processes the packet according to the pre-configured virtual local area network label vlan tag hold option, and the forwarding device processes the message according to the foregoing hold option and the translation policy, where The translation policy is used to instruct the processing of the public network side P-vlan tag in the above message. The P-vlan can be different in different forwarding devices. The foregoing forwarding device may include three types, the first type is a device that forwards packets to the network side, the second type is a device that forwards packets internally, and the third type is that the network side forwards the packet to the user side. device.
在一个可选的实施例中,上述翻译策略可以是根据转发设备在网络中所处的位置设置在上述转发设备上的,也就是说,针对不同类型的转发设备,该翻译策略是不同的。In an optional embodiment, the translation policy may be set on the forwarding device according to the location of the forwarding device in the network, that is, the translation policy is different for different types of forwarding devices.
下面结合转发设备在网络中的具体位置对上述的报文处理进行说明:The following describes the packet processing in combination with the specific location of the forwarding device in the network:
在一个可选的实施例中,当上述转发设备为从用户侧向网络侧转发报文的设备时,该转发设备根据预先配置的vlan tag保留选项和翻译策略对报文进行处理包括:在对上述报文中的用户原始携带的vlan tag进行保持的同时,根据翻译策略在报文中添加P-vlan。在该实施例中,报文从用户侧进入转发设备,该转发设备上设置有三层转发的vlan tag保持功能,另外,针对某个用户侧的C-vlan的范围,配置上对应于该C-vlan范围的vlan翻译表,将此C-vlan范围的vlan在转发出口上增加一层对应的出口三层接口的vlan tag,即完成了在保持用户侧的C-vlan的同时,在三层转发的出口上为报文添加一层P-vlan。In an optional embodiment, when the forwarding device is a device that forwards a packet from the user side to the network side, the forwarding device processes the packet according to the pre-configured vlan tag retention option and the translation policy, including: The vlan tag originally carried by the user in the above packet is maintained, and the P-vlan is added to the packet according to the translation policy. In this embodiment, the packet is forwarded from the user side to the forwarding device, and the forwarding device is provided with a vlan tag holding function of the Layer 3 forwarding. In addition, for the range of the C-vlan of a certain user side, the configuration corresponds to the C- The vlan translation table of the vlan range adds a vlan tag of the corresponding egress three-layer interface to the vlan of the C-vlan range, that is, the C-vlan of the user side is maintained, and the C-vlan is maintained at the same time. Add a layer of P-vlan to the message on the exit.
在一个可选的实施例中,当上述转发设备为网络侧内部转发报文的设备时,该转发设备根据预先配置的vlan tag保留选项和翻译策略对报文进行处理包括:在对报文中的用户原始携带的vlan tag进行保持的同时,根据翻译策略对报文中携带的P-vlan进行替换处理。也就是说,转发设备在网络侧内部转发报文的时候,该转发设备是不关注用户侧的C-vlan的,因此在该转发设备中可以不必配置与C-vlan相关的任何信息,当在转发设备中配置了路由转发vlan tag保持功能之后,只需要再在该转发设备上根据转发路由的情况,将某端口对应的三层接口出口信息写入vlan翻译表中,只要命中三层路由转发从此端口发出的报文,都会被vlan翻译替换为路由的出口三层接口的vlan,这样就完成了保持用户的C-vlan,又按照三层转发的出口三层接口vlan tag完成了三层转发的P-vlan替换。In an optional embodiment, when the forwarding device is a device that forwards a packet internally, the forwarding device processes the packet according to the pre-configured vlan tag reservation option and the translation policy, including: in the packet The original vlan tag carried by the user is maintained, and the P-vlan carried in the packet is replaced according to the translation policy. That is, when the forwarding device forwards the packet internally on the network side, the forwarding device does not care about the C-vlan of the user side. Therefore, it is not necessary to configure any information related to the C-vlan in the forwarding device. After the route forwarding vlan tag hold function is configured on the forwarding device, you only need to write the Layer 3 interface export information corresponding to a port to the vlan translation table based on the forwarding route on the forwarding device, as long as it hits the Layer 3 route forwarding. The packet sent from this port will be replaced by the vlan translation as the vlan of the egress three-layer interface. This completes the C-vlan of the user and completes the Layer 3 forwarding according to the elan tag of the egress three-layer interface. P-vlan replacement.
在一个可选的实施例中,当上述转发设备为网络侧向用户侧转发报文的设备的情况下,该转发设备根据预先配置的vlan tag保留选项和翻译策略对报文进行处理包括:在对报文中的用户原始携带的vlan tag进行保持的同时,根据上述翻译策略剥离报文中的P-vlan。也就是说,报文从网络进入转发设备,该转发设备上设置有三层转发的vlan tag保持功能,另外,针对某 个用户侧C-vlan的范围,在转发设备上配置有对应于该C-vlan范围的vlan翻译表,该vlan翻译表用于将此C-vlan范围的vlan在转发出口上剥离外层vlan,这样,报文在经过三层转发后,即完成了保持用户侧C-vlan的同时,在三层转发的出口将原报文携带的P-vlan剥离。In an optional embodiment, when the forwarding device is a device that forwards a packet to the user side, the forwarding device processes the packet according to the pre-configured vlan tag retention option and the translation policy, including: While maintaining the vlan tag originally carried by the user in the packet, the P-vlan in the packet is stripped according to the above translation policy. That is to say, the packet enters the forwarding device from the network, and the forwarding device is provided with a layer 3 forwarding vlan tag holding function, and A vlan translation table corresponding to the C-vlan range is configured on the forwarding device, and the vlan translation table is used to strip the vlan of the C-vlan range from the outer vlan on the forwarding outlet. In this way, after the packet is forwarded through Layer 3, the P-vlan carried in the original packet is stripped off at the egress of the Layer 3 forwarding.
本发明实施例中的主要目的在于提出一种既可以保留用户原始携带的vlan tag,又可以完成报文在公网侧的三层正常转发。并且可以在转发的过程中,保证用户原始携带的vlan tag不会丢失,并且三层转发的过程中,公网侧P-vlan也基于正常的三层转发效果进行处理的方法。The main purpose of the embodiment of the present invention is to provide a vlan tag that is originally carried by the user, and a normal forwarding of the packet on the public network side. In the process of forwarding, the vlan tag carried by the user is not lost, and the P-vlan on the public network side is also processed based on the normal three-layer forwarding effect.
从前面陈述的几个实施例中可以看出,要实现报文的三层转发,可以具备如下条件,1、转发设备上需要在三层转发的时候设置vlan tag保持功能。2、转发设备上的出口vlan翻译表,需要根据该转发设备所处位置的不同,分别设置对应的C-vlan翻译策略和P-vlan翻译策略。通过这样的设置,即可完成设备的QINQ报文进行三层转发时,在不同的位置上在保持C-vlan的同时,实现增加P-vlan,替换P-vlan和剥离P-vlan的功能。而对于上述的支持三层转发的同时进行指定内层或外层vlan tag保持的芯片上,可以不用具备条件2。It can be seen from the foregoing embodiments that the following conditions can be met for the three-layer forwarding of the packet: 1. The vlan tag hold function needs to be set on the forwarding device when forwarding at the third layer. 2. The egress vlan translation table on the forwarding device needs to set the corresponding C-vlan translation policy and P-vlan translation policy according to the location of the forwarding device. With this configuration, when the device's QINQ packet is forwarded in Layer 3, the function of adding P-vlan, replacing P-vlan, and stripping P-vlan is implemented while maintaining C-vlan at different locations. For the above-mentioned chip supporting the three-layer forwarding while maintaining the inner layer or the outer vlan tag, it is not necessary to have the condition 2.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, The optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods of various embodiments of the present invention.
在本实施例中还提供了一种报文处理装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In this embodiment, a message processing device is also provided, which is used to implement the foregoing embodiments and preferred embodiments, and has not been described again. As used below, the term "module" may implement a combination of software and/or hardware of a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
图2是根据本发明实施例的报文处理装置的结构框图,该报文处理装置可以应用于转发设备,该转发设备的位置可以为多种。如图2所示,该装置包括接收模块22和处理模块24,下面对该装置进行说明。FIG. 2 is a structural block diagram of a message processing apparatus according to an embodiment of the present invention. The message processing apparatus may be applied to a forwarding device, and the location of the forwarding device may be multiple. As shown in Figure 2, the apparatus includes a receiving module 22 and a processing module 24, the apparatus being described below.
接收模块22,设置为接收到三层转发的报文;处理模块24,连接至上述接收模块22,设置为至少根据预先配置的虚拟局域网标签vlan tag保持选项对上述报文进行处理,其中,该保持选项用于指示对报文中的用户原始携带的vlan tag进行保持。The receiving module 22 is configured to receive the three-layer forwarded message; the processing module 24 is connected to the receiving module 22, and is configured to process the packet according to at least the pre-configured virtual local area network tag vlan tag holding option, where The hold option is used to indicate that the vlan tag originally carried by the user in the message is maintained.
图3是根据本发明实施例的报文处理装置中处理模块24的结构框图,如图3所示,该处理模块24包括处理单元32,下面对该处理单元32进行说明。FIG. 3 is a structural block diagram of a processing module 24 in a message processing apparatus according to an embodiment of the present invention. As shown in FIG. 3, the processing module 24 includes a processing unit 32, which will be described below.
处理单元32,设置为根据保持选项和翻译策略对上述报文进行处理,其中,该翻译策略用于指示对报文中的公网侧P-vlan标签进行处理。The processing unit 32 is configured to process the message according to the hold option and the translation policy, where the translation policy is used to instruct processing on the public network side P-vlan tag in the message.
在对报文进行处理时,可以根据保持选项和翻译策略对报文进行处理,其中,该翻译策略可以是根据转发设备在网络中所处的位置设置在转发设备上的。 When the message is processed, the message may be processed according to the hold option and the translation policy, where the translation policy may be set on the forwarding device according to the location of the forwarding device in the network.
在一个可选的实施例中,在上述转发设备为从用户侧向网络侧转发报文的设备的情况下,该处理单元32包括:在对报文中的用户原始携带的vlan tag进行保持的同时,根据翻译策略在上述报文中添加P-vlan。In an optional embodiment, in the case that the forwarding device is a device that forwards a packet from the user side to the network side, the processing unit 32 includes: maintaining the vlan tag originally carried by the user in the packet. At the same time, P-vlan is added to the above message according to the translation strategy.
在一个可选的实施例中,在上述转发设备为网络侧内部转发报文的设备的情况下,该处理单元32包括:在对上述报文中的用户原始携带的vlan tag进行保持的同时,根据翻译策略对上述报文中的P-vlan进行替换处理。In an optional embodiment, in the case that the forwarding device is a device that forwards the packet internally, the processing unit 32 includes: while maintaining the vlan tag originally carried by the user in the packet, The P-vlan in the above message is replaced according to the translation policy.
在一个可选的实施例中,在上述转发设备为网络侧向用户侧转发报文的设备的情况下,该处理单元32包括:在对上述报文中的用户原始携带的vlan tag进行保持的同时,根据翻译策略剥离上述报文中的P-vlan。In an optional embodiment, in the case that the forwarding device is a device that forwards the packet to the user side, the processing unit 32 includes: maintaining the vlan tag originally carried by the user in the packet. At the same time, the P-vlan in the above message is stripped according to the translation strategy.
下面对上述实施例进行举例说明:The above embodiment is exemplified below:
例如有用户报文携带用户侧C-vlan 100进入网络中,依次按照三层路由转发的方式通过设备A、B、C。设备A是从用户侧向网络侧转发报文的转发设备,负责完成添加网络侧P-vlan1001的动作。设备B是网络侧内部转发设备,负责正常的三层转发,入口三层接口vlan为P-vlan1001,出口三层接口的vlan为P-vlan 1002。设备C是网络侧向用户侧转发报文的转发设备,负责执行将P-vlan 1001剥离的动作。For example, a user packet carries the user-side C-vlan 100 to enter the network, and then passes through devices A, B, and C in the manner of Layer 3 routing forwarding. The device A is a forwarding device that forwards packets from the user side to the network side, and is responsible for completing the action of adding the network side P-vlan 1001. The device B is the internal forwarding device on the network side and is responsible for the normal Layer 3 forwarding. The ingress Layer 3 interface vlan is P-vlan1001, and the vlan of the egress Layer 3 interface is P-vlan 1002. The device C is a forwarding device that forwards packets to the user side, and is responsible for performing the action of stripping the P-vlan 1001.
实施例一Embodiment 1
上述的设备A收到数据报文携带了原始的用户侧C-vlan 100(同上述的用户原始携带的vlan tag)的单层vlan tag报文,并且此报文需要进行三层转发。The device A receives the data packet carrying a single-layer vlan tag packet of the original user-side C-vlan 100 (the vlan tag originally carried by the user), and the packet needs to be forwarded in three layers.
设备A上此数据报文的命中路由表上被配置了转发vlan tag保留的选项,因此设备A将此报文转发到路由表的出口,并且保持C-vlan 100没有变化。On the hit routing table of the data packet on device A, the option to forward the vlan tag is configured. Therefore, device A forwards the packet to the egress of the routing table, and keeps C-vlan 100 unchanged.
设备A的出口vlan翻译表中,被配置了业务vlan 100的vlan翻译动作为,添加一层vlan,需要添加的vlan匹配三层转发时的出口三层接口的vlan,在此实施例中,即需要添加网络侧P-vlan 1001(此处可配置一个业务vlan对应一个需要添加的网络侧vlan,也可以配置多个业务vlan同时对应一个需要添加的网络侧vlan)。In the egress vlan translation table of device A, the vlan translation action of the service vlan 100 is configured to add a vlan, and the vlan to be added matches the vlan of the egress three-layer interface when the layer 3 is forwarded. In this embodiment, You need to add the network-side P-vlan 1001. You can configure one service vlan to correspond to one network-side vlan to be added. You can also configure multiple service vlans to correspond to one network-side vlan to be added.
设备A接收的数据报文在出口命中此vlan翻译表,则将原有的一层vlan 100,变成了两层vlan,外层是被vlan翻译表添加的P-vlan 1001,内层是被保持的原始的用户侧C-vlan 100。The data packet received by device A hits the vlan translation table at the exit, and the original layer vlan 100 is changed into two layers vlan, and the outer layer is P-vlan 1001 added by the vlan translation table, and the inner layer is Keep the original user side C-vlan 100.
至此,完成报文从用户侧至网络侧的三层转发,经过转发后,用户侧vlan 100被保留,并添加了外层网络侧vlan 1001。At this point, the packet is forwarded from the user side to the network layer. After forwarding, the user side vlan 100 is reserved and the outer network side vlan 1001 is added.
实施例二Embodiment 2
上述的设备B收到了已经携带两层vlan的报文,内层是原始的用户侧C-vlan 100,外层 是被设备A添加的一层网络侧P-vlan 1001。The device B has received the packets carrying the two VLANs. The inner layer is the original user-side C-vlan 100. It is a layer of network side P-vlan 1001 added by device A.
设备B不关注用户侧C-vlan,根据此报文的三层转发信息进行三层转发,并且此三层转发路由也被设置了vlan tag保留标记。The device B does not pay attention to the C-vlan on the user side, performs Layer 3 forwarding according to the Layer 3 forwarding information of the packet, and the Layer 3 forwarding route is also set with the vlan tag reservation flag.
设备B将报文转发到路由的目的出口,出口的三层接口vlan为1002。Device B forwards the packet to the destination exit of the route. The Layer 3 interface vlan of the egress is 1002.
设备B上需要在出口vlan翻译表上配置此目的出口的报文需要将外层vlan是1001的修改为出口的三层接口vlan 1002。On Device B, you need to configure the destination VLAN for the egress on the egress vlan translation table to modify the outer VLAN vlan 1001 to be the egress interface.
报文命中此出口vlan翻译表,即将外层vlan tag按照出口三层接口的vlan 1002进行了修改,即原始的C-vlan不会改变,仍然是vlan 100,而外层P-vlan 1001,经过转发后,变成了三层路由转发的目的出口的三层接口vlan 1002。The message hits the export vlan translation table, and the outer vlan tag is modified according to the vlan 1002 of the egress three-layer interface, that is, the original C-vlan does not change, and is still vlan 100, and the outer P-vlan 1001, after After forwarding, it becomes the Layer 3 interface vlan 1002 of the destination exit of the Layer 3 route forwarding.
至此,完成报文在网络侧内部的三层转发,经过转发后,用户侧vlan 100仍然被保留。外层的网络侧vlan,按照三层转发的效果,从入口三层接口的vlan 1001被替换为出口三层接口的vlan 1002。At this point, the packet is forwarded at Layer 3 inside the network. After forwarding, the user-side vlan 100 is still reserved. The outer network side vlan is replaced by the vlan 1001 of the ingress Layer 3 interface and the vlan 1002 of the egress Layer 3 interface according to the effect of Layer 3 forwarding.
实施例三Embodiment 3
上述的设备C收到数据报文,该数据报文中携带了原始的用户侧C-vlan 100和设备B在完成三层转发后替换成的外层网络侧P-vlan 1002。The device C receives the data packet, and the data packet carries the original user-side C-vlan 100 and the outer network side P-vlan 1002 that the device B replaces after completing the Layer 3 forwarding.
设备C上此数据报文的命中路由表上被配置了转发vlan tag保留的选项,因此设备C将此报文转发到路由表的出口,并且保持C-vlan 100和P-vlan 1002没有变化。On the hit routing table of the data packet on the device C, the option to forward the vlan tag is configured. Therefore, the device C forwards the packet to the egress of the routing table, and keeps the C-vlan 100 and the P-vlan 1002 unchanged.
设备C的出口vlan翻译表中,被配置了业务vlan 100的vlan翻译动作为,剥离外层vlan(此处可配置一个业务vlan,也可以配置多个业务vlan同时剥离外层vlan的动作)。In the export vlan translation table of device C, the vlan translation action of the service vlan 100 is configured to strip the outer vlan (where a service vlan can be configured, and multiple services vlan can be configured to simultaneously strip the outer vlan).
设备C报文在出口命中此vlan翻译表,则将原有外层vlan 1002剥离,还原成仅保留原始的用户侧C-vlan的报文。If the device C packet hits the vlan translation table at the egress, the original outer vlan 1002 is stripped and restored to retain only the original user-side C-vlan message.
至此,完成报文从网络侧至用户侧的三层转发,经过转发后,原始的用户侧vlan 100被保留,外层网络侧vlan 1002被剥离。At this point, the Layer 3 forwarding of the packet from the network side to the user side is completed. After forwarding, the original user side vlan 100 is reserved, and the outer network side vlan 1002 is stripped.
图4是根据本发明实施例的QINQ报文在网络中的三层转发示意图。如图4所示,当配置了三层转发的vlan tag保持标记之后,在转发的过程中,用户侧C-vlan始终是被保持的,而为了完成网络侧的P-vlan添加,替换和剥离的动作,还需要在转发设备的出口vlan翻译表中增加对应设备所处位置的添加,替换和剥离的匹配条目和动作,通过这上述步骤的协同处理,完成整个QINQ报文在三层网络中的正常转发。FIG. 4 is a schematic diagram of Layer 3 forwarding of a QINQ message in a network according to an embodiment of the present invention. As shown in Figure 4, after the vlan tag retention flag of the Layer 3 forwarding is configured, the user-side C-vlan is always maintained during the forwarding process, and the P-vlan is added, replaced, and stripped in order to complete the network side. The action also needs to add, replace and strip the matching entries and actions in the export vlan translation table of the forwarding device, and complete the entire QINQ message in the three-layer network through the cooperative processing of the above steps. Normal forwarding.
图5是根据本发明实施例的QINQ报文在转发设备中进行三层转发的步骤流程图,如图5所示,该流程包括如下步骤: FIG. 5 is a flowchart of a step of performing Layer 3 forwarding of a QINQ packet in a forwarding device according to an embodiment of the present invention. As shown in FIG. 5, the process includes the following steps:
按照转发设备所处位置的不同,对上述流程分为三种进行说明:According to the location of the forwarding device, the above process is divided into three types:
1、用户侧-网络侧设备1. User side - network side equipment
步骤S511,完成QINQ业务相关的路由表的学习或设置;Step S511, completing learning or setting of a routing table related to the QINQ service;
步骤S512,设置QINQ业务相关的路由转发的vlan tag保持标记;Step S512, setting a vlan tag retention flag of the route forwarding related to the QINQ service;
步骤S513,设置用户侧vlan或者某些用户侧vlan对应某个网络侧P-vlan的vlan翻译表的添加一层vlan的动作;Step S513, setting a user-side vlan or a user-side vlan corresponding to a vlan translation table of a network side P-vlan to add a layer of vlan;
步骤S514,完成设置。In step S514, the setting is completed.
2、网络侧内部转发设备2. Network side internal forwarding device
步骤S521,完成QINQ业务相关的路由表的学习或设置;Step S521, completing learning or setting of a routing table related to the QINQ service;
步骤S522,设置QINQ业务相关的路由转发的vlan tag保持标记;Step S522, setting a vlan tag retention flag of the route forwarding related to the QINQ service;
步骤S523,设置网络侧入口三层接口的vlan tag和出口三层接口的vlan tag之间的vlan翻译表的替换动作;Step S523, setting a replacement action of the vlan translation table between the vlan tag of the network-side ingress interface and the vlan tag of the egress three-layer interface;
步骤S524,完成设置。In step S524, the setting is completed.
3、网络侧-用户侧设备3. Network side - user side equipment
步骤S531,完成QINQ业务相关的路由表的学习或设置;Step S531, completing learning or setting of a routing table related to the QINQ service;
步骤S532,设置QINQ业务相关的路由转发的vlan tag保持标记;Step S532, setting a vlan tag retention flag of the route forwarding related to the QINQ service;
步骤S533,设置用户侧vlan或者某些用户侧vlan对应的vlan翻译表的剥离外层vlan的动作;Step S533, setting the action of stripping the outer vlan of the vlan translation table corresponding to the user side vlan or some user side vlan;
步骤S534,完成设置。In step S534, the setting is completed.
由以上的实施例可知,与一般的设备的QINQ报文转发方法相比,上述方案中的路由转发的vlan tag保持位配合vlan翻译表的处理方法,可以使得QINQ报文转发完全可以在三层转发的环境中被支持,并且依旧保持网络侧转发不影响用户侧vlan的QINQ报文转发的效果,利用此技术可以大大加强QINQ技术的网络应用能力,即除了在L2和L2VPN网络中应用QINQ技术外,也可以在L3路由网络中应用QINQ技术。It can be seen from the above embodiment that the Vlan tag holding bit of the route forwarding and the processing method of the vlan translation table in the foregoing solution can make the QINQ message forwarding completely in the third layer. The forwarding environment is supported, and the network side forwarding still does not affect the effect of QINQ packet forwarding on the user side vlan. This technology can greatly enhance the network application capability of QINQ technology, that is, in addition to applying QINQ technology in L2 and L2VPN networks. In addition, QINQ technology can also be applied in L3 routing networks.
通过上述实施例可以使转发设备在原本不支持QINQ三层转发的情况下,达到保留用户vlan,替换外层vlan的转发效果。通过此技术可以使得转发设备不仅可以支持QINQ报文的二层转发,还可以完成类似QINQ二层转发的效果的三层转发。从而丰富QINQ报文的三层转发能力,提升QINQ方面的报文转发应用,加强交换机或PTN设备的QINQ报文处理能力。The forwarding device can achieve the forwarding effect of retaining the user vlan and replacing the outer vlan in the case that the forwarding device does not support the Layer 3 forwarding of the QINQ. With this technology, the forwarding device can not only support Layer 2 forwarding of QINQ packets, but also implement Layer 3 forwarding similar to the effect of Layer 2 forwarding of QINQ. Therefore, the Layer 3 forwarding capability of the QINQ packet is enriched, the packet forwarding application of the QINQ is improved, and the QINQ packet processing capability of the switch or the PTN device is enhanced.
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述模块分别位于多个处 理器中。It should be noted that each of the above modules may be implemented by software or hardware. For the latter, the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the modules are located in multiple At In the processor.
本发明的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:Embodiments of the present invention also provide a storage medium. Optionally, in the embodiment, the foregoing storage medium may be configured to store program code for performing the following steps:
S1,转发设备接收到三层转发的报文;S1: The forwarding device receives the packet that is forwarded by the third layer.
S2,该转发设备至少根据预先配置的虚拟局域网标签vlan tag保持选项对该报文进行处理,其中,该保持选项用于指示对报文中的用户原始携带的vlan tag进行保持。S2: The forwarding device processes the packet according to the pre-configured virtual local area network label vlan tag retention option, where the hold option is used to indicate that the vlan tag originally carried by the user in the packet is maintained.
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。Optionally, in the embodiment, the foregoing storage medium may include, but is not limited to, a USB flash drive, a Read-Only Memory (ROM), and a Random Access Memory (RAM). A variety of media that can store program code, such as a hard disk, a disk, or an optical disk.
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。For example, the specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the optional embodiments, and details are not described herein again.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。It will be apparent to those skilled in the art that the various modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above description is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
工业实用性Industrial applicability
如上所述,本发明实施例提供的一种报文处理方法及装置具有以下有益效果:解决了相关技术中存在的在进行报文的三层转发时,会造成用户原始携带的vlan tag丢失的问题,达到了在实现报文的三层转发的基础上保证了用户原始携带的vlag tag报文的完整性的效果。 As described above, the packet processing method and apparatus provided by the embodiments of the present invention have the following beneficial effects: the following causes the loss of the vlan tag originally carried by the user when performing the Layer 3 forwarding of the packet in the related art. The problem is that the integrity of the vlag tag message originally carried by the user is ensured on the basis of implementing the Layer 3 forwarding of the packet.

Claims (12)

  1. 一种报文处理方法,包括:A packet processing method includes:
    转发设备接收到三层转发的报文;The forwarding device receives the Layer 3 forwarded packet.
    所述转发设备至少根据预先配置的虚拟局域网标签vlan tag保持选项对所述报文进行处理,其中,所述保持选项用于指示对所述报文中的用户原始携带的vlan tag进行保持。The forwarding device processes the packet according to the pre-configured virtual local area network tag vlan tag hold option, where the hold option is used to indicate that the vlan tag originally carried by the user in the message is maintained.
  2. 根据权利要求1所述的方法,其中,所述转发设备至少根据预先配置的虚拟局域网标签vlan tag保持选项对所述报文进行处理包括:The method of claim 1, wherein the forwarding device processes the message according to at least a pre-configured virtual local area network tag vlan tag hold option, including:
    所述转发设备根据所述保持选项和翻译策略对所述报文进行处理,其中,所述翻译策略用于指示对所述报文中的公网侧P-vlan标签进行处理。The forwarding device processes the packet according to the hold option and the translation policy, where the translation policy is used to indicate that the public network side P-vlan tag in the packet is processed.
  3. 根据权利要求2所述的方法,其中,所述翻译策略是根据所述转发设备在网络中所处的位置设置在所述转发设备上的。The method of claim 2, wherein the translation policy is set on the forwarding device according to a location of the forwarding device in the network.
  4. 根据权利要求2所述的方法,其中,在所述转发设备为从用户侧向网络侧转发报文的设备的情况下,所述转发设备根据预先配置的vlan tag保留选项和翻译策略对所述报文进行处理包括:The method according to claim 2, wherein, in the case that the forwarding device is a device that forwards a message from a user side to a network side, the forwarding device pairs the pre-configured vlan tag reservation option and translation policy. The message processing includes:
    在对所述报文中的用户原始携带的vlan tag进行保持的同时,根据所述翻译策略在所述报文中添加所述P-vlan。And adding the P-vlan to the message according to the translation policy while maintaining the vlan tag originally carried by the user in the message.
  5. 根据权利要求2所述的方法,其中,在所述转发设备为网络侧内部转发报文的设备的情况下,所述转发设备根据预先配置的vlan tag保留选项和翻译策略对所述报文进行处理包括:The method according to claim 2, wherein, in the case that the forwarding device is a device that internally forwards a message on the network side, the forwarding device performs the message according to a pre-configured vlan tag reservation option and a translation policy. Processing includes:
    在对所述报文中的用户原始携带的vlan tag进行保持的同时,根据所述翻译策略对所述报文中的所述P-vlan进行替换处理。And performing the replacement process on the P-vlan in the packet according to the translation policy, while maintaining the vlan tag originally carried by the user in the packet.
  6. 根据权利要求2所述的方法,其中,在所述转发设备为网络侧向用户侧转发报文的设备的情况下,所述转发设备根据预先配置的vlan tag保留选项和翻译策略对所述报文进行处理包括:The method according to claim 2, wherein, in the case that the forwarding device is a device that forwards a message to the user side on the network side, the forwarding device pairs the report according to a pre-configured vlan tag reservation option and a translation policy. The text processing includes:
    在对所述报文中的用户原始携带的vlan tag进行保持的同时,根据所述翻译策略剥离所述报文中的所述P-vlan。While maintaining the vlan tag originally carried by the user in the packet, the P-vlan in the packet is stripped according to the translation policy.
  7. 一种报文处理装置,应用于转发设备中,包括:A packet processing device is applied to a forwarding device, including:
    接收模块,设置为接收到三层转发的报文;The receiving module is configured to receive the three-layer forwarded packet;
    处理模块,设置为至少根据预先配置的虚拟局域网标签vlan tag保持选项对所述报文进行处理,其中,所述保持选项用于指示对所述报文中的用户原始携带的vlan tag进行保持。The processing module is configured to process the packet according to at least a pre-configured virtual local area network tag vlan tag hold option, where the hold option is used to indicate that the vlan tag originally carried by the user in the message is maintained.
  8. 根据权利要求7所述的装置,其中,所述处理模块包括: The apparatus of claim 7 wherein said processing module comprises:
    处理单元,设置为根据所述保持选项和翻译策略对所述报文进行处理,其中,所述翻译策略用于指示对所述报文中的公网侧P-vlan标签进行处理。The processing unit is configured to process the message according to the hold option and the translation policy, where the translation policy is used to indicate that the public network side P-vlan tag in the message is processed.
  9. 根据权利要求8所述的装置,其中,所述翻译策略是根据所述转发设备在网络中所处的位置设置在所述转发设备上的。The apparatus of claim 8, wherein the translation policy is set on the forwarding device according to a location of the forwarding device in the network.
  10. 根据权利要求8所述的装置,其中,在所述转发设备为从用户侧向网络侧转发报文的设备的情况下,所述处理单元包括:The device according to claim 8, wherein, in the case that the forwarding device is a device that forwards a message from the user side to the network side, the processing unit includes:
    在对所述报文中的用户原始携带的vlan tag进行保持的同时,根据所述翻译策略在所述报文中添加所述P-vlan。And adding the P-vlan to the message according to the translation policy while maintaining the vlan tag originally carried by the user in the message.
  11. 根据权利要求8所述的装置,其中,在所述转发设备为网络侧内部转发报文的设备的情况下,所述处理单元包括:The device according to claim 8, wherein, in the case that the forwarding device is a device that internally forwards a message on the network side, the processing unit includes:
    在对所述报文中的用户原始携带的vlan tag进行保持的同时,根据所述翻译策略对所述报文中的所述P-vlan进行替换处理。And performing the replacement process on the P-vlan in the packet according to the translation policy, while maintaining the vlan tag originally carried by the user in the packet.
  12. 根据权利要求8所述的装置,其中,在所述转发设备为网络侧向用户侧转发报文的设备的情况下,所述处理单元包括:The device according to claim 8, wherein, in the case that the forwarding device is a device that forwards a message to the user side on the network side, the processing unit includes:
    在对所述报文中的用户原始携带的vlan tag进行保持的同时,根据所述翻译策略剥离所述报文中的所述P-vlan。 While maintaining the vlan tag originally carried by the user in the packet, the P-vlan in the packet is stripped according to the translation policy.
PCT/CN2016/076535 2015-05-26 2016-03-16 Packet processing method and device WO2016188201A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510275699.7 2015-05-26
CN201510275699.7A CN106302143B (en) 2015-05-26 2015-05-26 Message processing method and device

Publications (1)

Publication Number Publication Date
WO2016188201A1 true WO2016188201A1 (en) 2016-12-01

Family

ID=57392588

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/076535 WO2016188201A1 (en) 2015-05-26 2016-03-16 Packet processing method and device

Country Status (2)

Country Link
CN (1) CN106302143B (en)
WO (1) WO2016188201A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112787928A (en) * 2019-11-07 2021-05-11 中兴通讯股份有限公司 Multi-service forwarding method, switch, electronic device and readable medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7633956B1 (en) * 2006-01-19 2009-12-15 Cisco Technology, Inc. System and method for providing support for multipoint L2VPN services in devices without local bridging
CN102158422A (en) * 2011-05-27 2011-08-17 杭州华三通信技术有限公司 Message forwarding method and equipment for layer 2 ring network
CN102263679A (en) * 2010-05-24 2011-11-30 杭州华三通信技术有限公司 Source role information processing method and forwarding chip
CN102263774A (en) * 2010-05-24 2011-11-30 杭州华三通信技术有限公司 Method and device for processing source role information

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7633956B1 (en) * 2006-01-19 2009-12-15 Cisco Technology, Inc. System and method for providing support for multipoint L2VPN services in devices without local bridging
CN102263679A (en) * 2010-05-24 2011-11-30 杭州华三通信技术有限公司 Source role information processing method and forwarding chip
CN102263774A (en) * 2010-05-24 2011-11-30 杭州华三通信技术有限公司 Method and device for processing source role information
CN102158422A (en) * 2011-05-27 2011-08-17 杭州华三通信技术有限公司 Message forwarding method and equipment for layer 2 ring network

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112787928A (en) * 2019-11-07 2021-05-11 中兴通讯股份有限公司 Multi-service forwarding method, switch, electronic device and readable medium

Also Published As

Publication number Publication date
CN106302143A (en) 2017-01-04
CN106302143B (en) 2019-06-11

Similar Documents

Publication Publication Date Title
US10158561B2 (en) Data plane learning of bi-directional service chains
EP2945330B1 (en) Route management method, route method, network controller and router
EP2490375B1 (en) Method and device for link protection in virtual private local area network
US11588730B2 (en) Label management method, data stream processing method, and device
US20140219135A1 (en) Virtual Private Network Implementation Method and System Based on Traffic Engineering Tunnel
EP3651422B1 (en) Apparatus, system, and method for providing node protection across label-switched paths that share labels
EP3125481B1 (en) Information transmission method, device and communication system
WO2018033060A1 (en) Message switching method and device
US9825778B2 (en) NSH service plane for L3VPN forwarding
EP3627775A1 (en) Route synchronization
WO2015143849A1 (en) Vpn packet processing method and apparatus and storage medium
WO2016188201A1 (en) Packet processing method and device
US9491092B1 (en) Apparatus, system, and method for preventing unintentional forwarding reconfiguration in network environments
US10182007B2 (en) Apparatus, system, and method for facilitating controller-based multicast signaling
CN112910771B (en) Connection establishment method, device, equipment and storage medium
EP3367618B1 (en) Apparatus, system, and method for facilitating label-identified routing decisions by ibgp peers
EP2428007B1 (en) Limiting the size of the mac address table in a hybrid node
WO2021088802A1 (en) Multi-service forwarding method, switch, electronic equipment and readable medium
CN112929193A (en) Method and apparatus for configuring aging time of medium access control address
WO2015117400A1 (en) Packet forwarding and processing method and device, and broadband access device
US9203749B2 (en) System, devices and methods for facilitating coexistence of VLAN labeling and fine-grained labeling RBridges
WO2016074529A1 (en) Method and apparatus for switching media access control forwarding link
WO2016165276A1 (en) Method and device for transmitting messages in virtual private network of multi-protocol label switching
CN112152944A (en) Method and equipment for realizing three-layer interface of switch
CN113923162A (en) Message forwarding method, device, equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16799090

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16799090

Country of ref document: EP

Kind code of ref document: A1