WO2014067157A1 - 接收报文的方法及网络设备 - Google Patents

接收报文的方法及网络设备 Download PDF

Info

Publication number
WO2014067157A1
WO2014067157A1 PCT/CN2012/084069 CN2012084069W WO2014067157A1 WO 2014067157 A1 WO2014067157 A1 WO 2014067157A1 CN 2012084069 W CN2012084069 W CN 2012084069W WO 2014067157 A1 WO2014067157 A1 WO 2014067157A1
Authority
WO
WIPO (PCT)
Prior art keywords
network device
dynamic host
configuration protocol
host configuration
terminal
Prior art date
Application number
PCT/CN2012/084069
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 华为技术有限公司
Priority to CN201280010871.0A priority Critical patent/CN104012143A/zh
Priority to PCT/CN2012/084069 priority patent/WO2014067157A1/zh
Priority to EP12887367.6A priority patent/EP2911445A1/en
Publication of WO2014067157A1 publication Critical patent/WO2014067157A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5029Service quality level-based billing, e.g. dependent on measured service level customer is charged more or less
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks

Definitions

  • the present invention relates to the field of communications, and in particular, to a method and a network device for receiving a message.
  • the network device can perform a service corresponding to the quality of service (QoS) on the packet according to the type of service (ToS) in the packet.
  • QoS quality of service
  • ToS type of service
  • the router may perform a priority-corresponding operation on the IPv4 packet according to the ToS in the Internet Protocol version 4 (IPv4) packet.
  • IPv4 Internet Protocol version 4
  • the embodiment of the invention provides a method for receiving a message and a network device, which can operate the message according to the subscription information.
  • a method for receiving a message including:
  • the network device receives the first packet sent by the first terminal, where the packet header of the first packet includes the subscription information corresponding to the first terminal, and the subscription information is the information of the first service or the identifier of the terminal group.
  • the first service is a service subscribed by the first terminal, and the terminal group includes the first terminal and a second terminal;
  • the network device performs a first operation on the first packet according to the subscription information, where the first operation is an operation corresponding to the service quality, traffic statistics, or charging.
  • the network device may perform an operation on the first packet according to the subscription information carried in the first packet.
  • the subscription information is the information of the first service
  • the first packet is a sixth edition of the Internet Protocol
  • the subscription information is The prefix is carried in the address of the sixth version of the source Internet Protocol of the Internet Protocol version 6 message.
  • the network device receives the Before the first message, the method further includes:
  • the network device forwards the dynamic host configuration protocol version 6 request to the dynamic host configuration protocol server, so that the dynamic host configuration protocol server obtains the subscription information from the subscription database, and generates a dynamic host according to the subscription information.
  • the configuration protocol sixth edition response, the dynamic host configuration protocol sixth edition response is a response corresponding to the dynamic host configuration protocol sixth edition request, and the dynamic host configuration protocol sixth edition response includes the source internet protocol sixth a version address, the subscription information is saved in the subscription database;
  • the network device forwards the dynamic host configuration protocol sixth version response to the first terminal.
  • the network device receives the first report sent by the first terminal Before the method, the method further includes:
  • the network device forwards the dynamic host configuration protocol version 6 request to the dynamic host configuration protocol server, so that the dynamic host configuration protocol server obtains the subscription information from the subscription database, and generates a dynamic host according to the subscription information.
  • the configuration protocol version 6 response, the dynamic host configuration protocol version 6 response is a response corresponding to the dynamic host configuration protocol version 6 request, and the extended attribute of the dynamic host configuration protocol version 6 response includes the subscription Information, the subscription information is saved in the subscription database;
  • the first possible implementation of the method provided by the first aspect, the second possible implementation manner of the method provided by the first aspect, the first aspect provides A third possible implementation of the method of the first aspect, and a fourth possible implementation of the method provided by the first aspect, in a fifth possible implementation manner of the method provided by the first aspect, the network
  • the performing, by the device, the first operation on the first packet according to the subscription information includes:
  • the determining, by the network device, the identifier of the service quality according to the correspondence between the subscription information and the identifier of the service quality is specifically:
  • a network device including:
  • a first receiving unit configured to receive a first packet sent by the first terminal, where the packet header of the first packet includes the subscription information corresponding to the first terminal, where the subscription information is information of the first service Or the identifier of the terminal group, where the first service is a service subscribed by the first terminal, and the terminal group includes the first terminal and the second terminal;
  • An operation unit configured to perform a first operation on the first packet according to the subscription information in the first packet that is received by the first receiving unit, where the first operation is an operation corresponding to a service quality, Traffic statistics or billing.
  • the network device may perform an operation on the first packet according to the subscription information carried in the first packet.
  • the subscription information is the information of the first service
  • the first packet is a sixth edition of the Internet Protocol
  • the subscription information is carried in a prefix in the address of the sixth version of the source Internet Protocol of the Internet Protocol version 6 message.
  • the first receiving unit is further configured to receive a dynamic host configuration protocol sixth version request sent by the first terminal;
  • the network device further includes:
  • a first forwarding unit configured to forward, to the dynamic host configuration protocol server, the dynamic host configuration protocol version 6 request received by the first receiving unit, so that the dynamic host configuration protocol server obtains the subscription from the subscription database
  • generating, according to the subscription information, a dynamic host configuration protocol version 6 response where the dynamic host configuration protocol version 6 response is a response corresponding to the sixth version of the dynamic host configuration protocol request, the dynamic host configuration protocol
  • the sixth version of the response includes the source Internet Protocol version 6 address, the subscription database stores the subscription information, and the second receiving unit is configured to receive the dynamic host configuration protocol sent by the dynamic host configuration protocol server.
  • a second forwarding unit configured to forward, to the first terminal, the dynamic host configuration protocol version 6 response received by the second receiving unit, before the first receiving unit receives the first packet.
  • the subscription information is an identifier of the terminal group
  • the first packet is a sixth version of the Internet Protocol protocol
  • the subscription information is carried in the extension header of the sixth edition of the Internet Protocol message.
  • the first receiving unit is further configured to receive a dynamic host configuration protocol sixth version request sent by the first terminal;
  • the network device further includes: a first forwarding unit, configured to forward, to the dynamic host configuration protocol server, the dynamic host configuration protocol version 6 request received by the first receiving unit, so that the dynamic host configuration protocol server obtains the subscription from the subscription database And generating, according to the subscription information, a dynamic host configuration protocol version 6 response, where the dynamic host configuration protocol version 6 response is a response corresponding to the sixth version of the dynamic host configuration protocol request, the dynamic host configuration protocol
  • the subscription information of the six-version response includes the subscription information, the subscription information is saved in the subscription database, and the second receiving unit is configured to receive the sixth dynamic host configuration protocol sent by the dynamic host configuration protocol server.
  • a second forwarding unit configured to forward, by the first receiving unit, the dynamic host configuration protocol received by the second receiving unit to the first terminal before receiving the first packet sent by the first terminal Six edition response.
  • the network device provided by the second aspect the first possible implementation manner of the network device provided by the second aspect, the second possible implementation manner of the network device provided by the second aspect, A third possible implementation of the network device provided by the second aspect, and a fourth possible implementation manner of the network device provided by the second aspect, the fifth possible implementation of the network device provided in the second aspect
  • the first possible implementation manner of the network device provided by the second aspect the second possible implementation manner of the network device provided by the second aspect
  • a third possible implementation of the network device provided by the second aspect and a fourth possible implementation manner of the network device provided by the second aspect, the fifth possible implementation of the network device provided in the second aspect
  • the operating unit specifically includes:
  • Determining a sub-unit configured to determine, according to a correspondence between the subscription information and the identifier of the service quality, an identifier of the service quality, if the first operation is an operation corresponding to the service quality;
  • An operation subunit configured to perform an operation corresponding to the service quality on the first packet according to the identifier of the service quality determined by the determining subunit;
  • the determining subunit is specifically configured to determine, according to the identifier of the service quality corresponding to the subscription information, the identifier of the service quality; or
  • the determining subunit is specifically configured to determine, according to the identifier of the service quality corresponding to the service type, the identifier of the service quality, where the header includes the service type; or
  • the determining subunit is specifically configured to determine the first service type according to the correspondence between the subscription information and the first service type, where the network device uses the second service class in the first packet.
  • the type is replaced by the first service type, and the network device determines the identifier of the service quality according to the correspondence between the first service type and the identifier of the service quality.
  • FIG. 1 is a schematic flowchart of a method for receiving a message according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a method for receiving a message according to an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of a network device according to an embodiment of the present invention
  • FIG. 5 is a schematic structural diagram of a network device according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a network device according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic structural diagram of an operation unit according to an embodiment of the present invention.
  • FIG. 1 is a schematic flowchart of a method for receiving a message according to an embodiment of the present invention. Referring to Figure 1, the method includes:
  • the network device receives the first packet sent by the first terminal, where the packet header of the first packet includes the subscription information corresponding to the first terminal, where the subscription information is the information of the first service or the terminal group.
  • the first service is a service subscribed by the first terminal, and the terminal group includes the first terminal and a second terminal.
  • the network device may be a base station, a digital subscriber line access multiplexer (DSLAM), a router, a home gateway, a broadband remote access server (BRAS), or a Access point (AP).
  • DSLAM digital subscriber line access multiplexer
  • BRAS broadband remote access server
  • AP Access point
  • the first terminal can access the network by using the network device.
  • the network may be a public network or a virtual private network (VPN).
  • the first terminal may be a mobile phone, a personal computer (PC), or a personal digital assistant (personal data).
  • PDA personal digital assistant
  • the first packet may be an Internet Protocol (IP) packet.
  • IP Internet Protocol
  • the subscription information can be stored in a subscription database of an Authentication, Authorization and Accounting server (AAA server).
  • AAA server Authentication, Authorization and Accounting server
  • the contract database can be obtained by the following process.
  • the potential user of the network wishes to sign a contract with the operator to open the service of the network when the first terminal accesses the network.
  • the operator's engineer can configure the subscription database on the AAA server through the command line.
  • the first service may be a video service or a network game service.
  • the information of the first service may be type information of the first service, or charging information of the first service, or service quality information of the first service.
  • the charging information of the first service may be information of a charging mode, or may be a parameter of the charging mode.
  • the charging method may be based on the flow rate fee or may be charged according to time. If the charging mode is based on traffic, the parameter of the charging mode may be the size of the traffic and the amount of the fee. If the charging method is based on time charging, the parameters of the charging method may be the length of time and the amount of the fee.
  • the first service may be a service that the first terminal subscribes to on the AAA server.
  • the terminal group includes the first terminal and the second terminal.
  • the second terminal can be a cell phone, a personal computer or a personal digital assistant.
  • the second terminal is not the same device as the first terminal.
  • the terminal group may further include the first terminal and a terminal other than the second terminal.
  • the identifier of the terminal group may correspond to only one subscription account.
  • Terminal group The identification of only one contract account means that the fees generated by members of the terminal group accessing the network will be accumulated to the same account.
  • the members in the terminal group include the first terminal and the second terminal.
  • the identifier of the terminal group may correspond to a subscription account of the first terminal and a subscription account of the second terminal.
  • the identifier of the terminal group corresponding to the subscription account of the first terminal and the subscription account of the second terminal means a fee generated by the first terminal accessing the network and a second terminal accessing the network. The fees will be accumulated into two accounts.
  • the network device performs a first operation on the first packet according to the subscription information, where the first operation is an operation corresponding to the service quality, traffic statistics, or charging.
  • the network device stores the correspondence between the subscription information and the identifier of the first operation.
  • the network device may determine the identifier of the first operation according to the correspondence between the subscription information and the identifier of the first operation.
  • the network device may perform the first operation on the first packet according to the identifier of the first operation.
  • the quality of service may be delay, packet loss, jitter, bandwidth, or priority.
  • the network device may perform the first operation on the first packet according to the subscription information carried in the first packet.
  • the subscription information is the information of the first service
  • the first packet may be an Internet Protocol version 6 (IPv6) message.
  • IPv6 Internet Protocol version 6
  • the subscription information is carried in a prefix in a source IPv6 address of the IPv6 packet.
  • the subscription information can be carried in a portion of all bits of the prefix.
  • the method may further include:
  • the network device receives a dynamic host configuration protocol version 6 (DHCPv6) request sent by the first terminal.
  • DHCPv6 dynamic host configuration protocol version 6
  • the DHCPv6 request may include an identifier of the first terminal.
  • the network device forwards the DHCPv6 request to a DHCP server, so that the DHCP server obtains the subscription information from a subscription database, and generates a DHCPv6 response according to the subscription information, where the DHCPv6 response is the DHCPv6 request.
  • the DHCPv6 response includes the source IPv6 address, and the subscription is saved in the subscription database Information.
  • the subscription database can be saved on the AAA server.
  • the corresponding relationship between the identifier of the first terminal and the subscription information may be saved in the subscription database.
  • the network device receives the DHCPv6 response sent by the DHCP server. 208. The network device forwards the DHCPv6 response to the first terminal.
  • the identifier of the first terminal may be an International Mobile Subscriber Identity (ISMI) or an International Mobile Equipment Identity (IMEI).
  • ISMI International Mobile Subscriber Identity
  • IMEI International Mobile Equipment Identity
  • the subscription information is an identifier of the terminal group
  • the first packet is an IPv6 packet
  • the subscription information may be carried in an extension of the IPv6 packet.
  • the header extended header
  • the value of the next header of the IPv6 address may be 0 or a value that has not yet been defined.
  • the method may further include:
  • the network device receives a DHCPv6 request sent by the first terminal.
  • the DHCPv6 request may include an identifier of the first terminal.
  • the network device forwards the DHCPv6 request to the DHCP server, so that the DHCP server obtains the subscription information from the subscription database, and generates a DHCPv6 response according to the subscription information, where the DHCPv6 response is the DHCPv6 request.
  • the extension information of the DHCPv6 response includes the subscription information, and the subscription information is saved in the subscription database.
  • the subscription database can be saved on the AAA server.
  • the corresponding relationship between the identifier of the first terminal and the subscription information may be saved in the subscription database.
  • the network device receives the DHCPv6 response sent by the DHCP server. 308. The network device forwards the DHCPv6 response to the first terminal.
  • the performing, by the network device, the first operation on the first packet according to the subscription information includes:
  • the network device is configured according to The correspondence between the subscription information and the identifier of the service quality determines an identifier of the service quality.
  • the network device performs an operation corresponding to the service quality on the first packet according to the identifier of the service quality.
  • the determining, by the network device, the identifier of the service quality according to the correspondence between the subscription information and the identifier of the service quality is specifically:
  • the network device determines the identifier of the service quality according to the identifier of the service quality corresponding to the subscription information.
  • the performing, by the network device, the first operation on the first packet according to the subscription information includes:
  • the network device performs an operation corresponding to the service quality on the first packet according to the identifier of the service quality.
  • the determining, by the network device, the identifier of the service quality according to the correspondence between the subscription information and the identifier of the service quality is specifically:
  • the network device determines, by the network device, the identifier of the service quality according to the identifier of the service quality corresponding to the service type (type of service, ToS), where the packet header includes the service type.
  • the service type type of service, ToS
  • the network device may pre-store the subscription information, the service type, and the subscription information and the identifier of the service quality corresponding to the service type. If the network device determines that the subscription information in the packet header matches the subscription information in the network device, and the service type in the header is in the network device If the service type matches, the network device determines the identifier of the service quality.
  • the performing, by the network device, the first operation on the first packet according to the subscription information includes:
  • the determining, by the network device, the identifier of the service quality according to the correspondence between the subscription information and the identifier of the service quality is specifically:
  • FIG. 4 is a schematic structural diagram of a network device according to an embodiment of the present invention.
  • the network device can perform the method shown in FIG. Referring to FIG. 4, the network device includes:
  • the first receiving unit 402 is configured to receive the first packet sent by the first terminal, where the packet header of the first packet includes the subscription information corresponding to the first terminal, where the subscription information is the first service
  • the first receiving unit 402 can be a first receiver of the network device.
  • the network device can be a station, a DSLAM, a router, a home gateway, a BRAS, or an access point AP.
  • the first terminal can access the network by using the network device.
  • the network may be a public network or a VPN.
  • the first terminal can be a cell phone, a PC or a PDA.
  • the first packet may be an IP packet.
  • the subscription information may be stored in a subscription database of the AAA server.
  • the contract database can be obtained by the following process.
  • the potential user of the network wishes to sign a contract with the operator to open the service of the network when the first terminal accesses the network.
  • the operator's engineer can configure the subscription database on the AAA server through the command line.
  • the first service may be a video service or a network game service.
  • the information of the first service may be type information of the first service, or charging information of the first service, or service quality information of the first service.
  • the charging information of the first service may be information of a charging mode, or may be a parameter of the charging mode.
  • the charging method may be based on the flow rate fee or may be charged according to time. If the charging method is based on the flow
  • the billing method may be the size of the traffic and the amount of the fee. If the charging method is based on time charging, the parameter of the charging mode may be the length of time and the amount of the fee.
  • the first service may be a service that the first terminal subscribes to on the AAA server.
  • the terminal group includes the first terminal and the second terminal.
  • the second terminal can be a cell phone, a personal computer or a personal digital assistant.
  • the second terminal is not the same device as the first terminal.
  • the terminal group may further include the first terminal and a terminal other than the second terminal.
  • the identifier of the terminal group may correspond to only one subscription account.
  • the identification of the terminal group corresponding to only one subscription account means that the fees generated by members of the terminal group accessing the network will be accumulated to the same account.
  • the members in the terminal group include the first terminal and the second terminal.
  • the identifier of the terminal group may correspond to a subscription account of the first terminal and a subscription account of the second terminal.
  • the identifier of the terminal group corresponding to the subscription account of the first terminal and the subscription account of the second terminal means a fee generated by the first terminal accessing the network and a second terminal accessing the network. The fees will be accumulated into two accounts.
  • the operation unit 404 is configured to perform a first operation on the first packet according to the subscription information in the first packet that is received by the first receiving unit 402, where the first operation is a service quality Operation, traffic statistics, or billing.
  • the network device may store a correspondence between the subscription information and the identifier of the first operation.
  • the network device may determine the identifier of the first operation according to the correspondence between the subscription information and the identifier of the first operation.
  • the network device may perform the first operation on the first packet according to the identifier of the first operation.
  • the quality of service may be delay, packet loss, jitter, bandwidth, or priority.
  • the network device may perform the first operation on the first packet according to the subscription information carried in the first packet.
  • the subscription information is the information of the first service
  • the first packet is an IPv6 packet
  • the subscription information is carried in the IPv6 packet.
  • the subscription information may be carried in a part of all the bits of the prefix.
  • the first receiving unit 402 may be further configured to receive the first terminal. Send a DHCPv6 request;
  • the network device may further include:
  • the first forwarding unit 506 is configured to forward the DHCPv6 request received by the first receiving unit 402 to the DHCP server, so that the DHCP server obtains the subscription information from the subscription database, and generates a DHCPv6 according to the subscription information.
  • the DHCPv6 response is a response corresponding to the DHCPv6 request, the DHCPv6 response includes the source IPv6 address, and the subscription information is saved in the subscription database;
  • a second receiving unit 508, configured to receive the DHCPv6 response sent by the DHCP server
  • the second forwarding unit 510 is configured to forward the DHCPv6 response received by the second receiving unit 508 to the first terminal before the first receiving unit 402 receives the first packet.
  • the first forwarding unit 506, the second receiving unit 508, and the second forwarding unit 510 Referring to FIG. 5, the first forwarding unit 506, the second receiving unit 508, and the second forwarding unit 510.
  • the DHCPv6 request may include an identifier of the first terminal.
  • the subscription information can be saved on the AAA server.
  • the correspondence between the identifier of the first terminal and the subscription information may be saved in the subscription database.
  • the first forwarding unit 506 can be the first repeater of the network device.
  • the second receiving unit 508 can be a second receiver of the network device.
  • the second forwarding unit 510 can be a second repeater of the network device.
  • the identifier of the first terminal may be an ISMI or an IMEI.
  • the subscription information is the identifier of the terminal group
  • the first packet is an IPv6 packet
  • the subscription information is carried in an extension of the IPv6 packet. In the first part.
  • the value of the next header of the IPv6 packet may be 0 or has not been determined.
  • the value of meaning may be 0 or has not been determined.
  • the first receiving unit 402 is further configured to receive a DHCPv6 request sent by the first terminal.
  • the network device further includes:
  • the first forwarding unit 606 is configured to forward the DHCPv6 request received by the first receiving unit 402 to the DHCP server, so that the DHCP server obtains the subscription information from the subscription database, and generates a DHCPv6 according to the subscription information.
  • the DHCPv6 response is a response corresponding to the DHCPv6 request, the extended attribute of the DHCPv6 response includes the subscription information, and the subscription information is saved in the subscription database;
  • the second receiving unit 608 is configured to receive the DHCPv6 response sent by the DHCP server.
  • the second forwarding unit 610 is configured to forward, by the first receiving unit 402, the DHCPv6 response received by the second receiving unit 608 to the first terminal before receiving the first packet sent by the first terminal. .
  • the first forwarding unit 606 can be the first repeater of the network device.
  • the second receiving unit 608 can be a second receiver of the network device.
  • the second forwarding unit 610 can be a second repeater of the network device.
  • the DHCPv6 request may include an identifier of the first terminal.
  • the subscription information can be saved on the AAA server.
  • the correspondence between the identifier of the first terminal and the subscription information may be saved in the subscription database.
  • first forwarding unit 606, the second receiving unit 608, and the second forwarding unit 610 please refer to FIG. 6.
  • the operation unit 404 may specifically include: a determining subunit 702, configured to: according to the subscription information, if the first operation is an operation corresponding to the quality of service Corresponding relationship with the identifier of the service quality determines an identifier of the service quality;
  • the operation sub-unit 704 is configured to perform an operation corresponding to the service quality on the first packet according to the identifier of the service quality determined by the determining sub-unit 702;
  • the determining subunit 702 is specifically configured to use the industry corresponding to the subscription information.
  • the identification of the quality of service determines the identity of the quality of service.
  • the operation unit 404 may specifically include: a determining subunit 702, configured to: according to the subscription information, if the first operation is an operation corresponding to the quality of service Corresponding relationship with the identifier of the service quality determines an identifier of the service quality;
  • the operation sub-unit 704 is configured to perform an operation corresponding to the service quality on the first packet according to the identifier of the service quality determined by the determining sub-unit 702;
  • the determining sub-unit 702 is specifically configured to determine the identifier of the service quality according to the identifier of the service quality corresponding to the service type and the service type, where the packet header includes the service type.
  • the network device may pre-store the subscription information, the service type, and the subscription information and the identifier of the service quality corresponding to the service type. If the network device determines that the subscription information in the packet header matches the subscription information in the network device, and the service type in the header is in the network device If the service type matches, the network device determines the identifier of the service quality.
  • the operation unit 404 may specifically include: a determining subunit 702, configured to: according to the subscription information, if the first operation is an operation corresponding to the quality of service Corresponding relationship with the identifier of the service quality determines an identifier of the service quality;
  • the operation sub-unit 704 is configured to perform an operation corresponding to the service quality on the first packet according to the identifier of the service quality determined by the determining sub-unit 702;
  • the determining sub-unit 702 is specifically configured to determine the first service type according to the correspondence between the subscription information and the first service type, where the network device replaces the second service type in the first packet. For the first service type, the network device determines the identifier of the service quality according to the correspondence between the first service type and the identifier of the service quality.
  • the disclosed systems, devices, and methods may be implemented in other ways.
  • the device embodiments described above are only schematic.
  • the division of the unit may be only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined. Either 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 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 purpose 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 exist physically separately, or two or more units may be integrated into one unit.
  • the functions may be stored in a computer readable storage medium if implemented in the form of a software functional unit and sold or used as a standalone product.
  • the technical solution of the present invention which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including A number of instructions for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods of various embodiments of the present invention Step.
  • the foregoing storage medium includes: a USB flash drive, a mobile hard disk, and a read only memory (abbreviated as
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • CD Compact Disc

Abstract

本发明实施例提供了一种接收报文的方法,包括:网络设备接收第一终端发送的第一报文,第一报文的报文头中包含第一终端对应的签约信息,签约信息为第一业务的信息或者终端组的标识,第一业务为第一终端订阅的业务,终端组包括第一终端以及第二终端;网络设备根据签约信息对第一报文执行第一操作,第一操作为业务质量对应的操作、流量统计或者计费。此外,本发明实施例还提供了相应的网络设备。本发明实施例提供的技术方案可以根据签约信息对报文进行操作。

Description

接收报文的方法及网络设备 技术领域 本发明涉及通信领域, 特别是涉及接收报文的方法及网络设备。
背景技术 网络设备接收到报文后, 能够根据所述报文中的业务类型 (type of service, ToS )对所述报文执行业务质量( quality of service , QoS )对应的 操作。 例如, 路由器可以根据网际协议第四版(Internet Protocol version 4, IPv4 )报文中的 ToS对所述 IPv4报文执行优先级对应的操作。
现有技术中, 网络设备无法根据签约信息对报文进行操作。 发明内容
本发明实施例提供了接收报文的方法及网络设备, 能够根据签约信息 对报文进行操作。 第一方面, 提供了一种接收报文的方法, 包括:
网络设备接收第一终端发送的第一报文, 所述第一报文的报文头中包 含所述第一终端对应的签约信息, 所述签约信息为第一业务的信息或者终 端组的标识, 所述第一业务为所述第一终端订阅的业务, 所述终端组包括 所述第一终端以及第二终端;
所述网络设备根据所述签约信息对所述第一报文执行第一操作, 所述 第一操作为业务质量对应的操作、 流量统计或者计费。
根据上述技术方案可以看出, 所述网络设备可以根据所述第一报文中 携带的所述签约信息对所述第一报文执行操作。
在所述第一方面提供的方法的第一种实现方式中, 如果所述签约信息 为所述第一业务的信息, 所述第一报文是网际协议第六版报文, 所述签约 信息承载在所述网际协议第六版报文的源网际协议第六版地址中的前缀 中。
根据所述第一方面提供的方法的第一种实现方式, 在所述第一方面提 供的方法的第二种实现方式中, 所述网络设备接收所述第一终端发送的所 述第一报文之前, 所述方法还包括:
所述网络设备接收所述第一终端发送的动态主机配置协议第六版请 求;
所述网络设备向动态主机配置协议服务器转发所述动态主机配置协议 第六版请求, 以使所述动态主机配置协议服务器从签约数据库中获取所述 签约信息, 并根据所述签约信息生成动态主机配置协议第六版响应, 所述 动态主机配置协议第六版响应是所述动态主机配置协议第六版请求对应的 响应, 所述动态主机配置协议第六版响应包含所述源网际协议第六版地址 , 所述签约数据库中保存了所述签约信息;
所述网络设备接收所述动态主机配置协议服务器发送的所述动态主机 配置协议第六版响应;
所述网络设备向所述第一终端转发所述动态主机配置协议第六版响 应。
在所述第一方面提供的方法的第三种实现方式中, 如果所述签约信息 为所述终端组的标识, 所述第一报文是网际协议第六版报文, 所述签约信 息承载在所述网际协议第六版报文的扩展首部中。 根据所述第一方面提供的方法的第三种实现方式, 在所述第一方面提 供的方法的第四种实现方式中, 所述网络设备接收所述第一终端发送的所 述第一报文之前, 所述方法还包括:
所述网络设备接收所述第一终端发送的动态主机配置协议第六版请 求;
所述网络设备向动态主机配置协议服务器转发所述动态主机配置协议 第六版请求, 以使所述动态主机配置协议服务器从签约数据库中获取所述 签约信息, 并根据所述签约信息生成动态主机配置协议第六版响应, 所述 动态主机配置协议第六版响应是所述动态主机配置协议第六版请求对应的 响应, 所述动态主机配置协议第六版响应的扩展属性中包含所述签约信息, 所述签约数据库中保存了所述签约信息;
所述网络设备接收所述动态主机配置协议服务器发送的所述动态主机 配置协议第六版响应;
所述网络设备向所述第一终端转发所述动态主机配置协议第六版响 应。 根据所述第一方面提供的方法、 所述第一方面提供的方法的第一种可 能的实现方式、 所述第一方面提供的方法的第二种可能的实现方式、 所述 第一方面提供的方法的第三种可能的实现方式以及所述第一方面提供的方 法的第四种可能的实现方式, 在所述第一方面提供的方法的第五种可能的 实现方式中, 所述网络设备根据所述签约信息对所述第一报文执行所述第 一操作具体包括:
如果所述第一操作为所述业务质量对应的操作, 则所述网络设备根据 所述签约信息与所述业务质量的标识的对应关系确定所述业务质量的标 识;
所述网络设备根据所述业务质量的标识对所述第一报文执行所述业务 质量对应的操作;
其中, 所述网络设备根据所述签约信息与所述业务质量的标识的对应 关系确定所述业务质量的标识具体为:
所述网络设备根据所述签约信息对应的所述业务质量的标识确定所述 业务质量的标识; 或者
所述网络设备根据所述签约信息与业务类型对应的所述业务质量的标 识确定所述业务质量的标识, 所述 文头中包括所述业务类型; 或者
所述网络设备根据所述签约信息与第一业务类型的对应关系确定所述 第一业务类型, 所述网络设备将所述第一报文中的第二业务类型替换为所 述第一业务类型, 所述网络设备根据所述第一业务类型与所述业务质量的 标识的对应关系确定所述业务质量的标识。 第二方面, 提供了一种网络设备, 包括:
第一接收单元, 用于接收第一终端发送的第一报文, 所述第一报文的 报文头中包含所述第一终端对应的签约信息, 所述签约信息为第一业务的 信息或者终端组的标识, 所述第一业务为所述第一终端订阅的业务, 所述 终端组包括所述第一终端以及第二终端;
操作单元, 用于根据所述第一接收单元接收的所述第一报文中的所述 签约信息对所述第一报文执行第一操作, 所述第一操作为业务质量对应的 操作、 流量统计或者计费。 根据上述技术方案可以看出, 所述网络设备可以根据所述第一报文中 携带的所述签约信息对所述第一报文执行操作。
在所述第二方面提供的网络设备的第一种可能的实现方式中, 如果所述签约信息为所述第一业务的信息, 所述第一报文是网际协议 第六版报文, 所述签约信息承载在所述网际协议第六版报文的源网际协议 第六版地址中的前缀中。
根据所述第二方面提供的网络设备的第一种可能的实现方式, 在所述 第二方面提供的网络设备的第二种可能的实现方式中,
所述第一接收单元还用于接收所述第一终端发送的动态主机配置协议 第六版请求;
所述网络设备还包括:
第一转发单元, 用于向动态主机配置协议服务器转发所述第 一接收单元接收的所述动态主机配置协议第六版请求, 以使所述 动态主机配置协议服务器从签约数据库中获取所述签约信息, 并 根据所述签约信息生成动态主机配置协议第六版响应, 所述动态 主机配置协议第六版响应是所述动态主机配置协议第六版请求对 应的响应, 所述动态主机配置协议第六版响应包含所述源网际协 议第六版地址, 所述签约数据库中保存了所述签约信息; 第二接收单元, 用于接收所述动态主机配置协议服务器发送 的所述动态主机配置协议第六版响应; 和
第二转发单元, 用于在所述第一接收单元接收所述第一报文 之前向所述第一终端转发所述第二接收单元接收的所述动态主机 配置协议第六版响应。
在所述第二方面提供的网络设备的第三种可能的实现方式中, 如果所述签约信息为所述终端组的标识, 所述第一报文是网际协议第 六版报文, 所述签约信息承载在所述网际协议第六版报文的扩展首部中。
根据所述第二方面提供的网络设备的第三种可能的实现方式, 在所述 第二方面提供的网络设备的第四种可能的实现方式中,
所述第一接收单元还用于接收所述第一终端发送的动态主机配置协议 第六版请求;
所述网络设备还包括: 第一转发单元, 用于向动态主机配置协议服务器转发所述第 一接收单元接收的所述动态主机配置协议第六版请求, 以使所述 动态主机配置协议服务器从签约数据库中获取所述签约信息, 并 根据所述签约信息生成动态主机配置协议第六版响应, 所述动态 主机配置协议第六版响应是所述动态主机配置协议第六版请求对 应的响应, 所述动态主机配置协议第六版响应的扩展属性中包含 所述签约信息, 所述签约数据库中保存了所述签约信息; 第二接收单元, 用于接收所述动态主机配置协议服务器发送 的所述动态主机配置协议第六版响应;
第二转发单元, 用于所述第一接收单元接收所述第一终端发 送的所述第一报文之前向所述第一终端转发所述第二接收单元接 收的所述动态主机配置协议第六版响应。
根据所述第二方面提供的网络设备、 所述第二方面提供的网络设备的 第一种可能的实现方式、 所述第二方面提供的网络设备的第二种可能的实 现方式、 所述第二方面提供的网络设备的第三种可能的实现方式以及所述 第二方面提供的网络设备的第四种可能的实现方式, 在所述第二方面提供 的网络设备的第五种可能的实现方式中,
所述操作单元具体包括:
确定子单元, 用于如果所述第一操作为所述业务质量对应的操作, 则 根据所述签约信息与所述业务质量的标识的对应关系确定所述业务质量的 标识;
操作子单元, 用于根据所述确定子单元确定的所述业务质量的标识对 所述第一报文执行所述业务质量对应的操作;
其中, 所述确定子单元具体用于根据所述签约信息对应的所述业务质 量的标识确定所述业务质量的标识; 或者
所述确定子单元具体用于根据所述签约信息与业务类型对应的所述业 务质量的标识确定所述业务质量的标识, 所述 文头中包括所述业务类型; 或者
所述确定子单元具体用于根据所述签约信息与第一业务类型的对应关 系确定所述第一业务类型, 所述网络设备将所述第一报文中的第二业务类 型替换为所述第一业务类型, 所述网络设备根据所述第一业务类型与所述 业务质量的标识的对应关系确定所述业务质量的标识。
附图说明 为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对 实施例或现有技术描述中所需要使用的附图作一简单地介绍, 显而易见地, 下面描述中的附图是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动的前提下, 还可以根据这些附图获得其他的附图。
图 1是本发明实施例提供的一种接收报文的方法的流程示意图; 图 2是本发明实施例提供的一种接收报文的方法的流程示意图; 图 3是本发明实施例提供的一种接收报文的方法的流程示意图; 图 4是本发明实施例提供的一种网络设备的结构示意图;
图 5是本发明实施例提供的一种网络设备的结构示意图;
图 6是本发明实施例提供的一种网络设备的结构示意图;
图 7是本发明实施例提供的一种操作单元的结构示意图。
具体实施方式 为使本发明实施例的目的、 技术方案和优点更加清楚, 下面将结合本 发明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地描 述, 显然, 所描述的实施例是本发明一部分实施例, 而不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有作出创造性劳动前提 下所获得的所有其他实施例, 都属于本发明保护的范围。 图 1 为本发明实施例提供的一种接收报文的方法的流程示意图。 参见 图 1 , 所述方法包括:
102、 网络设备接收第一终端发送的第一报文, 所述第一报文的报文头 中包含所述第一终端对应的签约信息, 所述签约信息为第一业务的信息或 者终端组的标识, 所述第一业务为所述第一终端订阅的业务, 所述终端组 包括所述第一终端以及第二终端。 举例来说, 所述网络设备可以是基站、 数字用户线接入复用器(digital subscriber line access multiplexer, DSLAM )、 路由器、 家庭网关、 宽带远程 接入服务器 ( broadband remote access server, BRAS )或者接入点 ( access point, AP )。
所述第一终端能够通过通过所述网络设备接入网络。 所述网络可以是 公网, 也可以是虚拟专用网 ( virtual private network, VPN )„ 举例来说, 所 述第一终端可以是手机、 个人电脑(personal computer, PC )或者个人数字 助理 ( ersonal data assistant, PDA )„
所述第一报文可以是网际协议 ( Internet Protocol, IP )报文。
本领域的技术人员可以理解, 所述签约信息可以存储在认证、 授权和 计费月良务器 ( Authentication, Authorization and Accounting server , AAA server ) 的签约数据库中。
所述签约数据库可以通过如下过程获得。 潜在的所述网络的用户希望 通过所述第一终端访问所述网络时, 可以与运营商签订开通所述网络的业 务的合同。 运营商的工程师可以通过命令行在所述 AAA server配置所述签 约数据库。
举例来说, 所述第一业务可以是视频业务, 也可以是网络游戏业务。 所述第一业务的信息可以是所述第一业务的类型信息, 或者所述第一业务 的计费信息, 或者所述第一业务的业务质量信息。 所述第一业务的计费信 息可以是计费方式的信息, 也可以是所述计费方式的参数。 所述计费方式 可以是根据流量计费, 也可以根据时间计费。 如果所述计费方式是根据流 量计费, 所述计费方式的参数可以是流量的大小以及费用的金额。 如果所 述计费方式是根据时间计费, 所述计费方式的参数可以是时间的长度以及 费用的金额。
所述第一业务可以是所述第一终端在所述 AAA server上订阅的业务。 所述终端组包括所述第一终端以及所述第二终端。 所述第二终端可以 是手机、 个人电脑或者个人数字助理。 所述第二终端与所述第一终端不是 同一个设备。
举例来说, 所述终端组还可以包括所述第一终端以及所述第二终端之 外的终端。
举例来说, 所述终端组的标识可以只对应一个签约账户。 所述终端组 的标识只对应一个签约账户意味着所述终端组中的成员访问所述网络产生 的费用将累计到同一个账户。 所述终端组中的成员包括所述第一终端以及 所述第二终端。
举例来说, 所述终端组的标识可以对应所述第一终端的签约账户以及 所述第二终端的签约账户。 所述终端组的标识对应所述第一终端的签约账 户以及所述第二终端的签约账户意味着所述第一终端访问所述网络产生的 费用和所述第二终端访问所述网络产生的费用将分别累计到两个账户。
104、 所述网络设备根据所述签约信息对所述第一报文执行第一操作, 所述第一操作为业务质量对应的操作、 流量统计或者计费。
举例来说, 所述网络设备存储了所述签约信息与所述第一操作的标识 对应关系。 所述网络设备可以根据所述签约信息与所述第一操作的标识的 对应关系确定所述第一操作的标识。 所述网络设备可以根据所述第一操作 的标识对所述第一报文执行所述第一操作。
举例来说, 所述业务质量可以是时延、 丟包、 抖动、 带宽或者优先级。 根据上述技术方案可以看出, 所述网络设备可以根据所述第一报文中 携带的所述签约信息对所述第一报文执行所述第一操作。
可选地, 图 1 所述的方法中, 如果所述签约信息为所述第一业务的信 息,所述第一报文可以是网际协议第六版( Internet Protocol version 6 , IPv6 ) 报文, 所述签约信息承载在所述 IPv6报文的源 IPv6地址中的前缀中。
举例来说, 所述签约信息可以承载在所述前缀的全部比特的一部分中。 可选地, 图 1 所述的方法中, 所述网络设备接收所述第一终端发送的 所述第一报文之前, 所述方法还可以包括:
202、 所述网络设备接收所述第一终端发送的动态主机配置协议第六版 ( Dynamic Host Configuration Protocol version 6 , DHCPv6 )请求。
举例来说, 所述 DHCPv6请求可以包括所述第一终端的标识。
204、所述网络设备向 DHCP服务器转发所述 DHCPv6请求, 以使所述 DHCP服务器从签约数据库中获取所述签约信息, 并根据所述签约信息生 成 DHCPv6响应 , 所述 DHCPv6响应是所述 DHCPv6请求对应的响应 , 所 述 DHCPv6响应包含所述源 IPv6地址, 所述签约数据库中保存了所述签约 信息。
举例来说, 所述签约数据库可以保存在 AAA server上。 所述签约数据 库中可以保存了所述第一终端的标识与所述签约信息的对应关系。
206、 所述网络设备接收所述 DHCP服务器发送的所述 DHCPv6响应。 208、 所述网络设备向所述第一终端转发所述 DHCPv6响应。
关于 202、 204、 206和 208, 请参见图 2。
举例来说,所述第一终端的标识可以是国际移动用户标识( International Mobile Subscriber Identification, ISMI )或者国际移动身份识别( International Mobile Equipment Identity, IMEI )。
可选地, 图 1所述的方法中, 如果所述签约信息为所述终端组的标识, 所述第一报文是 IPv6报文,所述签约信息可以承载在所述 IPv6报文的扩展 首部 ( extended header ) 中。
举例来说, 所述 IPv6 ^艮文的下一个首部( next header )的取值可以是 0 或者尚未被定义的值。
可选地, 图 1 所述的方法中, 所述网络设备接收所述第一终端发送的 所述第一报文之前, 所述方法还可以包括:
302、 所述网络设备接收所述第一终端发送的 DHCPv6请求。
举例来说, 所述 DHCPv6请求可以包括所述第一终端的标识。
304、所述网络设备向 DHCP服务器转发所述 DHCPv6请求, 以使所述 DHCP服务器从签约数据库中获取所述签约信息, 并根据所述签约信息生 成 DHCPv6响应 , 所述 DHCPv6响应是所述 DHCPv6请求对应的响应 , 所 述 DHCPv6响应的扩展属性中包含所述签约信息, 所述签约数据库中保存 了所述签约信息。
举例来说, 所述签约数据库可以保存在 AAA server上。 所述签约数据 库中可以保存了所述第一终端的标识与所述签约信息的对应关系。
306、 所述网络设备接收所述 DHCP服务器发送的所述 DHCPv6响应。 308、 所述网络设备向所述第一终端转发所述 DHCPv6响应。
关于 302、 304、 306和 308, 请参见图 3。
可选地, 图 1 所述的方法中, 所述网络设备根据所述签约信息对所述 第一报文执行所述第一操作具体包括:
如果所述第一操作为所述业务质量对应的操作, 则所述网络设备根据 所述签约信息与所述业务质量的标识的对应关系确定所述业务质量的标 识。
所述网络设备根据所述业务质量的标识对所述第一报文执行所述业务 质量对应的操作。
其中, 所述网络设备根据所述签约信息与所述业务质量的标识的对应 关系确定所述业务质量的标识具体为:
所述网络设备根据所述签约信息对应的所述业务质量的标识确定所述 业务质量的标识。
可选地, 图 1 所述的方法中, 所述网络设备根据所述签约信息对所述 第一报文执行所述第一操作具体包括:
如果所述第一操作为所述业务质量对应的操作, 则所述网络设备根据 所述签约信息与所述业务质量的标识的对应关系确定所述业务质量的标 识。
所述网络设备根据所述业务质量的标识对所述第一报文执行所述业务 质量对应的操作。
其中, 所述网络设备根据所述签约信息与所述业务质量的标识的对应 关系确定所述业务质量的标识具体为:
所述网络设备根据所述签约信息与业务类型 (type of service, ToS )对 应的所述业务质量的标识确定所述业务质量的标识, 所述报文头中包括所 述业务类型。
举例来说, 所述网络设备可以预先保存了所述签约信息、 所述业务类 型以及所述签约信息和所述业务类型对应的所述业务质量的标识。 如果所 述网络设备确定所述报文头中的所述签约信息与所述网络设备中的所述签 约信息匹配, 并且所述 ^艮文头中的所述业务类型与所述网络设备中的所述 业务类型匹配, 则所述网络设备确定所述业务质量的标识。
可选地, 图 1 所述的方法中, 所述网络设备根据所述签约信息对所述 第一报文执行所述第一操作具体包括:
如果所述第一操作为所述业务质量对应的操作, 则所述网络设备根据 所述签约信息与所述业务质量的标识的对应关系确定所述业务质量的标 识。
所述网络设备根据所述业务质量的标识对所述第一报文执行所述业务 质量对应的操作。
其中, 所述网络设备根据所述签约信息与所述业务质量的标识的对应 关系确定所述业务质量的标识具体为:
所述网络设备根据所述签约信息与第一业务类型的对应关系确定所述 第一业务类型, 所述网络设备将所述第一报文中的第二业务类型替换为所 述第一业务类型, 所述网络设备根据所述第一业务类型与所述业务质量的 标识的对应关系确定所述业务质量的标识。
图 4为本发明实施例提供的一种网络设备结构示意图。 所述网络设备 可以执行图 1所示的方法。 参见图 4, 所述网络设备包括:
第一接收单元 402, 用于接收第一终端发送的第一报文, 所述第一报文 的报文头中包含所述第一终端对应的签约信息, 所述签约信息为第一业务 的信息或者终端组的标识, 所述第一业务为所述第一终端订阅的业务, 所 述终端组包括所述第一终端以及第二终端。
举例来说, 所述第一接收单元 402可以是所述网络设备的第一接收器。 举例来说, 所述网络设备可以^^站、 DSLAM、 路由器、 家庭网关、 BRAS或者接入点 AP。
所述第一终端能够通过通过所述网络设备接入网络。 所述网络可以是 公网,也可以是 VPN。举例来说,所述第一终端可以是手机、 PC或者 PDA。
所述第一报文可以是 IP报文。
本领域的技术人员可以理解, 所述签约信息可以存储在 AAA server的 签约数据库中。
所述签约数据库可以通过如下过程获得。 潜在的所述网络的用户希望 通过所述第一终端访问所述网络时, 可以与运营商签订开通所述网络的业 务的合同。 运营商的工程师可以通过命令行在所述 AAA server配置所述签 约数据库。
举例来说, 所述第一业务可以是视频业务, 也可以是网络游戏业务。 所述第一业务的信息可以是所述第一业务的类型信息, 或者所述第一业务 的计费信息, 或者所述第一业务的业务质量信息。 所述第一业务的计费信 息可以是计费方式的信息, 也可以是所述计费方式的参数。 所述计费方式 可以是根据流量计费, 也可以根据时间计费。 如果所述计费方式是根据流 量计费, 所述计费方式的参数可以是流量的大小以及费用的金额。 如果所 述计费方式是根据时间计费, 所述计费方式的参数可以是时间的长度以及 费用的金额。
所述第一业务可以是所述第一终端在所述 AAA server上订阅的业务。 所述终端组包括所述第一终端以及所述第二终端。 所述第二终端可以 是手机、 个人电脑或者个人数字助理。 所述第二终端与所述第一终端不是 同一个设备。
举例来说, 所述终端组还可以包括所述第一终端以及所述第二终端之 外的终端。
举例来说, 所述终端组的标识可以只对应一个签约账户。 所述终端组 的标识只对应一个签约账户意味着所述终端组中的成员访问所述网络产生 的费用将累计到同一个账户。 所述终端组中的成员包括所述第一终端以及 所述第二终端。
举例来说, 所述终端组的标识可以对应所述第一终端的签约账户以及 所述第二终端的签约账户。 所述终端组的标识对应所述第一终端的签约账 户以及所述第二终端的签约账户意味着所述第一终端访问所述网络产生的 费用和所述第二终端访问所述网络产生的费用将分别累计到两个账户。
操作单元 404,用于根据所述第一接收单元 402接收的所述第一报文中 的所述签约信息对所述第一报文执行第一操作, 所述第一操作为业务质量 对应的操作、 流量统计或者计费。
举例来说, 所述网络设备可以存储了所述签约信息与所述第一操作的 标识的对应关系。 所述网络设备可以根据所述签约信息与所述第一操作的 标识的对应关系确定所述第一操作的标识。 所述网络设备可以根据所述第 一操作的标识对所述第一报文执行所述第一操作。
举例来说, 所述业务质量可以是时延、 丟包、 抖动、 带宽或者优先级。 根据上述技术方案可以看出, 所述网络设备可以根据所述第一报文中 携带的所述签约信息对所述第一报文执行所述第一操作。
可选地, 图 4所示的网络设备中, 如果所述签约信息为所述第一业务 的信息, 所述第一报文是 IPv6报文, 所述签约信息承载在所述 IPv6报文的 源 IPv6地址中的前缀中。 举例来说, 所述签约信息可以承载在所述前缀的全部比特的一部分中 可选地, 图 4所示的网络设备中, 所述第一接收单元 402还可以用于 接收所述第一终端发送的 DHCPv6请求;
所述网络设备还可以包括:
第一转发单元 506, 用于向 DHCP服务器转发所述第一接收 单元 402接收的所述 DHCPv6请求, 以使所述 DHCP服务器从签 约数据库中获取所述签约信息,并根据所述签约信息生成 DHCPv6 响应 , 所述 DHCPv6响应是所述 DHCPv6请求对应的响应 , 所述 DHCPv6响应包含所述源 IPv6地址, 所述签约数据库中保存了所 述签约信息;
第二接收单元 508, 用于接收所述 DHCP服务器发送的所述 DHCPv6响应; 和
第二转发单元 510,用于在所述第一接收单元 402接收所述第 一报文之前向所述第一终端转发所述第二接收单元 508接收的所 述 DHCPv6响应。
关于所述第一转发单元 506、所述第二接收单元 508以及所述第二转发 单元 510, 请参考图 5。
举例来说, 所述 DHCPv6请求可以包括所述第一终端的标识。
举例来说, 所述签约信息可以保存在 AAA server上。
举例来说, 所述签约数据库中可以保存了所述第一终端的标识与所述 签约信息的对应关系。
举例来说, 所述第一转发单元 506可以是所述网络设备的第一转发器。 所述第二接收单元 508可以是所述网络设备的第二接收器。 所述第二转发 单元 510可以是所述网络设备的第二转发器。
举例来说, 所述第一终端的标识可以是 ISMI或者 IMEI。
可选地, 图 4所示的网络设备中, 如果所述签约信息为所述终端组的 标识, 所述第一报文是 IPv6报文, 所述签约信息承载在所述 IPv6报文的扩 展首部中。
举例来说, 所述 IPv6报文的下一个首部的取值可以是 0或者尚未被定 义的值。
可选地, 图 4所示的网络设备中, 所述第一接收单元 402还可以用于 接收所述第一终端发送的 DHCPv6请求;
所述网络设备还包括:
第一转发单元 606, 用于向 DHCP服务器转发所述第一接收 单元 402接收的所述 DHCPv6请求, 以使所述 DHCP服务器从签 约数据库中获取所述签约信息,并根据所述签约信息生成 DHCPv6 响应 , 所述 DHCPv6响应是所述 DHCPv6请求对应的响应 , 所述 DHCPv6 响应的扩展属性中包含所述签约信息, 所述签约数据库 中保存了所述签约信息;
第二接收单元 608, 用于接收所述 DHCP服务器发送的所述 DHCPv6响应;
第二转发单元 610,用于所述第一接收单元 402接收所述第一 终端发送的所述第一报文之前向所述第一终端转发所述第二接收 单元 608接收的所述 DHCPv6响应。
举例来说, 所述第一转发单元 606可以是所述网络设备的第一转发器。 所述第二接收单元 608可以是所述网络设备的第二接收器。 所述第二转发 单元 610可以是所述网络设备的第二转发器。
举例来说, 所述 DHCPv6请求可以包括所述第一终端的标识。
举例来说, 所述签约信息可以保存在 AAA server上。
举例来说, 所述签约数据库中可以保存了所述第一终端的标识与所述 签约信息的对应关系。
关于所述第一转发单元 606、所述第二接收单元 608以及所述第二转发 单元 610, 请参考图 6。
可选地, 图 4所示的网络设备中, 所述操作单元 404可以具体包括: 确定子单元 702, 用于如果所述第一操作为所述业务质量对应的操作, 则根据所述签约信息与所述业务质量的标识的对应关系确定所述业务质量 的标识;
操作子单元 704,用于根据所述确定子单元 702确定的所述业务质量的 标识对所述第一报文执行所述业务质量对应的操作;
其中, 所述确定子单元 702具体用于根据所述签约信息对应的所述业 务质量的标识确定所述业务质量的标识。 可选地, 图 4所示的网络设备中, 所述操作单元 404可以具体包括: 确定子单元 702, 用于如果所述第一操作为所述业务质量对应的操作, 则根据所述签约信息与所述业务质量的标识的对应关系确定所述业务质量 的标识;
操作子单元 704,用于根据所述确定子单元 702确定的所述业务质量的 标识对所述第一报文执行所述业务质量对应的操作;
其中, 所述确定子单元 702具体用于根据所述签约信息与业务类型对 应的所述业务质量的标识确定所述业务质量的标识, 所述报文头中包括所 述业务类型。
举例来说, 所述网络设备可以预先保存了所述签约信息、 所述业务类 型以及所述签约信息和所述业务类型对应的所述业务质量的标识。 如果所 述网络设备确定所述报文头中的所述签约信息与所述网络设备中的所述签 约信息匹配, 并且所述 ^艮文头中的所述业务类型与所述网络设备中的所述 业务类型匹配, 则所述网络设备确定所述业务质量的标识。
可选地, 图 4所示的网络设备中, 所述操作单元 404可以具体包括: 确定子单元 702, 用于如果所述第一操作为所述业务质量对应的操作, 则根据所述签约信息与所述业务质量的标识的对应关系确定所述业务质量 的标识;
操作子单元 704,用于根据所述确定子单元 702确定的所述业务质量的 标识对所述第一报文执行所述业务质量对应的操作;
其中, 所述确定子单元 702具体用于根据所述签约信息与第一业务类 型的对应关系确定所述第一业务类型, 所述网络设备将所述第一报文中的 第二业务类型替换为所述第一业务类型, 所述网络设备根据所述第一业务 类型与所述业务质量的标识的对应关系确定所述业务质量的标识。
关于确定子单元 702和操作子单元 704, 具体请参见图 7。
本领域普通技术人员可以意识到, 结合本文中所公开的实施例描述的 各示例的单元及算法步骤, 能够以电子硬件、 或者计算机软件和电子硬件 的结合来实现。 这些功能究竟以硬件还是软件方式来执行, 取决于技术方 案的特定应用和设计约束条件。 专业技术人员可以对每个特定的应用来使 用不同方法来实现所描述的功能, 但是这种实现不应认为超出本发明的范 围。
所属领域的技术人员可以清楚地了解到, 为描述的方便和简洁, 上述 描述的系统、 装置和单元的具体工作过程, 可以参考前述方法实施例中的 对应过程, 在此不再赘述。
在本申请所提供的几个实施例中, 应该理解到, 所揭露的系统、 装置 和方法, 可以通过其它的方式实现。 例如, 以上所描述的装置实施例仅仅 是示意性的, 例如, 所述单元的划分, 可以仅仅为一种逻辑功能划分, 实 际实现时可以有另外的划分方式, 例如多个单元或组件可以结合或者可以 集成到另一个系统, 或一些特征可以忽略, 或不执行。 另一点, 所显示或 讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口, 装置 或单元的间接耦合或通信连接, 可以是电性, 机械或其它的形式。 作为单元显示的部件可以是或者也可以不是物理单元, 即可以位于一个地 方, 或者也可以分布到多个网络单元上。 可以根据实际的需要选择其中的 部分或者全部单元来实现本实施例方案的目的。
另外, 在本发明各个实施例中的各功能单元可以集成在一个处理单元 中, 也可以是各个单元单独物理存在, 也可以两个或两个以上单元集成在 一个单元中。
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使 用时, 可以存储在一个计算机可读取存储介质中。 基于这样的理解, 本发 明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的 部分可以以软件产品的形式体现出来, 该计算机软件产品存储在一个存储 介质中, 包括若干指令用以使得一台计算机设备(可以是个人计算机, 服 务器, 或者网络设备等)执行本发明各个实施例所述方法的全部或部分步 骤。 而前述的存储介质包括: U盘、 移动硬盘、 只读存储器 (英文缩写为
ROM, 英文全称为 Read-Only Memory ) 、 随机存取存储器 (英文缩写为 RAM, 英文全称为 Random Access Memory )、 磁碟或者光盘等各种可以存 储程序代码的介质。
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局 限于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可 轻易想到变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明 的保护范围应所述以权利要求的保护范围为准。

Claims

权利要求
1、 一种接收报文的方法, 其特征在于, 包括:
网络设备接收第一终端发送的第一报文, 所述第一报文的报文头中包 含所述第一终端对应的签约信息, 所述签约信息为第一业务的信息或者终 端组的标识, 所述第一业务为所述第一终端订阅的业务, 所述终端组包括 所述第一终端以及第二终端;
所述网络设备根据所述签约信息对所述第一报文执行第一操作, 所述 第一操作为业务质量对应的操作、 流量统计或者计费。
2、 根据权利要求 1所述的方法, 其特征在于,
如果所述签约信息为所述第一业务的信息, 所述第一报文是网际协议 第六版报文, 所述签约信息承载在所述网际协议第六版报文的源网际协议 第六版地址中的前缀中。
3、 根据权利要求 2所述的方法, 其特征在于,
所述网络设备接收所述第一终端发送的所述第一报文之前, 所述方法 还包括:
所述网络设备接收所述第一终端发送的动态主机配置协议第六版请 求;
所述网络设备向动态主机配置协议服务器转发所述动态主机配置协议 第六版请求, 以使所述动态主机配置协议服务器从签约数据库中获取所述 签约信息, 并根据所述签约信息生成动态主机配置协议第六版响应, 所述 动态主机配置协议第六版响应是所述动态主机配置协议第六版请求对应的 响应, 所述动态主机配置协议第六版响应包含所述源网际协议第六版地址 , 所述签约数据库中保存了所述签约信息;
所述网络设备接收所述动态主机配置协议服务器发送的所述动态主机 配置协议第六版响应;
所述网络设备向所述第一终端转发所述动态主机配置协议第六版响 应。
4、 根据权利要求 1所述的方法, 其特征在于,
如果所述签约信息为所述终端组的标识, 所述第一报文是网际协议第 六版报文, 所述签约信息承载在所述网际协议第六版报文的扩展首部中。
5、 根据权利要求 4所述的方法, 其特征在于, 所述网络设备接收所述第一终端发送的所述第一报文之前, 所述方法 还包括:
所述网络设备接收所述第一终端发送的动态主机配置协议第六版请 求;
所述网络设备向动态主机配置协议服务器转发所述动态主机配置协议 第六版请求, 以使所述动态主机配置协议服务器从签约数据库中获取所述 签约信息, 并根据所述签约信息生成动态主机配置协议第六版响应, 所述 动态主机配置协议第六版响应是所述动态主机配置协议第六版请求对应的 响应, 所述动态主机配置协议第六版响应的扩展属性中包含所述签约信息, 所述签约数据库中保存了所述签约信息;
所述网络设备接收所述动态主机配置协议服务器发送的所述动态主机 配置协议第六版响应;
所述网络设备向所述第一终端转发所述动态主机配置协议第六版响 应。
6、 根据权利要求 1至 5中任一所述的方法, 其特征在于,
所述网络设备根据所述签约信息对所述第一报文执行所述第一操作具 体包括:
如果所述第一操作为所述业务质量对应的操作, 则所述网络设备根据 所述签约信息与所述业务质量的标识的对应关系确定所述业务质量的标 识;
所述网络设备根据所述业务质量的标识对所述第一报文执行所述业务 质量对应的操作;
其中, 所述网络设备根据所述签约信息与所述业务质量的标识的对应 关系确定所述业务质量的标识具体为:
所述网络设备根据所述签约信息对应的所述业务质量的标识确定所述 业务质量的标识; 或者
所述网络设备根据所述签约信息与业务类型对应的所述业务质量的标 识确定所述业务质量的标识, 所述 文头中包括所述业务类型; 或者
所述网络设备根据所述签约信息与第一业务类型的对应关系确定所述 第一业务类型, 所述网络设备将所述第一报文中的第二业务类型替换为所 述第一业务类型, 所述网络设备根据所述第一业务类型与所述业务质量的 标识的对应关系确定所述业务质量的标识。
7、 一种网络设备, 其特征在于, 包括:
第一接收单元, 用于接收第一终端发送的第一报文, 所述第一报文的 报文头中包含所述第一终端对应的签约信息, 所述签约信息为第一业务的 信息或者终端组的标识, 所述第一业务为所述第一终端订阅的业务, 所述 终端组包括所述第一终端以及第二终端;
操作单元, 用于根据所述第一接收单元接收的所述第一报文中的所述 签约信息对所述第一报文执行第一操作, 所述第一操作为业务质量对应的 操作、 流量统计或者计费。
8、 根据权利要求 7所述的网络设备, 其特征在于,
如果所述签约信息为所述第一业务的信息, 所述第一报文是网际协议 第六版报文, 所述签约信息承载在所述网际协议第六版报文的源网际协议 第六版地址中的前缀中。
9、 根据权利要求 8所述的网络设备, 其特征在于,
所述第一接收单元还用于接收所述第一终端发送的动态主机配置协议 第六版请求;
所述网络设备还包括:
第一转发单元, 用于向动态主机配置协议服务器转发所述第 一接收单元接收的所述动态主机配置协议第六版请求, 以使所述 动态主机配置协议服务器从签约数据库中获取所述签约信息, 并 根据所述签约信息生成动态主机配置协议第六版响应, 所述动态 主机配置协议第六版响应是所述动态主机配置协议第六版请求对 应的响应, 所述动态主机配置协议第六版响应包含所述源网际协 议第六版地址, 所述签约数据库中保存了所述签约信息; 第二接收单元, 用于接收所述动态主机配置协议服务器发送 的所述动态主机配置协议第六版响应; 和
第二转发单元, 用于在所述第一接收单元接收所述第一报文 之前向所述第一终端转发所述第二接收单元接收的所述动态主机 配置协议第六版响应。
10、 根据权利要求 7所述的网络设备, 其特征在于,
如果所述签约信息为所述终端组的标识, 所述第一报文是网际协议第 六版报文, 所述签约信息承载在所述网际协议第六版报文的扩展首部中。
11、 根据权利要求 10所述的网络设备, 其特征在于,
所述第一接收单元还用于接收所述第一终端发送的动态主机配置协议 第六版请求;
所述网络设备还包括:
第一转发单元, 用于向动态主机配置协议服务器转发所述第 一接收单元接收的所述动态主机配置协议第六版请求, 以使所述 动态主机配置协议服务器从签约数据库中获取所述签约信息, 并 根据所述签约信息生成动态主机配置协议第六版响应, 所述动态 主机配置协议第六版响应是所述动态主机配置协议第六版请求对 应的响应, 所述动态主机配置协议第六版响应的扩展属性中包含 所述签约信息, 所述签约数据库中保存了所述签约信息; 第二接收单元, 用于接收所述动态主机配置协议服务器发送 的所述动态主机配置协议第六版响应;
第二转发单元, 用于所述第一接收单元接收所述第一终端发 送的所述第一报文之前向所述第一终端转发所述第二接收单元接 收的所述动态主机配置协议第六版响应。
12、 根据权利要求 7至 11中任一所述的网络设备, 其特征在于, 所述 操作单元具体包括:
确定子单元, 用于如果所述第一操作为所述业务质量对应的操作, 则 根据所述签约信息与所述业务质量的标识的对应关系确定所述业务质量的 标识;
操作子单元, 用于根据所述确定子单元确定的所述业务质量的标识对 所述第一报文执行所述业务质量对应的操作;
其中, 所述确定子单元具体用于根据所述签约信息对应的所述业务质 量的标识确定所述业务质量的标识; 或者
所述确定子单元具体用于根据所述签约信息与业务类型对应的所述业 务质量的标识确定所述业务质量的标识, 所述 文头中包括所述业务类型; 或者
所述确定子单元具体用于根据所述签约信息与第一业务类型的对应关 系确定所述第一业务类型, 所述网络设备将所述第一报文中的第二业务类 型替换为所述第一业务类型, 所述网络设备根据所述第一业务类型与所述 业务质量的标识的对应关系确定所述业务质量的标识。
PCT/CN2012/084069 2012-11-05 2012-11-05 接收报文的方法及网络设备 WO2014067157A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN201280010871.0A CN104012143A (zh) 2012-11-05 2012-11-05 接收报文的方法及网络设备
PCT/CN2012/084069 WO2014067157A1 (zh) 2012-11-05 2012-11-05 接收报文的方法及网络设备
EP12887367.6A EP2911445A1 (en) 2012-11-05 2012-11-05 Method and network device for receiving packet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2012/084069 WO2014067157A1 (zh) 2012-11-05 2012-11-05 接收报文的方法及网络设备

Publications (1)

Publication Number Publication Date
WO2014067157A1 true WO2014067157A1 (zh) 2014-05-08

Family

ID=50626370

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/084069 WO2014067157A1 (zh) 2012-11-05 2012-11-05 接收报文的方法及网络设备

Country Status (3)

Country Link
EP (1) EP2911445A1 (zh)
CN (1) CN104012143A (zh)
WO (1) WO2014067157A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180124186A1 (en) * 2015-04-10 2018-05-03 Nokia Solutions And Networks Oy Using Cellular Identifiers in Intelligent Transport Systems Communication Infrastructure

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114189905A (zh) * 2020-09-15 2022-03-15 华为技术有限公司 一种报文处理方法及相关设备

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102098653A (zh) * 2009-12-14 2011-06-15 中兴通讯股份有限公司 一种实现服务质量控制的方法及系统
CN102238509A (zh) * 2010-04-23 2011-11-09 中兴通讯股份有限公司 决策是否采用策略和计费控制机制的方法及系统
CN102647699A (zh) * 2012-04-18 2012-08-22 中兴通讯股份有限公司 策略和计费控制方法、v-pcrf及v-ocs

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6781991B1 (en) * 1999-02-26 2004-08-24 Lucent Technologies Inc. Method and apparatus for monitoring and selectively discouraging non-elected transport service over a packetized network
US6865185B1 (en) * 2000-02-25 2005-03-08 Cisco Technology, Inc. Method and system for queuing traffic in a wireless communications network
CN100438471C (zh) * 2005-12-08 2008-11-26 华为技术有限公司 一种无线局域网的业务接入方法及无线局域网系统
JP2008131240A (ja) * 2006-11-20 2008-06-05 Fujitsu Ltd ネットワークシステム、その装置及び方法
CN102546568B (zh) * 2010-12-31 2015-04-08 华为技术有限公司 Ip终端接入网络的方法和装置

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102098653A (zh) * 2009-12-14 2011-06-15 中兴通讯股份有限公司 一种实现服务质量控制的方法及系统
CN102238509A (zh) * 2010-04-23 2011-11-09 中兴通讯股份有限公司 决策是否采用策略和计费控制机制的方法及系统
CN102647699A (zh) * 2012-04-18 2012-08-22 中兴通讯股份有限公司 策略和计费控制方法、v-pcrf及v-ocs

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP2911445A4 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180124186A1 (en) * 2015-04-10 2018-05-03 Nokia Solutions And Networks Oy Using Cellular Identifiers in Intelligent Transport Systems Communication Infrastructure
US11463531B2 (en) * 2015-04-10 2022-10-04 Nokia Solutions And Networks Oy Using cellular identifiers in intelligent transport systems communication infrastructure

Also Published As

Publication number Publication date
CN104012143A (zh) 2014-08-27
EP2911445A4 (en) 2015-08-26
EP2911445A1 (en) 2015-08-26

Similar Documents

Publication Publication Date Title
US8189567B2 (en) Method and nodes for registering a terminal
JP5412695B2 (ja) モバイル仮想プライベートネットワーク通信のための方法、装置およびシステム
JP5531355B2 (ja) ネットワーク課金方法、システム及び装置
CN102388639B (zh) 用于接入移动网络的方法和装置以及用户设备
WO2013107136A1 (zh) 终端接入认证的方法及用户端设备
JPH11284666A (ja) 移動管理システム
WO2009065354A1 (fr) Procédé, système et dispositif pour le traitement d'informations de demande d'accès
US20110202670A1 (en) Method, device and system for identifying ip session
TW201505464A (zh) 無線上網流量共用控制方法及系統
WO2011137842A1 (zh) 一种基于cgn实体的数据传输方法、cgn实体、网关及系统
CN108307694B (zh) 一种网络连接信息获取方法及路由器
WO2015169044A1 (zh) 一种漫游场景下的会话绑定方法、裝置和系统
WO2014063629A1 (zh) 漫游用户数据业务的计费控制方法、设备和系统
WO2011144152A1 (zh) 信息提供方法及家庭网关、家庭网络系统
WO2014114058A1 (zh) 一种数据报文转发方法、用户驻地设备和系统
CN104601743A (zh) 基于以太的IP转发IPoE双栈用户接入控制方法和设备
WO2014101755A1 (zh) 业务数据分流方法及系统
WO2014205700A1 (zh) 一种ip地址分配的系统和方法
CN102625305A (zh) 接入演进分组系统的方法及系统
WO2011134102A1 (zh) 关联会话的方法、装置及系统
WO2016078090A1 (zh) 计费控制装置、方法及系统
WO2014067157A1 (zh) 接收报文的方法及网络设备
WO2011098025A1 (zh) 一种通信系统以及关联业务策略信息的方法
WO2011110004A1 (zh) 业务处理方法、系统及设备
WO2012041168A1 (zh) 用于IPv6网络的网络连接处理方法及其装置

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: 12887367

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

REEP Request for entry into the european phase

Ref document number: 2012887367

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2012887367

Country of ref document: EP