CN111740906A - Message processing method and processing device - Google Patents

Message processing method and processing device Download PDF

Info

Publication number
CN111740906A
CN111740906A CN202010430585.6A CN202010430585A CN111740906A CN 111740906 A CN111740906 A CN 111740906A CN 202010430585 A CN202010430585 A CN 202010430585A CN 111740906 A CN111740906 A CN 111740906A
Authority
CN
China
Prior art keywords
identifier
message
layer
forwarding
packet
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.)
Pending
Application number
CN202010430585.6A
Other languages
Chinese (zh)
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.)
Hangzhou H3C Technologies Co Ltd
New H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies 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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN202010430585.6A priority Critical patent/CN111740906A/en
Publication of CN111740906A publication Critical patent/CN111740906A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/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/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]

Landscapes

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

Abstract

The present disclosure provides a method and a device for processing a packet, where the method is applied to a gateway device, and the method includes: receiving a first message, wherein the first message is a message forwarded across transport protocol layers, acquiring a first identifier used for representing that the first message belongs to a first transport protocol layer in the first message, and forwarding the first message by using a second identifier according to an incidence relation between the first identifier and the second identifier, wherein the second identifier is used for representing a second transport protocol layer. By the method, the technical problem of high service forwarding delay caused by long time for carrying out the association work of the port and the table entry after the gateway equipment receives the message can be solved.

Description

Message processing method and processing device
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a method and an apparatus for processing a packet.
Background
MPLS L2VPN (hereinafter abbreviated L2VPN) may be used as an access network to access a user to MPLS L3VPN (hereinafter abbreviated L3VPN), and both the L2VPN technology providing point-to-point connectivity and the VPLS technology providing inter-multipoint connectivity support L2VPN access to L3 VPN.
In a conventional networking manner, a PE-AGG (aggregation PE) device (hereinafter referred to as a gateway device) needs to be deployed at a connection between the L2VPN and the L3VPN, so as to terminate the L2VPN and access the L3 VPN.
After receiving the message from the L2VPN (or after receiving the message from the L3VPN), the PE-AGG needs to perform association between the port and the entry, and the association takes a long time, so that the forwarding performance is greatly affected, and the service forwarding delay is high.
Disclosure of Invention
The embodiment of the disclosure provides a message processing method and a message processing device, which can avoid the technical problem of high service forwarding delay caused by the fact that the gateway device needs to take a long time to perform the association work of a port and a table entry after receiving a message.
The embodiment of the disclosure provides a method for processing a message, which is applied to gateway equipment and comprises the following steps:
receiving a first message, wherein the first message is a message forwarded by a cross-transport protocol layer;
acquiring a first identifier used for representing that the first message belongs to a first transmission protocol layer in the first message;
forwarding the first message by using a second identifier according to the incidence relation between the first identifier and the second identifier;
wherein the second identifier is used to characterize a second transport protocol layer.
It can be seen from the foregoing embodiments that an association relationship between a first identifier and a second identifier is stored in the present disclosure, where the first identifier and the second identifier respectively represent different transport protocol layers, and the second identifier corresponding to the first identifier is further obtained by obtaining the first identifier of the first packet, and the second identifier can be directly used to forward the first packet, thereby avoiding query operations of a port and various entries, reducing processing time, and improving service forwarding efficiency.
The present disclosure further provides an embodiment of an association relationship between the first identifier and the second identifier, in this embodiment, the association relationship includes: and the VE port identification is used for representing a two-layer transmission protocol layer identification, and the L3VPN identification is used for representing a three-layer transmission protocol layer identification.
In the embodiment of the present disclosure, the L2VPN may include a plurality of VE ports, different VE ports may be used to transmit different L2VPN messages, and by establishing an association relationship between a VE port and an L3VPN, a corresponding L3VPN may be directly found from a message received from a certain VE port, and the message may be forwarded by three layers through the L3VPN, or the association relationship between the VE port and the L3VPN may be considered to be equivalent to a correspondence relationship between a two-layer transmission protocol and a forwarding instance of a three-layer transmission protocol.
The present disclosure further provides an embodiment of obtaining an association relationship between the VE port identifier and the L3VPN identifier, where in this embodiment, a second message is received, where the second message is a two-layer transport protocol layer message;
acquiring a VE port identifier for receiving the second message;
acquiring an L3VPN identifier for forwarding the second message in the three-layer transmission protocol according to the destination address of the second message;
and establishing an incidence relation between the VE port identifier and the L3VPN identifier.
The present disclosure further provides another embodiment of an association relationship, based on the association relationship in the foregoing embodiment, the association relationship in this embodiment further includes an association relationship between a two-layer forwarding tag and a three-layer forwarding tag, where the method for obtaining the association relationship in this embodiment includes:
receiving a second message, wherein the second message is a two-layer transmission protocol layer message;
acquiring a VE port identifier for receiving the second message and a first forwarding label carried in the second message;
acquiring an L3VPN identifier for forwarding a second message in a three-layer transmission protocol and a second forwarding label for forwarding the second message in the three-layer transmission protocol according to a destination address of the second message;
and establishing the association relation among the VE port identifier, the first forwarding label, the L3VPN identifier and the second forwarding label.
The present disclosure further provides an embodiment of forwarding the first packet by using the second identifier, in this embodiment, a first packet is received, and if the first identifier is a VE port identifier, the L3VPN is used to forward the first packet according to an association relationship between the VE port identifier and the L3VPN identifier; alternatively, the first and second electrodes may be,
and receiving a first message, and if the first identifier is an L3VPN identifier, forwarding the first message by using the VE port identifier according to the association relationship between the VE port identifier and the L3VPN identifier.
It can be seen from the above embodiment that, if the gateway device determines that the first identifier in the received first message is the three-layer transport protocol identifier L3VPN identifier, the second-layer transport protocol identifier VE port identifier may be obtained according to the association relationship, and the first message is forwarded in the two-layer transport protocol according to the VE port identifier; on the contrary, if the gateway device determines that the first identifier in the received first message is the VE port identifier, the L3VPN identifier can be obtained according to the association relationship, and the first message is forwarded in the three-layer transport protocol according to the L3VPN identifier, so that the gateway device is prevented from performing query work on ports and various entries when processing the message across transport protocol layers, processing time is reduced, and service forwarding efficiency is improved.
The embodiment of the present disclosure provides a device for processing a packet, where the device is applied to a gateway device, and the device includes:
a receiving module, configured to receive a first packet, where the first packet is a packet forwarded across a transport protocol layer;
the acquisition module is used for acquiring a first identifier which is used for representing that the first message belongs to a first transmission protocol layer in the first message;
the processing module is used for forwarding the first message by using the second identifier according to the incidence relation between the first identifier and the second identifier;
wherein the second identifier is used to characterize a second transport protocol layer.
In another embodiment, the association relationship between the first identifier and the second identifier specifically includes:
and the VE port identification is used for representing a two-layer transmission protocol layer identification, and the L3VPN identification is used for representing a three-layer transmission protocol layer identification.
In another embodiment, the receiving module is further configured to receive a second packet, where the second packet is a two-layer transport protocol layer packet;
the obtaining module is further configured to obtain a VE port identifier for receiving the second message;
the processing module is further configured to obtain an L3VPN identifier for forwarding the second packet in the three-layer transport protocol according to the destination address of the second packet, and establish an association relationship between the VE port identifier and the L3VPN identifier.
In another embodiment, the association relationship further includes: the incidence relation between the second layer forwarding label and the third layer forwarding label;
the receiving module is further configured to receive a second packet, where the second packet is a two-layer transport protocol layer packet;
the obtaining module is further configured to obtain a VE port identifier for receiving the second packet and a first forwarding tag carried in the second packet;
the processing module is further configured to obtain, according to a destination address of the second packet, an L3VPN identifier for forwarding the second packet in the three-layer transport protocol, and a second forwarding tag for forwarding the second packet in the three-layer transport protocol, and establish an association relationship between the VE port identifier, the first forwarding tag, the L3VPN identifier, and the second forwarding tag.
In another embodiment, the processing module is further configured to forward the first packet by using the L3VPN according to an association relationship between a VE port identifier and an L3VPN identifier when a first identifier of the received first packet is the VE port identifier;
or, when the first identifier of the received first message is the L3VPN identifier, forwarding the first message by using the VE port identifier according to the association relationship between the VE port identifier and the L3VPN identifier.
Drawings
Fig. 1 is a schematic diagram of a network structure provided in an embodiment of the present disclosure;
fig. 2 is a schematic flow chart of a message processing method according to an embodiment of the present disclosure;
fig. 3 is a schematic flow chart of a message processing method according to an embodiment of the present disclosure.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The terminology used in the present disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used in this disclosure and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
As shown in fig. 1, in an embodiment of a method for processing a packet, NE41 is a device in a two-layer transport protocol, NE31 is a gateway device (i.e., a PE-AGG device), where NE31 is to be configured with an L2VE port and an L3VE port, and the L3VE port binds a three-layer VPN.
When the NE41 sends a data packet to the NE31, the NE41 sends the data packet to the NE31 by searching for an L2VPN forwarding table, and the data packet also carries a first label 1000 and a second label 2000, where the first label 1000 is a public network label and the second label 2000 is a private network label, and the first label 1000 and the second label 2000 can be considered as labels issued by an L2 VPN.
When NE31 receives the data packet, it obtains the first label 1000 and the second label 2000, and the destination address information in the data packet, searches for the forwarding table of the destination device (e.g., NE11), and then presses the third label 3000 and the fourth label 4000 into the data packet, and sends the data packet pressed with the third label 3000 and the fourth label 4000 to NE11 through three layers. The third label 3000 is a public network label, the fourth label 4000 is a private network label, and the third label 3000 and the fourth label 4000 may be labels issued by the L3 VPN.
In the process of obtaining the third label and the fourth label, after the NE31 needs to search the relationship between the entry table entry of the L2VPN and the L2VE logical port, and the information such as the forwarding table, etc., according to the first label and the second label, obtain the third label and the fourth label, and push the third label and the fourth label into the data packet, which may take a lot of time during this period, thereby resulting in a technical problem of high service forwarding delay.
In order to solve the foregoing technical problem, an embodiment of the present disclosure provides a method for processing a packet, where as shown in fig. 2, the method is applied to a gateway device, and the method includes:
s1, receiving a first message, wherein the first message is a message forwarded by a cross-transport protocol layer;
s2, acquiring a first identifier used for representing that the first message belongs to a first transmission protocol layer in the first message;
s3, forwarding the first message by using a second identifier according to the incidence relation between the first identifier and the second identifier;
wherein the second identifier is used to characterize a second transport protocol layer.
In step S1, the first packet may be a data packet sent from a two-layer transport protocol layer, where the first identifier obtained in step S2 is a VE port identifier, where the VE port identifier may specifically be a number of a VE port, and a method for specifically obtaining the VE port identifier may include port monitoring or obtaining by analyzing the first packet.
In step S3, an association relationship between the first identifier and the second identifier is stored in the gateway device, and in an embodiment, the association relationship may be an association relationship between a VE port identifier and an L3VPN identifier, where the L3VPN identifier may specifically be a number of the L3VPN, and thus, in this embodiment, the VE port is used to represent a two-layer transport protocol layer identifier, and the L3VPN identifier is used to represent a three-layer transport protocol layer identifier.
In step S3, according to the association relationship and the VE port identifier obtained in step S1, an L3VPN identifier associated with the VE port identifier may be obtained, and the first packet is forwarded according to the L3VPN identifier, for example, according to the VE port identifier obtained in step S2 being VE10, and according to the association relationship, the L3VPN identifier corresponding to VE10 being L3VPN10, the first packet may be directly sent in L3VPN 10.
In another embodiment, if the first packet acquired by the gateway device in step S1 is a packet sent by a three-layer transport protocol layer, the first identifier of the first packet acquired in step S2 is an L3VPN identifier.
In step S3, according to the obtained L3VPN identifier and the association relationship, the VE port identifier may be obtained, and the first packet may be sent through the two-layer transport protocol directly according to the VE port identifier.
It can be seen from the above embodiments that, by obtaining the first identifier of the first packet, obtaining the second identifier corresponding to the first identifier according to the association relationship between the first identifier and the second identifier, and directly forwarding the first packet by using the second identifier, the query work of the port and various entries is avoided, the processing time is reduced, and the efficiency of service forwarding is improved.
The embodiment of the present disclosure further provides a method for obtaining an association relationship between a first identifier and a second identifier, as shown in fig. 3,
s6, receiving a second message, wherein the second message is a two-layer transmission protocol layer message;
s7, acquiring a VE port identifier for receiving the second message;
s8, acquiring an L3VPN mark for forwarding the second message in the three-layer transmission protocol according to the destination address of the second message;
and S9, establishing an incidence relation between the VE port identification and the L3VPN identification.
In step S6, the second message may be a message that is first sent to the gateway device via the layer two transport protocol.
In step S7, after receiving the second message, the gateway device obtains the VE port identifier, i.e., the VE port number, on the gateway device that receives the second message, and meanwhile, according to the two-layer tag (the public network tag and the private network tag) carried in the second message and the destination address of the second message, searches for the corresponding forwarding entry, and obtains the L3VPN number and the three-layer tag that send the second message (this step can be obtained in the existing manner, and will not be described in detail).
After the VE port number and the L3VPN number are obtained, step S9 may be executed to establish an association relationship between the VE port identifier and the L3VPN identifier.
In another embodiment, the association relationship may further include two-layer and three-layer tag information, for example, as shown in table 1:
VE mouth mark Two-layer public network label Two-layer private network label L3VPN identification Three-layer public network label Three-layer private network label
10 1000 2000 100 3000 4000
TABLE 1
As shown in table 1, through the association relationship in table 1, after the gateway device receives the first message, if the first identifier of the first message is VE10, and the two-layer public network tag and the two-layer private network tag are 1000 and 2000, respectively, it may be directly determined that the L3VPN for forwarding the first message is 100, and the three-layer public network tag that needs to be pushed in the first message is 3000 and the three-layer private network tag is 4000 according to the association relationship in table 1.
The embodiment of the present disclosure further provides a method for obtaining an association relationship between a forwarding tag carrying a second layer and a forwarding tag carrying a third layer, including:
receiving a second message, wherein the second message is a two-layer transmission protocol layer message;
acquiring a VE port identifier for receiving the second message and a first forwarding label carried in the second message;
acquiring an L3VPN identifier for forwarding a second message in a three-layer transmission protocol and a second forwarding label for forwarding the second message in the three-layer transmission protocol according to a destination address of the second message;
and establishing the association relation among the VE port identifier, the first forwarding label, the L3VPN identifier and the second forwarding label.
In the above embodiment, after receiving a two-layer (three-layer processing manner is similar to that of the two-layer) message, the gateway device pops up the two-layer label, thereby obtaining the two-layer label (including a two-layer private network label and a two-layer public network label), obtaining the VE port identifier of the message received by the gateway device, recording the two-layer label and the VE port identifier, and meanwhile, querying a forwarding table through a destination address in the message, obtaining the three-layer label (including a three-layer private network label and a three-layer public network label) for forwarding the message through three layers, and obtaining the L3VPN identifier. And establishing an association relation according to the obtained second-layer label, the VE port label and the third-layer label L3VPN label.
To illustrate the techniques of the present disclosure in detail, the present disclosure is illustrated in conjunction with fig. 1.
As shown in fig. 1, NE41 is a device in a two-layer transport protocol, NE31 is a gateway device, one side is connected to NE41 in the two-layer transport protocol, and the other side is connected to NE21 in a three-layer transport protocol, where the address of NE41 is 1.1.1.41, and the address of NE11 in the three-layer transport protocol is 11.1.1.1/32.
In this embodiment, the NE41 sends a first message to the NE11 device, where the first message is a two-layer transport protocol message;
before the NE41 sends the first message, it will query the label table entry and allocate the label, specifically allocate the two-layer public network label 1000 and the two-layer private network label 2000;
when the NE31 receives the first packet, it pops up the two-layer tag encapsulated by the first packet, and at the same time, the NE31 obtains the NE10 that receives the first packet, and the NE31 determines, according to the stored association relationship, that the L3VPN associated with the VE10 is the L3VPN 100. In another embodiment, the NE31 further determines the associated L3VPN and three-tier identifier according to the obtained two-tier tag and the NE10, for example, according to VE10, the two-tier public network tag 1000, and the two-tier private network tag 2000, and according to the association relationship, determines the associated three-tier transport protocol information as the L3VPN100, the three-tier public network tag 3000, and the three-tier private network tag 4000;
the NE31 will carry the determined L3VPN100, three-layer public network tag 3000 and three-layer private network tag 4000 in the first message, and send it to the NE11, thereby completing the forwarding of the cross transport protocol layer message.
It can be seen from the above embodiments that, when the gateway device NE31 processes forwarding of a packet across transport protocol layers, it determines a corresponding L3VPN according to the obtained NE port identifier and the association relationship between the stored VE port identifier and L3VPN identifier, and forwards the packet according to the L3VPN, thereby avoiding a series of table lookup operations, saving the time for forwarding the table lookup, and improving the efficiency of service forwarding.
Based on the same idea concept as the foregoing embodiment, an embodiment of the present disclosure further provides a device for processing a packet, where the device includes:
a receiving module, configured to receive a first packet, where the first packet is a packet forwarded across a transport protocol layer;
the acquisition module is used for acquiring a first identifier which is used for representing that the first message belongs to a first transmission protocol layer in the first message;
the processing module is used for forwarding the first message by using the second identifier according to the incidence relation between the first identifier and the second identifier;
wherein the second identifier is used to characterize a second transport protocol layer.
In another embodiment, the association relationship between the first identifier and the second identifier specifically includes:
and the VE port identification is used for representing a two-layer transmission protocol layer identification, and the L3VPN identification is used for representing a three-layer transmission protocol layer identification.
In another embodiment, the receiving module is further configured to receive a second packet, where the second packet is a two-layer transport protocol layer packet;
the obtaining module is further configured to obtain a VE port identifier for receiving the second message;
the processing module is further configured to obtain an L3VPN identifier for forwarding the second packet in the three-layer transport protocol according to the destination address of the second packet, and establish an association relationship between the VE port identifier and the L3VPN identifier.
In another embodiment, the association relationship further includes: the incidence relation between the second layer forwarding label and the third layer forwarding label;
the receiving module is further configured to receive a second packet, where the second packet is a two-layer transport protocol layer packet;
the obtaining module is further configured to obtain a VE port identifier for receiving the second packet and a first forwarding tag carried in the second packet;
the processing module is further configured to obtain, according to a destination address of the second packet, an L3VPN identifier for forwarding the second packet in the three-layer transport protocol, and a second forwarding tag for forwarding the second packet in the three-layer transport protocol, and establish an association relationship between the VE port identifier, the first forwarding tag, the L3VPN identifier, and the second forwarding tag.
In another embodiment, the processing module is further configured to forward the first packet by using the L3VPN according to an association relationship between a VE port identifier and an L3VPN identifier when a first identifier of the received first packet is the VE port identifier;
or, when the first identifier of the received first message is the L3VPN identifier, forwarding the first message by using the VE port identifier according to the association relationship between the VE port identifier and the L3VPN identifier.
In the several embodiments provided in the present application, it should be understood that the disclosed method and electronic device can be implemented in other manners. The embodiments described above are merely illustrative, and the flowcharts and block diagrams in the figures, for example, illustrate the architecture, functionality, and operation of possible implementations of methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Finally, it should be noted that: the above-mentioned embodiments are merely specific embodiments of the present disclosure, which are used for illustrating the technical solutions of the present disclosure and not for limiting the same, and the scope of the present disclosure is not limited thereto, and although the present disclosure is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive of the technical solutions described in the foregoing embodiments or equivalent technical features thereof within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present disclosure, and should be construed as being included therein. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.

Claims (10)

1. A method for processing a message is applied to a gateway device, and the method comprises the following steps:
receiving a first message, wherein the first message is a message forwarded by a cross-transport protocol layer;
acquiring a first identifier used for representing that the first message belongs to a first transmission protocol layer in the first message;
forwarding the first message by using a second identifier according to the incidence relation between the first identifier and the second identifier;
wherein the second identifier is used to characterize a second transport protocol layer.
2. The method according to claim 1, wherein the association relationship between the first identifier and the second identifier specifically includes:
and the VE port identification is used for representing a two-layer transmission protocol layer identification, and the L3VPN identification is used for representing a three-layer transmission protocol layer identification.
3. The method according to claim 2, wherein the method for obtaining the association relationship between the VE port identifier and the L3VPN identifier comprises:
receiving a second message, wherein the second message is a two-layer transmission protocol layer message;
acquiring a VE port identifier for receiving the second message;
acquiring an L3VPN identifier for forwarding the second message in the three-layer transmission protocol according to the destination address of the second message;
and establishing an incidence relation between the VE port identifier and the L3VPN identifier.
4. The method of claim 3, wherein the associating further comprises: the method for acquiring the incidence relation of the second-layer forwarding label and the third-layer forwarding label comprises the following steps:
receiving a second message, wherein the second message is a two-layer transmission protocol layer message;
acquiring a VE port identifier for receiving the second message and a first forwarding label carried in the second message;
acquiring an L3VPN identifier for forwarding a second message in a three-layer transmission protocol and a second forwarding label for forwarding the second message in the three-layer transmission protocol according to a destination address of the second message;
and establishing the association relation among the VE port identifier, the first forwarding label, the L3VPN identifier and the second forwarding label.
5. The method according to any one of claims 2 to 4, wherein the forwarding the first packet by using the second identifier specifically includes:
receiving a first message, and if the first identifier is a VE port identifier, forwarding the first message by using the L3VPN according to the incidence relation between the VE port identifier and the L3VPN identifier; alternatively, the first and second electrodes may be,
and receiving a first message, and if the first identifier is an L3VPN identifier, forwarding the first message by using the VE port identifier according to the association relationship between the VE port identifier and the L3VPN identifier.
6. An apparatus for processing a packet, the apparatus being applied to a gateway device, the apparatus comprising:
a receiving module, configured to receive a first packet, where the first packet is a packet forwarded across a transport protocol layer;
the acquisition module is used for acquiring a first identifier which is used for representing that the first message belongs to a first transmission protocol layer in the first message;
the processing module is used for forwarding the first message by using the second identifier according to the incidence relation between the first identifier and the second identifier;
wherein the second identifier is used to characterize a second transport protocol layer.
7. The apparatus according to claim 6, wherein the association relationship between the first identifier and the second identifier specifically includes:
and the VE port identification is used for representing a two-layer transmission protocol layer identification, and the L3VPN identification is used for representing a three-layer transmission protocol layer identification.
8. The apparatus of claim 7,
the receiving module is further configured to receive a second packet, where the second packet is a two-layer transport protocol layer packet;
the obtaining module is further configured to obtain a VE port identifier for receiving the second message;
the processing module is further configured to obtain an L3VPN identifier for forwarding the second packet in the three-layer transport protocol according to the destination address of the second packet, and establish an association relationship between the VE port identifier and the L3VPN identifier.
9. The apparatus of claim 7, wherein the association further comprises: the incidence relation between the second layer forwarding label and the third layer forwarding label;
the receiving module is further configured to receive a second packet, where the second packet is a two-layer transport protocol layer packet;
the obtaining module is further configured to obtain a VE port identifier for receiving the second packet and a first forwarding tag carried in the second packet;
the processing module is further configured to obtain, according to a destination address of the second packet, an L3VPN identifier for forwarding the second packet in the three-layer transport protocol, and a second forwarding tag for forwarding the second packet in the three-layer transport protocol, and establish an association relationship between the VE port identifier, the first forwarding tag, the L3VPN identifier, and the second forwarding tag.
10. The apparatus according to any one of claims 6 to 9,
the processing module is further configured to forward the first packet by using the L3VPN according to an association relationship between the VE port identifier and the L3VPN identifier when the first identifier of the received first packet is the VE port identifier;
or, when the first identifier of the received first message is the L3VPN identifier, forwarding the first message by using the VE port identifier according to the association relationship between the VE port identifier and the L3VPN identifier.
CN202010430585.6A 2020-05-20 2020-05-20 Message processing method and processing device Pending CN111740906A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010430585.6A CN111740906A (en) 2020-05-20 2020-05-20 Message processing method and processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010430585.6A CN111740906A (en) 2020-05-20 2020-05-20 Message processing method and processing device

Publications (1)

Publication Number Publication Date
CN111740906A true CN111740906A (en) 2020-10-02

Family

ID=72647486

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010430585.6A Pending CN111740906A (en) 2020-05-20 2020-05-20 Message processing method and processing device

Country Status (1)

Country Link
CN (1) CN111740906A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009012688A1 (en) * 2007-07-20 2009-01-29 Huawei Technologies Co., Ltd. Method, system and apparatus for forwarding message in three-layer virtual private network
WO2009021458A1 (en) * 2007-08-14 2009-02-19 Huawei Technologies Co., Ltd. Method, apparatus and system for connecting layer2 network and layer3 network
CN101667969A (en) * 2009-09-24 2010-03-10 中兴通讯股份有限公司 Method of accessing IP/L3VPN network of L2VPN network and device thereof
CN103326917A (en) * 2013-05-14 2013-09-25 盛科网络(苏州)有限公司 MPLS-based method and device for line speed mutual forwarding of two-layer VPN and three-layer VPN
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)
CN110365578A (en) * 2019-08-01 2019-10-22 新华三大数据技术有限公司 Network interface control and link switching method, device, network equipment and medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009012688A1 (en) * 2007-07-20 2009-01-29 Huawei Technologies Co., Ltd. Method, system and apparatus for forwarding message in three-layer virtual private network
WO2009021458A1 (en) * 2007-08-14 2009-02-19 Huawei Technologies Co., Ltd. Method, apparatus and system for connecting layer2 network and layer3 network
CN101667969A (en) * 2009-09-24 2010-03-10 中兴通讯股份有限公司 Method of accessing IP/L3VPN network of L2VPN network and device thereof
CN103326917A (en) * 2013-05-14 2013-09-25 盛科网络(苏州)有限公司 MPLS-based method and device for line speed mutual forwarding of two-layer VPN and three-layer VPN
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)
CN110365578A (en) * 2019-08-01 2019-10-22 新华三大数据技术有限公司 Network interface control and link switching method, device, network equipment and medium

Similar Documents

Publication Publication Date Title
EP3065342B1 (en) Update of mac routes in evpn single-active topology
US7701936B2 (en) Obtaining path information related to a bridged network
US6538997B1 (en) Layer-2 trace method and node
CN108632098B (en) Flow classifier, service routing trigger, message processing method and system
US20040066780A1 (en) Fast-path implementation for transparent LAN services using double tagging
CN101510855B (en) Method and apparatus for processing QinQ message
CN100566299C (en) The one multi-agreement label exchange business processing method and the network equipment
CN109714274B (en) Method for acquiring corresponding relation and routing equipment
CN101494610B (en) Method for processing message and switch
CN103401773A (en) Method and network equipment realizing interboard communication
CN107819682A (en) Prevent the data service loop associated with the transponder selection specified
CN109120492B (en) Storage unit, source switch, message forwarding method and mirror image system
CN103023779A (en) Method and device for processing data message
US8594127B2 (en) Communication device and communication method
EP2587742A1 (en) Method for forwarding message and switch chip
CN112333076B (en) Method and device for bearing VXLAN service through FlexE channel
CN109639552A (en) A kind of three-layer forwarding method and device
CN108259298A (en) A kind of message forwarding method and device
CN109039918A (en) A kind of file transmitting method and device
CN109039903B (en) Route determining method, device and machine-readable storage medium
CN115118545B (en) Group management protocol host mobility in ethernet virtual private network multicast networks
WO2008046281A1 (en) Method and apparatus for establishing forwarding filtering table
CN111740906A (en) Message processing method and processing device
CN114826918A (en) Message forwarding method, message processing method and device
CN103607350A (en) Method and device for generating route

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20201002