WO2006131063A1 - A method for determining the subscriber data encapsulation type automatically and an upstream data processing device - Google Patents

A method for determining the subscriber data encapsulation type automatically and an upstream data processing device Download PDF

Info

Publication number
WO2006131063A1
WO2006131063A1 PCT/CN2006/001217 CN2006001217W WO2006131063A1 WO 2006131063 A1 WO2006131063 A1 WO 2006131063A1 CN 2006001217 W CN2006001217 W CN 2006001217W WO 2006131063 A1 WO2006131063 A1 WO 2006131063A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
user
processing device
encapsulation type
data processing
Prior art date
Application number
PCT/CN2006/001217
Other languages
French (fr)
Chinese (zh)
Inventor
Jianjun Li
Gang Xu
Original Assignee
Huawei 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 Huawei Technologies Co., Ltd. filed Critical Huawei Technologies Co., Ltd.
Publication of WO2006131063A1 publication Critical patent/WO2006131063A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/18Multiprotocol handlers, e.g. single devices capable of handling multiple protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2212/00Encapsulation of packets

Definitions

  • the present invention relates to user data encapsulation technology in a communication network, and in particular to a method for automatically determining a user data encapsulation type and an upstream data processing device.
  • the user terminal usually accesses the Internet (Internet) through the digital subscriber loop modem (xDSL Modem) and the Digital Subscriber Loop Access Multiplexer (DSLAM) and interacts with the Internet.
  • Internet Internet
  • xDSL Modem digital subscriber loop modem
  • DSLAM Digital Subscriber Loop Access Multiplexer
  • the user terminal 110 is connected to the DSLAM 130 through the xDSL Modem 120, and the DSLAM 130 is usually connected to the Internet 150 through the switch 140.
  • a switch can also be connected between the DSL Modem 120 and the DSLAM 130.
  • the xDSL Modem 120 and the DSLAM 130 are respectively provided with data encapsulation types, and different data encapsulation types have different data encapsulation formats.
  • the xDSL Modem 120 can support more than one user connection, and is provided with a single data encapsulation type for encapsulating and decapsulating user data, namely: xDSL Modem 120 supports several user connections, xDSL Modem 120 pairs flow through The data encapsulation type applied when the user data is encapsulated or decapsulated has the same data encapsulation format.
  • the DSLAM 130 can be coupled to more than one of the xDSL Modem 120, on which more than one type of data encapsulation is manually configured.
  • the data encapsulation type applied by the DSLAM 130 may have a different data encapsulation format for each xDSL Modem 120 connected.
  • xDSL Modem 120 and DSLAM 130 typically communicate using the Asynchronous Transfer Mode (ATM) protocol, which supports Logical Link Control (LLC), LLC/Subnet.
  • ATM Asynchronous Transfer Mode
  • LLC Logical Link Control
  • SNAP additional point
  • VC virtual circuit
  • the data encapsulation type of the xDSL Modem 120 application has the same data encapsulation format as that of the data encapsulation type of the DSDSL Modem 120 application, and may also be considered as: xDSL Modem 120
  • the data encapsulation type of the application must be the same as the data encapsulation type of the DSLAM 130 application for the xDSL Modem 120 application.
  • the data encapsulation type set by the user on the xDSL Modem 120 is an LLC encapsulation type, and the operator establishes a correspondence between the identifier of the xDSL Modem 120 and the data encapsulation type of the LLC on the DSLAM 130, that is, The data encapsulation type applied by the DSLAM 130 for the xDSL Modem 120 is set to the LLC encapsulation type.
  • the xDSL modem 120 encapsulates the received data packet in a data encapsulation format of a preset LLC encapsulation type, and then completes the encapsulated data packet. Sent to the DSLAM 130.
  • the DSLAM 130 After receiving the data packet from the xDSL modem 120, the DSLAM 130 searches for the data encapsulation type value corresponding to the identifier of the DSL Modem 120 stored by itself. Then, the data encapsulation format of the LLC encapsulation type is used to decapsulate the received data packet, and the decapsulated data packet is sent to the Internet 150 through the switch 140.
  • the DSLAM 130 when the DSLAM 130 receives the data packet from the Internet 150, it reads the identifier of the xDSL Modem 120 included in the packet, and searches for the data encapsulation type value corresponding to the user connection identifier stored by itself. Then, the data encapsulation format of the LLC encapsulation type found by the application encapsulates the received data packet, and sends the encapsulated data packet to the DSL Modem 120. The xDSL modem 120 decapsulates the received data packet in the data encapsulation format of the LLC encapsulation type, and then sends the decapsulated data packet to the user terminal 110.
  • the DSLAM 130 pin is usually set by manual setting.
  • the data encapsulation type applied to the xDSL Modem 120 is the same as the data encapsulation type applied to the xDSL Modem 120.
  • the operator needs to perform a large number of manual configuration operations on the DSLAM 130 to ensure the data encapsulation type and corresponding xDSL applied by the DSLAM 130 for each xDSL Modem.
  • Modem applies the same data encapsulation type. It can be seen that the manual configuration operation is too large, which requires a lot of manpower and financial resources, and obviously increases the operating cost.
  • the DSLAM 130 still applies the data encapsulation format of the originally set data encapsulation type to encapsulate and decapsulate the data packet for the xDSL Modem, which will enable the DSLAM 130 to apply the data encapsulation type to the xDSL Modem.
  • the data encapsulation type applied by the xDSL Modem is inconsistent, which causes the DSLAM 130 and the xDSL Modem to fail to perform data interaction normally, which ultimately affects the communication of the user terminal connected to the xDSL Modem and reduces user satisfaction.
  • the main object of the present invention is to provide a method for automatically determining the type of user data encapsulation, thereby reducing the workload of manual operations and reducing operating costs.
  • Another object of the present invention is to provide an upstream data processing device.
  • the present invention discloses a method for automatically determining a user data encapsulation type, the method comprising: a.
  • the upstream data processing device receives a data message from the user terminal, and determines, according to the data message, whether the user terminal is processed with the upstream data.
  • the device is established with a user connection, if Yes, proceed to step b; otherwise, proceed to step c;
  • the upstream data processing device determines the data encapsulation type corresponding to the received data packet according to the correspondence between the preset data packet and the data encapsulation type, and applies the data encapsulation format of the data encapsulation type.
  • the data packet is decapsulated.
  • the method for determining in the step a is: the upstream data processing device searches for the same user connection identifier as the user connection identifier included in the received data packet in the saved user connection identifier, and if the user connection identifier is found, It is determined that a user connection is established with the user terminal; otherwise, it is determined that a user connection is not established with the user terminal.
  • the step b includes: the upstream data processing device searches for the stored data encapsulation type value corresponding to the user connection identifier, and decapsulates the data packet by using a data encapsulation format of the data encapsulation type corresponding to the value.
  • the determining method is: the upstream data processing device searches for the same user connection identifier and the user connection identifier corresponding to the user connection identifier included in the received data packet in the saved user connection identifier. a data encapsulation type value, if the user connection identifier and its corresponding data encapsulation type value are found, determining that a user connection is established with the user terminal; otherwise, determining that a user connection is not established with the user terminal;
  • the step b includes: decapsulating the data packet by the data encapsulation format of the data encapsulation type corresponding to the data encapsulation type value found by the upstream data processing device.
  • step b and step c after the upstream data processing device completes the decapsulation, the method further includes: sending the decapsulated data packet to the Internet, or locally processing the decapsulated data.
  • the method for determining the data encapsulation type is: the upstream data processing device reads the header information of the received data packet, and the header information and data preset according to the communication protocol.
  • the mapping relationship between the encapsulation types and the data encapsulation type corresponding to the header information of the received data packet is determined as the data encapsulation type corresponding to the data packet.
  • the method for establishing the corresponding relationship and saving is: the upstream data processing device establishes a correspondence between the user connection identifier included in the data packet and the determined value of the data encapsulation type and saves.
  • the correspondence is saved in the upstream data processing device itself or in a third party device.
  • the method further includes: the upstream data processing device reads the user connection identifier included in the data packet to be sent to the user terminal, searches for the stored data encapsulation type value corresponding to the user connection identifier, and uses the data encapsulation type corresponding to the value
  • the data encapsulation format has the data encapsulation.
  • the method further includes: transmitting the encapsulated data packet to the user terminal.
  • the method further includes: the user terminal sending a user connection release message to the upstream data processing device, after receiving the message, the upstream data processing device reads the user connection identifier included in the message, and deletes the stored user connection identifier and the corresponding The value of the data encapsulation type.
  • the upstream data processing device is a DSLAM connected to the user terminal, or a switch connected between the DSLAM and the Internet, or a switch connected between the DSLAM and the user terminal.
  • the user connection identifier is a user terminal network address or a user session identifier.
  • the present invention also discloses an upstream data processing device, including a storage unit, a connection determination unit, a package type determination unit, and a decapsulation unit.
  • the storage unit is configured to store a data encapsulation format of a data encapsulation type corresponding to the user connection.
  • connection judging unit is configured to determine, according to the data packet from the user terminal, whether the user terminal establishes a user connection with the upstream data processing device, and provides the judgment result a unit for determining a package type; a package type determining unit for determining The result is that when the user connection is established, determining that the data encapsulation type corresponding to the user connection in the storage unit has a data encapsulation format is a user data encapsulation format, and when the judgment result is that no user connection is established, according to the datagram in the storage unit.
  • Corresponding relationship between the text and the data encapsulation type determining that the data encapsulation type corresponding to the received data packet is a user data encapsulation type; and decapsulating unit, configured to encapsulate the encapsulation format according to the determined user data encapsulation type The data packet is decapsulated.
  • the upstream data processing device further includes: a post-processing unit, configured to send the decapsulated data to the Internet or perform local processing.
  • the storage unit is located in the upstream data processing device itself or in a third party device.
  • the upstream data processing device further includes: an encapsulating unit, configured to encapsulate the data packet of the user terminal according to the encapsulation type.
  • the encapsulation type determining unit is further configured to read the user connection identifier included in the data packet to be sent to the user terminal, search for a data encapsulation type corresponding to the user connection identifier in the storage unit, and determine that it is user data.
  • Package type configured to read the user connection identifier included in the data packet to be sent to the user terminal, search for a data encapsulation type corresponding to the user connection identifier in the storage unit, and determine that it is user data.
  • the upstream data processing device further includes: a post-processing unit, configured to send the encapsulated data message to the user terminal.
  • the upstream data processing device further includes: a dry release unit configured to read the user connection identifier included in the user connection release message from the user terminal, and delete the user connection identifier in the storage unit and its corresponding data encapsulation type.
  • the upstream data processing device is a DSLAM connected to the user terminal, or a switch connected between the DSLAM and the Internet, or a switch connected between the DSLAM and the user terminal.
  • the upstream data processing device may be based on a preset data packet and data encapsulation type. Corresponding relationship, determining a data encapsulation type corresponding to the received data packet, and decapsulating the data packet by using a data encapsulation format of the data encapsulation type; the upstream data processing device is still in the data Corresponding relationship between the user connection corresponding to the packet and the data encapsulation type is saved, and the data processing encapsulation format of the data encapsulation type is applied to the upstream data processing device for data encapsulation. Decapsulation; This makes the data encapsulation type of the upstream data processing device no longer need to be manually operated, which greatly reduces the workload of manual operations and significantly reduces operating costs. BRIEF DESCRIPTION OF THE DRAWINGS
  • Figure 1 is a schematic diagram of data interaction between a user terminal and the Internet
  • FIG. 2 is a flow chart of DSLAM processing user data according to a preferred embodiment of the present invention
  • FIG. 3 is a flow chart of DSLAM processing user data according to another preferred embodiment of the present invention
  • FIG. 4 is a flowchart of an upstream data processing device according to an embodiment of the present invention; schematic diagram. Mode for carrying out the invention
  • the data packet from the user terminal is received by an upstream data processing device such as a DSLAM, and the user is determined whether the user terminal establishes a user with the upstream data processing device according to the data packet. Connecting, if yes, the upstream data processing device applies a data encapsulation format that the data encapsulation type corresponding to the stored user connection has, and decapsulates the data packet; otherwise, the upstream data processing device is configured according to the preset data.
  • an upstream data processing device such as a DSLAM
  • Corresponding relationship between the packet and the data encapsulation type determining a data encapsulation type corresponding to the received data packet, and decapsulating the data packet by using a data encapsulation format of the data encapsulation type;
  • the data processing device is still in the number
  • Corresponding relationship between the user connection corresponding to the message and the data encapsulation type is saved and saved.
  • FIG. 2 is a flow chart of processing data of an upstream data processing device according to a preferred embodiment of the present invention, wherein the upstream data processing device is a DSLAM.
  • the process includes the following steps:
  • Step 201 The DSLAM receives the data packet from the xDSL Modem at a time.
  • Step 202 After receiving the data packet from the xDSL Modem, the DSLAM reads the user connection identifier in the data packet, and determines whether a user connection corresponding to the user connection identifier is currently established, if the user connection is not established. Go to step 203; if the user connection is established, go to step 206.
  • the specific judgment method is as follows: The DSLAM searches for the same user connection identifier as the user connection identifier included in the received data packet in all the user connection identifiers saved by the DSLAM. If the user connection identifier is found, the DSLAM determines that the current connection is established. The user connection corresponding to the user connection identifier; otherwise, the DSLAM determines that the user connection corresponding to the user connection identifier is not currently established.
  • the determining method may be: the DSLAM searches for the same user connection identifier as the user connection identifier included in the received data packet, and the connection identifier with the user in all the user connection identifiers saved by the DSLAM. Corresponding to the saved data encapsulation type value, if the user connection identifier and the corresponding data encapsulation type value are found, the DSLAM determines that the user connection corresponding to the user connection identifier is currently established; otherwise, the DSLAM determines that the user connection identifier is not currently established. Corresponding user connection.
  • Step 203 The DSLAM reads the header information of the received data packet, and determines the data encapsulation type corresponding to the received data packet according to the correspondence between the header information and the data encapsulation type preset by the ATM protocol.
  • the current ATM protocol stipulates that when the header information of the data packet contains 0xFE, OxFE, and 0x03, the number is According to the application, the LLC encapsulation type is applied; when the header information of the data packet includes OxAA, OxAA, and 0x03, the LLC/SNAP encapsulation type is applied to the data packet; when the header information of the data packet contains the word When the section is 0x00, 0x00, or 0x00, 0x00, 0x00, or 0x00, 0x00, OxXX, the VC encapsulation type is applied to the data packet.
  • the DSLAM can determine the LLC encapsulation type for the data packet.
  • Step 204 The DSLAM decapsulates the received data packet according to the determined data encapsulation format of the data encapsulation type, and further includes the user connection identifier included in the data packet and the determined data.
  • the value of the encapsulation type establishes a correspondence, and the user connection identifier that establishes the corresponding relationship is saved together with the data encapsulation type value.
  • the DSLAM usually saves the user connection identifier together with the data encapsulation type value in its own data storage device, and can also be saved in the third-party device, as long as the DSLAM can obtain the user connection identifier and the corresponding data encapsulation type value. .
  • Step 205 The DSLAM performs subsequent processing on the decapsulated data packet, and ends the process.
  • the DSLAM performs subsequent processing on the data packet, such as: forwarding the data packet to the Internet through the switch, or performing local processing on the data packet.
  • Step 206 The DSLAM further searches for the stored data encapsulation type value corresponding to the stored user connection identifier, and uses the data encapsulation format of the data encapsulation type corresponding to the value to receive the received The data packet is decapsulated.
  • the DSLAM has found the data encapsulation type value corresponding to the user connection identifier in step 202, the DSLAM decapsulates the data packet directly by using the data encapsulation format of the data encapsulation type corresponding to the value.
  • Step 207 The DSLAM forwards or locally processes the decapsulated data packet.
  • Step 207 The DSLAM forwards or locally processes the decapsulated data packet.
  • the reason why the determining operation is performed in step 202 is because the data message received by the DSLAM may be the data message sent by the user terminal to the DSLAM based on the newly established user connection for the first time, or the user terminal may be connected based on the user. Subsequent data packets sent to the DSLAM. Therefore, if the DSLAM receives the data packet sent by the user terminal for the first time based on the newly established user connection, the DSLAM performs the operation in step 203 to determine which data packet corresponds to the received data packet header information.
  • step 206 can be performed. Decapsulating the data packet with a data encapsulation format of the saved corresponding data encapsulation type.
  • the DSLAM can automatically determine the data encapsulation type to be applied to the data packet from the user terminal, and decapsulate the data packet by using the data encapsulation format of the data encapsulation type, so that the manual operation is performed.
  • the amount is greatly reduced and the operating costs are significantly reduced.
  • the DSLAM determines the type of data encapsulation to be applied by the data message from the user terminal, and the corresponding data encapsulation operation.
  • the DSLAM applies the process shown in FIG. The data encapsulation type to be applied to the data message to be sent to the user terminal, and the corresponding data encapsulation operation.
  • FIG. 3 is a flowchart of processing user data by a DSLAM according to another preferred embodiment of the present invention, where the process includes the following steps:
  • Step 301 The DSLAM receives data packets from the Internet at a time.
  • Step 302 When the DSLAM receives the data packet from the Internet, it may determine the The user connection to which the data message belongs has been established, and the DSLAM has applied the corresponding method described in FIG. 2 to establish a correspondence between the user connection identifier and the value of the data encapsulation type.
  • the DSLAM when receiving the data packet, can read the user connection identifier included in the data packet, and look up the stored data encapsulation type value corresponding to the user connection identifier. Thereafter, the DSLAM determines that the data encapsulation type corresponding to the found data encapsulation type value is the data encapsulation type to which the data packet is to be applied.
  • Step 303 The DSLAM encapsulates the data packet according to the data encapsulation format of the found data encapsulation type.
  • Step 304 The DSLAM sends the encapsulated data packet to the xDSL Modem, and the xDSL Modem decapsulates the received data packet according to the data encapsulation format of the pre-set data encapsulation type, and the decapsulation is completed.
  • the data message is sent to the user terminal.
  • the DSLAM may also generate a data message to be sent to the user terminal by itself according to the user request. Then, in step 302, the DSLAM reads the user connection identifier included in the data packet, and searches for the stored data encapsulation type value corresponding to the user connection identifier. Thereafter, the DSLAM determines that the data encapsulation type corresponding to the found data encapsulation type value is the data encapsulation type to which the data message is to be applied.
  • the user terminal when the user terminal disconnects from the network, the user terminal sends a user connection release message to the DSLAM.
  • the DSLAM After receiving the user connection release message, the DSLAM reads the user connection identifier contained in the message, and deletes the stored user connection identifier and the corresponding data encapsulation type value.
  • the DSLAM can automatically determine the data encapsulation type to be applied to the data packet from the Internet, and encapsulate the data packet by using the data encapsulation format of the data encapsulation type, so that the workload of the manual operation is greatly increased. Reduced and significantly reduced operating costs.
  • the operation of automatically determining the data encapsulation type to be applied to the data message is usually completed by the DSLAM. However, in an actual application, the operation may be completed by an upstream data processing device such as a switch connected between the Internet and the DSLAM, or may be completed by an upstream data processing device such as a switch connected between the xDSL Modem and the DSLAM. .
  • the upstream data processing device is a communication device such as the DSLAM or the switch that is located at an upstream location of the user terminal for the user terminal.
  • the user connection identifier may be any one of a user terminal network address, a user session identifier, and the like.
  • the method for automatically determining the user data encapsulation type described above can be applied to both the ATM protocol and other types of communication protocols.
  • the data processing device of this embodiment includes a storage unit, a connection determining unit, a package type determining unit, and a decapsulation unit, and may further include a packaging unit, a post-processing unit, and a releasing unit.
  • the storage unit stores a data encapsulation format of the data encapsulation type corresponding to the user connection, and also stores a correspondence between the data packet and the data encapsulation type.
  • the storage unit may be located in the upstream data processing device itself or in a third party device.
  • the connection determining unit determines whether the user terminal establishes a user connection with the upstream data processing device according to the data message by using the determining method described in step 202, and The judgment result is provided to the package type determining unit, and the judgment result is that the user connection is established or the user connection is not established.
  • the encapsulation type determining unit determines the number of the data encapsulation type corresponding to the user connection in the storage unit by using the method described in step 206.
  • the user data encapsulation format is provided, and the determined user data encapsulation format is provided to the decapsulation unit; the encapsulation type determining unit determines the correspondence relationship between the user and the received datagram when the judgment result is that the user connection is not established.
  • the data encapsulation type corresponding to the text is a user data encapsulation type, and the determined user data encapsulation format is provided to the decapsulation unit.
  • the decapsulation unit decapsulates the data packet according to the encapsulation format of the user data encapsulation type determined by the encapsulation type determining unit, and sends the decapsulated data packet to the post-processing unit.
  • the post-processing unit sends the decapsulated data message to the Internet or performs local processing.
  • the encapsulation type determining unit may further read the data packet to be sent to the user terminal.
  • the user connection identifier included in the text finds the data encapsulation type corresponding to the user connection identifier in the storage unit, and determines that it is a user data encapsulation type, and then provides a encapsulation unit.
  • the encapsulating unit encapsulates the data packet according to the data encapsulation format of the user data encapsulation type determined by the encapsulation type determining unit. Then, the post-processing unit sends the encapsulated data>3 ⁇ 4 text to the user terminal.
  • the front-end unit When the upstream data processing device receives the user connection release message from the user terminal, the front-end unit reads the user connection identifier included in the user connection release message, and deletes the user connection identifier and its corresponding data encapsulation type in the storage unit.
  • the upstream data processing device in this embodiment may be a DSLAM connected to the user terminal, or a switch connected between the DSLAM and the Internet, or a switch connected between the DSLAM and the user terminal.
  • the method for automatically determining the user data encapsulation type provided by the present invention does not need to manually configure the data encapsulation type on the upstream data processing device such as the DSLAM or the switch by manual operation, so that the manual operation is performed.
  • the workload is greatly reduced, and Significantly reduced operating costs.

Abstract

A method for determining the subscriber data encapsulation type automatically includes: the upstream data processing device receives the data message from the subscriber terminal, and it determines whether the subscriber terminal has established the subscriber connection with the upstream data processing device based on the data message; if so, the upstream data processing device decapsulates the data message with the stored data encapsulation format provided by the data encapsulation type corresponding to the subscriber connection; otherwise, the upstream data processing device determined the data encapsulation type corresponding to the received data message based on the predetermined correspondence relations between the data message and the data encapsulation type, and decapsulates the data message with the data encapsulation format provided by the data encapsulation type. The invention greatly reduced the workload due to the manual operations, and the running cost is reduced clearly.

Description

自动确定用户数据封装类型的方法及上游数据处理设备 技术领域  Method for automatically determining user data encapsulation type and upstream data processing device
本发明涉及通信网络中的用户数据封装技术, 具体涉及一种自动确 定用户数据封装类型的方法及上游数据处理设备。 发明背景  The present invention relates to user data encapsulation technology in a communication network, and in particular to a method for automatically determining a user data encapsulation type and an upstream data processing device. Background of the invention
目前,用户终端通常通过数字用户环路调制解调器( xDSL Modem )、 数字用户环路接入复用器( DSLAM )接入因特网( Internet )并与 Internet 进行数据交互, 具体的数据交互原理如图 1所示。  At present, the user terminal usually accesses the Internet (Internet) through the digital subscriber loop modem (xDSL Modem) and the Digital Subscriber Loop Access Multiplexer (DSLAM) and interacts with the Internet. The specific data interaction principle is shown in Figure 1. Show.
参见图 1 ,用户终端 110通过 xDSL Modem 120与 DSLAM 130相连, DSLAM 130则通常通过交换机 140与 Internet 150相连, DSL Modem 120 与 DSLAM 130之间还可以连接有交换机。 xDSL Modem 120 与 DSLAM 130上被分别设置有数据封装类型, 不同的数据封装类型具有 不同的数据封装格式。  Referring to FIG. 1, the user terminal 110 is connected to the DSLAM 130 through the xDSL Modem 120, and the DSLAM 130 is usually connected to the Internet 150 through the switch 140. A switch can also be connected between the DSL Modem 120 and the DSLAM 130. The xDSL Modem 120 and the DSLAM 130 are respectively provided with data encapsulation types, and different data encapsulation types have different data encapsulation formats.
其中, xDSL Modem 120可以支持一个以上的用户连接, 其上设置 有用于对用户数据进行封装及解封装的单一数据封装类型, 即: 无论 xDSL Modem 120支持几个用户连接, xDSL Modem 120对流经的用户数 据进行封装或解封装时所应用的数据封装类型所具有的数据封装格式 都是相同的。 DSLAM 130可与一个以上的所述 xDSL Modem 120相连, 其上通过人工操作的方式设置有一种以上的数据封装类型。 针对相连的 每个 xDSL Modem 120, DSLAM 130所应用的数据封装类型所具有的数 据封装格式可能不同。  The xDSL Modem 120 can support more than one user connection, and is provided with a single data encapsulation type for encapsulating and decapsulating user data, namely: xDSL Modem 120 supports several user connections, xDSL Modem 120 pairs flow through The data encapsulation type applied when the user data is encapsulated or decapsulated has the same data encapsulation format. The DSLAM 130 can be coupled to more than one of the xDSL Modem 120, on which more than one type of data encapsulation is manually configured. The data encapsulation type applied by the DSLAM 130 may have a different data encapsulation format for each xDSL Modem 120 connected.
目前, xDSL Modem 120与 DSLAM 130之间通常使用异步传输模式 ( ATM )协议进行通信, 该协议支持逻辑链路控制 (LLC )、 LLC/子网 附加点 (SNAP ) 以及虚电路(VC )这三种数据封装类型。 为了保证通 信的正常进行, xDSL Modem 120应用的数据封装类型所具有的数据封 装格式与 DSLAM 130针对该 xDSL Modem 120应用的数据封装类型所 具有的数据封装格式必须相同, 也可以认为: xDSL Modem 120应用的 数据封装类型与 DSLAM 130针对该 xDSL Modem 120应用的数据封装 类型必须相同。 Currently, xDSL Modem 120 and DSLAM 130 typically communicate using the Asynchronous Transfer Mode (ATM) protocol, which supports Logical Link Control (LLC), LLC/Subnet. Three data encapsulation types, the additional point (SNAP) and the virtual circuit (VC). In order to ensure the normal operation of the communication, the data encapsulation type of the xDSL Modem 120 application has the same data encapsulation format as that of the data encapsulation type of the DSDSL Modem 120 application, and may also be considered as: xDSL Modem 120 The data encapsulation type of the application must be the same as the data encapsulation type of the DSLAM 130 application for the xDSL Modem 120 application.
比如,用户在 xDSL Modem 120上设置的数据封装类型是 LLC封装 类型, 操作人员在 DSLAM 130上建立该 xDSL Modem 120的标识与值 为 LLC的数据封装类型之间的对应关系并保存, 即: 将 DSLAM 130针 对该 xDSL Modem 120所应用的数据封装类型设置为 LLC封装类型。  For example, the data encapsulation type set by the user on the xDSL Modem 120 is an LLC encapsulation type, and the operator establishes a correspondence between the identifier of the xDSL Modem 120 and the data encapsulation type of the LLC on the DSLAM 130, that is, The data encapsulation type applied by the DSLAM 130 for the xDSL Modem 120 is set to the LLC encapsulation type.
这样, 当用户终端 110向 xDSL Modem 120发送数据报文时, xDSL Modem 120将收到的数据报文以预先设置的 LLC封装类型所具有的数 据封装格式进行封装, 之后将完成封装的数据报文发送给 DSLAM 130。  In this way, when the user terminal 110 sends a data packet to the xDSL modem 120, the xDSL modem 120 encapsulates the received data packet in a data encapsulation format of a preset LLC encapsulation type, and then completes the encapsulated data packet. Sent to the DSLAM 130.
DSLAM 130收到来自该 xDSL Modem 120的数据报文后, 查找自身存 储的该 DSL Modem 120的标识所对应的数据封装类型值。 之后, 应用 查找到的 LLC封装类型所具有的数据封装格式对收到的数据报文进行 解封装,并将完成解封装的数据报文通过交换机 140发送给 Internet 150。 After receiving the data packet from the xDSL modem 120, the DSLAM 130 searches for the data encapsulation type value corresponding to the identifier of the DSL Modem 120 stored by itself. Then, the data encapsulation format of the LLC encapsulation type is used to decapsulate the received data packet, and the decapsulated data packet is sent to the Internet 150 through the switch 140.
同样, 当 DSLAM 130收到来自 Internet 150的数据报文时, 读取该 报文中包含的 xDSL Modem 120的标识, 并查找自身存储的该用户连接 标识所对应的数据封装类型值。之后,应用查找到的 LLC封装类型所具 有的数据封装格式对收到的数据报文进行封装, 并将完成封装的数据报 文发送给 DSL Modem 120。 xDSL Modem 120将收到的数据报文以预先 设置的 LLC封装类型所具有的数据封装格式进行解封装,之后将完成解 封装的数据报文发送给用户终端 110。  Similarly, when the DSLAM 130 receives the data packet from the Internet 150, it reads the identifier of the xDSL Modem 120 included in the packet, and searches for the data encapsulation type value corresponding to the user connection identifier stored by itself. Then, the data encapsulation format of the LLC encapsulation type found by the application encapsulates the received data packet, and sends the encapsulated data packet to the DSL Modem 120. The xDSL modem 120 decapsulates the received data packet in the data encapsulation format of the LLC encapsulation type, and then sends the decapsulated data packet to the user terminal 110.
由以上所述可知, 目前通常通过人工设置的方式使 DSLAM 130针 对 xDSL Modem 120所应用的数据封装类型与 xDSL Modem 120所应用 的数据封装类型相同。 但由于与 DSLAM 130相连的 xDSL Modem的数 目通常以千、 万计, 所以操作人员需要在 DSLAM 130上进行大量的人 工配置操作, 以保证 DSLAM 130针对各 xDSL Modem所应用的数据封 装类型与相应 xDSL Modem所应用的数据封装类型相同。 可见, 这种人 工配置操作的工作量过大, 耗费了大量的人力、 财力, 明显增加了运营 成本。 As can be seen from the above, the DSLAM 130 pin is usually set by manual setting. The data encapsulation type applied to the xDSL Modem 120 is the same as the data encapsulation type applied to the xDSL Modem 120. However, since the number of xDSL modems connected to the DSLAM 130 is usually in the thousands, tens of thousands, the operator needs to perform a large number of manual configuration operations on the DSLAM 130 to ensure the data encapsulation type and corresponding xDSL applied by the DSLAM 130 for each xDSL Modem. Modem applies the same data encapsulation type. It can be seen that the manual configuration operation is too large, which requires a lot of manpower and financial resources, and obviously increases the operating cost.
另夕卜,如果因用户更换了 xDSL Modem或对 xDSL Modem的配置进 行了修改, 使 xDSL Modem 的数据封装类型发生了变化, 与该 xDSL Modem相连的 DSLAM 130是无法获知该变化的。 因此, DSLAM 130 仍然应用原来设置的数据封装类型所具有的数据封装格式针对该 xDSL Modem进行数据报文的封装、 解封装操作, 这将使 DSLAM 130针对该 xDSL Modem所应用的数据封装类型与该 xDSL Modem所应用的数据封 装类型不一致, 导致 DSLAM 130与该 xDSL Modem无法正常进行数据 交互, 最终影响与该 xDSL Modem相连的用户终端通信, 并降低了用户 满意度。 发明内容  In addition, if the user replaces the xDSL Modem or changes the configuration of the xDSL Modem, the data encapsulation type of the xDSL Modem changes, and the DSLAM 130 connected to the xDSL Modem cannot know the change. Therefore, the DSLAM 130 still applies the data encapsulation format of the originally set data encapsulation type to encapsulate and decapsulate the data packet for the xDSL Modem, which will enable the DSLAM 130 to apply the data encapsulation type to the xDSL Modem. The data encapsulation type applied by the xDSL Modem is inconsistent, which causes the DSLAM 130 and the xDSL Modem to fail to perform data interaction normally, which ultimately affects the communication of the user terminal connected to the xDSL Modem and reduces user satisfaction. Summary of the invention
有鉴于此, 本发明的主要目的在于提供一种自动确定用户数据封装 类型的方法, 以减少人工操作的工作量, 降低运营成本。 本发明的另一 目的是提供一种上游数据处理设备。  In view of this, the main object of the present invention is to provide a method for automatically determining the type of user data encapsulation, thereby reducing the workload of manual operations and reducing operating costs. Another object of the present invention is to provide an upstream data processing device.
为达到上述目的, 本发明的技术方案是这样实现的:  In order to achieve the above object, the technical solution of the present invention is achieved as follows:
本发明公开了一种自动确定用户数据封装类型的方法,该方法包括: a. 上游数据处理设备接收到来自用户终端的数据报文,根据该数据 报文判断该用户终端是否与该上游数据处理设备建立有用户连接, 如果 是, 则进入步骤 b; 否则, 进入步驟 c; The present invention discloses a method for automatically determining a user data encapsulation type, the method comprising: a. The upstream data processing device receives a data message from the user terminal, and determines, according to the data message, whether the user terminal is processed with the upstream data. The device is established with a user connection, if Yes, proceed to step b; otherwise, proceed to step c;
b.上游数据处理设备应用存储的与所述用户连接对应的数据封装类 型具有的数据封装格式, 对所述数据报文解封装, 并结束本流程;  b. The data encapsulation format of the data encapsulation type corresponding to the user connection stored by the upstream data processing device application, decapsulating the data packet, and ending the process;
c.上游数据处理设备根据预先设置的数据报文与数据封装类型之间 的对应关系, 确定与所接收的数据报文对应的数据封装类型, 应用该数 据封装类型所具有的数据封装格式对所述数据报文解封装。  The upstream data processing device determines the data encapsulation type corresponding to the received data packet according to the correspondence between the preset data packet and the data encapsulation type, and applies the data encapsulation format of the data encapsulation type. The data packet is decapsulated.
步骤 a中所述判断的方法是: 上游数据处理设备在保存的用户连接 标识中, 查找与所收到的数据报文中包含的用户连接标识相同的用户连 接标识, 如果找到该用户连接标识, 则确定与所述用户终端建立有用户 连接; 否则, 确定未与所述用户终端建立用户连接。 步骤 b包括: 上游 数据处理设备查找存储的与所述用户连接标识对应的数据封装类型值, 用与该值对应的数据封装类型所具有的数据封装格式对所述数据报文 进行解封装。  The method for determining in the step a is: the upstream data processing device searches for the same user connection identifier as the user connection identifier included in the received data packet in the saved user connection identifier, and if the user connection identifier is found, It is determined that a user connection is established with the user terminal; otherwise, it is determined that a user connection is not established with the user terminal. The step b includes: the upstream data processing device searches for the stored data encapsulation type value corresponding to the user connection identifier, and decapsulates the data packet by using a data encapsulation format of the data encapsulation type corresponding to the value.
步骤 a中, 所述判断的方法是: 上游数据处理设备在保存的用户连 接标识中, 查找与所收到的数据报文中包含的用户连接标识相同的用户 连接标识以及与该用户连接标识对应的数据封装类型值, 如果找到该用 户连接标识及其对应的数据封装类型值, 则确定与所述用户终端建立有 用户连接; 否则, 确定未与所述用户终端建立用户连接;  In the step a, the determining method is: the upstream data processing device searches for the same user connection identifier and the user connection identifier corresponding to the user connection identifier included in the received data packet in the saved user connection identifier. a data encapsulation type value, if the user connection identifier and its corresponding data encapsulation type value are found, determining that a user connection is established with the user terminal; otherwise, determining that a user connection is not established with the user terminal;
步骤 b包括: 上游数据处理设备应用查找到的与数据封装类型值对 应的数据封装类型所具有的数据封装格式对所述数据报文进行解封装。  The step b includes: decapsulating the data packet by the data encapsulation format of the data encapsulation type corresponding to the data encapsulation type value found by the upstream data processing device.
步骤 b和步驟 c中, 在上游数据处理设备完成所述解封装后进一步 包括: 将完成解封装的数据报文发送给 Internet,或对完成解封装的数据 4艮文进行本地处理。  In step b and step c, after the upstream data processing device completes the decapsulation, the method further includes: sending the decapsulated data packet to the Internet, or locally processing the decapsulated data.
步驟 c中, 确定所述数据封装类型的方法是: 上游数据处理设备读 取所收到的数据报文的头信息 , 根据通信协议预先设置的头信息与数据 封装类型之间的对应关系, 将与收到的数据报文的头信息所对应的数据 封装类型确定为与该数据报文对应的数据封装类型。 In the step c, the method for determining the data encapsulation type is: the upstream data processing device reads the header information of the received data packet, and the header information and data preset according to the communication protocol. The mapping relationship between the encapsulation types and the data encapsulation type corresponding to the header information of the received data packet is determined as the data encapsulation type corresponding to the data packet.
步驟 C中, 建立所述对应关系并保存的方法是: 上游数据处理设备 在所述数据报文中包含的用户连接标识与确定的所述数据封装类型值 之间建立对应关系并保存。  In the step C, the method for establishing the corresponding relationship and saving is: the upstream data processing device establishes a correspondence between the user connection identifier included in the data packet and the determined value of the data encapsulation type and saves.
所述对应关系保存在上游数据处理设备自身或第三方设备中。 该方法进一步包括: 上游数据处理设备读取要发送给用户终端的数 据报文中包含的用户连接标识, 查找存储的与该用户连接标识对应的数 据封装类型值, 并用该值对应的数据封装类型所具有的数据封装格式对 所述数据艮文进行封装。  The correspondence is saved in the upstream data processing device itself or in a third party device. The method further includes: the upstream data processing device reads the user connection identifier included in the data packet to be sent to the user terminal, searches for the stored data encapsulation type value corresponding to the user connection identifier, and uses the data encapsulation type corresponding to the value The data encapsulation format has the data encapsulation.
在上游数据处理设备完成所述封装后进一步包括: 将完成封装的数 据报文向所述用户终端发送。  After the upstream data processing device completes the encapsulation, the method further includes: transmitting the encapsulated data packet to the user terminal.
该方法进一步包括: 用户终端向上游数据处理设备发送用户连接释 放消息, 上游数据处理设备收到该消息后, 读取该消息中包含的用户连 接标识, 并删除存储的该用户连接标识及其对应的数据封装类型值。  The method further includes: the user terminal sending a user connection release message to the upstream data processing device, after receiving the message, the upstream data processing device reads the user connection identifier included in the message, and deletes the stored user connection identifier and the corresponding The value of the data encapsulation type.
所述上游数据处理设备是与所述用户终端相连的 DSLAM, 或是连 接于 DSLAM与 Internet之间的交换机, 或是连接于 DSLAM与所述用 户终端之间的交换机。  The upstream data processing device is a DSLAM connected to the user terminal, or a switch connected between the DSLAM and the Internet, or a switch connected between the DSLAM and the user terminal.
所述的用户连接标识是用户终端网络地址, 或是用户会话标识。 本发明还公开了一种上游数据处理设备, 包括存储单元、 连接判断 单元、 封装类型确定单元、 解封装单元.其中, 存储单元, 用于存储与用 户连接对应的数据封装类型具有的数据封装格式, 以及数据报文与数据 封装类型之间的对应关系; 连接判断单元, 用于根据来自用户终端的数 据报文判断该用户终端是否与该上游数据处理设备建立有用户连接, 并 将判断结果提供给封装类型确定单元; 封装类型确定单元, 用于在判断 结果为建立有用户连接时 , 确定存储单元中与所述用户连接对应的数据 封装类型具有的数据封装格式为用户数据封装格式, 以及在判断结果为 没有建立用户连接时, 根据存储单元中数据报文与数据封装类型之间的 对应关系, 确定与所接收的数据报文对应的数据封装类型为用户数据封 装类型; 解封装单元, 用于根据所确定的用户数据封装类型具有的封装 格式对所述数据报文解封装。 The user connection identifier is a user terminal network address or a user session identifier. The present invention also discloses an upstream data processing device, including a storage unit, a connection determination unit, a package type determination unit, and a decapsulation unit. The storage unit is configured to store a data encapsulation format of a data encapsulation type corresponding to the user connection. Corresponding relationship between the data packet and the data encapsulation type; the connection judging unit is configured to determine, according to the data packet from the user terminal, whether the user terminal establishes a user connection with the upstream data processing device, and provides the judgment result a unit for determining a package type; a package type determining unit for determining The result is that when the user connection is established, determining that the data encapsulation type corresponding to the user connection in the storage unit has a data encapsulation format is a user data encapsulation format, and when the judgment result is that no user connection is established, according to the datagram in the storage unit. Corresponding relationship between the text and the data encapsulation type, determining that the data encapsulation type corresponding to the received data packet is a user data encapsulation type; and decapsulating unit, configured to encapsulate the encapsulation format according to the determined user data encapsulation type The data packet is decapsulated.
该上游数据处理设备进一步包括: 后处理单元, 用于将完成解封装 的数据 4艮文发送给 Internet或进行本地处理。  The upstream data processing device further includes: a post-processing unit, configured to send the decapsulated data to the Internet or perform local processing.
所述存储单元位于上游数据处理设备自身或第三方设备中。  The storage unit is located in the upstream data processing device itself or in a third party device.
该上游数据处理设备进一步包括: 封装单元, 用于根据封装类型确 用户终端的数据报文进行封装。 所述封装类型确定单元进一步用于读取 所述要发送给用户终端的数据报文中包含的用户连接标识, 查找存储单 元中与该用户连接标识对应的数据封装类型, 并确定其为用户数据封装 类型。  The upstream data processing device further includes: an encapsulating unit, configured to encapsulate the data packet of the user terminal according to the encapsulation type. The encapsulation type determining unit is further configured to read the user connection identifier included in the data packet to be sent to the user terminal, search for a data encapsulation type corresponding to the user connection identifier in the storage unit, and determine that it is user data. Package type.
该上游数据处理设备进一步包括: 后处理单元, 用于将完成封装的 数据报文向所述用户终端发送。  The upstream data processing device further includes: a post-processing unit, configured to send the encapsulated data message to the user terminal.
该上游数据处理设备进一步包括: 幹放单元, 用于读取来自用户终 端的用户连接释放消息中包含的用户连接标识, 并删除存储单元中该用 户连接标识及其对应的数据封装类型。  The upstream data processing device further includes: a dry release unit configured to read the user connection identifier included in the user connection release message from the user terminal, and delete the user connection identifier in the storage unit and its corresponding data encapsulation type.
所述上游数据处理设备是与用户终端相连的 DSLAM, 或是连接于 DSLAM与 Internet之间的交换机,或是连接于 DSLAM与所述用户终端 之间的交换机。  The upstream data processing device is a DSLAM connected to the user terminal, or a switch connected between the DSLAM and the Internet, or a switch connected between the DSLAM and the user terminal.
与现有技术相比, 本发明所提供的自动确定用户数据封装类型的方 法中, 上游数据处理设备可以根据预先设置的数据报文与数据封装类型 之间的对应关系, 确定接收的数据报文应对应的数据封装类型, 并应用 该数据封装类型所具有的数据封装格式对所述数据报文解封装; 该上游 数据处理设备还在与该数据报文对应的用户连接与所述数据封装类型 之间建立对应关系并保存, 以保证上游数据处理设备后续针对该用户连 接能应用对应的所述数据封装类型所具有的数据封装格式进行数据封 装、 解封装; 这使得上游数据处理设备的数据封装类型无须再通过人工 操作的方式配置, 使得人工操作的工作量大大减少, 并明显降低了运营 成本。 附图简要说明 Compared with the prior art, in the method for automatically determining the user data encapsulation type provided by the present invention, the upstream data processing device may be based on a preset data packet and data encapsulation type. Corresponding relationship, determining a data encapsulation type corresponding to the received data packet, and decapsulating the data packet by using a data encapsulation format of the data encapsulation type; the upstream data processing device is still in the data Corresponding relationship between the user connection corresponding to the packet and the data encapsulation type is saved, and the data processing encapsulation format of the data encapsulation type is applied to the upstream data processing device for data encapsulation. Decapsulation; This makes the data encapsulation type of the upstream data processing device no longer need to be manually operated, which greatly reduces the workload of manual operations and significantly reduces operating costs. BRIEF DESCRIPTION OF THE DRAWINGS
图 1为用户终端与 Internet的数据交互原理图;  Figure 1 is a schematic diagram of data interaction between a user terminal and the Internet;
图 2为本发明一较佳实施例的 DSLAM处理用户数据流程图; 图 3为本发明另一较佳实施例的 DSLAM处理用户数据流程图; 图 4为本发明实施例的上游数据处理设备的示意图。 实施本发明的方式  2 is a flow chart of DSLAM processing user data according to a preferred embodiment of the present invention; FIG. 3 is a flow chart of DSLAM processing user data according to another preferred embodiment of the present invention; FIG. 4 is a flowchart of an upstream data processing device according to an embodiment of the present invention; schematic diagram. Mode for carrying out the invention
下面结合附图及具体实施例对本发明详细说明。  The present invention will be described in detail below with reference to the accompanying drawings and specific embodiments.
本发明的自动确定用户数据封装类型的方法中, 由诸如 DSLAM等 的上游数据处理设备接收来自用户终端的数据报文, 根据该数据报文判 断该用户终端是否与该上游数据处理设备建立有用户连接, 如果是, 上 游数据处理设备则应用与存储的所述用户连接对应的数据封装类型具 有的数据封装格式, 对所述数据报文解封装; 否则, 上游数据处理设备 则根据预先设置的数据报文与数据封装类型之间的对应关系 , 确定接收 的所述数据报文应对应的数据封装类型, 并应用该数据封装类型所具有 的数据封装格式对所述数据报文解封装; 该上游数据处理设备还在该数 据报文所对应的用户连接与所述数据封装类型之间建立对应关系并保 存。 In the method for automatically determining the user data encapsulation type of the present invention, the data packet from the user terminal is received by an upstream data processing device such as a DSLAM, and the user is determined whether the user terminal establishes a user with the upstream data processing device according to the data packet. Connecting, if yes, the upstream data processing device applies a data encapsulation format that the data encapsulation type corresponding to the stored user connection has, and decapsulates the data packet; otherwise, the upstream data processing device is configured according to the preset data. Corresponding relationship between the packet and the data encapsulation type, determining a data encapsulation type corresponding to the received data packet, and decapsulating the data packet by using a data encapsulation format of the data encapsulation type; The data processing device is still in the number Corresponding relationship between the user connection corresponding to the message and the data encapsulation type is saved and saved.
参见图 2, 图 2为本发明一较佳实施例的上游数据处理设备处理用 户数据流程图, 其中所述上游数据处理设备为 DSLAM。 该流程包括以 下步骤:  Referring to FIG. 2, FIG. 2 is a flow chart of processing data of an upstream data processing device according to a preferred embodiment of the present invention, wherein the upstream data processing device is a DSLAM. The process includes the following steps:
步骤 201 : DSLAM时刻接收来自 xDSL Modem的数据报文。  Step 201: The DSLAM receives the data packet from the xDSL Modem at a time.
步骤 202: 收到来自 xDSL Modem的数据报文之后, DSLAM读取 该数据报文中的用户连接标识, 并判断当前是否建立有与该用户连接标 识对应的用户连接, 如果没建立所述用户连接, 则进入步骤 203; 如果 建立有所述用户连接, 则进入步骤 206。  Step 202: After receiving the data packet from the xDSL Modem, the DSLAM reads the user connection identifier in the data packet, and determines whether a user connection corresponding to the user connection identifier is currently established, if the user connection is not established. Go to step 203; if the user connection is established, go to step 206.
具体的判断方法为: DSLAM在自身保存的所有用户连接标识中 , 查找与收到的数据报文中包含的用户连接标识相同的用户连接标识, 如 果找到该用户连接标识, DSLAM则确定当前建立有与该用户连接标识 对应的用户连接; 否则, DSLAM确定当前没有建立与该用户连接标识 对应的用户连接。  The specific judgment method is as follows: The DSLAM searches for the same user connection identifier as the user connection identifier included in the received data packet in all the user connection identifiers saved by the DSLAM. If the user connection identifier is found, the DSLAM determines that the current connection is established. The user connection corresponding to the user connection identifier; otherwise, the DSLAM determines that the user connection corresponding to the user connection identifier is not currently established.
在实际应用中, 所述判断方法还可以是: DSLAM在自身保存的所 有用户连接标识中, 查找与收到的数据报文中包含的用户连接标识相同 的用户连接标识, 以及与该用户连接标识对应保存的数据封装类型值 , 如果找到该用户连接标识以及对应的数据封装类型值, DSLAM则确定 当前建立有与该用户连接标识对应的用户连接; 否则, DSLAM确定当 前没有建立与该用户连接标识对应的用户连接。  In an actual application, the determining method may be: the DSLAM searches for the same user connection identifier as the user connection identifier included in the received data packet, and the connection identifier with the user in all the user connection identifiers saved by the DSLAM. Corresponding to the saved data encapsulation type value, if the user connection identifier and the corresponding data encapsulation type value are found, the DSLAM determines that the user connection corresponding to the user connection identifier is currently established; otherwise, the DSLAM determines that the user connection identifier is not currently established. Corresponding user connection.
步骤 203: DSLAM读取所收到的数据报文的头信息, 并根据 ATM 协议预先设置的头信息与数据封装类型之间的对应关系, 确定所收到的 数据报文应该对应的数据封装类型。 比如: 目前的 ATM协议规定, 当 数据报文的头信息包含的字节依次为 0xFE、 OxFE以及 0x03时,对该数 据报文应用 LLC 封装类型; 当数据报文的头信息包含的字节依次为 OxAA、 OxAA以及 0x03时, 对该数据报文应用 LLC/SNAP封装类型; 当数据报文的头信息包含的字节依次为 0x00、 0x00, 或依次为 0x00、 0x00、 0x00, 或依次为 0x00、 0x00、 OxXX时, 对该数据报文应用 VC 封装类型。 Step 203: The DSLAM reads the header information of the received data packet, and determines the data encapsulation type corresponding to the received data packet according to the correspondence between the header information and the data encapsulation type preset by the ATM protocol. . For example, the current ATM protocol stipulates that when the header information of the data packet contains 0xFE, OxFE, and 0x03, the number is According to the application, the LLC encapsulation type is applied; when the header information of the data packet includes OxAA, OxAA, and 0x03, the LLC/SNAP encapsulation type is applied to the data packet; when the header information of the data packet contains the word When the section is 0x00, 0x00, or 0x00, 0x00, 0x00, or 0x00, 0x00, OxXX, the VC encapsulation type is applied to the data packet.
这样, 如果 DSLAM通过读取所收到的数据报文的头信息, 获知该 头信息包含的字节依次为 OxFE、 OxFE以及 0x03时, DSLAM就可以确 定对该数据报文应用 LLC封装类型。  In this way, if the DSLAM reads the header information of the received data packet and knows that the header contains the bytes OxFE, OxFE, and 0x03, the DSLAM can determine the LLC encapsulation type for the data packet.
步骤 204: DSLAM按照确定了的所述数据封装类型具有的数据封装 格式对收到的所述数据报文进行解封装, 还将该数据报文中包含的用户 连接标识与确定了的所述数据封装类型的值建立对应关系, 并将建立了 对应关系的用户连接标识与数据封装类型值一起保存起来。 DSLAM通 常将所述用户连接标识与数据封装类型值一起保存在自身的数据存储 装置中, 也可以保存在第三方设备中, 只要 DSLAM能够获取该用户连 接标识以及相对应的数据封装类型值即可。  Step 204: The DSLAM decapsulates the received data packet according to the determined data encapsulation format of the data encapsulation type, and further includes the user connection identifier included in the data packet and the determined data. The value of the encapsulation type establishes a correspondence, and the user connection identifier that establishes the corresponding relationship is saved together with the data encapsulation type value. The DSLAM usually saves the user connection identifier together with the data encapsulation type value in its own data storage device, and can also be saved in the third-party device, as long as the DSLAM can obtain the user connection identifier and the corresponding data encapsulation type value. .
步驟 205: DSLAM对完成解封装的数据报文进行后续处理, 并结束 本流程。 DSLAM对所述数据报文进行后续处理的方式有多种, 如: 将 数据报文通过交换机转发给 Internet, 或对数据报文进行本地处理等。  Step 205: The DSLAM performs subsequent processing on the decapsulated data packet, and ends the process. There are various ways for the DSLAM to perform subsequent processing on the data packet, such as: forwarding the data packet to the Internet through the switch, or performing local processing on the data packet.
步驟 206: 针对查找到的所述用户连接标识, DSLAM进一步查找存 储的该用户连接标识所对应的数据封装类型值, 用该值对应的数据封装 类型所具有的数据封装格式对收到的所述数据报文进行解封装。 当然, 如果 DSLAM在步骤 202中已经查找到了该用户连接标识所对应的数据 封装类型值, DSLAM则直接用该值对应的数据封装类型所具有的数据 封装格式对所述数据报文进行解封装。  Step 206: The DSLAM further searches for the stored data encapsulation type value corresponding to the stored user connection identifier, and uses the data encapsulation format of the data encapsulation type corresponding to the value to receive the received The data packet is decapsulated. Of course, if the DSLAM has found the data encapsulation type value corresponding to the user connection identifier in step 202, the DSLAM decapsulates the data packet directly by using the data encapsulation format of the data encapsulation type corresponding to the value.
步驟 207: DSLAM对完成解封装的数据报文进行转发或本地处理等 后续处理。 Step 207: The DSLAM forwards or locally processes the decapsulated data packet. Follow-up processing.
步骤 202中之所以要进行所述判断操作, 是因为 DSLAM收到的数 据报文, 有可能是用户终端基于新建的用户连接首次向 DSLAM发送的 数据报文, 也有可能是用户终端基于该用户连接后续向 DSLAM发送的 数据报文。 因此, 如果 DSLAM收到的是用户终端基于新建的用户连接 首次发送的数据报文, DSLAM则要进行步骤 203中的操作, 以根据收 到的数据报文头信息确定该数据报文对应哪种数据封装类型; 如果 DSLAM收到的是用户终端基于所述用户连接后续发送的数据报文, 由 于这时 DSLAM 已经保存有该用户连接与数据封装类型之间的对应关 系, 因此可以进行步骤 206, 用保存的相应数据封装类型所具有的数据 封装格式对所述数据报文进行解封装。  The reason why the determining operation is performed in step 202 is because the data message received by the DSLAM may be the data message sent by the user terminal to the DSLAM based on the newly established user connection for the first time, or the user terminal may be connected based on the user. Subsequent data packets sent to the DSLAM. Therefore, if the DSLAM receives the data packet sent by the user terminal for the first time based on the newly established user connection, the DSLAM performs the operation in step 203 to determine which data packet corresponds to the received data packet header information. The data encapsulation type; if the DSLAM receives the data packet sent by the user terminal based on the user connection, since the DSLAM has already stored the correspondence between the user connection and the data encapsulation type, step 206 can be performed. Decapsulating the data packet with a data encapsulation format of the saved corresponding data encapsulation type.
由以上所述可知, DSLAM可以自动确定来自用户终端的数据报文 所要应用的数据封装类型, 并应用该数据封装类型所具有的数据封装格 式对该数据报文进行解封装, 使得人工操作的工作量大大减少, 并明显 降低了运营成本。  As can be seen from the above, the DSLAM can automatically determine the data encapsulation type to be applied to the data packet from the user terminal, and decapsulate the data packet by using the data encapsulation format of the data encapsulation type, so that the manual operation is performed. The amount is greatly reduced and the operating costs are significantly reduced.
以上描述的是 DSLAM确定来自用户终端的数据报文要应用的数据 封装类型, 以及相应的数据封装操作。 与此操作原理相同, 当 DSLAM 收到来自 Internet的要发送给用户终端的数据报文, 或 DSLAM 自身生 成要发送给该用户终端的数据报文时, DSLAM则要应用图 3所示的流 程确定要发送给该用户终端的数据报文所要应用的数据封装类型, 以及 相应的数据封装操作。  What has been described above is that the DSLAM determines the type of data encapsulation to be applied by the data message from the user terminal, and the corresponding data encapsulation operation. As with this operation principle, when the DSLAM receives a data message from the Internet to be sent to the user terminal, or the DSLAM itself generates a data message to be sent to the user terminal, the DSLAM applies the process shown in FIG. The data encapsulation type to be applied to the data message to be sent to the user terminal, and the corresponding data encapsulation operation.
参见图 3, 图 3为本发明另一较佳实施例的 DSLAM处理用户数据 流程图, 该流程包括以下步骤:  Referring to FIG. 3, FIG. 3 is a flowchart of processing user data by a DSLAM according to another preferred embodiment of the present invention, where the process includes the following steps:
步骤 301: DSLAM时刻接收来自 Internet的数据报文。  Step 301: The DSLAM receives data packets from the Internet at a time.
步骤 302: 当 DSLAM收到来自 Internet的数据报文时, 可以确定该 数据报文所属的用户连接已经建立, 并且 DSLAM已经应用图 2中所述 的相应方法在该用户连接标识与数据封装类型的值间建立了对应关系。 Step 302: When the DSLAM receives the data packet from the Internet, it may determine the The user connection to which the data message belongs has been established, and the DSLAM has applied the corresponding method described in FIG. 2 to establish a correspondence between the user connection identifier and the value of the data encapsulation type.
因而, DSLAM可以在收到所述数据报文时, 读取该数据报文中包 含的用户连接标识, 并查找存储的该用户连接标识所对应的数据封装类 型值。 之后, DSLAM确定找到的数据封装类型值所对应的数据封装类 型是所述数据报文要应用的数据封装类型。  Therefore, when receiving the data packet, the DSLAM can read the user connection identifier included in the data packet, and look up the stored data encapsulation type value corresponding to the user connection identifier. Thereafter, the DSLAM determines that the data encapsulation type corresponding to the found data encapsulation type value is the data encapsulation type to which the data packet is to be applied.
步骤 303: DSLAM按照查找到的数据封装类型所具有的数据封装格 式对所述数据报文进行封装。  Step 303: The DSLAM encapsulates the data packet according to the data encapsulation format of the found data encapsulation type.
步骤 304: DSLAM将完成封装的数据报文发送给 xDSL Modem, 由 xDSL Modem根据自身预先设置的数据封装类型所具有的数据封装格式 对收到的数据报文进行解封装, 并将完成解封装的数据报文发送给所述 用户终端。  Step 304: The DSLAM sends the encapsulated data packet to the xDSL Modem, and the xDSL Modem decapsulates the received data packet according to the data encapsulation format of the pre-set data encapsulation type, and the decapsulation is completed. The data message is sent to the user terminal.
当然, 在步骤 301 中, DSLAM也可以根据用户请求由自身生成要 发送给所述用户终端的数据报文。 那么在步驟 302中, DSLAM就读取 该数据报文中包含的用户连接标识, 并查找存储的该用户连接标识所对 应的数据封装类型值。 之后, DSLAM确定找到的数据封装类型值所对 应的数据封装类型是所述数据报文要应用的数据封装类型。  Of course, in step 301, the DSLAM may also generate a data message to be sent to the user terminal by itself according to the user request. Then, in step 302, the DSLAM reads the user connection identifier included in the data packet, and searches for the stored data encapsulation type value corresponding to the user connection identifier. Thereafter, the DSLAM determines that the data encapsulation type corresponding to the found data encapsulation type value is the data encapsulation type to which the data message is to be applied.
在图 2和图 3所示的流程中, 当所述用户终端断开网络连接时, 该 用户终端向 DSLAM发送用户连接释放消息。 DSLAM收到用户连接释 放消息后, 读取该消息中包含的用户连接标识, 并删除存储的该用户连 接标识以及对应的数据封装类型值。  In the flow shown in Figures 2 and 3, when the user terminal disconnects from the network, the user terminal sends a user connection release message to the DSLAM. After receiving the user connection release message, the DSLAM reads the user connection identifier contained in the message, and deletes the stored user connection identifier and the corresponding data encapsulation type value.
由以上所述可知, DSLAM可以自动确定来自 Internet的数据报文所 要应用的数据封装类型, 并应用该数据封装类型所具有的数据封装格式 对该数据报文进行封装, 使得人工操作的工作量大大减少, 并明显降低 了运营成本。 在通信过程中 , 自动确定数据报文所要应用的数据封装类型的操作 通常都是由 DSLAM完成的。但在实际应用中,也可以由连接于 Internet 与 DSLAM之间的交换机等上游数据处理设备完成所述操作, 或是由连 接于 xDSL Modem与 DSLAM之间的交换机等上游数据处理设备完成所 述操作。 在这种情况下, 图 2、 图 3所示流程中的唯一变化只是操作主 体发生了变化, 即: 原来由 DSLAM进行的相应操作改为由所述交换机 进行。 上述的上游数据处理设备是针对所述用户终端而言的、 处于该用 户终端上游位置的所述 DSLAM或所述交换机等通信设备。 It can be seen from the above that the DSLAM can automatically determine the data encapsulation type to be applied to the data packet from the Internet, and encapsulate the data packet by using the data encapsulation format of the data encapsulation type, so that the workload of the manual operation is greatly increased. Reduced and significantly reduced operating costs. In the communication process, the operation of automatically determining the data encapsulation type to be applied to the data message is usually completed by the DSLAM. However, in an actual application, the operation may be completed by an upstream data processing device such as a switch connected between the Internet and the DSLAM, or may be completed by an upstream data processing device such as a switch connected between the xDSL Modem and the DSLAM. . In this case, the only change in the flow shown in Figures 2 and 3 is that the operating subject has changed, i.e., the corresponding operation originally performed by the DSLAM is changed to be performed by the switch. The upstream data processing device is a communication device such as the DSLAM or the switch that is located at an upstream location of the user terminal for the user terminal.
再有, 所述的用户连接标识可以是用户终端网络地址、 用户会话标 识等任何一种。  Further, the user connection identifier may be any one of a user terminal network address, a user session identifier, and the like.
以上所述的自动确定用户数据封装类型的方法,既可以适用于 ATM 协议, 也可以适用于其它类型的通信协议。  The method for automatically determining the user data encapsulation type described above can be applied to both the ATM protocol and other types of communication protocols.
上述自动确定用户数据封装类型的方法可以通过如图 4所示的上游 数据处理设备实现。 参见图 4, 本实施例的上述数据处理设备包括存储 单元、 连接判断单元、 封装类型确定单元、 解封装单元, 还可以进一步 包括封装单元、 后处理单元、 释放单元。  The above method of automatically determining the user data encapsulation type can be implemented by an upstream data processing device as shown in FIG. Referring to FIG. 4, the data processing device of this embodiment includes a storage unit, a connection determining unit, a package type determining unit, and a decapsulation unit, and may further include a packaging unit, a post-processing unit, and a releasing unit.
其中, 存储单元中存储有与用户连接对应的数据封装类型具有的数 据封装格式,还存储有数据报文与数据封装类型之间的对应关系。另夕卜, 存储单元可以位于上游数据处理设备自身或位于第三方设备中。  The storage unit stores a data encapsulation format of the data encapsulation type corresponding to the user connection, and also stores a correspondence between the data packet and the data encapsulation type. In addition, the storage unit may be located in the upstream data processing device itself or in a third party device.
当上游数据处理设备接收到来自用户终端的数据报文时, 连接判断 单元利用步骤 202中所述的判断方法, 根据数据报文判断该用户终端是 否与上游数据处理设备建立有用户连接, 并将判断结果提供给封装类型 确定单元, 所述判断结果为建立有用户连接或者没有建立用户连接。 封 装类型确定单元在判断结果为建立有用户连接时, 利用步骤 206中所述 的方法确定存储单元中与所述用户连接对应的数据封装类型具有的数 据封装格式为用户数据封装格式, 并将所确定的用户数据封装格式提供 给解封装单元; 封装类型确定单元在判断结果为没有建立用户连接时, 间的对应关系 , 确定与所接收的数据报文对应的数据封装类型为用户数 据封装类型,并将所确定的用户数据封装格式提供给解封装单元。然后, 解封装单元根据封装类型确定单元所确定的用户数据封装类型具有的 封装格式对所述数据报文解封装, 并将完成解封装的数据报文给后处理 单元。 后处理单元将完成解封装的数据报文发送给 Internet或进行本地 处理。 When the upstream data processing device receives the data packet from the user terminal, the connection determining unit determines whether the user terminal establishes a user connection with the upstream data processing device according to the data message by using the determining method described in step 202, and The judgment result is provided to the package type determining unit, and the judgment result is that the user connection is established or the user connection is not established. When the result of the determination is that the user connection is established, the encapsulation type determining unit determines the number of the data encapsulation type corresponding to the user connection in the storage unit by using the method described in step 206. According to the encapsulation format, the user data encapsulation format is provided, and the determined user data encapsulation format is provided to the decapsulation unit; the encapsulation type determining unit determines the correspondence relationship between the user and the received datagram when the judgment result is that the user connection is not established. The data encapsulation type corresponding to the text is a user data encapsulation type, and the determined user data encapsulation format is provided to the decapsulation unit. Then, the decapsulation unit decapsulates the data packet according to the encapsulation format of the user data encapsulation type determined by the encapsulation type determining unit, and sends the decapsulated data packet to the post-processing unit. The post-processing unit sends the decapsulated data message to the Internet or performs local processing.
当上游数据处理设备收到来自 Internet 的要发给用户终端的数据报 文, 或者自身生成要发送给用户终端的数据报文时, 封装类型确定单元 进一步可以读取所要发送给用户终端的数据报文中包含的用户连接标 识, 查找存储单元中与该用户连接标识对应的数据封装类型, 并确定其 为用户数据封装类型, 然后提供了封装单元。 封装单元根据封装类型确 定单元所确定的用户数据封装类型所具有的数据封装格式对该数据报 文进行封装。然后,后处理单元将完成封装的数据>¾文向用户终端发送。  When the upstream data processing device receives a data message from the Internet to be sent to the user terminal, or generates a data message to be sent to the user terminal, the encapsulation type determining unit may further read the data packet to be sent to the user terminal. The user connection identifier included in the text finds the data encapsulation type corresponding to the user connection identifier in the storage unit, and determines that it is a user data encapsulation type, and then provides a encapsulation unit. The encapsulating unit encapsulates the data packet according to the data encapsulation format of the user data encapsulation type determined by the encapsulation type determining unit. Then, the post-processing unit sends the encapsulated data>3⁄4 text to the user terminal.
当上游数据处理设备接收到来自用户终端的用户连接释放消息时, 鋒放单元读取用户连接释放消息中包含的用户连接标识, 并删除存储单 元中该用户连接标识及其对应的数据封装类型。  When the upstream data processing device receives the user connection release message from the user terminal, the front-end unit reads the user connection identifier included in the user connection release message, and deletes the user connection identifier and its corresponding data encapsulation type in the storage unit.
本实施例中的上游数据处理设备可以是是与用户终端相连的 DSLAM, 或是连接于 DSLAM与 Internet之间的交换机, 或是连接于 DSLAM与所述用户终端之间的交换机。  The upstream data processing device in this embodiment may be a DSLAM connected to the user terminal, or a switch connected between the DSLAM and the Internet, or a switch connected between the DSLAM and the user terminal.
由以上所述可以看出, 本发明所提供的自动确定用户数据封装类型 的方法, 无须再通过人工操作的方式配置 DSLAM或所述交换机等上游 数据处理设备上的数据封装类型, 使得人工操作的工作量大大减少, 并 明显降低了运营成本。 It can be seen from the above that the method for automatically determining the user data encapsulation type provided by the present invention does not need to manually configure the data encapsulation type on the upstream data processing device such as the DSLAM or the switch by manual operation, so that the manual operation is performed. The workload is greatly reduced, and Significantly reduced operating costs.

Claims

权利要求书 Claim
1、 一种自动确定用户数据封装类型的方法, 其特征在于, 该方法包 括:  A method for automatically determining a user data encapsulation type, the method comprising:
a. 上游数据处理设备接收到来自用户终端的数据报文,根据该数据 报文判断该用户终端是否与该上游数据处理设备建立有用户连接, 如果 是, 则进入步骤 b; 否则, 进入步骤 c;  Receiving, by the upstream data processing device, a data packet from the user terminal, determining, according to the data packet, whether the user terminal establishes a user connection with the upstream data processing device, and if yes, proceeding to step b; otherwise, proceeding to step c ;
b.上游数据处理设备应用存储的与所述用户连接对应的数据封装类 型具有的数据封装格式, 对所述数据报文解封装, 并结束本流程; c上游数据处理设备根据预先设置的数据报文与数据封装类型之间 的对应关系 , 确定所接收的数据报文对应的数据封装类型, 应用该数据 封装类型所具有的数据封装格式对所述数据报文解封装。  b. The data encapsulation format of the data encapsulation type corresponding to the user connection stored by the upstream data processing device application, decapsulating the data packet, and ending the process; c the upstream data processing device according to the preset datagram Corresponding relationship between the text and the data encapsulation type, determining a data encapsulation type corresponding to the received data packet, and decapsulating the data packet by using a data encapsulation format of the data encapsulation type.
2、 如权利要求 1所述的方法, 其特征在于, 步骤 c中在确定数据封 装类型之后进一步包括: 在所述数据报文所对应的用户连接与所述数据 封装类型之间建立对应关系并保存。  The method according to claim 1, wherein after determining the data encapsulation type in step c, the method further comprises: establishing a correspondence between the user connection corresponding to the data packet and the data encapsulation type; save.
3、 如权利要求 1所述的方法, 其特征在于, 步骤 a中, 所述判断的 方法是:  3. The method according to claim 1, wherein in the step a, the determining method is:
上游数据处理设备在保存的用户连接标识中, 查找与所收到的数据 报文中包含的用户连接标识相同的用户连接标识, 如果找到该用户连接 标识, 则确定与所述用户终端建立有用户连接; 否则, 确定未与所述用 户终端建立用户连接;  The upstream data processing device searches for the same user connection identifier as the user connection identifier included in the received data packet in the saved user connection identifier, and if the user connection identifier is found, determines that the user is established with the user terminal. Connecting; otherwise, determining that a user connection is not established with the user terminal;
步骤 b包括: 上游数据处理设备查找存储的所述用户连接标识所对 应的数据封装类型值, 用该值对应的数据封装类型所具有的数据封装格 式对所述数据报文进行解封装。  Step b includes: the upstream data processing device searches for the data encapsulation type value corresponding to the stored user connection identifier, and decapsulates the data packet by using a data encapsulation format of the data encapsulation type corresponding to the value.
4、 如权利要求 1所述的方法, 其特征在于, 步骤 a中, 所述判断的 方法是: 4. The method according to claim 1, wherein in step a, the determining the way is:
上游数据处理设备在保存的用户连接标识中, 查找与所收到的数据 报文中包含的用户连接标识相同的用户连接标识以及与该用户连接标 识对应的数据封装类型值, 如果找到该用户连接标识及其对应的数据封 装类型值, 则确定与所述用户终端建立有用户连接; 否则, 确定未与所 述用户终端建立用户连接;  The upstream data processing device searches for the same user connection identifier as the user connection identifier included in the received data packet and the data encapsulation type value corresponding to the user connection identifier in the saved user connection identifier, if the user connection is found. Identifying, and the corresponding data encapsulation type value, determining that a user connection is established with the user terminal; otherwise, determining that a user connection is not established with the user terminal;
步骤 b包括: 上游数据处理设备应用查找到的与数据封装类型值对 应的数据封装类型所具有的数据封装格式对所述数据报文进行解封装。  The step b includes: decapsulating the data packet by the data encapsulation format of the data encapsulation type corresponding to the data encapsulation type value found by the upstream data processing device.
5、 如权利要求 2所述的方法, 其特征在于, 步骤 b和步骤 c中, 在 上游数据处理设备完成所述解封装后进一步包括: 将完成解封装的数据 报文发送给因特网 Internet, 或对完成解封装的数据报文进行本地处理。  The method of claim 2, wherein, in step b and step c, after the upstream data processing device completes the decapsulation, the method further comprises: sending the decapsulated data packet to the Internet, or The data packet that completes the decapsulation is processed locally.
6、 如权利要求 2所述的方法, 其特征在于, 步骤 c中, 确定所述数 据封装类型的方法是:  The method according to claim 2, wherein in step c, the method for determining the data encapsulation type is:
上游数据处理设备读取所收到的数据报文的头信息, 根据通信协议 预先设置的头信息与数据封装类型之间的对应关系, 将与收到的数据报 文的头信息对应的数据封装类型确定为与该数据报文对应的数据封装 类型。  The upstream data processing device reads the header information of the received data packet, and encapsulates the data corresponding to the header information of the received data packet according to the correspondence between the header information and the data encapsulation type set in advance by the communication protocol. The type is determined to be the data encapsulation type corresponding to the data message.
7、 如权利要求 2所述的方法, 其特征在于, 步骤 c中, 建立所述对 应关系并保存的方法是:  7. The method according to claim 2, wherein in step c, the method of establishing the corresponding relationship and saving is:
上游数据处理设备在所述数据报文中包含的用户连接标识与确定的 所述数据封装类型值之间建立对应关系并保存。  The upstream data processing device establishes a correspondence between the user connection identifier included in the data packet and the determined value of the data encapsulation type and saves.
8、根据权利要求 2所述的方法, 其特征在于, 所述对应关系保存在 上游数据处理设备自身或第三方设备中。  The method according to claim 2, wherein the correspondence is stored in the upstream data processing device itself or in a third party device.
9、 如权利要求 1所述的方法, 其特征在于, 该方法进一步包括: 上游数据处理设备读取要发送给用户终端的数据报文中包含的用户 连接标识, 查找存储的与该用户连接标识对应的数据封装类型值, 并用 与该值对应的数据封装类型所具有的数据封装格式对所述数据报文进 行封装。 9. The method of claim 1, wherein the method further comprises: the upstream data processing device reading the user included in the data message to be sent to the user terminal The connection identifier is used to search for the stored data encapsulation type value corresponding to the user connection identifier, and encapsulate the data packet by using a data encapsulation format of the data encapsulation type corresponding to the value.
10、 如权利要求 9所述的方法, 其特征在于, 在上游数据处理设备 完成所述封装后进一步包括: 将完成封装的数据报文向所述用户终端发 送。  The method of claim 9, wherein after the upstream data processing device completes the encapsulation, the method further comprises: transmitting the encapsulated data message to the user terminal.
11、 如权利要求 1或 2所述的方法, 其特征在于, 该方法进一步包 括:  11. The method of claim 1 or 2, wherein the method further comprises:
用户终端向上游数据处理设备发送用户连接释放消息, 上游数据处 理设备收到该消息后, 读取该消息中包含的用户连接标识, 并删除存储 的该用户连接标识及其对应的数据封装类型值。  The user terminal sends a user connection release message to the upstream data processing device. After receiving the message, the upstream data processing device reads the user connection identifier included in the message, and deletes the stored user connection identifier and the corresponding data encapsulation type value. .
12、 如权利要求 1所述的方法, 其特征在于, 所述上游数据处理设 备是与所述用户终端相连的数字用户环路接入复用器 DSLAM, 或是连 接于 DSLAM与 Internet之间的交换机, 或是连接于 DSLAM与所述用 户终端之间的交换机。  12. The method according to claim 1, wherein the upstream data processing device is a digital subscriber loop access multiplexer DSLAM connected to the user terminal, or is connected between the DSLAM and the Internet. A switch, or a switch connected between the DSLAM and the user terminal.
13、 如权利要求 3、 4、 9或 11所述的方法, 其特征在于, 所述的用 户连接标识是用户终端网络地址, 或是用户会话标识。  The method according to claim 3, 4, 9 or 11, wherein the user connection identifier is a user terminal network address or a user session identifier.
14、 一种上游数据处理设备, 其特征在于, 包括存储单元、 连接判 断单元、 封装类型确定单元、 解封装单元, 其中,  An upstream data processing device, comprising: a storage unit, a connection determination unit, a package type determination unit, and a decapsulation unit, wherein
存储单元, 用于存储与用户连接对应的数据封装类型具有的数据封 装格式, 以及数据报文与数据封装类型之间的对应关系;  a storage unit, configured to store a data encapsulation format of the data encapsulation type corresponding to the user connection, and a correspondence between the data packet and the data encapsulation type;
连接判断单元, 用于根据来自用户终端的数据报文判断该用户终端 是否与该上游数据处理设备建立有用户连接, 并将判断结果提供给封装 类型确定单元;  a connection determining unit, configured to determine, according to the data packet from the user terminal, whether the user terminal establishes a user connection with the upstream data processing device, and provides the determination result to the package type determining unit;
封装类型确定单元, 用于在判断结果为建立有用户连接时, 确定存 储单元中与所述用户连接对应的数据封装类型具有的数据封装格式为 用户数据封装格式, 以及在判断结果为没有建立用户连接时, 根据存储 单元中数据报文与数据封装类型之间的对应关系, 确定与所接收的数据 报文对应的数据封装类型为用户数据封装类型; a package type determining unit, configured to determine, when the judgment result is that a user connection is established The data encapsulation type corresponding to the user connection in the storage unit has a data encapsulation format of a user data encapsulation format, and when the judgment result is that no user connection is established, according to the correspondence between the data packet and the data encapsulation type in the storage unit Relationship, determining that the data encapsulation type corresponding to the received data packet is a user data encapsulation type;
解封装单元, 用于根据所确定的用户数据封装类型具有的封装格式 对所述数据报文解封装。  And a decapsulation unit, configured to decapsulate the data packet according to the determined encapsulation format of the user data encapsulation type.
15、 如杈利要求 14所述的上游数据处理设备, 其特征在于, 该上游 数据处理设备进一步包括: 后处理单元, 用于将完成解封装的数据报文 发送给 Internet或进行本地处理。  The upstream data processing device of claim 14, wherein the upstream data processing device further comprises: a post-processing unit, configured to send the decapsulated data message to the Internet or perform local processing.
16、如权利要求 14所述的上游数据处理设备, 其特征在于, 所述存 储单元位于上游数据处理设备自身或第三方设备中。  The upstream data processing device according to claim 14, wherein the storage unit is located in the upstream data processing device itself or in a third party device.
17、如权利要求 14所述的上游数据处理设备, 其特征在于, 该上游 数据处理设备进一步包括: 封装单元, 用于根据封装类型确定单元所确 定的用户数据封装类型所具有的数据封装格式对要发送给用户终端的 数据报文进行封装;  The upstream data processing device of claim 14, wherein the upstream data processing device further comprises: a packaging unit, configured to: according to the data encapsulation format pair of the user data encapsulation type determined by the encapsulation type determining unit The data packet to be sent to the user terminal is encapsulated;
所述封装类型确定单元进一步用于读取所述要发送给用户终端的数 据报文中包含的用户连接标识, 查找存储单元中与该用户连接标识对应 的数据封装类型, 并确定其为用户数据封装类型。  The encapsulation type determining unit is further configured to read the user connection identifier included in the data packet to be sent to the user terminal, search for a data encapsulation type corresponding to the user connection identifier in the storage unit, and determine that it is user data. Package type.
18、 如权利要求 17所述的上游数据处理设备, 其特征在于, 该上游 数据处理设备进一步包括: 后处理单元, 用于将完成封装的数据报文向 所述用户终端发送。  The upstream data processing device of claim 17, wherein the upstream data processing device further comprises: a post-processing unit, configured to send the encapsulated data message to the user terminal.
19、如权利要求 14所述的上游数据处理设备, 其特征在于, 该上游 数据处理设备进一步包括: 释放单元, 用于读取来自用户终端的用户连 接释放消息中包含的用户连接标识, 并删除存储单元中该用户连接标识 及其对应的数据封装类型。 The upstream data processing device according to claim 14, wherein the upstream data processing device further comprises: a releasing unit, configured to read a user connection identifier included in a user connection release message from the user terminal, and delete The user connection identifier in the storage unit and its corresponding data encapsulation type.
20、 如权利要求 14所述的上游数据处理设备, 其特征在于, 所述上 游数据处理设备是与用户终端相连的 DSLAM, 或是连接于 DSLAM与 Internet之间的交换机,或是连接于 DSLAM与所述用户终端之间的交换 机。 The upstream data processing device according to claim 14, wherein the upstream data processing device is a DSLAM connected to the user terminal, or a switch connected between the DSLAM and the Internet, or connected to the DSLAM and A switch between the user terminals.
PCT/CN2006/001217 2005-06-10 2006-06-05 A method for determining the subscriber data encapsulation type automatically and an upstream data processing device WO2006131063A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CNB2005100753401A CN100395977C (en) 2005-06-10 2005-06-10 Implementation method for automatically identifying packaging type of subscriber data
CN200510075340.1 2005-06-10

Publications (1)

Publication Number Publication Date
WO2006131063A1 true WO2006131063A1 (en) 2006-12-14

Family

ID=37498126

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2006/001217 WO2006131063A1 (en) 2005-06-10 2006-06-05 A method for determining the subscriber data encapsulation type automatically and an upstream data processing device

Country Status (2)

Country Link
CN (1) CN100395977C (en)
WO (1) WO2006131063A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105162673A (en) * 2015-08-24 2015-12-16 北京大众益康科技有限公司 Data transmission interface and method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6445715B1 (en) * 1998-08-27 2002-09-03 Cisco Technology, Inc. Dynamic trunk protocol
US20030210697A1 (en) * 2000-09-29 2003-11-13 Mathieu Mercier Auto encapsulation detection
CN1571395A (en) * 2003-07-17 2005-01-26 华为技术有限公司 A method for bearing IP message protocol on ATM network supported by broadband access equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1306757C (en) * 2002-08-29 2007-03-21 中兴通讯股份有限公司 Method of transmitting broadband multimedia data on comprehensive business digital network
CN1509023A (en) * 2002-12-17 2004-06-30 深圳市中兴通讯股份有限公司上海第二 Asynchronous transmission mode data dispatching device and method
CN1306761C (en) * 2003-05-27 2007-03-21 华为技术有限公司 Method for transmitting Ethernet message by Internet

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6445715B1 (en) * 1998-08-27 2002-09-03 Cisco Technology, Inc. Dynamic trunk protocol
US20030210697A1 (en) * 2000-09-29 2003-11-13 Mathieu Mercier Auto encapsulation detection
CN1571395A (en) * 2003-07-17 2005-01-26 华为技术有限公司 A method for bearing IP message protocol on ATM network supported by broadband access equipment

Also Published As

Publication number Publication date
CN100395977C (en) 2008-06-18
CN1878064A (en) 2006-12-13

Similar Documents

Publication Publication Date Title
US7587470B2 (en) Internet modem streaming socket method
CN101218575B (en) Techniques for migrating a point to point protocol to a protocol for an access network
EP1693996B1 (en) Automatic discovery of psuedo-wire peer addresses in ethernet-based networks
WO2019233179A1 (en) Data message detection method, device and system
CN112039920B (en) Communication method, communication device, electronic device and storage medium
CN111478862B (en) Remote data mirroring system and method
CN100534055C (en) Method for implementing network access through broadband router
WO2014019205A1 (en) Method, apparatus, and system for processing data packet
JP2000124920A (en) Method for managing connection of connection network and method for supporting connectionless communication protocol through connection network
WO2015085576A1 (en) Method for processing address resolution protocol message, forwarder and controller
WO2009021371A1 (en) A method and a device for implementing pseudo wire emulation edge to edge
US9172554B2 (en) Method and network access device for enabling data forwarding between different physical mediums
WO2021174943A1 (en) Data forwarding method and apparatus, and device and storage medium
WO2017193732A1 (en) Method for encapsulating and decapsulating pseudo-wire data message, and relevant apparatus
WO2017080335A1 (en) Pppoe network-based dialing method, dialing system, and router
WO2014153860A1 (en) Network access method, gateway and system
CN108075991B (en) Message forwarding method and device
WO2015100585A1 (en) Fiber-to-the-distribution point device and communication method therefor
TW200843404A (en) Network management system and management method thereof
US7433368B2 (en) Signaling transport converter
WO2007107076A1 (en) A broadband user access method and device
WO2006131063A1 (en) A method for determining the subscriber data encapsulation type automatically and an upstream data processing device
JP3757863B2 (en) Access network equipment
WO2009124444A1 (en) Method and apparatus for processing the arp request message
WO2015006901A1 (en) Data stream processing method, device and system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application
NENP Non-entry into the national phase

Ref country code: DE

WWW Wipo information: withdrawn in national office

Country of ref document: DE

122 Ep: pct application non-entry in european phase

Ref document number: 06742103

Country of ref document: EP

Kind code of ref document: A1