WO2017193732A1 - Procédé d'encapsulation et de décapsulation d'un message de données à pseudo-fil, et appareil associé - Google Patents
Procédé d'encapsulation et de décapsulation d'un message de données à pseudo-fil, et appareil associé Download PDFInfo
- Publication number
- WO2017193732A1 WO2017193732A1 PCT/CN2017/079348 CN2017079348W WO2017193732A1 WO 2017193732 A1 WO2017193732 A1 WO 2017193732A1 CN 2017079348 W CN2017079348 W CN 2017079348W WO 2017193732 A1 WO2017193732 A1 WO 2017193732A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- field
- data packet
- type
- packet
- packet header
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4633—Interconnection of networks using encapsulation techniques, e.g. tunneling
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/68—Pseudowire emulation, e.g. IETF WG PWE3
Definitions
- the present invention relates to the field of data processing, and in particular, to a method, a decapsulation method, and a related apparatus for a pseudowire data message.
- Pseudo Wire (English: Pseudo Wire, abbreviation: PW) or Pseudo Wire Edge-to-Edge Emulation (PWE3) is an Internet Protocol (English: Internet Protocol, abbreviation: IP) / Multi-Protocol Label Switching (English: Multi-Protocol Label Switching, abbreviation: MPLS) network Layer 2 bearer technology for simulating non-IP services.
- IP Internet Protocol
- MPLS Multi-Protocol Label Switching
- the PW or PWE3 can be implemented based on the IP or MPLS tunneling technology.
- the PW label (English: label) is added to the label stack of the IP/MPLS tunnel encapsulation (IP/MPLS Tunnel Encapsulation), and the non-IP service is added.
- the payload (for example, Payload) is encapsulated into the packet to form a PW data packet that can be transmitted based on the non-IP service in the IP/MPLS network.
- the PW label format is set between IP/MPLS Tunnel Encapsulation and Payload.
- the PW control word (English: Control Word) is generally used to carry the above related information.
- the PW control word is generally placed before the Payload, and after the PW label, for example, the PW data packet shown in FIG. The format.
- control word of different PW types there is no uniform format definition for control words of different PW types.
- the definition of some fields in control words of different PW types conflicts, and the control word itself cannot identify the type of PW, so that the receiving end cannot directly pass the PW control word.
- the type of the PW must be negotiated by the pre-configuration or the sender and the receiver. Otherwise, the control word cannot be parsed correctly. This method is very inflexible and has poor scalability, which is not conducive to PW. The continued promotion and development of technology.
- the embodiment of the present invention provides a method for encapsulating and decapsulating a pseudowire data packet, and a related device, and provides a unified and flexible definition manner to set a PW packet header, which has strong scalability.
- an embodiment of the present invention provides a method for encapsulating a pseudowire data packet, where the method includes:
- the sending device sets a PW packet header for the PW data packet, where the PW packet header includes an identifier field, a PW type-independent information field, a PW type field, and a first PW-specific information field, where the content in the identifier field is used.
- the PW data packet is a PW data packet with a PW packet header, and the content in the PW type-independent information field includes general information that is independent of the PW service type implemented by the PW data packet.
- the content in the PW type field is used to identify the PW
- the PW service type implemented by the data packet, where the first PW-specific information field has a fixed byte length, and is used to carry the unique information of the PW service type implemented by the PW data packet;
- the sending device encapsulates the PW packet header in the PW data packet, and sends the encapsulated PW data packet to the receiving device.
- the PW packet header is encapsulated between a field where the PW tag is located and a field where the service payload is located, by encapsulating the PW data packet.
- the PW packet header further includes a second PW-specific information field, where the second PW-specific information field has a variable length of a byte, and is used to carry the PW service type of the PW data packet.
- the second PW-specific information field has a variable length of a byte, and is used to carry the PW service type of the PW data packet.
- a specific portion of the unique information the specific portion being information that cannot be carried by the first PW-specific information field.
- the PW packet header further includes a flag bit field, where the content in the flag bit field is used to identify whether the second PW-specific information field is included in the PW packet header.
- an embodiment of the present invention provides a device for packaging a pseudowire data packet, where the encapsulating device includes:
- a setting unit configured to set a PW packet header for the pseudowire PW data packet, where the PW packet header includes an identifier field, a PW type-independent information field, a PW type field, and a first PW-specific information field, where the identifier
- the content in the field is used to identify that the PW data packet is a PW data packet with a PW packet header, and the content in the PW type-independent information field is not related to the PW service type implemented by the PW data packet.
- the content in the PW type field is used to identify the PW service type implemented by the PW data packet
- the first PW-specific information field has a fixed byte length and is used to carry the PW data.
- the encapsulating and transmitting unit is configured to encapsulate the PW packet header in the PW data packet, and send the encapsulated PW data packet to the receiving device.
- the PW data packet is encapsulated by the encapsulating and sending unit, and the field of the PW packet header is encapsulated between a field where the PW tag is located and a field where the service payload is located.
- the PW packet header further includes a second PW-specific information field, where the second PW-specific information field has a variable length of a byte, and is used to carry the PW service type of the PW data packet.
- the second PW-specific information field has a variable length of a byte, and is used to carry the PW service type of the PW data packet.
- a specific portion of the unique information the specific portion being information that cannot be carried by the first PW-specific information field.
- the PW packet header further includes a flag bit field, where the content in the flag bit field is used to identify whether the second PW-specific information field is included in the PW packet header.
- an embodiment of the present invention provides a method for decapsulating a pseudowire data packet, where the method includes:
- the receiving device decapsulates the data packet, and determines that the data packet is a PW data packet carrying a pseudowire PW packet header by using the content in the identifier field, where the PW packet header includes An identifier field, a PW type-independent information field, a PW type field, and a first PW-specific information field;
- the receiving device parses the PW packet header according to the format of the PW packet header, and specifically includes:
- the receiving device determines, by parsing the content in the PW type-independent information field, general information that is not related to the PW service type implemented by the PW data packet, and determines the content in the PW type field to determine the
- the PW service type implemented by the PW data packet is analyzed by the first PW-specific information field to determine the unique information of the PW service type implemented by the PW data packet.
- the PW packet header further includes a second PW-specific information field, where the length of the second PW-specific information field is variable, and the receiving device parses the format according to the format of the PW packet header.
- the PW header header also includes:
- the receiving device determines, by parsing the content in the second PW-specific information field, a specific part in the unique information of the PW service type implemented by the PW data packet, where the specific part is not available by the first part. Information carried in the PW-specific information field.
- the PW packet header further includes a flag bit field
- the receiving device parses the PW packet header according to the format of the PW packet header, and further includes:
- the receiving device determines whether the PW packet header includes the second PW-specific information field by parsing the content in the flag bit field.
- an embodiment of the present invention provides a decapsulation apparatus for a pseudowire data packet, where the decapsulation apparatus includes:
- a receiving unit configured to acquire a data packet sent by the sending device
- a decapsulating unit configured to decapsulate the data packet, and determine, by identifying the content in the identifier field, the data packet is a PW data packet carrying a pseudowire PW packet header, where the PW packet header Include the identifier field, a PW type-independent information field, a PW type field, and a first PW-specific information field;
- the parsing unit is configured to parse the PW packet header according to the format of the PW packet header, and specifically includes:
- Determining the general information irrelevant to the PW service type implemented by the PW data packet by parsing the content in the PW type-independent information field, and determining the PW data packet by parsing the content in the PW type field The PW service type that is implemented, by parsing the first PW-specific information field, determines the unique information of the PW service type implemented by the PW data packet.
- the PW packet header further includes a second PW-specific information field, where the second PW-specific information field has a variable byte length, and the parsing unit is further configured to analyze the second PW-specific
- the content in the information field determines a specific part of the unique information of the PW service type implemented by the PW data message, and the specific part is information that cannot be carried by the first PW-specific information field.
- the PW packet header further includes a flag bit field
- the parsing unit is further configured to determine, by parsing the content in the flag bit field, whether the PW packet header includes the second PW-specific Information field.
- an embodiment of the present invention provides a processing system for a pseudowire data packet, where the processing system includes a sending device and a receiving device:
- the sending device is configured to set a PW packet header for the pseudowire PW data packet, where the PW packet header includes an identifier field, a PW type-independent information field, a PW type field, and a first PW-specific information field, where The content in the identifier field is used to identify that the PW data packet is a PW data packet with a PW packet header, and the content in the PW type-independent information field includes the PW service implemented by the PW data packet.
- Type-independent general information the content in the PW type field is used to identify the PW service type implemented by the PW data packet, and the first PW-specific information field has a fixed byte length and is used to carry the
- the PW data packet is configured to be specific to the PW service type; the PW packet header is encapsulated in the PW data packet, and the encapsulated PW data packet is sent to the receiving device;
- the receiving device is configured to obtain a data packet sent by the sending device, decapsulate the data packet, and determine that the data packet carries the PW packet header by identifying content in the identifier field. Parsing the PW data packet according to the format of the PW packet header, and specifically: determining, by parsing the content in the PW type irrelevant information field, the PW data packet Defining the PW service type-independent general information, and determining the PW service type implemented by the PW data packet by parsing the content in the PW type field, and determining the first PW-specific information field to determine the The unique information of the PW service type implemented by the PW data packet.
- the set PW packet header includes an identifier field and a PW type irrelevant information field.
- the PW type field and the first PW-specific information field where each field is used to carry the content of the specified type, and the fields in the PW packet header are used to carry various types of services for defining and identifying the PW data packet.
- the required information so that the packet encapsulation of various types of PWs can be uniformly and flexibly defined, and the scalability is strong.
- the sending device may encapsulate the PW packet header in the PW data packet, so that the receiving device can identify the PW data by setting the content in the PW packet header to the PW data packet sent to the receiving device.
- the general information and the unique information carried in the packet, and the PW service type implemented by the PW data packet is determined.
- 1 is a schematic diagram of a format of a PW data packet
- FIG. 2 is a schematic diagram of a format of a PW packet header according to an embodiment of the present invention.
- FIG. 3 is a flowchart of a method for encapsulating a pseudowire data packet according to an embodiment of the present invention
- FIG. 4 is a schematic diagram of a format of a PW data packet according to an embodiment of the present disclosure
- FIG. 5 is a flowchart of a method for decapsulating a pseudowire data packet according to an embodiment of the present invention
- FIG. 6 is a structural diagram of an apparatus for a pseudowire data packet encapsulating apparatus according to an embodiment of the present invention.
- FIG. 7 is a structural diagram of an apparatus for decapsulating a pseudowire data packet according to an embodiment of the present invention.
- FIG. 8 is a system structural diagram of a system for processing a pseudowire data packet according to an embodiment of the present invention.
- FIG. 9 is a schematic structural diagram of hardware of a sending device according to an embodiment of the present disclosure.
- FIG. 10 is a schematic structural diagram of hardware of a receiving device according to an embodiment of the present invention.
- IP/MPLS networks such as carrying wireless forwards (English: Fronthaul) services over IP/MPLS networks, smart grids. (English: Smart Grid) business or professional audio/video (English: Pro-Audio/Video) business.
- the new PW service can be used to carry these new services in the IP/MPLS network. For this reason, a new PW service type may be defined. Different PW service types have different attributes and processing requirements.
- the traditional method is to use the PW control word to carry related information for processing a certain PW service, for example, it can carry information to prevent out-of-order, transfer control and alarm information, and the like.
- control word is used to determine the service type of the pseudowire and the format of the control word.
- the type of the PW must be negotiated by the pre-configuration or the sender and the receiver. Otherwise, the control word cannot be parsed correctly. This method is very inflexible and expands. Poor performance is not conducive to the continued promotion and development of PW technology.
- the inventors have found that the conventional PW control word occupies a fixed byte length of only 4 bytes, which is capable of carrying limited content and poor scalability. For some new features and new PW services, there is not enough space to carry the information needed. Therefore, even if the unified PW control word carries the format definition method of related information, it is difficult to meet the processing requirements of more and more PW service types.
- the embodiment of the present invention provides a method for encapsulating and decapsulating a pseudowire data packet, and a related device.
- the set PW packet header includes an identifier field, a PW type independent information field, a PW type field, and a first The PW-specific information field, where each field is used to carry the specified type of content, and the fields in the PW packet header are used to carry various required information for defining and identifying the service type implemented by the PW data packet, thereby A unified packet header encapsulation mode is defined for various PW service types, and unique information of a specific PW type can be carried, and has strong scalability.
- the sending device may encapsulate the PW packet header in the PW data packet, so that the receiving device can identify the PW data by setting the content in the PW packet header to the PW data packet sent to the receiving device.
- the general information and the unique information carried in the packet, and the PW service type implemented by the PW data packet is determined.
- each field for carrying a specified type of content is explicitly defined, so as to carry a PW service type that can present and may appear.
- the PW packet header may include an identifier (English: First Nibble) field, a PW type-independent information (English: PW-Type Independent Information) field, and a PW type (English: PW-Type) field. And the first PW-specific information (English: PW-specific Information) field.
- the identifier field is located at the forefront of the PW packet header, and the field may be referred to as the first nibble or the first 4 bits, for example, the frontmost "XXXX" portion of the PW packet header format shown in FIG.
- the content in the identifier field is used to identify that the PW data packet is a PW data packet with a PW packet header, that is, when the receiving device receives a data packet, if the data packet is received, With the identifier field, the receiving device can distinguish the data packet from other IPv4, IPv6 packets, PW control words, and other data packets by using the identifier function of the identifier field.
- the receiving device can identify that the data packet is the PW data packet carrying the PW packet header provided in the embodiment of the present invention.
- the identifier field may be set to 2 or 3, and the PW data packet carries the PW packet header.
- the content in the PW type-independent information field includes general information that is independent of the PW service type implemented by the PW data packet, that is, information common to various types of PW services.
- the PW type-independent information field may include at least an Operation Administration and Maintenance (OAM) field, a Quality of Service (QoS: QoS) field, and a sequence number (English: Sequence Number).
- OAM Operation Administration and Maintenance
- QoS Quality of Service
- sequence number English: Sequence Number
- a field and a flow identifier English: Flow Identifier
- the PW type-independent information field including the fields may be set in the front part of the PW packet header format, for example, in the packet header format shown in FIG. The format and order of the two lines.
- the content carried in the OAM field may be used to indicate which OAM-related processing, such as packet statistics, is performed on the PW data packet.
- the content carried in the QoS field may be used to indicate the quality of service required by the PW data packet.
- the content carried in the sequence number field can be used to prevent the service packets from being out of order in the PW data packet.
- the content carried in the flow identifier field can be used to identify the data flow to which the PW data packet belongs.
- the content in the PW type field is mainly used to identify the PW service type implemented by the PW data packet.
- the different PW service types may also include information specific to the PW service type, and may include, for example, control information, status information, and alarm information.
- the PW packet header may also carry such information through a defined field, including a PW-specific information field.
- the content type and the length of the Bytes carried in the first PW-specific information field are preset, and are used to carry the unique information of the PW service type implemented by the PW data packet.
- the format of the PW-specific information field may be a set of bit flag bits with a specific meaning, or other formats may be defined according to a specific PW type.
- the first PW-specific information field basically defines content that may be carried in the specific information of each PW service type that is currently common. If all the information in the unique information of the PW service type implemented by the PW data packet is already defined in the first PW-specific information field, all the PW service types may be carried by the first PW-specific information field. Unique information. If some information in the unique information of a certain PW service type is not predefined in the first PW-specific information field, the part of the information specific to the PW service type cannot be carried by the first PW-specific information field. Or, it can be understood that there is not enough reserved location in the first PW-specific information field to carry the information. Optionally, the part of the information may be carried by other fields provided by the embodiment of the present invention. In this case, the first PW-specific information field may carry only a part of the unique information of the PW service type.
- the PW packet header may further include a second PW-specific information field.
- PW-Type Specific Variables the second PW-specific information field has a variable byte length, and is used to carry a specific part of the PW service type-specific information that is implemented by the PW data packet, where the specific part is Information that cannot be carried by the first PW-specific information field.
- the specific information included in the information may be the information that is not defined in the first PW-specific information field.
- the second PW-specific information field Through the second PW-specific information field, high scalability can be achieved, and new information in a specific PW service type that may appear is prepared.
- the PW packet header may further include a flag bit field, and the flag bit may be included in the PW packet header.
- the content in the field is used to identify whether the second PW-specific information field is included in the PW packet header. For example, when the content of the flag bit field is set to 1, the PW packet header includes the second PW-specific information field, and when set to 0, the PW packet header does not include the second PW-specific header. Information field.
- the location of the flag bit field in the PW packet header may be as shown in FIG. 2. In FIG. 2, the flag bit field is specifically a "V" portion.
- the PW packet header is encapsulated and decapsulated in the PW data packet.
- the sending device sets a PW packet header for the PW data packet.
- the sending device and the receiving device in the embodiment of the present invention may be network devices.
- the sending device and the receiving device may be network edge (English: Provider Edge, abbreviation: PE) device.
- PE Provider Edge
- the sending device and the receiving device may determine whether to use the encapsulation mode of the PW packet header, that is, whether the PW packet header is carried in the PW data packet.
- the content in the PW packet header is directly related to the PW service implemented by the PW data packet.
- Step 102 The sending device encapsulates the PW packet header in the PW data packet, and sends the encapsulated PW data packet to the receiving device.
- the encapsulation mode may be that the set PW packet header is added before the service payload field, and the sending device adds a PW label and an external tunnel encapsulation.
- the field of the PW packet header may be encapsulated between the field where the PW tag is located and the field where the service payload is located.
- the format of the encapsulated PW data packet may be as shown in FIG. 4 . Show.
- the receiving device acquires a data packet sent by the sending device.
- the receiving device decapsulates the data packet, and determines, by using the content in the identifier field, that the data packet is a PW data packet carrying a PW packet header, where the PW packet header includes a The identifier field, the PW type-independent information field, the PW type field, and the first PW-specific information field.
- the receiving device removes the tunnel encapsulation and the PW label outside the encapsulated data packet
- the data packet can be determined to be a PW packet by using the content of the identifier.
- the PW data packet of the header can be parsed according to the format of the PW packet, and the PW packet header can be parsed according to the parsing manner of the PW packet header.
- the receiving device parses the PW packet header according to the format of the PW packet header, and specifically includes:
- the receiving device determines, by parsing the content in the PW type-independent information field, general information that is not related to the PW service type implemented by the PW data packet, and determines the content in the PW type field to determine the The PW service type implemented by the PW data packet and the format of the first PW-specific information field.
- the specific information of the PW service type implemented by the PW data packet is determined by parsing the first PW-specific information field.
- the receiving device can perform explicit OAM-related processing, such as packet statistics, on the PW data packet by analyzing the content carried in the OAM field.
- OAM-related processing such as packet statistics
- the quality of service required by the PW data packet can be clarified.
- the out-of-order service packets in the PW data packet can be rearranged.
- the data stream to which the PW data packet belongs can be clarified by parsing the content carried in the flow identifier field.
- the receiving device may further include: the parsing the PW packet header according to the format of the PW packet header:
- the receiving device determines, by further parsing the content in the second PW-specific information field, a specific part in the unique information of the PW service type implemented by the PW data packet, where the specific part is unable to be Information carried by a PW-specific information field.
- the PW packet header further includes a flag bit field
- the receiving device parses the PW packet header according to the format of the PW packet header, and further includes:
- the receiving device determines whether the PW packet header includes the second PW-specific information field by parsing the content in the flag bit field.
- the receiving device can be made to specify the field to be parsed and the content that may be carried.
- the accuracy and efficiency of the PW data packet carrying the PW packet header are improved by the receiving device.
- the set PW packet header includes an identifier field, a PW type-independent information field, a PW type field, and a first PW-specific information field, where each field is used to carry content of a specified type, and the PW message is used.
- the fields in the header carry various required information for defining and identifying the service type of the PW data packet, so that a unified packet header encapsulation mode is defined for various PW service types, and a specific PW type can be carried.
- Unique letter Interest and has a strong scalability.
- the sending device may encapsulate the PW packet header in the PW data packet, so that the receiving device can identify the PW data by setting the content in the PW packet header to the PW data packet sent to the receiving device.
- the general information and the unique information carried in the packet, and the PW service type implemented by the PW data packet is determined.
- the encapsulating device may be a network device in the network for transmitting the PW data packet.
- the packaging device 600 may include a setting unit 601 and a packaging and sending unit 602:
- the setting unit 601 is configured to set a PW packet header for the PW data packet, where the PW packet header includes an identifier field, a PW type-independent information field, a PW type field, and a first PW-specific information field, where the identifier
- the content of the PW data packet is a PW data packet with a PW packet header
- the content in the PW type-independent information field includes a PW service type implemented by the PW data packet.
- the unrelated general information, the content in the PW type field is used to identify the PW service type implemented by the PW data packet
- the first PW-specific information field has a fixed byte length and is used to carry the PW.
- the unique information of the PW service type implemented by the data message is configured to set a PW packet header for the PW data packet, where the PW packet header includes an identifier field, a PW type-independent information field, a PW type field, and a first PW-specific information field
- the encapsulating and transmitting unit 602 is configured to encapsulate the PW packet header in the PW data packet, and send the encapsulated PW data packet to the receiving device.
- the PW data packet is encapsulated by the encapsulating and sending unit, and the field of the PW packet header is encapsulated between a field where the PW tag is located and a field where the service payload is located.
- the PW packet header further includes a second PW-specific information field, where the second PW-specific information field has a variable length of a byte, and is used to carry the PW service type of the PW data packet.
- the second PW-specific information field has a variable length of a byte, and is used to carry the PW service type of the PW data packet.
- a specific portion of the unique information the specific portion being information that cannot be carried by the first PW-specific information field.
- the PW packet header further includes a flag bit field, where the content in the flag bit field is used to identify whether the second PW-specific information field is included in the PW packet header.
- the decapsulation apparatus may be a network device in the network for receiving the PW data packet.
- the decapsulation apparatus 700 may include a receiving unit 701, a decapsulation unit 702, and a parsing unit 703:
- the receiving unit 701 is configured to acquire a data packet sent by the sending device.
- the decapsulating unit 702 is configured to decapsulate the data packet, and determine that the data packet is a PW data packet carrying a pseudowire PW packet header by using the content in the identifier field, the PW packet
- the header includes the identifier field, a PW type-independent information field, a PW type field, and a first PW-specific information field.
- the parsing unit 703 is configured to parse the PW packet header according to the format of the PW packet header, and specifically includes:
- Determining the general information irrelevant to the PW service type implemented by the PW data packet by parsing the content in the PW type-independent information field, and determining the PW data packet by parsing the content in the PW type field The PW service type that is implemented, by parsing the first PW-specific information field, determines the unique information of the PW service type implemented by the PW data packet.
- the PW packet header further includes a second PW-specific information field, where the second PW-specific information field has a variable byte length, and the parsing unit is further configured to analyze the second PW-specific
- the content in the information field determines a specific part of the unique information of the PW service type implemented by the PW data message, and the specific part is information that cannot be carried by the first PW-specific information field.
- the PW packet header further includes a flag bit field, where the parsing unit is further configured to parse the flag.
- the content in the bit field determines whether the PW packet header includes the second PW-specific information field.
- FIG. 8 is a system structural diagram of a pseudowire data packet processing system according to an embodiment of the present invention.
- the processing system 800 includes a sending device 801 and a receiving device 802:
- the sending device is configured to set a PW packet header for the pseudowire PW data packet, where the PW packet header includes an identifier field, a PW type-independent information field, a PW type field, and a first PW-specific information field, where The content in the identifier field is used to identify that the PW data packet is a PW data packet with a PW packet header, and the content in the PW type-independent information field includes the PW service implemented by the PW data packet.
- Type-independent general information the content in the PW type field is used to identify the PW service type implemented by the PW data packet, and the first PW-specific information field has a fixed byte length and is used to carry the
- the PW data packet is configured to be specific to the PW service type; the PW packet header is encapsulated in the PW data packet, and the encapsulated PW data packet is sent to the receiving device;
- the receiving device is configured to obtain a data packet sent by the sending device, decapsulate the data packet, and determine that the data packet carries the PW packet header by identifying content in the identifier field. Parsing the PW data packet according to the format of the PW packet header, and specifically: determining, by parsing the content in the PW type irrelevant information field, the PW data packet Defining the PW service type-independent general information, and determining the PW service type implemented by the PW data packet by parsing the content in the PW type field, and determining the first PW-specific information field to determine the The unique information of the PW service type implemented by the PW data packet.
- the set PW header includes an identifier field, a PW type-independent information field, a PW type field, and a first PW-specific information field, where each field is used to carry the specified type of content, respectively.
- These fields in the PW packet header carry various required information for defining and identifying the service type of the PW data packet, so that the packet encapsulation of various types of PWs can be uniformly and flexibly defined and expanded. Strong.
- the sending device may encapsulate the PW packet header in the PW data packet, so that the receiving device can identify the PW data by setting the content in the PW packet header to the PW data packet sent to the receiving device.
- the general information and the unique information carried in the packet, and the PW service type implemented by the PW data packet is determined.
- FIG. 9 is a schematic diagram of a hardware structure of a sending device according to an embodiment of the present invention.
- the sending device 900 includes a memory 901 and a transmitter 902, and is respectively connected to the memory 901 and the transmitter 902.
- the processor 903 is configured to store a set of program instructions, and the processor 903 is configured to invoke the program instructions stored by the memory 901 to perform the following operations:
- the PW data packet is a PW data packet with a PW packet header
- the content in the PW type-independent information field includes general information that is independent of the PW service type implemented by the PW data packet
- the PW The content in the type field is used to identify the PW service type that is implemented by the PW data packet
- the first PW-specific information field has a fixed byte length, and is used to carry the PW service type that is implemented by the PW data packet.
- the transmitter 902 is configured to encapsulate the PW packet header in the PW data packet, and send the encapsulated PW data packet to the receiving device.
- the processor 903 may be a central processing unit (CPU), and the memory 901 may be a random access memory (RAM) type internal storage.
- the transmitter and the 902 may include a common physical interface, and the physical interface may be an Ethernet interface or an Asynchronous Transfer Mode (ATM) interface.
- the processor 903, the transmitter 902, and the memory 901 may be integrated into one or more independent circuits or hardware, such as an Application Specific Integrated Circuit (ASIC).
- ASIC Application Specific Integrated Circuit
- FIG. 10 is a schematic diagram of a hardware structure of a receiving device, where the receiving device 1000 includes a memory 1001 and a receiver 1002, and is respectively connected to the memory 1001 and the receiver 1002.
- the processor 1003 is configured to store a set of program instructions, and the processor 1003 is configured to invoke the program instructions stored by the memory 1001 to perform the following operations:
- Parsing the PW packet header according to the format of the PW packet header includes:
- Determining the general information irrelevant to the PW service type implemented by the PW data packet by parsing the content in the PW type-independent information field, and determining the PW data packet by parsing the content in the PW type field The PW service type that is implemented, by parsing the first PW-specific information field, determines the unique information of the PW service type implemented by the PW data packet.
- the processor 1003 may be a CPU
- the memory 1001 may be a RAM type internal memory
- the receiver 1002 may include a common physical interface, and the physical interface may be an Ethernet interface or an ATM interface.
- the processor 1003, the receiver 1002, and the memory 1001 can be integrated into one or more separate circuits or hardware, such as an ASIC.
- the "first" of the first PW-specific information field mentioned in the embodiment of the present invention is only used for the name identification, and does not represent the first in the order. The same rule applies to the "second".
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
L'invention concerne un procédé d'encapsulation et de décapsulation d'un message de données à pseudo-fil (PW), et un appareil associé. Un en-tête de message PW défini comprend un champ d'identifiant, un champ d'informations non pertinentes de type PW, un champ de type PW et un premier champ d'informations spécifiques PW, chaque champ étant respectivement utilisé pour transporter un type de contenu désigné, et les champs dans l'en-tête de message PW comportant diverses informations requises pour définir et identifier un type de service réalisé par un message de données PW, de sorte que divers types de messages PW peuvent être encapsulés de manière uniforme et définis de manière flexible, et que la capacité d'extension est forte. Grâce au fait que le contenu est défini dans un en-tête de message PW pour un message de données PW envoyé à un dispositif de réception, un dispositif d'envoi peut encapsuler l'en-tête de message PW dans le message de données PW pour permettre au dispositif de réception d'identifier des informations générales et des informations spécifiques contenues dans le message de données PW, et de déterminer un type de service PW réalisé par le message de données PW.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610310741.9A CN107370654B (zh) | 2016-05-11 | 2016-05-11 | 一种伪线数据报文的封装、解封装方法和相关装置 |
CN201610310741.9 | 2016-05-11 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2017193732A1 true WO2017193732A1 (fr) | 2017-11-16 |
Family
ID=60266202
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2017/079348 WO2017193732A1 (fr) | 2016-05-11 | 2017-04-01 | Procédé d'encapsulation et de décapsulation d'un message de données à pseudo-fil, et appareil associé |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107370654B (fr) |
WO (1) | WO2017193732A1 (fr) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112448918A (zh) * | 2019-08-29 | 2021-03-05 | 华为技术有限公司 | 报文传输方法及装置、计算机存储介质 |
CN113542374A (zh) * | 2021-06-30 | 2021-10-22 | 北京宇信科技集团股份有限公司 | 报文处理方法及系统 |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109995468A (zh) * | 2018-01-03 | 2019-07-09 | 凌群电脑股份有限公司 | 高效能数据长度可变的信息组成方法及其系统 |
CN110611625B (zh) | 2018-11-27 | 2020-11-06 | 新华三技术有限公司 | 网络设备及应用于网络设备的逻辑装置 |
CN111917735A (zh) * | 2020-07-12 | 2020-11-10 | 中信银行股份有限公司 | 通讯报文的生成与处理方法、装置及电子设备 |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101610263A (zh) * | 2009-06-23 | 2009-12-23 | 中兴通讯股份有限公司 | E1业务边缘到边缘伪线仿真封装、解封装方法及装置 |
US20100085974A1 (en) * | 2008-10-03 | 2010-04-08 | Fujitsu Limited | Communication device and communication method |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101572651B (zh) * | 2008-04-30 | 2013-06-05 | 华为技术有限公司 | 报文传输的方法及装置 |
-
2016
- 2016-05-11 CN CN201610310741.9A patent/CN107370654B/zh active Active
-
2017
- 2017-04-01 WO PCT/CN2017/079348 patent/WO2017193732A1/fr active Application Filing
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100085974A1 (en) * | 2008-10-03 | 2010-04-08 | Fujitsu Limited | Communication device and communication method |
CN101610263A (zh) * | 2009-06-23 | 2009-12-23 | 中兴通讯股份有限公司 | E1业务边缘到边缘伪线仿真封装、解封装方法及装置 |
Non-Patent Citations (1)
Title |
---|
L. MARTINI, E. ET AL.: "Pseudowire Setup and Maintenance Using the Label Distribution Protocol (LDP", RFC4447, 30 April 2006 (2006-04-30), XP015046298 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112448918A (zh) * | 2019-08-29 | 2021-03-05 | 华为技术有限公司 | 报文传输方法及装置、计算机存储介质 |
CN113542374A (zh) * | 2021-06-30 | 2021-10-22 | 北京宇信科技集团股份有限公司 | 报文处理方法及系统 |
CN113542374B (zh) * | 2021-06-30 | 2022-04-12 | 北京宇信科技集团股份有限公司 | 报文处理方法及系统 |
Also Published As
Publication number | Publication date |
---|---|
CN107370654A (zh) | 2017-11-21 |
CN107370654B (zh) | 2019-12-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11979322B2 (en) | Method and apparatus for providing service for traffic flow | |
WO2017193732A1 (fr) | Procédé d'encapsulation et de décapsulation d'un message de données à pseudo-fil, et appareil associé | |
EP3139560B1 (fr) | Dispositif et procédé de traitement de paquets et support de stockage informatique | |
JP5345942B2 (ja) | Pbtネットワークの中間ノードにおけるイーサネットoam | |
US8681805B2 (en) | Method, device and system for interconnecting a multi-protocol label switching network and an ethernet | |
WO2017054576A1 (fr) | Procédé, appareil et système de construction de tunnel à diffusion unique | |
EP3133797B1 (fr) | Procédé de transfert de message, système et dispositif d'agent de relais | |
WO2018210225A1 (fr) | Procédé et dispositif de mise en œuvre automatique d'encapsulation ioam, et support d'informations | |
WO2009012688A1 (fr) | Procédé, système et appareil de réacheminement de message dans un réseau privé virtuel à trois couches | |
WO2008080315A1 (fr) | Procédé, équipement et système de transmission de données | |
WO2018188663A1 (fr) | Procédé et dispositif de notification d'informations | |
WO2021088813A1 (fr) | Procédé et appareil d'encapsulation de paquets, et procédé et appareil de décapsulation de paquets | |
WO2021174943A1 (fr) | Procédé et appareil d'acheminement de données, et dispositif et support de stockage | |
WO2021190009A1 (fr) | Procédé et appareil de mesure de performance, dispositif, et support de stockage | |
CN108075991B (zh) | 报文转发方法及装置 | |
WO2008003218A1 (fr) | Procédé, dispositif et système de transmission d'informations entre des appareils dans éthernet | |
WO2020134564A1 (fr) | Procédé et dispositif de traitement d'informations ioam, et support de stockage lisible par ordinateur | |
WO2021254454A1 (fr) | Procédé de détection d'oam de bier, et dispositif et système | |
EP3913865B1 (fr) | Procédé et dispositif de décapsulation de message, procédé et dispositif d'encapsulation de message, dispositif électronique et support d'informations | |
WO2023231428A1 (fr) | Procédé d'encapsulation de paquet ipv4, dispositif électronique et support de stockage informatique | |
WO2022237563A1 (fr) | Procédé et appareil de transfert de données, support de stockage et appareil électronique | |
WO2024041064A1 (fr) | Procédé de transmission de paquets quic et dispositif associé | |
WO2024055858A1 (fr) | Procédé de télémétrie d'informations de flux in situ, nœud d'encapsulation, nœud de télémétrie et support lisible par ordinateur | |
WO2022000264A1 (fr) | Procédé et appareil de détection de défaut, et dispositif pe | |
CN101350693B (zh) | 一种传送协议信息的方法和装置 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17795350 Country of ref document: EP Kind code of ref document: A1 |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 17795350 Country of ref document: EP Kind code of ref document: A1 |