WO2014114058A1 - 一种数据报文转发方法、用户驻地设备和*** - Google Patents

一种数据报文转发方法、用户驻地设备和*** Download PDF

Info

Publication number
WO2014114058A1
WO2014114058A1 PCT/CN2013/078778 CN2013078778W WO2014114058A1 WO 2014114058 A1 WO2014114058 A1 WO 2014114058A1 CN 2013078778 W CN2013078778 W CN 2013078778W WO 2014114058 A1 WO2014114058 A1 WO 2014114058A1
Authority
WO
WIPO (PCT)
Prior art keywords
user
interface
apn
feature
cpe
Prior art date
Application number
PCT/CN2013/078778
Other languages
English (en)
French (fr)
Inventor
田旭
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2014114058A1 publication Critical patent/WO2014114058A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/2592Translation of Internet protocol [IP] addresses using tunnelling or encapsulation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/2514Translation of Internet protocol [IP] addresses between local and global IP addresses

Definitions

  • the present invention relates to the field of communications, and in particular, to a data packet forwarding method, a user premises equipment, and a system. Background technique
  • LTE Long term evolution
  • 3rd-generation 3rd-generation
  • 4rd-generation 4rd-generation
  • the data packet sent by the terminal device carries an Internet Protocol (IP) address
  • IP Internet Protocol
  • the gateway needs to extract the data to obtain the destination IP address of the document, and then the destination IP address.
  • the corresponding access point name (APN) forwards the data packet, so that the terminal device accesses the corresponding APN according to the destination IP address, and some enterprise networks or home networks are established to provide network resources for specific users.
  • the user can access the APN interface corresponding to the destination IP address according to the destination IP address, for example, to obtain the enterprise network or the home network, as long as the user obtains the destination IP address.
  • the destination IP address can be used to access the APN interface of the enterprise network or the home network, and thus cannot control the access of different terminal devices to the APN interface.
  • Embodiments of the present invention provide a data packet forwarding method, a user premises equipment, and a system.
  • System can control the access of different terminal devices to the interface.
  • the first aspect of the present invention provides a data packet forwarding method, including: a user premises equipment CPE receives a first data packet, and the CPE accesses at least two packet data network gateways PGW;
  • the access point name of the CPE is the same as the type of the feature information in the mapping table, and the mapping table includes the correspondence between the feature information and the UI, and the feature information in the mapping table is obtained according to the access mode of the terminal device;
  • the method before the acquiring the first feature information of the first data packet, the method further includes:
  • the user feature of the terminal device is extracted according to the access mode of the terminal device, where the user features include: a calling number, a called number, an extended called number, and a user medium.
  • the user features include: a calling number, a called number, an extended called number, and a user medium.
  • the obtaining the feature information according to the user feature includes:
  • the first user feature is directly used as the feature information; or the preset feature identifier corresponding to the first user feature is obtained, and the preset feature identifier is used as the feature information.
  • the first achievable manner, and the third achievable manner the first data packet is sent from the first APN interface by using route forwarding or bridge forwarding.
  • To the network side includes:
  • the decapsulated first data packet is encapsulated in the radio frame and sent to the network side through the first APN interface;
  • the IP address of the private network is translated into the public network IP address.
  • the address-converted first data packet is encapsulated in the radio frame and sent to the network side through the first APN interface.
  • the method further includes: receiving, by the second APN interface, the second data packet sent by the network side;
  • the second data packet is sent from the user interface to the user side by using the route forwarding or the bridge forwarding.
  • the sending the second data packet from the user interface to the user side by using the route forwarding specifically includes:
  • the private network IP address is searched for the private network routing table to obtain the user interface; the second data packet after the address translation is encapsulated by the link layer; and the encapsulated second data packet is sent from the user interface to the user side. ;
  • the sending the second data packet from the user interface to the user side by using the bridge forwarding specifically includes:
  • an embodiment of the present invention provides a user premises equipment CPE, which accesses at least two packet data network gateways PGW, including:
  • a receiving unit configured to receive the first data packet
  • a first acquiring unit configured to acquire first feature information of the first data packet;
  • the first feature information is the same as a feature information type in an access point name mapping table of the CPE, where the mapping table is The corresponding information of the feature information and the UI interface is included, and the feature information in the UI mapping table is obtained according to the access mode of the terminal device;
  • a second acquiring unit configured to query the ⁇ mapping table according to the first feature information, and acquire a first ⁇ interface corresponding to the first feature information
  • a forwarding unit configured to send the first data packet from the first interface to the network side by using route forwarding or bridge forwarding.
  • the CPE further includes:
  • an extracting unit configured to: when the terminal device accesses the customer premises equipment CPE, extract the user feature of the terminal device according to the access mode of the terminal device, where the user features include: a calling number, a called number, and an extension One or more of a number, a user medium access control layer MAC address, a user virtual local area network VLAN tag, a username, a domain name, and a physical interface number;
  • a third acquiring unit configured to acquire a first user feature from a user feature of the terminal device, where the user feature type in the first user feature and the feature interface correspondence table is the same, and the feature interface correspondence table includes Corresponding relationship between the user feature and the APN interface;
  • the fourth obtaining unit configured to obtain, from the feature interface correspondence table, the first The APN interface corresponding to the user feature;
  • a fifth obtaining unit configured to obtain feature information according to the first user feature
  • a storage unit configured to store, in the APN mapping table, a correspondence between the feature information and an APN interface corresponding to the first user feature.
  • the fifth obtaining unit is specifically configured to:
  • the first user feature is directly used as the feature information; or the preset feature identifier corresponding to the first user feature is obtained, and the preset feature identifier is used as the feature information.
  • the receiving unit is further configured to receive, by the second APN interface, the second data packet sent by the network side;
  • the forwarding unit is further configured to: send the second data packet from the user interface to the user side by using route forwarding or bridge forwarding.
  • an embodiment of the present invention provides a data packet forwarding system, including: at least two packet data network gateways PGW, and any user premises equipment described above.
  • the data packet forwarding method provided by the embodiment of the present invention, the user premises equipment and the system, the method includes: the user premises equipment CPE receives the first data packet, and the CPE accesses at least two packet data network gateways PGW; First feature information of the first data packet; the first feature information is the same as the feature information type in the access point name APN mapping table of the CPE, and the APN mapping table includes the correspondence between the feature information and the APN interface. And obtaining the feature information in the APN mapping table according to the access mode of the terminal device; querying the APN mapping table according to the first feature information, and acquiring a first APN interface corresponding to the first feature information; The first data packet is sent from the first APN interface to the network side by route forwarding or bridge forwarding.
  • the first APN interface needs to be obtained by querying the APN mapping table according to the first feature information extracted from the first data packet.
  • the APN mapping table includes Correspondence between the feature information and the APN interface.
  • the feature information is obtained according to the access mode of each terminal device. Therefore, the APN mapping table sets the access rights of different terminal devices to the APN interface, and queries the APN mapping table. Packet forwarding can control access of different terminal devices to the APN interface.
  • FIG. 1 is a flowchart of a data packet forwarding method according to an embodiment of the present invention
  • FIG. 2 is a flowchart of another data packet forwarding method according to an embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of a user premises equipment according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of another user premises equipment according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a packet forwarding system according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic structural diagram of still another user premises equipment according to an embodiment of the present invention. detailed description
  • the embodiment of the present invention provides a data packet forwarding method, which is performed by a customer premises equipment (CPE), and the CPE accesses at least two packet data network (PDN) gateways (PDNs).
  • CPE customer premises equipment
  • PDNs packet data network gateways
  • Gateway referred to as PGW, as shown in Figure 1, includes:
  • the CPE receives the first data packet.
  • the CPE acquires first feature information of the first data packet.
  • the first feature information is the same as the feature information type in the access point name APN mapping table of the CPE, and the APN mapping table includes the correspondence between the feature information and the APN interface.
  • the feature information in the APN mapping table is obtained according to the access mode of the terminal device.
  • the first data packet is sent by the terminal device to the CPE through the user interface, and the CPE performs the parsing of the first data packet according to the APN mapping table to extract the first feature information of the first data packet.
  • the CPE may First, the APN mapping table is queried, and the type of the feature information recorded in the APN mapping table, such as the domain name and the physical interface number, is obtained, and then the specific type of feature information is extracted in the packet header and the physical interface of the first data packet.
  • the form, for example, the type of the feature information recorded in the mapping table is a domain name
  • the specific domain name is extracted in the first data packet, for example, the domain information carried in the first data packet is "[email protected]", extracted.
  • the domain name "huawei", the "huawei” is the extracted first feature information.
  • the feature information carried in the first data packet may be different from the type of the feature information recorded in the APN mapping table, and may not be extracted in the first data packet in this embodiment.
  • the feature information of the same type as the feature information recorded in the APN mapping table is used, the first feature information is recorded as invalid feature information.
  • the CPE queries the APN mapping table according to the first feature information, and obtains a first APN interface corresponding to the first feature information.
  • the CPE sends the first data packet from the first APN interface to the network side by using route forwarding or bridge forwarding.
  • the CPE when the CPE uses the route forwarding mode to forward the first data packet, the CPE needs to forward the first data packet to the first APN interface after performing network address translation (NAT).
  • NAT network address translation
  • the CPE may first decapsulate the link layer of the first data packet, and then obtain the private network protocol IP address of the decapsulated first data packet; and obtain the corresponding corresponding to the first APN interface.
  • a public network IP address converting the private network IP address in the decapsulated first data packet to the public network IP address; and encapsulating the address-converted first data packet in the radio frame
  • the first APN interface is sent to the network side.
  • the CPE may first perform the The link layer of the first data packet is decapsulated; and then the first data packet that is decapsulated is encapsulated in the radio frame and sent to the network side through the first APN interface.
  • the first APN interface needs to be obtained by querying the APN mapping table according to the first feature information extracted from the first data packet.
  • the APN mapping table includes the mapping between the feature information and the APN interface.
  • the feature information is obtained according to the access mode of each terminal device. Therefore, the APN mapping table sets the access rights of different terminal devices to the APN interface, and the query is performed.
  • the APN mapping table performs packet forwarding to control access of different terminal devices to the APN interface.
  • the embodiment of the present invention provides a data packet forwarding method, as shown in FIG. 2, including:
  • the CPE establishes a feature interface correspondence table.
  • the feature interface correspondence table includes a correspondence between a user feature and an APN interface, and the user feature may include: a calling number, a called number, an extended called number, and a medium access control (MAC).
  • MAC medium access control
  • VLAN virtual local area network
  • any two feature parameter combinations may be selected as the user feature, as shown in Table 2.
  • the combination of the MAC and the VLAN tag is used as the user feature.
  • one or more of the feature interface correspondence tables may be established in the CPE, and each feature interface correspondence table in the CPE needs to ensure that each user feature is different. That is, duplicate feature parameter values do not appear.
  • the relationship between the different feature values and the APN under the same user feature may be a one-to-one relationship or a many-to-one relationship.
  • the present invention does not limit this.
  • different APN interfaces can be obtained, so that subsequent network access processes are accessed.
  • the feature interface correspondence table shown in Table 1 when the user feature is a user name, the user name includes different contents, such as: Zhang San, Li Si, etc., the relationship between each user name and the APN may be The one-to-one relationship, such as the APN interface corresponding to the user name Zhang San, is APN1, and can also be a many-to-one relationship.
  • the APN corresponding to the user name Li Si and Wang Wu is APN2.
  • one or more feature interface correspondence tables may be stored in the CRE. In practice, a feature interface correspondence table is usually saved.
  • the CPE establishes a connection with the preset PDN.
  • the CPE can establish a connection with the preset PDN through the dial-up mode, that is, the connection between the CPE and the corresponding PGW is established, and the APN interface corresponding to the preset PDN connection is turned on, and the APN interface can perform data service communication for subsequent data services. Communication provides a channel.
  • the CPE extracts the user feature of the terminal device according to the access mode of the terminal device.
  • the access mode of the terminal device may be pre-configured according to actual conditions, and may be a routing mode or a bridge mode.
  • the PGW allocates the CPE.
  • the private network IP address, the CPE can be used as the user side, that is, the gateway on the terminal device side.
  • multiple terminal devices can share an APN.
  • the PGW allocates an IP address to the CPE, and the CPE transparently transmits the IP address to the terminal device, so that the terminal device accesses the CPE according to the IP, that is, the CPE pair.
  • the IP address of the received PGW is forwarded to the corresponding terminal device.
  • the CPE can provide the bridge forwarding to forward the data service of the terminal device to the PGW.
  • the access mode may include: a telephone service access, a dynamic host configuration protocol (DHCP), an oint to point protocol over Ethernet (PPPoE), and a wireless fidelity (abbreviation). WIFI) Wait a minute.
  • DHCP dynamic host configuration protocol
  • PPPoE oint to point protocol over Ethernet
  • WIFI wireless fidelity
  • the VLAN tag it should be noted that if the VLAN tag is not extracted, the VLAN tag is invalid when the APN mapping table is established.
  • the user feature to be extracted may be the user MAC address. Address, VLAN tag, physical interface number and username, or user MAC address, VLAN tag, physical interface number, and domain name.
  • the CPE acquires a first user feature from a user feature of the terminal device.
  • the first user feature is the same as the user feature type in the feature interface correspondence table.
  • the CPE can obtain multiple user features of the terminal device, and the CPE can store one or more feature interface correspondence tables. Therefore, when acquiring the first user feature, the CPE can use the user characteristics of the terminal device. The user features in the feature interface correspondence table stored in the CPE are matched, and the first user feature with the same user feature type is obtained.
  • PPPoE can contain user MAC address, VLAN tag, username, and so on.
  • the corresponding extracted user features are user MAC address, VLAN tag, and user name, where the user MAC address is 0x00E001000003, the VLAN tag is VLAN1, and the user name is Zhang San, if preset As shown in Table 1, the CPE matches the user feature of the extracted terminal device with the user feature in the feature interface mapping table, and obtains the first user feature with the same user feature type: Zhang San.
  • the CPE matches the user feature of the extracted terminal device with the user feature in the feature interface correspondence table, that is, the user MAC address and the VLAN tag, and obtains the same user feature type.
  • the first user feature The user MAC address is 0x00E001000003 and the VLAN tag is VLAN 1.
  • the CPE obtains an APN interface corresponding to the first user feature from the feature interface correspondence table.
  • the user name is Zhang
  • the preset feature interface correspondence table is as shown in Table 1. If the corresponding APN interface corresponding to the user name Zhang is APN1, the corresponding user name can be obtained.
  • the APN interface corresponding to the first user feature is APN1.
  • the user MAC address is OxOOEOO 1000003 and the VLAN tag is VLAN 1
  • the preset feature interface correspondence table is as shown in Table 2, and the corresponding user MAC address is obtained in the corresponding interface correspondence table.
  • the APN interface corresponding to the first user feature is APN5, and the APN interface corresponding to the VLAN 1 is the APN5.
  • step 201 when the CPE is in the established feature interface correspondence table, the calling number, the called number, or the extended called number is selected as the user feature.
  • the CPE can extract the master.
  • the called number, the called number, or the extended called number is used as the first feature information to obtain a corresponding APN interface, such as 0777-12345, where 0777 is an extended part, and the corresponding APN interface is obtained by using 0777 as the first feature information.
  • the user name is selected.
  • the domain name is the first user feature.
  • the terminal device is a data user
  • the data user carries the user name or domain name, such as abc@huawei, where "abc" is the user name and "huawei" is the domain name.
  • the CPE can obtain the corresponding APN interface by extracting the username or the domain name as the first feature information.
  • the CPE obtains feature information according to the first user feature.
  • the CPE may directly use the first user feature as feature information, for example, when the first user feature is the calling number, the called number, the extended called number, the user MAC address, When the user VLAN tag or the physical interface number is described, the first user feature is used as the feature information.
  • the CPE may also obtain the preset feature identifier corresponding to the first user feature, and use the preset feature identifier as the feature information. For example, when the first user feature is a user name or a domain name, the user name or the domain name is obtained. a session identifier, the session identifier is used as the feature information.
  • the CPE allocates a corresponding session identifier for each user name, and the session identifiers are different, and are used to distinguish Different users.
  • the obtained session identifier is a session identifier corresponding to the user name.
  • the obtained session identifier is a username corresponding to the username under the domain name. The session identifier, therefore, when the first user feature is a domain name, the obtained session identifier may be one or more.
  • the CPE stores, in the APN mapping table, a correspondence between the feature information and an APN interface corresponding to the first user feature.
  • the CPE may obtain the first feature information according to the APN interface corresponding to the first user feature acquired in step 205 and the feature information corresponding to the first user feature in step 206.
  • the corresponding relationship between the APN interface and the APN mapping table is recorded, and the corresponding relationship between the feature information and the APN interface is recorded in the APN mapping table.
  • the terminal device accesses the CPE through the PPPoE
  • the user MAC address is 0x00E001000003
  • the VLAN tag is 1
  • the physical interface number is 1. If the preset feature interface correspondence table is as shown in Table 2, in step 204 and step 205.
  • the first user feature is obtained by querying the feature interface correspondence table: the user MAC address is 0x00E001000003, and the APN interface corresponding to the VLAN tag is VLAN 1 is APN5, and according to step 206, the first user feature is directly: If the MAC address is OxOOEOO 1000003 and the VLAN tag is VLAN 1 as the feature information, the user MAC address is 0x00E001000003 and the corresponding relationship between the VLAN tag and the APN5 is stored in the APN mapping table.
  • the feature information in the APN mapping table may include: a user MAC address and a VLAN tag, and a user MAC address of 0x00E001000003 and a VLAN tag as a correspondence between VLAN1 and the APN5 are stored in the APN mapping table.
  • the indication of 0 is invalid.
  • step 203 when the terminal device accesses the CPE, there may be multiple user features of the terminal device extracted by the CPE according to the access mode of the terminal device, and in actual application, step 206 may also be used.
  • the feature information is obtained by the plurality of user features obtained in step 203, the plurality of user features including the first user feature, and the correspondence between the feature information and the APN interface is stored in the APN in step 207.
  • the mapping table wherein the feature information corresponding to the first user feature is valid feature information, and the other feature information is invalid feature information.
  • the user feature extracted by the CPE is a physical interface number of 1, the phone number is 0777-12345, and the user is not extracted.
  • the user attributes such as the MAC address, the VLAN tag, the user name, and the domain name are recorded as 0.
  • the CPE obtains the first user feature as the physical interface number 1 in the feature interface mapping table.
  • the CPE obtains the first user feature in the feature interface correspondence table, that is, the physical interface number is 1, and the corresponding APN interface is APN1.
  • the CPE is based on the physical interface number.
  • the phone number is 0777-12345, and the user MAC address, VLAN tag, user name, and domain name are both 0.
  • the feature information is: physical interface number is 1, phone number is 0777-12345, user MAC address, VLAN tag, and session ID are 0. In the embodiment of the present invention, the indication of 0 is invalid.
  • the physical interface number is 1 and the phone number is 0777-12345.
  • the user MAC address, the VLAN tag, and the session identifier are 0, and the corresponding relationship between the APN interface and the APN1 is stored in the APN mapping table, that is, in Table 4.
  • the physical interface number is 1 for valid feature information, and the other feature information is invalid feature information.
  • the CPE receives the first data packet.
  • the CPE acquires first feature information of the first data packet.
  • the first feature information is the same as the feature information type in the access point name APN mapping table of the CPE, and the APN mapping table includes a mapping relationship between the feature information and the APN interface, and the feature information in the APN mapping table is based on The access method of the terminal device is obtained.
  • the first data packet is sent by the terminal device to the CPE through the user interface, and the CPE performs the parsing of the first data packet according to the APN mapping table to extract the first feature information of the first data packet.
  • the CPE may First, the APN mapping table is queried, and the type of the feature information recorded in the APN mapping table, such as the domain name and the physical interface number, is obtained, and then the specific type of feature information is extracted in the packet header and the physical interface of the first data packet.
  • the form, for example, the type of the feature information recorded in the mapping table is a domain name
  • the specific domain name is extracted in the first data packet, for example, the domain information carried in the first data packet is "[email protected]", extracted.
  • the domain name "huawei", the "huawei” is the extracted first feature information.
  • the feature information carried in the first data packet may be different from the type of the feature information recorded in the APN mapping table, and may not be extracted in the first data packet in this embodiment.
  • the first feature information is recorded as invalid feature information.
  • the CPE queries the first data packet according to the APN mapping table shown in Table 3.
  • the feature information to be extracted is the user MAC address and the VLAN tag, and the CPE is in the packet header and physical interface of the first data packet. Extracting the feature information.
  • the CPE queries the APN mapping table according to the first feature information, and acquires a first APN interface corresponding to the first feature information.
  • the CPE extracts the feature information in the packet header and the physical interface of the first data packet, and the user MAC address is 0x00E001000001, and the VLAN tag is not extracted, that is, the VLAN tag is invalid feature information, and is recorded as 0.
  • the first characteristic information is: physical interface number is OxOOEOO 1000001, VLAN tag is 0, CPE is based on the physical interface number is OxOOEOOlOOOOl, and VLAN tag is 0.
  • the APN mapping table as shown in Table 3, the corresponding APN interface is APN2, so the first An APN interface is APN2.
  • the CPE establishes a PDN connection corresponding to the first APN interface.
  • the establishment of the PDN connection corresponding to the first APN interface may be implemented in two cases, one is pre-established, and the other is established in real time according to the access mode of the terminal device. of.
  • a PDN connection corresponding to all the first APN interfaces in the first APN interface corresponding to the first APN interface, and the PDN connection corresponding to the first APN interface obtained in the step 210 includes: the PDN connection corresponding to the first APN interface obtained in the step 210 .
  • the CPE obtains the corresponding first APN interface in step 211, and the CPE dials the first APN.
  • the PDN corresponding to the interface establishes a connection, so that the subsequent forwarding of the first data packet is performed on the PDN connection.
  • the CPE forwards the first data packet by using the first APN interface.
  • the first data packet may be forwarded according to the routing table or the bridge table. For example, if the first data packet is forwarded according to the routing table, the first data packet is sent to the network side by the user side.
  • the uplink packet the CPE needs to forward the first data packet to the first APN interface, and then the CPE can first decapsulate the link layer of the first data packet; Decapsulating the IP address of the private network protocol of the first data packet; obtaining the public network IP address corresponding to the first APN interface; converting the private network IP address in the decapsulated first data packet
  • the IP address of the public network is encapsulated in the radio frame and sent to the network side by using the first APN interface.
  • the CPE receives the second data packet sent by the network side to the user side, and the CPE needs to send the second data packet to the user side by using the route forwarding from the second APN interface.
  • Receiving, by the second APN interface, the second data packet sent by the network side, and sending the second data packet to the user side by using the route forwarding the method includes: acquiring the second data packet The IP address of the public network is translated into the pair according to the mapping between the public network IP address and the private network IP address. The private network IP address of the private network; the private network routing table is used to obtain the user interface; the second data packet after the address translation is encapsulated by the link layer; the second data after the encapsulation is performed. The message is sent from the user interface to the user side.
  • the link layer of the first data packet may be decapsulated; and then the decapsulated first data packet is encapsulated in the radio frame by using the The first APN interface is sent to the network side.
  • the CPE receives the second data packet sent by the network side to the user side, and the CPE needs to send the second data packet from the second APN interface to the user side by using the bridge forwarding;
  • the second APN interface receives the second data packet sent by the network side, and then the second data packet is sent from the user interface to the user side by using the bridge forwarding, and the method includes: acquiring, according to the corresponding relationship between the APN interface and the user interface, The user interface corresponding to the second APN interface; performing link layer encapsulation on the second data packet; and sending the encapsulated second data packet from the user interface to the user side.
  • the feature information corresponding to the user feature of the CPE extraction terminal device may be different.
  • the same terminal device such as a computer
  • the final feature information is the physical interface number, user MAC address, VLAN tag, and user session identifier.
  • the information is the user session identifier.
  • the physical interface number obtained by the DHCP access method is 1.
  • the user MAC address is 0x00E001000001
  • the VLAN tag is 10
  • the user session ID is 0.
  • the physical interface number obtained by PPPoE access is 1.
  • the user MAC address is 0x00E001000001, the VLAN tag is 10, and the user session ID is 2.
  • APN1 the APN interface corresponding to the user session ID of the APN mapping table
  • APN2 the APN interface corresponding to the user session ID
  • the same terminal device is accessed by the DHCP access CPE through the APN interface 1 to access the PGW1, or the PPPoE accessing the CPE to access the PGW2 through the APN interface 2, that is, the same terminal device can access through different APN interfaces.
  • Different PGWs access different PDN networks, thus improving the flexibility of the terminal device to access the PGW.
  • the data packet forwarding method is provided in the embodiment of the present invention.
  • the CPE extracts user features according to the terminal access mode, and selects the first user among the user features by querying the feature interface correspondence table. And storing an APN mapping table by storing the relationship between the first user feature and the corresponding APN interface to the APN mapping table, and extracting the first feature information from the first data packet when the first data packet is forwarded, and querying
  • the APN mapping table obtains the corresponding first APN interface, and the first data is forwarded from the first APN interface.
  • the APN mapping table records the correspondence between the feature information and the APN interface, and the feature information is according to each The access mode of the terminal device is obtained, so the APN mapping table sets the access rights of the different terminal devices to the APN interface, and the packet forwarding by the APN mapping table can control the access of the different terminal devices to the APN interface, thereby Control the terminal's access to the PDN.
  • the same terminal device can access different APN interfaces to improve the flexibility of the terminal device to access the APN interface.
  • the data packet forwarding method provided by the embodiment of the present invention is applicable to an application scenario in which a wireless data communication technology terminal such as 3G, LTE, and 4G is combined with a CPE.
  • the embodiment of the present invention provides a CPE 30, which is configured to access at least two PGWs, and is used to implement the data packet forwarding method shown in FIG. 1 or FIG. 2; as shown in FIG. 3, the CPE 30 includes:
  • the receiving unit 301 is configured to receive the first data packet.
  • the receiving unit 301 is further configured to receive, by the second APN interface, a second data packet sent by the network side.
  • the first acquiring unit 302 is configured to acquire first feature information of the first data packet, where the first feature information is the same as the feature information type in the access point name APN mapping table of the CPE 30, where the APN mapping is performed.
  • the table includes the mapping between the feature information and the APN interface, and the feature information in the APN mapping table is obtained according to the access mode of the terminal device.
  • the second obtaining unit 303 is configured to query the APN mapping table according to the first feature information, and obtain a first APN interface corresponding to the first feature information.
  • the forwarding unit 304 is configured to send the first data packet from the first APN interface to the network side by using route forwarding or bridge forwarding.
  • the forwarding unit is further configured to: send the second data packet from the user interface to the user side by using route forwarding or bridge forwarding.
  • the second acquiring unit needs to query the APN mapping table according to the first feature information extracted by the first acquiring unit from the first data packet.
  • the APN mapping table includes a correspondence between the feature information and the APN interface, and the feature information is obtained according to an access mode of each terminal device, so the APN mapping table sets different terminal device pairs.
  • the access rights of the APN interface can be controlled by querying the APN mapping table to control the access of different terminal devices to the APN interface.
  • the CPE 30 further includes:
  • the extracting unit 305 is configured to: when the terminal device accesses the CPE 30, extract the user feature of the terminal device according to the access mode of the terminal device, where the user features include: a calling number, a called number, and an extension One or more of the called number, the user medium access control layer MAC address, the user virtual local area network VLAN tag, the username, the domain name, and the physical interface number;
  • the third obtaining unit 306 is configured to obtain the first user feature from the user feature of the terminal device, where the user feature type in the first user feature and the feature interface correspondence table is the same, and the feature interface correspondence table is And the APN interface corresponding to the first user feature is obtained from the feature interface correspondence table;
  • the fifth obtaining unit 308 is configured to obtain feature information according to the first user feature.
  • the fifth acquiring unit is configured to directly use the first user feature as feature information, or obtain a preset feature identifier corresponding to the first user feature, and use the preset feature identifier as a special feature. Sign the information.
  • the storage unit 309 is configured to store the correspondence between the feature information and the APN interface corresponding to the first user feature in the APN mapping table.
  • the CPE provided by the embodiment of the present invention may establish a connection with multiple PDNs of the PDNs to access multiple PDNs, extract user features by using the terminal access mode, establish an APN mapping table, and query according to the feature information extracted in the data packet forwarding.
  • the APN mapping table obtains the APN interface forwarded by the corresponding packet, and the same terminal device can access different APN interfaces to access different PDNs, which improves the access flexibility of the terminal device and implements forwarding of multiple APN data packets.
  • the embodiment of the present invention provides a data message forwarding system 50, as shown in FIG. 5, comprising: a customer premises equipment CPE 30 and at least two packet data network gateways PGW 401 as shown in FIG. 3 or FIG. 4 of the present invention.
  • the CPE 30 can access the at least two PGWs, and the CPE 30 can establish a connection with the preset PDN by using a dialing manner, that is, establishing a connection with the at least two PGWs, and simultaneously setting the CPE 30 with the preset
  • the APN interface corresponding to the PDN connection is turned on, thereby achieving simultaneous access to multiple PDNs.
  • Data communication can be performed through the APN interface to provide a channel for communication of subsequent data services.
  • each PGW 401 allocates a private network IP address to the CPE 30; the CPE 30 can serve as a user side, that is, a gateway of the terminal device, and allocates a private network IP for each terminal device. address.
  • each of the PGWs 401 respectively assigns an IP address to the CPE 30, and the CPE 30 transparently transmits the IP address to the terminal device, so that the terminal device accesses the IP address according to the IP address.
  • the CPE 30, that is, the CPE 30 does not process the IP address assigned by the received PGW 401, and directly forwards it to the corresponding terminal device.
  • the CPE 30 can provide bridge forwarding and forward the data service of the terminal device to the PGW 401.
  • the disclosed system, apparatus, and method may be implemented in other manners.
  • the device embodiments described above are only schematic.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separate.
  • the components displayed as units may or may not be physical units, i.e., may be located in one place, or may be distributed over multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may be physically included separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
  • the embodiment of the present invention provides a CPE, where the CPE accesses at least two packet data network gateways PGW. As shown in FIG. 6, the CPE includes:
  • the processor 601, the memory 602, and the communication interface 603 are connected to each other through a bus 604; the bus 604 may be an ISA bus, a PCI bus, or an EISA bus.
  • the bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 6, but it does not mean that there is only one bus or one type of bus.
  • the memory 602 is configured to store a program.
  • the program may include program code,
  • the program code includes computer operating instructions.
  • the memory 602 may include a high speed RAM memory and may also include a non-volatile memory such as at least one disk memory.
  • the processor 601 executes a program stored in the memory 602, and is configured to receive the first data packet, and obtain the first feature information of the first data packet.
  • the first feature information is mapped to the access point name of the CPE.
  • the feature information of the table is the same.
  • the mapping information includes the mapping between the feature information and the UI.
  • the feature information in the mapping table is obtained according to the access mode of the terminal device.
  • the first mapping interface is configured to obtain a first UI interface corresponding to the first feature information, and the first data packet is sent from the first UI interface to the network side by using route forwarding or bridge forwarding.
  • the processor 601 is further configured to: when the terminal device accesses the CPE, extract the terminal device according to the access mode of the terminal device
  • User characteristics include: one or more of a calling number, a called number, an extended called number, a user medium access control layer MAC address, a user virtual local area network VLAN tag, a user name, a domain name, and a physical interface number.
  • Obtaining a corresponding relationship obtaining an APN interface corresponding to the first user feature from the feature interface correspondence table; obtaining feature information according to the first user feature; and corresponding to the feature information and the first user feature
  • the corresponding relationship of the APN interface is stored in the APN mapping table.
  • the processor 601 is specifically configured to directly use the first user feature as the feature information, or obtain a preset feature identifier corresponding to the first user feature, and use the preset feature identifier as the Feature information.
  • the processor 601 is specifically configured to decapsulate the link layer of the first data packet; When the packet is forwarded by the bridge, the first data packet that is decapsulated is encapsulated in the radio frame and sent to the network through the first APN interface.
  • the IP address of the private network is translated into the public network IP address.
  • the address-converted first data packet is encapsulated in the radio frame and sent to the network side through the first APN interface.
  • the processor 601 is further configured to receive, by the second APN interface, a second data packet sent by the network side, and send the second data packet from the user interface to the user side by using route forwarding or bridge forwarding. .
  • the processor 601 is configured to obtain a public network IP address of the second data packet, and according to a correspondence between a public network IP address and a private network IP address recorded locally, Converting the public network IP address into a corresponding private network IP address; obtaining the user interface according to the private network IP address to find the private network routing table; performing link layer on the second data packet after the address translation Encapsulating; sending the encapsulated second data packet from the user interface to the user side;
  • the processor 601 is configured to acquire the user interface corresponding to the second APN interface according to the mapping between the APN interface and the user interface, and the second datagram.
  • the link layer encapsulation is performed; the encapsulated second data packet is sent from the user interface to the user side.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Small-Scale Networks (AREA)

Abstract

本发明公开了一种数据报文转发方法、用户驻地设备和***,涉及通信领域,能够控制不同的终端设备对APN接口的访问。该数据报文转发方法包括:CPE接收第一数据报文,所述CPE接入至少两个PGW;获取所述第一数据报文的第一特征信息;所述第一特征信息与所述CPE的APN映射表中的特征信息类型相同,所述APN映射表中包括特征信息与APN接口的对应关系,所述APN映射表中的特征信息根据终端设备的接入方式得到;根据所述第一特征信息查询所述APN映射表,获取与所述第一特征信息对应的第一APN接口;将所述第一数据报文通过路由转发或桥转发从所述第一APN接口发送至网络侧。

Description

一种数据报文转发方法、 用户驻地设备和*** 本申请要求于 2013 年 01 月 28 日提交中国专利局、 申请号为 201310031101.0、 发明名称为"一种数据报文转发方法、 用户驻地设备和***" 的中国专利申请的优先权, 其全部内容通过引用结合在本申请中。 技术领域
本发明涉及通信领域, 尤其涉及一种数据报文转发方法、 用户驻地 设备和***。 背景技术
长期演进( long term evolution, 简称 LTE ) 是由第三代移动通信技 术 ( 3rd-generation, 简称 3G ) 向***移动通信技术 ( 4rd-generation, 简称 4G ) 过渡的技术, 该技术能够提供较高的传输速率, 因此已经被 应用在各个领域。
目前的一些数据报文转发过程, 终端设备发送的数据报文中携带有 目的网络协议 (Internet protocol,简称 IP ) 地址, 网关需要提取该数据 才艮文的目的 IP地址, 然后 居该目的 IP地址对应的接入点名 ( access point name , 简称 APN ) 进行数据报文的转发, 使得终端设备根据该目 的 IP地址访问对应的 APN, 而一些企业网络或家庭网络建立的目的是 为特定用户提供网络资源, 但是该报文转发过程中, 由于任意用户只要 获取所述目的 IP地址,都可以才艮据所述目的 IP地址访问该目的 IP地址 对应的 APN接口例如,获取了所述企业网络或家庭网络的目的 IP地址, 就可以任意访问所述企业网络或家庭网络的 APN接口因此无法控制不 同的终端设备对 APN接口的访问。 发明内容
本发明实施例提供了一种数据报文转发方法、 用户驻地设备和系 统, 能够控制不同的终端设备对 ΑΡΝ接口的访问。
为达到上述目的, 本发明的实施例釆用如下技术方案:
第一方面, 本发明实施例提供了一种数据报文转发方法, 包括: 用户驻地设备 CPE接收第一数据报文, 所述 CPE接入至少两个分 组数据网络网关 PGW;
获取所述第一数据报文的第一特征信息; 所述第一特征信息与所述
CPE的接入点名 ΑΡΝ映射表中的特征信息类型相同, 所述 ΑΡΝ映射表 中包括特征信息与 ΑΡΝ接口的对应关系, 所述 ΑΡΝ映射表中的特征信 息根据终端设备的接入方式得到;
根据所述第一特征信息查询所述 ΑΡΝ 映射表, 获取与所述第一特 征信息对应的第一 ΑΡΝ接口;
将所述第一数据报文通过路由转发或桥转发从所述第一 ΑΡΝ接口 发送至网络侧。
结合第一方面的第一种可实现方式, 在所述获取所述第一数据报文 的第一特征信息之前, 还包括:
在终端设备接入用户驻地设备 CPE时,根据所述终端设备的接入方 式提取所述终端设备的用户特征, 所述用户特征包括: 主叫号码、 被叫 号码、 扩展被叫号码、 用户介质访问控制层 MAC地址、 用户虚拟局域 网 VLAN标签、 用户名、 域名和物理接口号中的一个或多个;
从所述终端设备的用户特征中获取第一用户特征, 所述第一用户特 征与特征接口对应关系表中的用户特征类型相同, 所述特征接口对应关 系表中包括用户特征与 APN接口的对应关系;
从所述特征接口对应关系表中获取与所述第一用户特征对应的 APN接口;
根据所述第一用户特征得到特征信息;
将所述特征信息和所述第一用户特征对应的 APN接口的对应关系 存入所述 APN映射表。
结合第一种可实现方式的第二种可实现方式, 所述根据所述用户特 征得到所述特征信息包括:
将所述第一用户特征直接作为所述特征信息; 或获取所述第一用户 特征对应的预设特征标识, 将所述预设特征标识作为所述特征信息。
结合第一方面、 第一种可实现方式和第二种可实现方式的第三种可 实现方式, 所述将所述第一数据报文通过路由转发或桥转发从所述第一 APN接口发送至网络侧包括:
对所述第一数据报文的链路层进行解封装;
当通过桥转发时, 将解封装后的第一数据报文封装在无线帧中通过 所述第一 APN接口发送至网络侧;
当通过路由转发时, 获取解封装后的第一数据报文的私网网际协议 IP地址; 获取所述第一 APN接口对应的公网 IP地址; 将所述解封装后 的第一数据报文中的私网 IP地址转换为所述公网 IP地址; 并将地址转 换后的第一数据报文封装在无线帧中通过所述第一 APN接口发送至网 络侧。
结合第三种可实现方式的第四种可实现方式, 所述方法还包括: 在第二 APN接口接收网络侧发送的第二数据报文;
并将所述第二数据报文通过路由转发或桥转发从用户接口发送至 用户侧; 其中, 所述将第二数据报文通过路由转发从用户接口发送至用 户侧具体包括:
获取所述第二数据报文的公网 IP地址; 根据本地记录的公网 IP地 址与私网 IP地址对应关系,将所述公网 IP地址转换为对应的私网 IP地 址; 才艮据所述私网 IP 地址查找私网路由表得到所述用户接口; 对地址 转换后的第二数据报文进行链路层封装; 将封装后的第二数据报文从所 述用户接口发送至用户侧; 其中, 所述将第二数据报文通过桥转发从用户接口发送至用户侧具 体包括:
根据 ΑΡΝ接口与用户接口对应关系, 获取所述第二 ΑΡΝ接口对应 的所述用户接口; 对所述第二数据报文进行链路层封装; 将封装后的第 二数据报文从所述用户接口发送至用户侧。
第二方面, 本发明实施例提供了一种用户驻地设备 CPE, 接入至少 两个分组数据网络网关 PGW, 包括:
接收单元, 用于接收第一数据报文;
第一获取单元, 用于获取所述第一数据报文的第一特征信息; 所述 第一特征信息与所述 CPE的接入点名 ΑΡΝ映射表中的特征信息类型相 同, 所述 ΑΡΝ 映射表中包括特征信息与 ΑΡΝ接口的对应关系, 所述 ΑΡΝ映射表中的特征信息根据终端设备的接入方式得到;
第二获取单元, 用于根据所述第一特征信息查询所述 ΑΡΝ映射表, 获取与所述第一特征信息对应的第一 ΑΡΝ接口;
转发单元, 用于将所述第一数据报文通过路由转发或桥转发从所述 第一 ΑΡΝ接口发送至网络侧。
结合第二方面的第一种可实现方式, 所述 CPE还包括:
提取单元, 用于在终端设备接入用户驻地设备 CPE时, 根据所述终 端设备的接入方式提取所述终端设备的用户特征, 所述用户特征包括: 主叫号码、 被叫号码、 扩展被叫号码、 用户介质访问控制层 MAC地址、 用户虚拟局域网 VLAN标签、 用户名、 域名和物理接口号中的一个或多 个;
第三获取单元, 用于从所述终端设备的用户特征中获取第一用户特 征, 所述第一用户特征与特征接口对应关系表中的用户特征类型相同, 所述特征接口对应关系表中包括用户特征与 APN接口的对应关系; 第四获取单元, 用于从所述特征接口对应关系表中获取与所述第一 用户特征对应的 APN接口;
第五获取单元, 用于根据所述第一用户特征得到特征信息; 存储单元, 用于将所述特征信息和所述第一用户特征对应的 APN 接口的对应关系存入所述 APN映射表。
结合第一种可实现方式的第二种可实现方式, 所述第五获取单元具 体用于:
将所述第一用户特征直接作为特征信息; 或获取所述第一用户特征 对应的预设特征标识, 将所述预设特征标识作为特征信息。
结合第二方面、 第一种可实现方式和第二种可实现方式的第三种可 实现方式, 所述接收单元, 还用于在第二 APN接口接收网络侧发送的 第二数据报文;
所述转发单元还用于: 将第二数据报文通过路由转发或桥转发从用 户接口发送至用户侧。
第三方面, 本发明实施例提供了一种数据报文转发***, 包括: 至 少两个分组数据网络网关 PGW, 和以上任意所述的用户驻地设备。
本发明实施例提供的一种数据报文转发方法, 用户驻地设备和系 统, 包括: 用户驻地设备 CPE接收第一数据报文, 所述 CPE接入至少 两个包数据网络网关 PGW; 获取所述第一数据报文的第一特征信息; 所述第一特征信息与所述 CPE的接入点名 APN映射表中的特征信息类 型相同, 所述 APN映射表中包括特征信息与 APN接口的对应关系, 所 述 APN 映射表中的特征信息根据终端设备的接入方式得到; 根据所述 第一特征信息查询所述 APN 映射表, 获取与所述第一特征信息对应的 第一 APN接口; 将所述第一数据报文通过路由转发或桥转发从所述第 一 APN接口发送至网络侧。这样一来,在多 APN数据报文转发***中, 第一数据报文转发时, 需要根据从该第一数据报文中提取的第一特征信 息查询 APN映射表得到相应的第一 APN接口, 而该 APN映射表包括 特征信息与 APN接口的对应关系, 所述特征信息是根据各个终端设备 的接入方式得到的, 因此 APN映射表设定了不同终端设备对 APN接口 的访问权限, 通过查询所述 APN 映射表进行报文转发能够控制不同的 终端设备对 APN接口的访问。 附图说明
图 1为本发明实施例提供的一种数据报文转发方法流程图;
图 2为本发明实施例提供的另一种数据报文转发方法流程图;
图 3为本发明实施例提供的一种用户驻地设备结构示意图;
图 4为本发明实施例提供的另一种用户驻地设备结构示意图;
图 5为本发明实施例提供的一种报文转发***结构示意图;
图 6为本发明实施例提供的再一种用户驻地设备结构示意图。 具体实施方式
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案 进行清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实 施例, 而不是全部的实施例。 基于本发明中的实施例, 本领域普通技术 人员在没有做出创造性劳动前提下所获得的所有其他实施例, 都属于本 发明保护的范围。
本发明实施例提供了一种数据报文转发方法, 由用户驻地设备 ( customer premises equipment, 简称 CPE ) 执行, 所述 CPE接入至少 两个分组数据网络 (packet data network, 简称 PDN)网关(PDN gateway, 简称 PGW), 如图 1所示, 包括:
101、 CPE接收第一数据报文。
102、 CPE获取所述第一数据报文的第一特征信息。
所述第一特征信息与所述 CPE的接入点名 APN映射表中的特征信 息类型相同,所述 APN映射表中包括特征信息与 APN接口的对应关系, 所述 APN映射表中的特征信息根据终端设备的接入方式得到。
所述第一数据报文由终端设备通过用户接口发送至 CPE, CPE根据 APN映射表进行该第一数据报文的解析,来提取第一数据报文的第一特 征信息, 具体的, CPE可以首先查询 APN映射表, 得到 APN映射表中 记录的特征信息的类型, 如域名、 物理接口号等等, 然后在第一数据报 文的报文头和物理接口处提取相同类型的特征信息的具体形式, 例如, 映射表中记录的特征信息的类型为域名, 则在第一数据报文中提取具体 的域名, 如第一数据报文中携带的域信息为 "[email protected]", 提取域 名" huawei", 所述" huawei"即为提取的第一特征信息。 但是由于不同终 端设备发送的数据报文不同,第一数据报文携带的特征信息可能与 APN 映射表中记录的特征信息类型不同, 在本实施例中当在第一数据报文中 无法提取到与 APN 映射表中记录的特征信息相同类型的特征信息时, 将第一特征信息记为无效特征信息。
103、 CPE根据所述第一特征信息查询所述 APN映射表, 获取与所 述第一特征信息对应的第一 APN接口。
104、 CPE 将所述第一数据报文通过路由转发或桥转发从所述第一 APN接口发送至网络侧。
具体的, 当 CPE釆用路由转发方式转发第一数据报文时, CPE需 要对所述第一数据报文进行网络地址转换 (Network Address Translation 简称 NAT) 后从第一 APN接口转发。 具体地, CPE可以先对所述第一 数据报文的链路层进行解封装; 然后获取解封装后的第一数据报文的私 网网际协议 IP地址; 获取所述第一 APN接口对应的公网 IP地址; 将所 述解封装后的第一数据报文中的私网 IP地址转换为所述公网 IP地址; 并将地址转换后的第一数据报文封装在无线帧中通过所述第一 APN接 口发送至网络侧。
当 CPE釆用桥转发方式转发第一数据报文时, CPE可以先对所述 第一数据报文的链路层进行解封装; 然后将解封装后的第一数据报文封 装在无线帧中通过所述第一 APN接口发送至网络侧。
这样一来, 在多 APN数据报文转发***中, 第一数据报文转发时, 需要根据从该第一数据报文中提取的第一特征信息查询 APN 映射表得 到相应的第一 APN接口, 而该 APN映射表包括特征信息与 APN接口 的对应关系, 所述特征信息是根据各个终端设备的接入方式得到的, 因 此 APN映射表设定了不同终端设备对 APN接口的访问权限, 通过查询 所述 APN映射表进行报文转发能够控制不同的终端设备对 APN接口的 访问。 示例的,本发明实施例提供了一种数据报文转发方法,如图 2所示, 包括:
201、 CPE建立特征接口对应关系表。
所述特征接口对应关系表中包括用户特征与 APN接口的对应关系, 所述用户特征可以包括: 主叫号码、 被叫号码、 扩展被叫号码、 用户介 质访问控制( medium access control,简称 MAC )地址、虚拟局域网( virtual local area network, 简称 VLAN ) 标签、 用户名、 域名和物理接口号中 的一个或多个。 通常在建立所述特征接口对应关系表时, 可以选择上述 任意一个特征参数作为用户特征, 如表 1以用户名作为用户特征, 也可 以选择上述任意两个特征参数组合作为用户特征, 如表 2 以 MAC 和 VLAN标签组合作为用户特征, 需要说明的是, 在 CPE中可以建立一个 或多个所述特征接口对应关系表, CPE中的所有特征接口对应关系表中 需要保证每个用户特征不同, 即不出现重复的特征参数值。
同一个用户特征下的不同特征值与 APN 的关系可以是一对一的关 系, 也可以是多对一的关系, 本发明对此不做限制。 根据不同的用户特 征可以获取到不同的 APN接口从而使得后续网络接入过程, 接入到不 同的 APN接口对应的 PDN中。 示例的, 如表 1所示的特征接口对应关 系表, 当用户特征为用户名时, 用户名包括不同内容, 如可以包括: 张 三、 李四等等, 各个用户名与 APN 的关系可以是一对一的关系, 如用 户名为张三对应的 APN接口为 APN1 , 也可以是多对一的关系, 如用户 名为李四和王五对应的 APN均为 APN2。特别的, CRE中可以保存有一 张或多张特征接口对应关系表, 在实际应用中, 通常保存一张特征接口 对应关系表。
表 1
Figure imgf000010_0001
表 2
Figure imgf000010_0002
202、 CPE与预设 PDN建立连接。
CPE可以通过拨号方式与预设 PDN建立连接, 即建立 CPE与相应 的 PGW的连接 , 同时与预设 PDN连接对应的 APN接口导通, 该 APN 接口可以进行数据业务的通信, 为后续数据业务的通信提供通道。
203、 在终端设备接入 CPE时, CPE根据所述终端设备的接入方式 提取所述终端设备的用户特征。
需要说明的是, 所述终端设备的接入模式可以根据实际情况预先配 置, 可以为路由模式或桥模式。 其中, 路由模式中, PGW为 CPE分配 私网 IP地址, CPE可以作为用户侧, 即终端设备侧的网关。 在路由模 式下多个终端设备可以共享用一个 APN; 桥模式中, PGW为 CPE分配 IP地址, CPE将该 IP地址透传给终端设备, 以便于终端设备根据该 IP 接入 CPE, 即 CPE对接收到的 PGW分配的 IP地址不做处理, 直接转 发给相应的终端设备, CPE可以提供桥转发将终端设备的数据业务转发 给 PGW。
在终端设备通过 CPE上的用户接口接入 CPE时, 由于该终端设备 使用的接入方式不同, 可以提取的用户特征的类型不同。 接入方式可以 包括: 电话业务接入, 动态主机配置协议 ( dynamic host configuration protocol,简称 DHCP ) ,以太网上点对点协议 ( oint to point protocol over Ethernet, 简称 PPPoE ) , 无线保真 ( wireless-fidelity, 简称 WIFI ) 等 等。 示例的, 当接入方式为电话业务接入时, 需要提取的用户特征可以 为电话号码和物理接口号; 当接入方式为 DHCP时, 需要提取的用户特 征可以为用户 MAC地址、 物理接口号和 VLAN标签, 需要说明的是, 若提取不到该 VLAN标签, 在建立 APN映射表时, 该 VLAN标签为无 效值; 当接入方式为 PPPoE或 WIFI时, 需要提取的用户特征可以为用 户 MAC地址、 VLAN标签、 物理接口号和用户名, 或用户 MAC地址、 VLAN标签、 物理接口号和域名。
204、 CPE从所述终端设备的用户特征中获取第一用户特征。
所述第一用户特征与特征接口对应关系表中的用户特征类型相同。
CPE获取所述终端设备的用户特征可以有多个, 同时 CPE 中可以 保存有一张或多张特征接口对应关系表, 因此在获取第一用户特征时, CPE 可以将所述终端设备的用户特征与所述 CPE 中存储的特征接口对 应关系表中的用户特征进行匹配, 获取用户特征类型相同的第一用户特 征。
通常, PPPoE可以包含用户 MAC地址、 VLAN标签和用户名等等。 示例的, 假设终端设备使用的是 PPPoE , 相应提取的用户特征为用户 MAC 地址、 VLAN 标签和用户名 , 其中 , 用户 MAC 地址为 0x00E001000003 , VLAN标签为 VLAN1 , 用户名为张三, 若预设的特 征接口对应关系表如表 1所示, CPE将提取的终端设备的用户特征与特 征接口对应关系表中的用户特征即用户名进行匹配, 得到用户特征类型 相同的第一用户特征: 用户名为张三。 若预设的特征接口对应关系表如 表 2所示, CPE将提取的终端设备的用户特征与特征接口对应关系表中 的用户特征即用户 MAC地址和 VLAN标签进行匹配, 得到用户特征类 型相同的第一用户特征: 用户 MAC地址为 0x00E001000003和 VLAN 标签为 VLAN1。
205、 CPE 从所述特征接口对应关系表中获取与所述第一用户特征 对应的 APN接口。
示例的, 当获得第一用户特征为: 用户名为张三, 且预设的特征接 口对应关系表如表 1 所示, 相应查询得到用户名张三对应的 APN接口 为 APN1 , 则可以获取该第一用户特征对应的 APN接口为 APN1。 当获 得第一用户特征为: 用户 MAC地址为 OxOOEOO 1000003和 VLAN标签 为 VLAN1 , 且预设的特征接口对应关系表如表 2所示, 相应的在特征 接口对应关系表中查询得到用户 MAC地址为 OxOOEOO 1000003和 VLAN 标签为 VLAN1对应的 APN接口为 APN5 , 则可以获取该第一用户特征 对应的 APN接口为 APN5。
需要说明的是, 若步骤 201 中, CPE在建立的特征接口对应关系表 时, 选择主叫号码、 被叫号码或扩展被叫号码作为用户特征, 当终端设 备为语音用户, CPE可以通过提取主叫号码、 被叫号码或扩展被叫号码 作为第一特征信息获取对应的 APN接口, 如 0777-12345 , 其中 0777为 扩展部分, 通过将 0777作为第一特征信息获取相应的 APN接口。
若步骤 201中, CPE在建立的特征接口对应关系表时, 选择用户名 或域名作为第一用户特征, 当终端设备为数据用户, 该数据用户携带用 户名或域名, 如 abc@huawei, 其中 "abc"为用户名, "huawei"为域名。 CPE可以通过提取用户名或域名作为第一特征信息获取对应的 APN接 口 。
206、 CPE根据所述第一用户特征得到特征信息。
在实际应用中, CPE根据所述第一用户特征得到特征信息的方式可 以有多种:
CPE可以直接将所述第一用户特征作为特征信息, 例如, 当所述第 一用户特征为所述主叫号码、 所述被叫号码、 所述扩展被叫号码、 所述 用户 MAC地址、 所述用户 VLAN标签或所述物理接口号时, 将所述第 一用户特征作为所述特征信息。
CPE也可以获取第一用户特征对应的预设特征标识, 将所述预设特 征标识作为特征信息, 例如当所述第一用户特征为用户名或域名时, 获 取所述用户名或域名对应的会话标识, 将所述会话标识作为所述特征信 息。
需要说明的是, 在各个终端设备接入 CPE时, 若终端设备的第一用 户特征中存在用户名, CPE会为各个用户名分配对应的会话标识, 所述 会话标识各不相同, 用于区分不同的用户。 当所述第一用户特征为用户 名时, 获取的会话标识为该用户名对应的会话标识, 当所述第一用户特 征为域名时, 获取的会话标识为属于该域名下的用户名对应的会话标 识, 因此, 当所述第一用户特征为域名时, 获取的会话标识可以为一个 或多个。
207、 CPE将所述特征信息和所述第一用户特征对应的 APN接口的 对应关系存入所述 APN映射表。
CPE可以根据步骤 205 中获取的第一用户特征对应的 APN接口, 及步骤 206中第一用户特征对应的特征信息, 得到所述第一特征信息和 所述 APN接口的对应关系 , 并存入 APN映射表, 所述 APN映射表中 记录了特征信息与 APN接口的对应关系。
示例的, 假设终端设备通过 PPPoE接入 CPE, 用户 MAC地址为 0x00E001000003 , VLAN标签为 1 , 物理接口号为 1 , 若预设的特征接 口对应关系表如表 2所示, 步骤 204和步骤 205中根据所述用户特征, 在特征接口对应关系表中查询得到第一用户特征: 用户 MAC 地址为 0x00E001000003和 VLAN标签为 VLAN1对应的 APN接口为 APN5 , 并且根据步骤 206 , 直接将第一用户特征: 用户 MAC 地址为 OxOOEOO 1000003和 VLAN标签为 VLAN1作为特征信息,则将用户 MAC 地址为 0x00E001000003和 VLAN标签为 VLAN1与所述 APN5的对应 关系存入所述 APN映射表。 如表 3所示, APN映射表中特征信息可以 包括: 用户 MAC 地址和 VLAN 标签, 将用户 MAC 地址为 0x00E001000003和 VLAN标签为 VLAN1与所述 APN5的对应关系存入 所述 APN映射表。 本发明实施例用 0指示无效。
表 3
Figure imgf000014_0001
需要说明的是, 由于步骤 203 中, 在终端设备接入 CPE 时, CPE 根据所述终端设备的接入方式提取的终端设备的用户特征可能有多个, 在实际应用中, 步骤 206中也可以直接由步骤 203获取的多个用户特征 得到特征信息, 所述多个用户特征包括所述第一用户特征, 在步骤 207 中将所述特征信息和所述 APN接口的对应关系存入所述 APN映射表, 其中第一用户特征对应的特征信息为有效特征信息, 其他特征信息为无 效特征信息。 以接入方式为电话业务接入 (Phone ) 为例, 假设在步骤 203 中终 端设备接入 CPE时, CPE提取的用户特征为物理接口号为 1 , 电话号码 为 0777-12345 , 未提取到用户 MAC地址、 VLAN标签、 用户名和域名 等用户特征, 将所述用户 MAC地址、 VLAN标签、 用户名和域名记为 0 , CPE在特征接口对应关系表中得到第一用户特征为物理接口号为 1 , 在步骤 205时, CPE在特征接口对应关系表中获取所述第一用户特征, 即物理接口号为 1 , 对应的 APN接口为 APN1 , 在步骤 206时, CPE根 据所述物理接口号为 1 ,电话号码为 0777-12345 ,用户 MAC地址、 VLAN 标签、 用户名和域名均为 0 , 得到特征信息: 物理接口号为 1 , 电话号 码为 0777-12345 , 用户 MAC地址、 VLAN标签、 会话标识均为 0 , 本 发明实施例用 0指示无效。 在步骤 207中将所述物理接口号为 1 , 电话 号码为 0777-12345 , 用户 MAC地址、 VLAN标签、 会话标识均为 0与 APN接口为 APN1的对应关系存入 APN映射表, 即表 4中, 在该 APN 映射表中物理接口号为 1为有效特征信息, 其他特征信息均为无效特征 信息。
表 4
Figure imgf000015_0001
208、 CPE在接收到第一数据报文。
209、 CPE获取所述第一数据报文的第一特征信息。
所述第一特征信息与所述 CPE的接入点名 APN映射表中的特征信 息类型相同,所述 APN映射表中包括特征信息与 APN接口的对应关系 , 所述 APN映射表中的特征信息根据终端设备的接入方式得到。 所述第一数据报文由终端设备通过用户接口发送至 CPE, CPE根据 APN映射表进行该第一数据报文的解析,来提取第一数据报文的第一特 征信息, 具体的, CPE可以首先查询 APN映射表, 得到 APN映射表中 记录的特征信息的类型, 如域名、 物理接口号等等, 然后在第一数据报 文的报文头和物理接口处提取相同类型的特征信息的具体形式, 例如, 映射表中记录的特征信息的类型为域名, 则在第一数据报文中提取具体 的域名, 如第一数据报文中携带的域信息为 "[email protected]", 提取域 名" huawei", 所述" huawei"即为提取的第一特征信息。 但是由于不同终 端设备发送的数据报文不同,第一数据报文携带的特征信息可能与 APN 映射表中记录的特征信息类型不同, 在本实施例中当在第一数据报文中 无法提取到与 APN 映射表中记录的特征信息相同类型的特征信息时, 将第一特征信息记为无效特征信息。 示例的,假设 CPE根据表 3所示的 APN 映射表对第一数据报文进行查询, 需要提取的特征信息为用户 MAC地址和 VLAN标签, CPE在第一数据报文的报文头和物理接口处 提取所述特征信息。
210、 CPE根据所述第一特征信息查询 APN映射表, 获取与所述第 一特征信息对应的第一 APN接口。
假设步骤 208中, CPE在第一数据报文的报文头和物理接口处提取 到特征信息为用户 MAC地址为 0x00E001000001 , VLAN标签未提取到, 即 VLAN标签为无效特征信息, 记为 0 , 则第一特征信息为: 物理接口 号为 OxOOEOO 1000001 , VLAN 标签为 0 , CPE 根据物理接口号为 OxOOEOOlOOOOOl , VLAN标签为 0可以在 APN映射表, 如表 3中查询 得到对应 APN接口为 APN2 , 因此第一 APN接口为 APN2。
211、 CPE建立所述第一 APN接口对应的 PDN连接。
需要说明的是, 所述第一 APN接口对应的 PDN连接的建立可以有 两种情况, 一种是预先建立的, 一种是根据终端设备接入方式实时建立 的。
若第一 APN接口对应的 PDN连接为预先建立,在步骤 202中, CPE 通过拨号方式与预设 PDN建立连接后, 可以根据所述用户特征与第一 APN接口对应关系表, 通过拨号方式建立该用户特征与第一 APN接口 对应关系表中所有第一 APN接口对应的 PDN连接,所述所有第一 APN 接口对应的 PDN连接中包括: 所述步骤 210中获取的第一 APN接口对 应的 PDN连接。
若第一 APN接口对应的 PDN连接为根据终端设备接入方式实时建 立的, 则在终端设备接入 CPE后, 在步骤 211获取对应的第一 APN接 口后, CPE通过拨号方式与该第一 APN接口对应的 PDN建立连接, 以 便于在该 PDN连接上进行后续第一数据报文的转发。
212、 CPE通过所述第一 APN接口转发所述第一数据报文。
具体的, 可以根据路由表或桥表转发所述第一数据报文, 示例的, 若根据路由表转发所述第一数据报文, 由于所述第一数据报文为用户侧 发送到网络侧的上行报文, CPE需要对所述第一数据报文进行 NAT转 换 后从第一 APN接口转发, 具体的, CPE可以先对所述第一数据报文 的链路层进行解封装; 然后获取解封装后的第一数据报文的私网网际协 议 IP地址; 获取所述第一 APN接口对应的公网 IP地址; 将所述解封装 后的第一数据报文中的私网 IP地址转换为所述公网 IP地址; 并将地址 转换后的第一数据报文封装在无线帧中通过所述第一 APN接口发送至 网络侧。 进一步可选地, CPE接收由网络侧发送至用户侧的第二数据报 文, 则 CPE需要将第二数据报文通过路由转发从第二 APN接口发送至 用户侧; 具体的, 可以在所述第二 APN接口接收网络侧发送的所述第 二数据报文; 并将所述第二数据报文通过路由转发从用户接口发送至用 户侧, 具体包括: 获取所述第二数据报文的公网 IP 地址; 根据本地记 录的公网 IP地址与私网 IP地址对应关系,将所述公网 IP地址转换为对 应的私网 IP地址; 才艮据所述私网 IP地址查找私网路由表得到所述用户 接口; 对地址转换后的第二数据报文进行链路层封装; 将封装后的第二 数据报文从所述用户接口发送至用户侧。
若根据桥表转发所述第一数据报文, 可以先对所述第一数据报文的 链路层进行解封装; 然后将解封装后的第一数据报文封装在无线帧中通 过所述第一 APN接口发送至网络侧。 进一步可选地, CPE接收由网络 侧发送至用户侧的第二数据报文,则 CPE需要将第二数据报文通过桥转 发从第二 APN接口发送至用户侧; 具体的, 可以先在第二 APN接口接 收网络侧发送的第二数据报文; 然后所述将第二数据报文通过桥转发从 用户接口发送至用户侧, 具体包括: 根据 APN接口与用户接口对应关 系, 获取所述第二 APN接口对应的所述用户接口; 对所述第二数据报 文进行链路层封装; 将封装后的第二数据报文从所述用户接口发送至用 户侧。
特别的, 当同一个终端设备以不同的接入方式接入 CPE 时, CPE 提取终端设备的用户特征对应的特征信息可以不同。 示例的, 同一个终 端设备, 例如计算机, 可以通过 DHCP接入 CPE, 也可以通过 PPPoE 接入 CPE , 假设最终得到的特征信息为物理接口号、 用户 MAC地址、 VLAN标签和用户会话标识, 有效特征信息为用户会话标识, 具体的, 以 DHCP 方式接入得到的物理接口号为 1、 用户 MAC 地址为 0x00E001000001、 VLAN标签为 10和用户会话标识为 0 , 以 PPPoE方 式接入得到的物理接口号为 1、 用户 MAC 地址为 0x00E001000001、 VLAN标签为 10和用户会话标识为 2 , 假设 APN映射表中用户会话标 识为 0对应的 APN接口为 APN1 , 用户会话标识为 2对应的 APN接口 为 APN2 , 则查询 APN映射表后, 同一个终端设备由 DHCP接入 CPE 通过 APN接口 1访问 PGW1 , 也可以由 PPPoE接入 CPE通过 APN接 口 2访问 PGW2 , 即同一个终端设备可以通过不同的 APN接口访问到 不同的 PGW, 从而接入不同的 PDN网络, 因此, 提高了终端设备访问 PGW的灵活性。
本发明实施例提供的数据报文转发方法, 用于多 APN数据报文转 发***中, CPE根据终端接入方式提取用户特征, 通过查询特征接口对 应关系表在所述用户特征中 选得到第一用户特征, 通过存储所述第一 用户特征与对应 APN接口的关系至 APN映射表, 建立 APN映射表, 在第一数据报文转发时, 从该第一数据报文中提取第一特征信息, 查询 APN映射表得到相应的第一 APN接口,从该第一 APN接口转发所述第 一数据 4艮文,由于 APN映射表记录了特征信息与 APN接口的对应关系, 而所述特征信息是根据各个终端设备的接入方式得到的, 因此 APN 映 射表设定了不同终端设备对 APN接口的访问权限, 通过查询所述 APN 映射表进行报文转发能够控制不同的终端设备对 APN接口的访问, 从 而控制终端对 PDN的访问。同时,同一个终端设备可以访问不同的 APN 接口提高了终端设备访问 APN接口的灵活性。
特别的, 本发明实施例提供的数据报文转发方法适用于 3G、 LTE 及 4G等无线数据通信技术终端与 CPE结合的应用场景。 本发明实施例提供一种 CPE 30 , 接入至少两个 PGW, 用于实现本 发明如图 1或图 2所示的数据报文转发方法; 如图 3所示, 所述 CPE 30 包括:
接收单元 301 , 用于接收第一数据报文。 所述接收单元 301还用于 在第二 APN接口接收网络侧发送的第二数据报文。
第一获取单元 302 , 用于获取所述第一数据报文的第一特征信息; 所述第一特征信息与所述 CPE30的接入点名 APN映射表中的特征信息 类型相同, 所述 APN映射表中包括特征信息与 APN接口的对应关系, 所述 APN映射表中的特征信息根据终端设备的接入方式得到。 第二获取单元 303 ,用于根据所述第一特征信息查询所述 APN映射 表, 获取与所述第一特征信息对应的第一 APN接口。
转发单元 304 , 用于将所述第一数据报文通过路由转发或桥转发从 所述第一 APN接口发送至网络侧。 所述转发单元还用于: 将第二数据 报文通过路由转发或桥转发从用户接口发送至用户侧。
这样一来, 在多 APN数据报文转发***中, 第一数据报文转发时, 第二获取单元需要根据第一获取单元从该第一数据报文中提取的第一 特征信息查询 APN映射表得到相应的第一 APN接口, 而该 APN映射 表包括特征信息与 APN接口的对应关系, 所述特征信息是根据各个终 端设备的接入方式得到的,因此 APN映射表设定了不同终端设备对 APN 接口的访问权限, 通过查询所述 APN 映射表进行报文转发能够控制不 同的终端设备对 APN接口的访问。
如图 4 所示, 所述 CPE 30还包括:
提取单元 305 , 用于在终端设备接入所述 CPE 30时, 根据所述终端 设备的接入方式提取所述终端设备的用户特征, 所述用户特征包括: 主 叫号码、 被叫号码、 扩展被叫号码、 用户介质访问控制层 MAC地址、 用户虚拟局域网 VLAN标签、 用户名、 域名和物理接口号中的一个或多 个;
第三获取单元 306 , 用于从所述终端设备的用户特征中获取第一用 户特征, 所述第一用户特征与特征接口对应关系表中的用户特征类型相 同, 所述特征接口对应关系表中包括用户特征与 APN接口的对应关系; 第四获取单元 307 , 用于从所述特征接口对应关系表中获取与所述 第一用户特征对应的 APN接口;
第五获取单元 308 , 用于根据所述第一用户特征得到特征信息。 所 述第五获取单元具体用于将所述第一用户特征直接作为特征信息; 或获 取所述第一用户特征对应的预设特征标识, 将所述预设特征标识作为特 征信息。
存储单元 309 , 用于将所述特征信息和所述第一用户特征对应的 APN接口的对应关系存入所述 APN映射表。
本发明实施例提供的 CPE,可以分别与多个 PDN的 PGW建立连接, 接入多个 PDN; 通过终端接入方式提取用户特征, 建立 APN映射表, 根据数据报文转发中提取的特征信息查询 APN 映射表得到相应报文转 发的 APN接口, 同一个终端设备可以访问不同的 APN接口, 从而访问 不同 PDN, 提高了终端设备访问灵活性, 实现多 APN数据报文转发。 本发明实施例提供了一种数据报文转发*** 50 ,如图 5所示,包括: 如本发明图 3或图 4所示的用户驻地设备 CPE 30和至少两个分组数据 网络网关 PGW401。
所述 CPE 30可以接入所述至少两个 PGW, 所述 CPE 30可以通过 拨号方式与预设 PDN建立连接,即与所述至少两个 PGW分别建立连接, 同时所述 CPE 30上与预设 PDN连接对应的 APN接口导通, 从而实现 同时访问多个 PDN。 通过 APN接口可以进行数据业务的通信, 为后续 数据业务的通信提供通道。
当所述 CPE 30釆用路由模式时,每个 PGW 401分别为所述 CPE 30 分配私网 IP地址; 所述 CPE 30可以作为用户侧, 即终端设备的网关, 为各个终端设备分配私网 IP地址。
当所述 CPE 30釆用桥模式时, 每个 PGW 401分别为所述 CPE 30 分配 IP地址, 所述 CPE 30将该 IP地址透传给终端设备, 以便于终端 设备根据该 IP接入所述 CPE 30 , 即所述 CPE 30对接收到的 PGW 401 分配的 IP地址不做处理, 直接转发给相应的终端设备, 所述 CPE 30可 以提供桥转发, 将终端设备的数据业务转发给 PGW 401。
所属领域的技术人员可以清楚地了解到, 为描述的方便和简洁, 上 述描述的***, 设备和单元的具体工作过程, 可以参考前述方法实施例 中的对应过程, 在此不再赘述。
在本申请所提供的几个实施例中, 应该理解到, 所揭露的***, 设 备和方法, 可以通过其它的方式实现。 例如, 以上所描述的设备实施例 仅仅是示意性的, 例如, 所述单元的划分, 仅仅为一种逻辑功能划分, 实际实现时可以有另外的划分方式, 例如多个单元或组件可以结合或者 可以集成到另一个***, 或一些特征可以忽略, 或不执行。 另一点, 所 显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些 接口, 设备或单元的间接耦合或通信连接, 可以是电性, 机械或其它的 形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开 的, 作为单元显示的部件可以是或者也可以不是物理单元, 即可以位于 一个地方, 或者也可以分布到多个网络单元上。 可以根据实际的需要选 择其中的部分或者全部单元来实现本实施例方案的目的。
另外, 在本发明各个实施例中的各功能单元可以集成在一个处理单 元中, 也可以是各个单元单独物理包括, 也可以两个或两个以上单元集 成在一个单元中。 上述集成的单元既可以釆用硬件的形式实现, 也可以 釆用硬件加软件功能单元的形式实现。
本发明实施例提供了一种 CPE, 所述 CPE接入至少两个分组数据 网络网关 PGW; 如图 6所示, 所述 CPE包括:
处理器 601、 存储器 602、 通信接口 603和总线 604。
处理器 601、 存储器 602、 通信接口 603通过总线 604相互连接; 总线 604可以是 ISA总线、 PCI总线或 EISA总线等。 所述总线可以分 为地址总线、 数据总线、 控制总线等。 为便于表示, 图 6中仅用一条粗 线表示, 但并不表示仅有一根总线或一种类型的总线。
存储器 602 , 用于存放程序。 具体地, 程序可以包括程序代码, 所 述程序代码包括计算机操作指令。 存储器 602可能包含高速 RAM存储 器, 也可能还包括非易失性存储器 (non-volatile memory ) , 例如至少 一个磁盘存储器。
处理器 601执行存储器 602所存放的程序,用于接收第一数据报文, 获取所述第一数据报文的第一特征信息; 所述第一特征信息与所述 CPE 的接入点名 ΑΡΝ映射表中的特征信息类型相同, 所述 ΑΡΝ映射表中包 括特征信息与 ΑΡΝ接口的对应关系, 所述 ΑΡΝ映射表中的特征信息根 据终端设备的接入方式得到; 根据所述第一特征信息查询所述 ΑΡΝ 映 射表, 获取与所述第一特征信息对应的第一 ΑΡΝ接口; 将所述第一数 据报文通过路由转发或桥转发从所述第一 ΑΡΝ接口发送至网络侧。
在所述获取所述第一数据报文的第一特征信息之前, 所述处理器 601还用于在终端设备接入所述 CPE时, 根据所述终端设备的接入方式 提取所述终端设备的用户特征, 所述用户特征包括: 主叫号码、 被叫号 码、 扩展被叫号码、 用户介质访问控制层 MAC地址、 用户虚拟局域网 VLAN标签、 用户名、 域名和物理接口号中的一个或多个; 从所述终端 设备的用户特征中获取第一用户特征, 所述第一用户特征与特征接口对 应关系表中的用户特征类型相同, 所述特征接口对应关系表中包括用户 特征与 APN接口的对应关系; 从所述特征接口对应关系表中获取与所 述第一用户特征对应的 APN接口; 根据所述第一用户特征得到特征信 息; 将所述特征信息和所述第一用户特征对应的 APN接口的对应关系 存入所述 APN映射表。
进一步地, 所述处理器 601具体用于将所述第一用户特征直接作为 所述特征信息; 或获取所述第一用户特征对应的预设特征标识, 将所述 预设特征标识作为所述特征信息。
进一步地, 所述处理器 601 , 具体用于对所述第一数据报文的链路 层进行解封装; 当通过桥转发时, 将解封装后的第一数据报文封装在无线帧中通过 所述第一 APN接口发送至网络侧;
当通过路由转发时, 获取解封装后的第一数据报文的私网网际协议 IP地址; 获取所述第一 APN接口对应的公网 IP地址; 将所述解封装后 的第一数据报文中的私网 IP地址转换为所述公网 IP地址; 并将地址转 换后的第一数据报文封装在无线帧中通过所述第一 APN接口发送至网 络侧。
进一步地, 所述处理器 601 , 还用于在第二 APN接口接收网络侧发 送的第二数据报文; 并将所述第二数据报文通过路由转发或桥转发从用 户接口发送至用户侧。 进一步可选地, 当通过路由转发时, 所述处理器 601 , 具体用于获取所述第二数据报文的公网 IP地址; 根据本地记录的 公网 IP地址与私网 IP地址对应关系,将所述公网 IP地址转换为对应的 私网 IP地址;才艮据所述私网 IP地址查找私网路由表得到所述用户接口; 对地址转换后的第二数据报文进行链路层封装; 将封装后的第二数据报 文从所述用户接口发送至用户侧;
进一步可选地, 当通过桥转发时, 所述处理器 601 , 具体用于根据 APN接口与用户接口对应关系, 获取所述第二 APN接口对应的所述用 户接口; 对所述第二数据报文进行链路层封装; 将封装后的第二数据报 文从所述用户接口发送至用户侧。
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不 局限于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围 内, 可轻易想到变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护范围应所述以权利要求的保护范围为准。

Claims

权 利 要 求 书
1、 一种数据报文转发方法, 其特征在于, 包括:
用户驻地设备 CPE接收第一数据报文, 所述 CPE接入至少两个分 组数据网络网关 PGW;
获取所述第一数据报文的第一特征信息; 所述第一特征信息与所述 CPE的接入点名 APN映射表中的特征信息类型相同, 所述 APN映射表 中包括特征信息与 APN接口的对应关系, 所述 APN映射表中的特征信 息根据终端设备的接入方式得到;
根据所述第一特征信息查询所述 APN映射表, 获取与所述第一特 征信息对应的第一 APN接口;
将所述第一数据报文通过路由转发或桥转发从所述第一 APN接口 发送至网络侧。
2、 根据权利要求 1 所述的方法, 其特征在于, 在所述获取所述第 一数据报文的第一特征信息之前, 还包括:
在终端设备接入用户驻地设备 CPE时,根据所述终端设备的接入方 式提取所述终端设备的用户特征, 所述用户特征包括: 主叫号码、 被叫 号码、 扩展被叫号码、 用户介质访问控制层 MAC地址、 用户虚拟局域 网 VLAN标签、 用户名、 域名和物理接口号中的一个或多个;
从所述终端设备的用户特征中获取第一用户特征, 所述第一用户特 征与特征接口对应关系表中的用户特征类型相同, 所述特征接口对应关 系表中包括用户特征与 APN接口的对应关系;
从所述特征接口对应关系表中获取与所述第一用户特征对应的 APN接口;
根据所述第一用户特征得到特征信息;
将所述特征信息和所述第一用户特征对应的 APN接口的对应关系 存入所述 APN映射表。
3、 根据权利要求 2所述的方法, 其特征在于, 所述根据所述第一 用户特征得到所述特征信息包括:
将所述第一用户特征直接作为所述特征信息; 或
获取所述第一用户特征对应的预设特征标识, 将所述预设特征标识 作为所述特征信息。
4、 根据权利要求 1至 3任意一项所述的方法, 其特征在于, 所述 将所述第一数据报文通过路由转发或桥转发从所述第一 APN接口发送 至网络侧包括:
对所述第一数据报文的链路层进行解封装;
当通过桥转发时, 将解封装后的第一数据报文封装在无线帧中通过 所述第一 APN接口发送至网络侧;
当通过路由转发时, 获取解封装后的第一数据报文的私网网际协议 IP地址; 获取所述第一 APN接口对应的公网 IP地址; 将所述解封装后 的第一数据报文中的私网 IP地址转换为所述公网 IP地址; 并将地址转 换后的第一数据报文封装在无线帧中通过所述第一 APN接口发送至网 络侧。
5、 根据权利要求 4所述的方法, 其特征在于, 所述方法还包括: 在第二 APN接口接收网络侧发送的第二数据报文;
并将所述第二数据报文通过路由转发或桥转发从用户接口发送至 用户侧; 其中, 所述将第二数据报文通过路由转发从用户接口发送至用 户侧具体包括:
获取所述第二数据报文的公网 IP地址; 根据本地记录的公网 IP地 址与私网 IP地址对应关系,将所述公网 IP地址转换为对应的私网 IP地 址; 才艮据所述私网 IP地址查找私网路由表得到所述用户接口; 对地址 转换后的第二数据报文进行链路层封装; 将封装后的第二数据报文从所 述用户接口发送至用户侧;
其中, 所述将第二数据报文通过桥转发从用户接口发送至用户侧具 体包括:
根据 APN接口与用户接口对应关系, 获取所述第二 APN接口对应 的所述用户接口; 对所述第二数据报文进行链路层封装; 将封装后的第 二数据报文从所述用户接口发送至用户侧。
6、一种用户驻地设备 CPE,接入至少两个分组数据网络网关 PGW, 其特征在于, 包括:
接收单元, 用于接收第一数据报文;
第一获取单元, 用于获取所述第一数据报文的第一特征信息; 所述 第一特征信息与所述 CPE的接入点名 APN映射表中的特征信息类型相 同, 所述 APN映射表中包括特征信息与 APN接口的对应关系, 所述 APN映射表中的特征信息根据终端设备的接入方式得到;
第二获取单元, 用于根据所述第一特征信息查询所述 APN映射表, 获取与所述第一特征信息对应的第一 APN接口;
转发单元, 用于将所述第一数据报文通过路由转发或桥转发从所述 第一 APN接口发送至网络侧。
7、 根据权利要求 6所述的 CPE, 其特征在于, 所述 CPE还包括: 提取单元, 用于在终端设备接入用户驻地设备 CPE时, 根据所述终 端设备的接入方式提取所述终端设备的用户特征, 所述用户特征包括: 主叫号码、 被叫号码、 扩展被叫号码、 用户介质访问控制层 MAC地址、 用户虚拟局域网 VLAN标签、 用户名、 域名和物理接口号中的一个或多 个;
第三获取单元, 用于从所述终端设备的用户特征中获取第一用户特 征, 所述第一用户特征与特征接口对应关系表中的用户特征类型相同, 所述特征接口对应关系表中包括用户特征与 APN接口的对应关系; 第四获取单元, 用于从所述特征接口对应关系表中获取与所述第一 用户特征对应的 APN接口;
第五获取单元, 用于根据所述第一用户特征得到特征信息; 存储单元, 用于将所述特征信息和所述第一用户特征对应的 APN 接口的对应关系存入所述 APN映射表。
8、 根据权利要求 7所述的 CPE, 其特征在于, 所述第五获取单元 具体用于:
将所述第一用户特征直接作为特征信息; 或获取所述第一用户特征 对应的预设特征标识, 将所述预设特征标识作为特征信息。
9、 根据权利要求 6至 8任意一项所述的 CPE, 其特征在于, 所述接收单元, 还用于在第二 APN接口接收网络侧发送的第二数 据报文;
所述转发单元还用于: 将第二数据报文通过路由转发或桥转发从用 户接口发送至用户侧。
10、 一种数据报文转发***, 其特征在于, 包括: 至少两个分组数 据网络网关 PGW, 和权利要求 6至 9任意一项权利要求所述的用户驻地 设备 CPE。
PCT/CN2013/078778 2013-01-28 2013-07-04 一种数据报文转发方法、用户驻地设备和*** WO2014114058A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310031101.0A CN103973569B (zh) 2013-01-28 2013-01-28 一种数据报文转发方法、用户驻地设备和***
CN201310031101.0 2013-01-28

Publications (1)

Publication Number Publication Date
WO2014114058A1 true WO2014114058A1 (zh) 2014-07-31

Family

ID=51226875

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/078778 WO2014114058A1 (zh) 2013-01-28 2013-07-04 一种数据报文转发方法、用户驻地设备和***

Country Status (2)

Country Link
CN (1) CN103973569B (zh)
WO (1) WO2014114058A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115314469A (zh) * 2022-07-29 2022-11-08 广州通则康威智能科技有限公司 一种cpe的业务分隔方法及装置
CN115811724A (zh) * 2022-11-22 2023-03-17 中国联合网络通信集团有限公司 数据传输方法、装置、电子设备及存储介质

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017015950A1 (zh) * 2015-07-30 2017-02-02 华为技术有限公司 一种数据传输及生成地址映射表的方法、装置及设备
CN106982178B (zh) * 2016-01-15 2020-05-01 ***通信集团公司 一种资源分配方法、网络管理设备及***
CN107529185B (zh) * 2017-07-06 2019-11-15 杭州敦崇科技股份有限公司 一种基于无线检测的cpe调优方法
CN108322909A (zh) * 2018-02-08 2018-07-24 中磊电子(苏州)有限公司 子网络决定参数设定方法
CN109195200B (zh) * 2018-08-27 2021-01-15 京信通信***(中国)有限公司 Apn分配方法、装置、通信设备和***
CN115226154A (zh) * 2021-04-20 2022-10-21 华为技术有限公司 报文处理方法、装置、***、设备及计算机可读存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070036099A1 (en) * 2005-08-11 2007-02-15 Arturo Maria Automated provisioning, maintenance, and information logging of custom Access Point Names in packet-based mobile cellular networks
CN101197795A (zh) * 2007-12-26 2008-06-11 华为技术有限公司 网络业务保护方法和业务网关
CN101483585A (zh) * 2008-01-07 2009-07-15 华为技术有限公司 一种网关选择的方法
CN102111903A (zh) * 2011-01-13 2011-06-29 大唐移动通信设备有限公司 本地ip接入连接建立方法、***和设备

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101150772A (zh) * 2004-08-25 2008-03-26 华为技术有限公司 一种业务信息发布***及方法
CN101001184A (zh) * 2006-01-09 2007-07-18 华为技术有限公司 一种接入分组数据网络的方法
CN101175283B (zh) * 2007-11-28 2010-08-04 中兴通讯股份有限公司 一种动态配置接入点名称的方法
CN101686191A (zh) * 2008-09-24 2010-03-31 华为技术有限公司 访问分组数据网业务的方法及***、网关和终端

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070036099A1 (en) * 2005-08-11 2007-02-15 Arturo Maria Automated provisioning, maintenance, and information logging of custom Access Point Names in packet-based mobile cellular networks
CN101197795A (zh) * 2007-12-26 2008-06-11 华为技术有限公司 网络业务保护方法和业务网关
CN101483585A (zh) * 2008-01-07 2009-07-15 华为技术有限公司 一种网关选择的方法
CN102111903A (zh) * 2011-01-13 2011-06-29 大唐移动通信设备有限公司 本地ip接入连接建立方法、***和设备

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115314469A (zh) * 2022-07-29 2022-11-08 广州通则康威智能科技有限公司 一种cpe的业务分隔方法及装置
CN115314469B (zh) * 2022-07-29 2023-10-03 广州通则康威智能科技有限公司 一种cpe的业务分隔方法及装置
CN115811724A (zh) * 2022-11-22 2023-03-17 中国联合网络通信集团有限公司 数据传输方法、装置、电子设备及存储介质
CN115811724B (zh) * 2022-11-22 2024-04-09 中国联合网络通信集团有限公司 数据传输方法、装置、电子设备及存储介质

Also Published As

Publication number Publication date
CN103973569A (zh) 2014-08-06
CN103973569B (zh) 2017-04-26

Similar Documents

Publication Publication Date Title
WO2014114058A1 (zh) 一种数据报文转发方法、用户驻地设备和***
JP5499391B2 (ja) メッセージを転送するための方法、装置およびシステム
US20120176932A1 (en) Communication method, method for forwarding data message during the communication process and communication node thereof
WO2016095534A1 (zh) 一种接入网络的方法及装置
CN114124618B (zh) 一种报文传输方法及电子设备
WO2011137842A1 (zh) 一种基于cgn实体的数据传输方法、cgn实体、网关及***
WO2011103840A2 (zh) 虚拟私云的连接方法及隧道代理服务器
WO2013170562A1 (zh) 一种自动选择IPv6地址传输方式的方法、设备和***
CN104821904B (zh) 网络中继装置以及数据包中继方法
WO2006122502A1 (fr) Méthode de transmission de message en couche 2 et dispositif d’accès
JP2013115819A (ja) Ethernetベース、ネットワークシステム及びデータ転送方法
WO2023125151A1 (zh) 物联网设备数据迁移***、方法、装置及存储介质
KR20110060895A (ko) 다중 인터넷 액세스를 제공하기 위한 방법 및 게이트웨이
WO2011032492A1 (zh) 身份识别、跨网通信、业务移植方法及信息互通网络架构
KR101901341B1 (ko) 사용자 장치의 이동성을 지원하는 네트워크 접속 방법 및 장치
WO2019047611A1 (zh) 一种数据传输方法、pnf sdn控制器、vnf sdn控制器及***
WO2013164465A1 (en) Method and apparatus for handling pdn connections
WO2011032462A1 (zh) 一种数据传输、接收的方法及***及路由器
WO2014205700A1 (zh) 一种ip地址分配的***和方法
WO2015003393A1 (zh) 报文处理方法及设备
WO2014063606A1 (zh) 报文转发的方法和相应设备
WO2011032417A1 (zh) 发起通信、信息/数据报文的转发及路由配置方法和***
WO2012041168A1 (zh) 用于IPv6网络的网络连接处理方法及其装置
WO2011032478A1 (zh) 一种获取终端身份标识的方法、装置及终端
WO2014067450A1 (zh) 三层本地转发方法和设备

Legal Events

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

Ref document number: 13873111

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13873111

Country of ref document: EP

Kind code of ref document: A1