WO2010081369A1 - Method and system for obtaining identification information of peer client, peer client and access device - Google Patents

Method and system for obtaining identification information of peer client, peer client and access device Download PDF

Info

Publication number
WO2010081369A1
WO2010081369A1 PCT/CN2009/075841 CN2009075841W WO2010081369A1 WO 2010081369 A1 WO2010081369 A1 WO 2010081369A1 CN 2009075841 W CN2009075841 W CN 2009075841W WO 2010081369 A1 WO2010081369 A1 WO 2010081369A1
Authority
WO
WIPO (PCT)
Prior art keywords
peer client
dhcp
packet
message
peer
Prior art date
Application number
PCT/CN2009/075841
Other languages
French (fr)
Chinese (zh)
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
Priority claimed from CN200910127874A external-priority patent/CN101783764A/en
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2010081369A1 publication Critical patent/WO2010081369A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information

Definitions

  • the invention name is "method, system, and peer client, access device for obtaining peer-to-peer client identification information"
  • the invention name is "method, system, and peer client, access device for obtaining peer-to-peer client identification information"
  • the present invention relates to the field of communications, and in particular to the acquisition of peer (peer-to-peer) client identification information in P2P technology (Peer to Peer).
  • the Internet is a client/server approach.
  • the server can process data on the Internet to provide services to clients on the Internet. Information must be passed through the server.
  • the traditional client/server architecture restricts the transmission and sharing of network information.
  • P2P technology has broken the traditional client/server architecture.
  • a P2P network there is no client or server concept, only equal peer nodes, and each peer acts as both a client and a server.
  • P2P technology uses peer-to-peer computing and randomly selects peers, it not only makes full use of each peer's resources, but also speeds up the transmission and sharing of network resources, and greatly reduces the cost of servers.
  • the peer sequence cannot be located, resulting in a peer sequence (which may also be referred to as a P2P client sequence or a peer sequence). of The choice is unreasonable.
  • a Beijing-based user needs to exchange file fragments over a P2P network. Since the P2P technology randomly selects the peer sequence, the Beijing user is likely to exchange file fragments with the peer located abroad, which will generate excessive cross-domain traffic, and a large amount of network bandwidth is Occupied, resulting in degraded network performance.
  • the embodiment of the present invention provides a method, a system, and a related device for acquiring peer client identification information, to locate a peer client.
  • a method for obtaining peer-to-peer client identification information including:
  • the peer client receives the packet, and the packet carries the identification information of the peer client;
  • the packet is parsed to obtain the identification information of the peer client carried in the packet.
  • a peer client including:
  • the first receiving module is configured to receive a packet, where the packet carries the identifier information of the peer client; [18] a parsing module, configured to parse the packet received by the first receiving module, and obtain the packet The identification information of the peer client carried in the middle.
  • An access device comprising:
  • the first information adding module is configured to add the identifier information of the peer client in the first DHCP message, where the first DHCP message is from the peer client;
  • the second sending module is configured to provide the first DHCP message processed by the first information adding module to the DH
  • a third sending module configured to provide a response from the DHCP server to the peer client, where
  • the response from the DHCP server carries the identification information of the peer client.
  • a broadband remote access server including:
  • a second receiving module configured to receive a first X bearer point-to-point protocol PPPoX message from the peer client;
  • the third information adding module is configured to add the identifier information of the peer client in the second PPPoX packet, where the second PPPoX packet is the broadband remote access server The response of the first PPP oX message;
  • the fifth sending module is configured to: carry the second PPPoX report that carries the identity information of the peer client The text is sent to the peer client.
  • a system for obtaining peer-to-peer client identification information including a peer client, an access device, and a D HCP server, where:
  • the peer client is configured to communicate with the DHCP server through the access device, and obtain the identification information of the peer client by using the DHCP message relayed by the access device;
  • the access device is configured to provide a relay for the communication between the peer client and the DHCP server, and add the identifier information of the peer client to the DHCP message.
  • a system for obtaining peer-to-peer client identification information including a peer client and a broadband remote access server, wherein
  • the peer client is configured to communicate with the broadband remote access server, and obtain the identifier information of the peer client by using the PPPoX packet sent by the broadband remote access server;
  • the broadband remote access server is configured to communicate with the peer client, and add the identifier information of the peer client to the PPPoX packet sent to the peer client.
  • the beneficial effects of the embodiment of the present invention are that, by carrying the identifier information of the peer client in the packet, the peerif line can be quickly located, thereby optimizing the selection of the peer sequence.
  • FIG. 1 is a flowchart of a method for obtaining peer client identification information according to an embodiment of the present invention
  • FIG. 2 to FIG. 9 are schematic diagrams of a peer client obtaining its own identifier through a DHCP packet. Schematic diagram of the process of information;
  • FIG. 10 is a schematic diagram of a process for a peer client to obtain its own identification information through a PPPoE packet in the embodiment of the present invention
  • FIG. 12 is a peer client according to an embodiment of the present invention.
  • FIG. 13 is a peer client according to still another embodiment of the present invention.
  • FIG. 14 is an access device according to an embodiment of the present invention.
  • FIG. 15 is an access device according to still another embodiment of the present invention.
  • FIG. 16 is an access device according to still another embodiment of the present invention.
  • FIG. 17 is an access device according to another embodiment of the present invention.
  • FIG. 18 is a broadband remote access server according to an embodiment of the present invention
  • FIG. FIG. 19 is a schematic diagram of a system for obtaining peer client identification information according to an embodiment of the present invention
  • FIG. 20 to FIG. 26 are additional DHCP message options or multiplexing according to an embodiment of the present invention. Schematic diagram of the original DHCP message options
  • FIG. 27 is a schematic diagram of another system for obtaining peer client identification information according to an embodiment of the present invention.
  • FIG. 28 to FIG. 29 are schematic diagrams of multiplexing original PPPoE packet labels according to an embodiment of the present invention.
  • Each peer client belongs to an AS (Autonomous
  • the System belongs to a peer collection, has certain location information, and has its own IP address.
  • the peer set is a set of peers with the same attributes. For example, peers with similar geographical locations can be combined into one set, or peers in the same network segment can be combined into one set.
  • Each set has a PID. (Peer-group Identification, peer-to-peer collection identifier).
  • the identifier information of the peer client is one or more of the following information: PI D, the ASID of the peer client (AS Identification), and the ISP to which the peer client belongs (internet) Service
  • the peer client identification information may also include one or more of the following information: bandwidth between the peer client and the access device, COST between the peer client and the access device, and others. Identifies the information of the peer client.
  • FIG. 1 is a flowchart of a method for obtaining peer client identification information according to an embodiment of the present invention, including:
  • the peer client receives the packet, and the packet carries the identifier information of the peer client.
  • the Ethernet access method mainly includes DHCP (Dynamic Host
  • the configuration protocol the dynamic host has set up a "node", PPPoE (Point-to-Point Protocol over Ethernet), etc.
  • the DHCP server usually provides configuration information for each Internet host, such as dynamic Assigning an IP address, etc., is also commonly used in the network structure where the peer client is connected to the access device.
  • PPPoE is an access mode for the user to access the network, and is a mature and easy-to-manage access mode.
  • BRAS Broadband Remote Access Server, Broadband Remote Access Server
  • the DHCP message and the PPPoE message can be used to carry the identifier information of the peer client.
  • the packet carrying the peer client identification information is not limited to the foregoing two types, and the packets of other protocols are also available, such as a Point to Point Protocol over ATM (PP to Point-to-Point Protocol) message, or A PPPoX packet such as a PPPoEo (Point to Point Protocol over Ethernet over ATM) packet.
  • PP to Point-to-Point Protocol Point to Point Protocol over ATM
  • PPPoEo Point to Point Protocol over Ethernet over ATM
  • the identifier information of the peer client is a PID.
  • the one or more of the following may be included: the ASID of the peer client, the bandwidth between the peer client and the access device, and the peer The COST (cost) between the client and the access device, and the ISP ID to which the peer client belongs.
  • the PID can be the access device ID or the IP address of the access device.
  • the access device may be a relay device that provides a relay service between the DHCP server and the DHCP client.
  • the access device may be a broadband remote access server. BRAS.
  • the peer client parses the packet to obtain the identifier information of the peer client carried in the packet.
  • the peer client can obtain the identity information of the peer client by parsing the received packet.
  • the DHCP message received by the peer client comes from the DHCP server (in the process of DHCP communication, the peer client is also the DHCP client).
  • the DHCP packet may be forwarded from the DHCP server to the peer client through the access device. Therefore, the identification information of the peer client can be pre-configured in the access device.
  • the identification information of the peer client is configured in the access device, which can be either manual static configuration or automatic configuration of the access device.
  • the identity information of the peer client is added to the DHCP packet by the access device.
  • the DHCP message received by the peer client may be DHCP OFFER (provided) message, or a DHCP ACK (acknowledgement) message. Therefore, the peer client can obtain its own identity information through DHCP OFFER packets, or obtain its own identity information through DHCP ACK packets. The specific process of these two cases is introduced below.
  • the DHCP DISCOVER packet reaches the DHCP server through the relay of the access device. Therefore, when the access device receives the DHCP DISCOVER packet from the peer client, the identification information of the peer client is added to the DHCP DISCOVER packet, and the DHCP DISCOVER packet carrying the peer client identification information is relayed. Go to the DHCP server. In this way, when the DHCP server replies to the peer client with a DHCP OFFER packet, it will carry the identity information of the peer client. Therefore, the peer client obtains its own identification information through the DHCP OFFER packet.
  • the peer client sends a DHCP DISCOVER packet to the DHCP server through the relay of the access device; the DHCP server returns a DHCP OFFER packet to the DHCP server.
  • the access device connects the peer.
  • the identification information of the client is added to the DHCP OFFER packet, and then the DHCP is added.
  • the OFFER packet is relayed to the peer client.
  • the peer client also obtains its own identity information through the DHCP OFFER packet.
  • the peer client sends a DHCP REQUEST message or DHCP to the DHCP server.
  • the INFORM (Notification) message when the DHCP REQUEST message or the DHCP INFORM message passes through the access device, the access device adds the identification information of the peer client to the DHCP REQUEST message or the DHCP INFORM message, and then The DHCP REQUEST message or DHCP INFORM message is relayed to the DHCP server. In this way, when the DHCP server replies DH to the peer client After the ACK packet is received, the identifier information of the peer client is carried. Therefore, the peer client obtains its own identification information through the DHC P ACK message.
  • the peer client sends a DHCP REQUEST packet or a DHCP INFORM packet to the DHCP server through the relay of the access device.
  • the DHCP server returns a DHCP ACK packet to the DHCP server.
  • the DHCP client receives the DHCP ACK packet.
  • the inbound device adds the identifier information of the peer client to the DHCP ACK packet, and then relays the DHCP ACK packet to the peer client. In this process, the peer client also obtains its own identification information through DHCP ACK packets.
  • the DHCP message received by the peer client may be a DHCP ADVERTISE message or a DHCP REPLY message. Therefore, the peer client can obtain its own identification information through the DHCP ADVERTISE packet, or obtain its own identification information through the DHCP REPLY packet. The specific process of these two cases is described below.
  • the peer client sends a DHCP SOLICIT packet.
  • the peer client adds the identity information to the DHCP client.
  • the message is encapsulated into a DHCP RELAY-FORWARD message and forwarded to the DHCP server.
  • the DHCP server replies to the peer client DHCP
  • the RELAY-REPLY message will carry the identification information of the peer client.
  • the receiving device receives the DHCP RELAY-REPLY packet from the DHCP server, the packet is encapsulated and sent as a DHCP ADVERTISE packet to the peer client. Therefore, the peer client obtains its own identification information through the DHCP ADVERTISE packet.
  • the peer client sends a DHCP SOLICIT message, and after being relayed by the access device, the conversion is encapsulated into DHCP.
  • the RELAY-FORWARD packet is sent to the DHCP server.
  • the DHCP server returns a D HCP RELAY-REPLY packet to the peer client.
  • the access device adds the identifier information of the peer client to the packet. In this article, and transform it into DHCP
  • the ADVERTISE packet is sent to the peer client.
  • the peer client also obtains its own identification information through the DH CP ADVERTISE message.
  • the peer client sends a DHCP REQUST packet or a DHCP INFORMATION-REQUEST packet.
  • the access device receives the DHCP REQUST packet or the DHCP INFORMATION-REQUEST packet from the peer client, the peer client adds the identifier information of the peer client.
  • the peer client adds the identifier information of the peer client. To the DHCP REQUST message or DHCP
  • the packet is encapsulated into a DHCP RELAY-FORWARD packet and forwarded to the DHCP server.
  • the DHCP server replies to the peer client with a DHCP RELAY-REPLY packet, it will carry the identity information of the peer client.
  • the access device receives the DHCP RELAY-REPLY packet from the DHCP server, the packet is encapsulated into a DHCP REPLY packet and sent to the peer client, so that the peer client obtains its own identification information through the DHCP REPLY packet. .
  • the peer client sends a DHCP REQUST packet or a DHCP INFORMATION-REQUEST packet. After being relayed by the access device, the translation is encapsulated into DHCP.
  • the RELAY-FORWARD packet is sent to the DHCP server.
  • the DHCP server returns a D HCP RELAY-REPLY packet to the peer client.
  • the access device adds the identifier information of the peer client to the packet.
  • the packet is encapsulated into a DHCP REPLY packet and sent to the peer client.
  • the peer client also obtains its own identification information through the DHCP REPLY message.
  • the identifier information of the peer client may be that the DHCP packet is sent from the peer client to the D client.
  • the access device is added to the DHCP message, such as the scenarios shown in FIG. 2, FIG. 4, FIG. 6, and FIG.
  • the ID of the peer client may be added to the DHCP packet by the access device, for example, as shown in FIG. 3, FIG. 5, FIG. 7, and FIG. Several scenarios.
  • PPPoE is usually authorized by the user to access the network.
  • the BRAS is implemented (in the PPPoE communication process, the peer client is also the PPPoE client). Therefore, the identification information of the peer client can be pre-configured in the BRAS.
  • the BRAS can add the identifier information of the peer client to the PPPoE packet and send it to the peer client, thereby making the peer client The terminal obtains the identification information through the PPPoE packet.
  • the PPPoE message received by the peer client may be a PADO (PPPoE Active Discovery Offer) packet, or may be a PADS (PPPoE Active Discovery Session-confirmation).
  • PADO PPPoE Active Discovery Offer
  • PADS PPPoE Active Discovery Session-confirmation
  • PPPoE activates discovery session confirmation
  • the peer client sends a PADI (PPPoE Active Discovery Initialization) packet.
  • PADI PPPoE Active Discovery Initialization
  • multiple BRASs may receive the PADI packet.
  • each BRAS that receives the PADI message adds the identification information of the peer client to the PADO message that is replied to the peer client.
  • the peer client receives PADO packets from multiple BRASs and selects one of the PADO packets, it can obtain its own identification information.
  • the PID may be the identification information of the access device, such as the access device ID, or the IP address of the access device, and therefore, in this application scenario.
  • the identification information of the peer client added by the different BRAS in the PADO message replied to the peer client may also be different.
  • the peer client can also obtain its own through PADS packets. Identification information, the specific process may be the process shown in Figure 11:
  • the peer client sends PADI packets.
  • multiple BRASs may receive the PADI packets.
  • Each BRAS that receives the PADI message will reply to the peer client with a PADO message.
  • the peer client selects a BRAS from multiple BRASs that reply to the PADO message and sends a unicast PADR (PPPoE).
  • PPPoE unicast PADR
  • the Active Discovery Request (PPPoE activates the discovery request) packet.
  • the BRAS that receives the PADR packet adds the identification information of the peer client to the PADS packet that is replied to the peer client. In this way, when the peer client receives the PADS packet from the BRAS, it can obtain its own identification information.
  • PPPoE Session (session) phase it is mainly LCP (Link Control Protocol), authentication protocol, and NCP (Network Control Protocol).
  • the process of providing identification information for the peer client can also be completed in the PPP Session phase.
  • the BRAS can reply to the LCP packet or the authentication packet of the peer client (for example, the RAP packet).
  • the identifier information of the peer client is added to the text and the NCP packet.
  • the peer client receives the packets from the BRAS, the peer client can obtain its own identification information.
  • the peer client obtains the identification information through DHCP packets and PPPoE packets. Regardless of the implementation manner, in the embodiment of the present invention, the peer client can obtain the identification information of the peer client.
  • the peer client can obtain its own identification information in the process of communicating with the DHCP server or the BRAS. Therefore, when the peer client starts the P2P application, the acquired identity information is provided to the P2P application server. Therefore, after selecting the peer sequence for the peer client, the P2P application server can preferentially select the peer client in the same peer set as the peer client. Further, the identifier information of the peer client may further include an ASID. Therefore, if there is no suitable peer client in the same peer set, the range of the selection may be expanded, and the peer in the same autonomous system as the peer client may be selected. Client. Of course, other identification information and the like can also be referred to to determine the optimal peer sequence. P2P application server The peer sequence that is optimized and selected is sent to the peer client, and the peer client performs resource delivery and sharing with the peer client on the peer sequence.
  • the access device and the DHCP server may be two different devices; in actual situations, the DHCP server may also be deployed. On the device.
  • the embodiment can also be implemented in the same manner, and the basic principle is similar to the previous description, and is not mentioned here.
  • the method for obtaining the peer client identification information provided by an embodiment of the present invention can quickly locate the peerit line, thereby optimizing the selection of the peer sequence.
  • the peer client includes:
  • the first receiving module 200 is configured to receive a packet, where the packet carries the identifier information of the peer client.
  • the parsing module 210 is configured to parse the packet received by the first receiving module 200, and obtain the identifier information of the peer client carried in the packet.
  • the peer client provided by another embodiment of the present invention may further include:
  • the first sending module 220 is configured to send the identifier information of the peer client acquired by the parsing module 210 to the P2P application server.
  • the packet carrying the peer client identification information may be a DHCP packet or a PPP oE packet.
  • the DHCP packet can be: a DHCP OFFER packet, or a DHCP ACK packet, or a DHCP ADVERTISE packet, or DHCP.
  • the PPPoE packet can be a PADO packet, or a PADS packet, or an LCP packet, or an authentication packet, or an NCP packet.
  • the peer client provided by one embodiment of the present invention can quickly locate the peer
  • a further embodiment of the present invention provides an access device.
  • the access device includes: [103] a first information adding module 300, configured to be first in a peer client. Add the identifier information of the peer client to the DHCP packet.
  • the second sending module 310 is configured to: submit the first DHCP message that is processed by the first information adding module 300. Supply to a DHCP server;
  • the third sending module 320 is configured to provide a response from the DHCP server to the peer client, where the
  • the response of the DHCP server carries the identification information of the peer client.
  • the second sending module 310 includes:
  • the forwarding unit 311 is configured to directly forward the first DHCP message processed by the first information adding module 300 to the DHCP server.
  • the third sending module 320 includes:
  • the response unit 321 is configured to send the second DHCP message from the DHCP server to the peer client, where the second DHCP message is a response of the DHCP server to the first DHCP message, and the second DHCP message is carried. There is identification information of the peer client.
  • the second sending module 310 includes:
  • the packet forwarding unit 312 is configured to encapsulate the first DHCP message processed by the first information adding module 300 into a third DHCP message, and send the third DHCP message to the DHCP server.
  • the third sending module 320 includes:
  • the encapsulating response unit 322 is configured to encapsulate the fourth DHCP message from the DHCP server into a fifth DHC P message, and send the fifth DHCP message to the peer client.
  • the fourth DHCP message is DHCP.
  • the server responds to the third DHCP message, and the fourth DHCP message carries the identification information of the peer client.
  • a further embodiment of the present invention provides an access device.
  • the access device includes: [115] a second information adding module 400, configured to be in the sixth from the DHCP server. Add the identification information of the peer client in the DHCP message;
  • the fourth sending module 410 is configured to directly forward the sixth DHCP packet processed by the second information adding module 400 to the peer client, or the sixth DHCP packet processed by the second information adding module 400.
  • the packet is encapsulated into a seventh DHCP packet, and the seventh DHCP packet is sent to the peer client.
  • the access device provided by the embodiment of the present invention can provide the peer client with identification information during the communication process between the peer client and the DHCP server, so that the peer client can quickly locate the peer® line.
  • a further embodiment of the present invention provides a broadband remote access server, as shown in FIG. 18, including:
  • the second receiving module 500 is configured to receive a first PPPoE packet from the peer client.
  • the third information adding module 510 is configured to add the identifier information of the peer client in the second PPPoE packet.
  • the second PPPoE packet is a response of the broadband remote access server to the first PPPoE packet.
  • the fifth sending module 520 is configured to send the second PPPoE packet carrying the identifier information of the peer client to the second PPPoE packet. The peer client.
  • a further embodiment of the present invention provides a system for obtaining peer client identification information, as shown in FIG.
  • the system includes a peer client, an access device, and a DHCP server, where:
  • the peer client is configured to communicate with the DHCP server through the access device, and obtain the identifier information of the peer client by using the DHCP message relayed by the access device.
  • the access device is configured to provide a relay for the communication between the peer client and the DHCP server, and add the identification information of the peer client in the DHCP message.
  • the access device adds the identifier information of the peer client to the DHCP packet, and may add an Option (option) to the DHCP packet, or may reuse the original Option. .
  • an Option can be added to a DHCP message to carry the identity information of the peer client.
  • the Option format can include fields such as Code, Len, and Value. Code and Len are both 1 byte length, Code identifies the type value of the option; Len identifies the length of the Option, that is, the total length of the Option including Code, Len, and Value fields; Value identifies the Option to carry Information, ie ASID, PID and other identification information.
  • the format of the Option may be as shown in FIG.
  • the Value value is divided into 4-byte units, which store the ASID, PID, bandwidth value between the peer client and the access server, COST value, and peer of the peer client's ISP ID.
  • the identification information of the client does not limit the specific storage order. Since the ASID and PID can use the format of the IP address, the bandwidth value or COST value between the peer client and the access server can also be stored in the 4-byte format of the IP address, and the 4-byte length can satisfy the maximum value. Requirements.
  • the Option may use the format shown in FIG. 21.
  • the Value field carries multiple sub-options, and each sub-option stores different identification information, and the code value corresponding to each sub-option can be Pre-defined or negotiated.
  • the sub-option may be in the format as shown in FIG.
  • the embodiment of the present invention can also be implemented by multiplexing the original Option in the DHCP message.
  • the original Vendor Specific Information Option in the DHCP message is reused.
  • the format is basically similar to the case of Fig. 21 and Fig. 22 described above, and will not be described here.
  • an Option can also be added to the DHCP message to carry the identity information of the peer client.
  • This option includes fields such as opt-code, option-len, and option-data.
  • the opt-code field identifies the type value of the option
  • the option-len identifies the length of the option including the opt-code, option-len, and option-data fields
  • the option-data identifies the information carried by the option, that is, A. SID, PID and other identification information.
  • the format of the Option may be as shown in FIG.
  • the option-data value is divided into 16-byte units, which store the ASID, PID, bandwidth value between the client and the access server, the COST value, and the ISP to which the peer client belongs.
  • Peer client identification information such as ID, and embodiments of the present invention do not limit the specific storage order. Since the format of information such as ASID and PID is generally less than 16 bytes in length, in order to maintain consistency, the 16-byte format is used; and the bandwidth value or COST value between pe e r and the access server can also use the IP address. The 16-byte format is stored, so the length of 16 bytes can fully meet the maximum requirement.
  • option-data can still be stored in an indefinite format.
  • the option-data field carries multiple sub-options, and each sub-option stores different identification information, and the opt-code value corresponding to each sub-option can be predefined or negotiated.
  • the suboption can be in the format shown in Fig. 25.
  • DHCPv6 you can also reuse existing options, such as the Vendor Specific Information Option, as shown in Figure 26.
  • the various identification information of the peer client is carried by the option-data field, and the enterprise-number field can be filled in with a specific default value, which can be determined according to the specific implementation.
  • the l-n byte option-data field can be represented by multiple sub-options, and the opt-code value corresponding to each sub-option can be predefined or negotiated.
  • the format of the specific sub-options is similar to the situation described in Figure 25 above, and is not mentioned here.
  • FIG. 27 another system for obtaining peer client identification information is provided, as shown in FIG. 27 As shown, the system includes a peer client and a broadband remote access server, where:
  • the peer client is configured to communicate with the broadband remote access server, and obtain the identification information of the peer client by using the PPPoE packet sent by the broadband remote access server;
  • Broadband remote access server used to communicate with the peer client and sent to the peer client.
  • PPPoE packets are encapsulated in an Ethernet frame format, and the payload portion of PPPoE can be formatted as shown in FIG. Where VER field is 4 bytes, TYPE field is 4 bytes, CO
  • the DE field is 8 bytes
  • the SESSION_ID field is 16 bytes
  • the LENGTH field is 16 bytes.
  • CODE can identify different messages, for example: in PPPoE
  • the PADI message is 0x09
  • the PADO message is 0x07
  • the PADR message is 0x19
  • the PAD S message is 0x65.
  • the CODE is set to 0x00.
  • SESSION_ID identifies a different session and is a fixed value for a given session.
  • LENGTH identifies the PAYLOAD length of PPPoE (excluding the length of the Ethernet header and PPPoE header).
  • the PAYLOAD part of the PPPoE message contains 0 or more TAGs. Therefore, in the embodiment of the present invention, the broadband remote access server adds the identity information of the peer client to the PPPoE packet, and may add a TAG to the PPPoE packet or multiplex the original TAG.
  • the TAG can include fields such as TAG_TYPE, TAG_LEN GTH, and TAG-VALUE.
  • TAG_TYPE identifies the type value of the TAG; TA G-LENGTH
  • the length of the TAG is identified, and in the TAG_VALUE, the peer ID information such as the ASID, the PID, the bandwidth value or the COST value between the peer client and the access server may be stored, and the embodiment of the present invention does not perform the specific storage order. limit.
  • the more common, reusable TAGs are: Vendor-Specific TAG, Relay-Session-Id TAG, etc.
  • the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware.
  • the technical solution of the embodiment of the present invention may be in the form of a software product.
  • the computer software product can be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., including instructions for causing a computer device, or server, or other network device to perform various embodiments of the present invention or The method described in certain sections of the examples.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

In the field of communication, a method for obtaining identification information of a peer client to locate the peer client is provided. The method obtains the identification information of the peer client by receiving and analyzing a message which carries the identification information of the peer client. The method resolves a location problem of the peer client effectively, so as to optimize the selection of peer sequences. A system for obtaining the identification information of the peer client, an access device and a peer client are also provided.

Description

Title of Invention:获取对等机客户端标识信息的方法、 系统以及对 等机客户端、 接入设备  Title of Invention: Method, system, and peer client, access device for obtaining peer client identification information
[1] 本申请要求如下两个中国专利申请的优先权:  [1] This application claims the priority of the following two Chinese patent applications:
[2] 中国专利申请 1、 2009年 1月 17日提交至中国专利局, 申请号为 200910105098.6 [2] Chinese Patent Application 1. Submitted to the Chinese Patent Office on January 17, 2009, the application number is 200910105098.6
, 发明名称为"获取对等机客户端标识信息的方法、 系统以及对等机客户端、 接 入设备"; The invention name is "method, system, and peer client, access device for obtaining peer-to-peer client identification information";
[3] 中国专利申请 2、 2009年 4月 10日提交至中国专利局, 申请号为 200910127874.2 [3] Chinese patent application 2. Submitted to the Chinese Patent Office on April 10, 2009, application number is 200910127874.2
, 发明名称为"获取对等机客户端标识信息的方法、 系统以及对等机客户端、 接 入设备"; The invention name is "method, system, and peer client, access device for obtaining peer-to-peer client identification information";
[4] 上述两个中国专利申请的全部内容通过引用结合在本申请中。  [4] The entire contents of the above-mentioned two Chinese patent applications are incorporated herein by reference.
[5] 技术领域  [5] Technical field
本发明涉及通信领域, 特别涉及 P2P技术 (Peer to Peer, 点到点) 中 peer (对等 机) 客户端标识信息的获取。  The present invention relates to the field of communications, and in particular to the acquisition of peer (peer-to-peer) client identification information in P2P technology (Peer to Peer).
[7] 发明背景  [7] Background of the invention
[8] 目前互联网是以客户端 /服务器的方式为主要结构, 在此方式中, 要在互联网 上设置服务器, 服务器在集中处理数据的同吋可以为互联网上的客户端提供服 务, 网络内的信息都必须通过服务器才可以传递。 但是, 随着网络的发展, 人 们对大容量信息如音乐、 视频文件的需求正在不断增长。 传统的客户端 /服务器 结构制约着网络信息的传递与共享。  [8] At present, the Internet is a client/server approach. In this way, to set up a server on the Internet, the server can process data on the Internet to provide services to clients on the Internet. Information must be passed through the server. However, with the development of the network, the demand for large-capacity information such as music and video files is growing. The traditional client/server architecture restricts the transmission and sharing of network information.
[9] P2P技术的出现打破了传统的客户端 /服务器结构。 在 P2P网络中, 没有客户端 或服务器的概念, 只有平等的同级节点, 每一个 peer都同吋充当客户端和服务器 的角色。 由于 P2P技术釆用对等计算, 随机挑选 peer, 因此不仅充分利用了每一 个 peer的资源, 提高了网络资源传递和共享的速度, 也大大降低了服务器的费用  [9] The emergence of P2P technology has broken the traditional client/server architecture. In a P2P network, there is no client or server concept, only equal peer nodes, and each peer acts as both a client and a server. Because P2P technology uses peer-to-peer computing and randomly selects peers, it not only makes full use of each peer's resources, but also speeds up the transmission and sharing of network resources, and greatly reduces the cost of servers.
[10] 但是, 在实现本发明的过程中, 发明人发现, 现有技术中, 由于无法对 peer客 户端进行定位, 导致对 peer序列 (也可以称为 P2P客户端序列或对等机序列) 的 选择不合理。 例如, 一个位于北京的用户需要通过 P2P网络进行文件片段的交换 。 由于 P2P技术是随机的挑选 peer序列, 因此, 这位北京的用户很有可能是与位 于国外的 peer进行文件片段的交换, 由此会产生过多的横跨域的流量, 大量的网 络带宽被占用, 从而导致网络性能下降。 [10] However, in the process of implementing the present invention, the inventors have found that in the prior art, the peer sequence cannot be located, resulting in a peer sequence (which may also be referred to as a P2P client sequence or a peer sequence). of The choice is unreasonable. For example, a Beijing-based user needs to exchange file fragments over a P2P network. Since the P2P technology randomly selects the peer sequence, the Beijing user is likely to exchange file fragments with the peer located abroad, which will generate excessive cross-domain traffic, and a large amount of network bandwidth is Occupied, resulting in degraded network performance.
[11] 发明内容 [11] Summary of the invention
[12] 有鉴于此, 本发明的实施例提供了获取 peer客户端标识信息的方法、 系统以及 相关设备, 以对 peer客户端进行定位。  [12] In view of this, the embodiment of the present invention provides a method, a system, and a related device for acquiring peer client identification information, to locate a peer client.
[13] 一种获取对等机客户端标识信息的方法, 包括: [13] A method for obtaining peer-to-peer client identification information, including:
[14] 对等机客户端接收报文, 该报文携带有该对等机客户端的标识信息; [14] The peer client receives the packet, and the packet carries the identification information of the peer client;
[15] 解析该报文, 获取该报文中携带的该对等机客户端的标识信息。 [15] The packet is parsed to obtain the identification information of the peer client carried in the packet.
[16] 一种对等机客户端, 包括: [16] A peer client, including:
[17] 第一接收模块, 用于接收报文, 该报文携带有该对等机客户端的标识信息; [18] 解析模块, 用于解析第一接收模块接收到的报文, 获取报文中携带的该对等机 客户端的标识信息。  [17] The first receiving module is configured to receive a packet, where the packet carries the identifier information of the peer client; [18] a parsing module, configured to parse the packet received by the first receiving module, and obtain the packet The identification information of the peer client carried in the middle.
[19] 一种接入设备, 包括: [19] An access device, comprising:
[20] 第一信息添加模块, 用于在第一 DHCP报文中添加对等机客户端的标识信息, 第一 DHCP报文来自该对等机客户端;  [20] The first information adding module is configured to add the identifier information of the peer client in the first DHCP message, where the first DHCP message is from the peer client;
[21] 第二发送模块, 用于将经过第一信息添加模块处理的第一 DHCP报文提供给 DH[21] The second sending module is configured to provide the first DHCP message processed by the first information adding module to the DH
CP服务器; CP server;
[22] 第三发送模块, 用于将来自 DHCP服务器的响应提供给该对等机客户端, 其中 [22] a third sending module, configured to provide a response from the DHCP server to the peer client, where
, 来自 DHCP服务器的响应携带该对等机客户端的标识信息。 The response from the DHCP server carries the identification information of the peer client.
[23] 一种宽带远程接入服务器, 包括: [23] A broadband remote access server, including:
[24] 第二接收模块, 用于接收来自对等机客户端的第一 X承载点到点协议 PPPoX报 文;  [24] a second receiving module, configured to receive a first X bearer point-to-point protocol PPPoX message from the peer client;
[25] 第三信息添加模块, 用于在所述第二 PPPoX报文中添加所述对等机客户端的标 识信息, 其中, 所述第二 PPPoX报文是所述宽带远程接入服务器对所述第一 PPP oX报文的响应;  [25] The third information adding module is configured to add the identifier information of the peer client in the second PPPoX packet, where the second PPPoX packet is the broadband remote access server The response of the first PPP oX message;
[26] 第五发送模块, 用于将携带所述对等机客户端的标识信息的所述第二 PPPoX报 文发送给所述对等机客户端。 [26] The fifth sending module is configured to: carry the second PPPoX report that carries the identity information of the peer client The text is sent to the peer client.
[27] 一种获取对等机客户端标识信息的系统, 包括对等机客户端、 接入设备以及 D HCP服务器, 其中: [27] A system for obtaining peer-to-peer client identification information, including a peer client, an access device, and a D HCP server, where:
[28] 对等机客户端, 用于通过接入设备与 DHCP服务器进行通信, 并通过接入设备 中继的 DHCP报文获取该对等机客户端的标识信息;  [28] The peer client is configured to communicate with the DHCP server through the access device, and obtain the identification information of the peer client by using the DHCP message relayed by the access device;
[29] 接入设备, 用于为对等机客户端与 DHCP服务器的通信提供中继, 并在 DHCP 报文中添加该对等机客户端的标识信息。 [29] The access device is configured to provide a relay for the communication between the peer client and the DHCP server, and add the identifier information of the peer client to the DHCP message.
[30] 一种获取对等机客户端标识信息的系统, 包括对等机客户端和宽带远程接入服 务器, 其中, [30] A system for obtaining peer-to-peer client identification information, including a peer client and a broadband remote access server, wherein
[31] 所述对等机客户端, 用于与所述宽带远程接入服务器进行通信, 并通过所述宽 带远程接入服务器发送的 PPPoX报文获取所述对等机客户端的标识信息;  [31] the peer client is configured to communicate with the broadband remote access server, and obtain the identifier information of the peer client by using the PPPoX packet sent by the broadband remote access server;
[32] 所述宽带远程接入服务器, 用于与所述对等机客户端进行通信, 并在发送给所 述对等机客户端的 PPPoX报文中添加所述对等机客户端的标识信息。  [32] The broadband remote access server is configured to communicate with the peer client, and add the identifier information of the peer client to the PPPoX packet sent to the peer client.
[33] 本发明实施例的有益效果在于, 通过在报文中携带 peer客户端的标识信息, 能 够对 peerif行快速定位, 从而优化 peer序列的选择。  [33] The beneficial effects of the embodiment of the present invention are that, by carrying the identifier information of the peer client in the packet, the peerif line can be quickly located, thereby optimizing the selection of the peer sequence.
[34] 附图简要说明  [34] BRIEF DESCRIPTION OF THE DRAWINGS
[35] 图 1为本发明的一个实施例提供的获取 peer客户端标识信息的方法流程图; [36] 图 2〜9为本发明的实施例中 peer客户端通过 DHCP报文获取自己的标识信息的 过程示意图;  FIG. 1 is a flowchart of a method for obtaining peer client identification information according to an embodiment of the present invention; [2] FIG. 2 to FIG. 9 are schematic diagrams of a peer client obtaining its own identifier through a DHCP packet. Schematic diagram of the process of information;
[37] 图 10〜11为本发明的实施例中 peer客户端通过 PPPoE报文获取自己的标识信息 的过程示意图;  [0] FIG. 10 is a schematic diagram of a process for a peer client to obtain its own identification information through a PPPoE packet in the embodiment of the present invention;
[38] 图 12为本发明的实施例提供的一种 peer客户端; FIG. 12 is a peer client according to an embodiment of the present invention;
[39] 图 13为本发明的又一实施例提供的 peer客户端; FIG. 13 is a peer client according to still another embodiment of the present invention;
[40] 图 14为本发明的实施例提供的一种接入设备; [40] FIG. 14 is an access device according to an embodiment of the present invention;
[41] 图 15为本发明的又一实施例提供的接入设备; [15] FIG. 15 is an access device according to still another embodiment of the present invention;
[42] 图 16为本发明的又一实施例提供的接入设备; [42] FIG. 16 is an access device according to still another embodiment of the present invention;
[43] 图 17本发明的另一实施例提供的一种接入设备; [43] FIG. 17 is an access device according to another embodiment of the present invention;
[44] 图 18为本发明的一个实施例提供的一种宽带远程接入服务器; [45] 图 19为本发明的实施例提供的一种获取 peer客户端标识信息的系统示意图; [46] 图 20〜26为本发明的实施例中, 新增的 DHCP报文选项或者复用原有 DHCP报 文选项示意图; FIG. 18 is a broadband remote access server according to an embodiment of the present invention; FIG. FIG. 19 is a schematic diagram of a system for obtaining peer client identification information according to an embodiment of the present invention; [46] FIG. 20 to FIG. 26 are additional DHCP message options or multiplexing according to an embodiment of the present invention. Schematic diagram of the original DHCP message options;
[47] 图 27为本发明的实施例提供的又一种获取 peer客户端标识信息的系统示意图; [48] 图 28〜29为本发明的实施例中, 复用原有 PPPoE报文标签示意图。  FIG. 27 is a schematic diagram of another system for obtaining peer client identification information according to an embodiment of the present invention; [48] FIG. 28 to FIG. 29 are schematic diagrams of multiplexing original PPPoE packet labels according to an embodiment of the present invention; .
[49] 实施本发明的方式 [49] Mode for carrying out the invention
[50] 为使本发明的目的、 技术方案及优点更加清楚明白, 以下参照附图, 对本发明 作进一步地详细说明。  The present invention will be further described in detail below with reference to the accompanying drawings.
[51] 每个 peer客户端都属于一个 AS (Autonomous  [51] Each peer client belongs to an AS (Autonomous
System, 自治系统) , 属于一个 peer集合, 具有一定的位置信息, 拥有自己的 IP 地址。 其中, peer集合是指由一些具有相同属性的 peer组成的集合, 如: 可以将 地理位置相近的 peer组成一个集合、 也可以将处于同一网段的 peer组成一个集合 , 每一个集合都具有一个 PID (Peer-group Identification, 对等机集合标识) 。 System, autonomous system), belongs to a peer collection, has certain location information, and has its own IP address. The peer set is a set of peers with the same attributes. For example, peers with similar geographical locations can be combined into one set, or peers in the same network segment can be combined into one set. Each set has a PID. (Peer-group Identification, peer-to-peer collection identifier).
[52] 本发明的实施例中, peer客户端的标识信息为以下信息中的一个或者多个: PI D、 peer客户端的 ASID (AS Identification, 自治系统标识) 、 以及 peer客户端所 属的 ISP (internet Service  In the embodiment of the present invention, the identifier information of the peer client is one or more of the following information: PI D, the ASID of the peer client (AS Identification), and the ISP to which the peer client belongs (internet) Service
Provider, 因特网服务提供商) ID。 除了这些信息, peer客户端的标识信息还可 以包括以下信息中的一个或多个: peer客户端与接入设备间的带宽、 peer客户端 与接入设备之间的 COST (代价) 、 以及其他可以标识 peer客户端的信息。  Provider, Internet Service Provider) ID. In addition to the information, the peer client identification information may also include one or more of the following information: bandwidth between the peer client and the access device, COST between the peer client and the access device, and others. Identifies the information of the peer client.
[53] 如图 1所示, 图 1为本发明的一个实施例提供的获取 peer客户端标识信息的方法 流程图, 包括: As shown in FIG. 1 , FIG. 1 is a flowchart of a method for obtaining peer client identification information according to an embodiment of the present invention, including:
[54] 100, peer客户端接收报文, 该报文中携带有该 peer客户端的标识信息。  [54] 100. The peer client receives the packet, and the packet carries the identifier information of the peer client.
[55] 目前在通信网络中, 以太网接入方式主要包括 DHCP (Dynamic Host [55] Currently in the communication network, the Ethernet access method mainly includes DHCP (Dynamic Host
Configuration Protocol, 动态主机酉己置 1"办议) , PPPoE (Point-to-Point Protocol over Ethernet, 以太网承载点到点协议) 等。 其中, DHCP服务器通常为各互联 网主机提供配置信息, 比如动态分配 IP地址等, 也常用在 peer客户端连接到接入 设备的网络结构中。 PPPoE则是对用户接入网络进行授权, 是一种技术成熟、 管 理方便的接入方式, 实际应用中, 对用户接入网络进行授权通常由 BRAS (Broadband Remote Access Server, 宽带远程接入服务器) 来实现。 因此, 在本 发明的实施例中, 可以利用 DHCP报文和 PPPoE报文来承载 peer客户端的标识信 息。 当然, 承载 peer客户端标识信息的报文并不仅限于上述两种, 其他协议的报 文也是可以的, 如 PPPoA (Point to Point Protocol over ATM , 异步传输模式承载 点到点协议 ) 报文、 或 PPPoEoA (Point to Point Protocol over Ethernet over ATM , 基于 ATM的 PPPoE) 报文等 PPPoX报文。 为便于描述, 本发明的实施例以 DH CP报文和 PPPoE报文为例进行说明。 The configuration protocol, the dynamic host has set up a "node", PPPoE (Point-to-Point Protocol over Ethernet), etc. Among them, the DHCP server usually provides configuration information for each Internet host, such as dynamic Assigning an IP address, etc., is also commonly used in the network structure where the peer client is connected to the access device. PPPoE is an access mode for the user to access the network, and is a mature and easy-to-manage access mode. In practical applications, User access to the network for authorization is usually done by BRAS (Broadband Remote Access Server, Broadband Remote Access Server) to achieve. Therefore, in the embodiment of the present invention, the DHCP message and the PPPoE message can be used to carry the identifier information of the peer client. Certainly, the packet carrying the peer client identification information is not limited to the foregoing two types, and the packets of other protocols are also available, such as a Point to Point Protocol over ATM (PP to Point-to-Point Protocol) message, or A PPPoX packet such as a PPPoEo (Point to Point Protocol over Ethernet over ATM) packet. For convenience of description, the embodiment of the present invention uses a DH CP message and a PPPoE message as an example for description.
[56] 在本实施例中, peer客户端的标识信息为 PID, 当然, 除了 PID, 还可以包括以 下中的一个或多个: peer客户端的 ASID、 peer客户端与接入设备间的带宽、 peer 客户端与接入设备之间的 COST (代价) 、 以及 peer客户端所属的 ISP ID等。 其 中, PID可以是接入设备 ID, 或接入设备的 IP地址。  [56] In this embodiment, the identifier information of the peer client is a PID. Of course, in addition to the PID, the one or more of the following may be included: the ASID of the peer client, the bandwidth between the peer client and the access device, and the peer The COST (cost) between the client and the access device, and the ISP ID to which the peer client belongs. The PID can be the access device ID or the IP address of the access device.
[57] 在 DHCP的应用场景中, 接入设备可以是 DHCP服务器和 DHCP客户端之间提供 中继服务的中继设备; 而在 PPPoE的应用场景中, 接入设备可以是宽带远程接入 服务器 BRAS。  [57] In the application scenario of the DHCP, the access device may be a relay device that provides a relay service between the DHCP server and the DHCP client. In the application scenario of the PPPoE, the access device may be a broadband remote access server. BRAS.
[58] 110, peer客户端解析该报文, 获取报文中携带的 peer客户端的标识信息。  [58] 110. The peer client parses the packet to obtain the identifier information of the peer client carried in the packet.
[59] peer客户端通过解析接收到的报文, 就能够获取到该 peer客户端自己的标识信 息。 [59] The peer client can obtain the identity information of the peer client by parsing the received packet.
[60] 下面分别对 DHCP报文和 PPPoE报文承载 peer客户端标识信息的几种情况进行详 细介绍。  [60] The following describes the situation in which the DHCP client and PPPoE packets carry peer client identification information.
[61] (1) 当承载 peer客户端标识信息的报文为 DHCP报文吋:  [61] (1) When the packet carrying the peer client identification information is a DHCP packet:
[62] 可以理解, 在这种场景中, peer客户端接收到的 DHCP报文来自 DHCP服务器 ( 在 DHCP的通信过程中, peer客户端也就是 DHCP客户端) 。 其中, 该 DHCP报文 可以是来自 DHCP服务器、 通过接入设备中继给该 peer客户端的。 因此, 可以在 接入设备中预先配置 peer客户端的标识信息。 此处, 预先在接入设备中配置 peer 客户端的标识信息, 可以是人工静态配置, 也可以是接入设备自动配置。 在本 发明的实施例中, 当 peer客户端和 DHCP服务器之间存在中继设备吋, peer客户 端的标识信息是由接入设备添加到 DHCP报文中的。  [62] It can be understood that in this scenario, the DHCP message received by the peer client comes from the DHCP server (in the process of DHCP communication, the peer client is also the DHCP client). The DHCP packet may be forwarded from the DHCP server to the peer client through the access device. Therefore, the identification information of the peer client can be pre-configured in the access device. Here, the identification information of the peer client is configured in the access device, which can be either manual static configuration or automatic configuration of the access device. In the embodiment of the present invention, when there is a relay device between the peer client and the DHCP server, the identity information of the peer client is added to the DHCP packet by the access device.
[63] 对于 DHCPv4来说, 本发明的实施例中, peer客户端接收到的 DHCP报文可以是 DHCP OFFER (提供) 报文, 也可以是 DHCP ACK (应答) 报文。 因此, peer客 户端可以通过 DHCP OFFER报文获取自己的标识信息, 也可以通过 DHCP ACK 报文获取自己的标识信息。 下面分别介绍这两种情况的具体过程。 [DHCP] For the DHCPv4, in the embodiment of the present invention, the DHCP message received by the peer client may be DHCP OFFER (provided) message, or a DHCP ACK (acknowledgement) message. Therefore, the peer client can obtain its own identity information through DHCP OFFER packets, or obtain its own identity information through DHCP ACK packets. The specific process of these two cases is introduced below.
[64] 当 peer客户端通过 DHCP OFFER报文获取自己的标识信息吋, 具体过程可以是 如图 2所示的过程:  [64] When the peer client obtains its own identity information through the DHCP OFFER packet, the specific process may be as shown in Figure 2:
[65] peer客户端发送 DHCP  [65] peer client sends DHCP
DISCOVER (发现) 报文, 在本实施例的场景中, 该 DHCP DISCOVER报文通过 接入设备的中继, 到达 DHCP服务器。 因此, 当接入设备接收到来自 peer客户端 的 DHCP DISCOVER报文吋, 将该 peer客户端的标识信息添加到该 DHCP DISCOVER报文中, 再将该携带 peer客户端标识信息的 DHCP DISCOVER报文中 继到 DHCP服务器。 这样, 当 DHCP服务器向 peer客户端回复 DHCP OFFER报文 吋, 就会携带上 peer客户端的标识信息。 从而使得 peer客户端通过 DHCP OFFER 报文获取自己的标识信息。  In the scenario of the present embodiment, the DHCP DISCOVER packet reaches the DHCP server through the relay of the access device. Therefore, when the access device receives the DHCP DISCOVER packet from the peer client, the identification information of the peer client is added to the DHCP DISCOVER packet, and the DHCP DISCOVER packet carrying the peer client identification information is relayed. Go to the DHCP server. In this way, when the DHCP server replies to the peer client with a DHCP OFFER packet, it will carry the identity information of the peer client. Therefore, the peer client obtains its own identification information through the DHCP OFFER packet.
[66] 当然, 当 peer客户端通过 DHCP OFFER报文获取自己的标识信息吋, 具体过程 也可以是如图 3所示的过程:  [66] Of course, when the peer client obtains its own identity information through the DHCP OFFER packet, the specific process may also be the process shown in FIG. 3:
[67] peer客户端通过接入设备的中继, 向 DHCP服务器发送 DHCP DISCOVER报文 ; DHCP服务器向其返回 DHCP OFFER报文, 当 DHCP OFFER报文通过接入设备 吋, 接入设备将该 peer客户端的标识信息添加到该 DHCP OFFER报文中, 再将这 个 DHCP  [67] The peer client sends a DHCP DISCOVER packet to the DHCP server through the relay of the access device; the DHCP server returns a DHCP OFFER packet to the DHCP server. When the DHCP OFFER packet passes through the access device, the access device connects the peer. The identification information of the client is added to the DHCP OFFER packet, and then the DHCP is added.
OFFER报文中继给 peer客户端。 在这个过程中, peer客户端同样通过 DHCP OFFER报文获取了自己的标识信息。  The OFFER packet is relayed to the peer client. In this process, the peer client also obtains its own identity information through the DHCP OFFER packet.
[68] 当 peer客户端通过 DHCP ACK报文获取自己的标识信息吋, 具体过程可以是如 图 4所示的过程: [68] When the peer client obtains its own identity information through the DHCP ACK packet, the specific process may be as shown in Figure 4:
[69] peer客户端向 DHCP服务器发送 DHCP REQUEST (请求) 报文或者 DHCP [69] The peer client sends a DHCP REQUEST message or DHCP to the DHCP server.
INFORM (通知) 报文, 当 DHCP REQUEST报文或者 DHCP INFORM报文通过 接入设备吋, 接入设备将该 peer客户端的标识信息添加到该 DHCP REQUEST报 文或者 DHCP INFORM报文中, 再将该 DHCP REQUEST报文或者 DHCP INFORM报文中继到 DHCP服务器。 这样, 当 DHCP服务器向 peer客户端回复 DH ACK报文吋, 就会携带上 peer客户端的标识信息。 从而使得 peer客户端通过 DHC P ACK报文获取了自己的标识信息。 The INFORM (Notification) message, when the DHCP REQUEST message or the DHCP INFORM message passes through the access device, the access device adds the identification information of the peer client to the DHCP REQUEST message or the DHCP INFORM message, and then The DHCP REQUEST message or DHCP INFORM message is relayed to the DHCP server. In this way, when the DHCP server replies DH to the peer client After the ACK packet is received, the identifier information of the peer client is carried. Therefore, the peer client obtains its own identification information through the DHC P ACK message.
[70] 当然, 当 peer客户端通过 DHCP ACK报文获取自己的标识信息吋, 具体过程也 可以是如图 5所示的过程:  [70] Of course, when the peer client obtains its own identity information through the DHCP ACK packet, the specific process may also be as shown in Figure 5:
[71] peer客户端通过接入设备的中继, 向 DHCP服务器发送 DHCP REQUEST报文或 者 DHCP INFORM报文; DHCP服务器向其返回 DHCP ACK报文, 当 DHCP ACK 报文通过接入设备吋, 接入设备将该 peer客户端的标识信息添加到该 DHCP ACK 报文中, 再将这个 DHCP ACK报文中继给 peer客户端。 在这个过程中, peer客户 端同样通过 DHCP ACK报文获取了自己的标识信息。  [71] The peer client sends a DHCP REQUEST packet or a DHCP INFORM packet to the DHCP server through the relay of the access device. The DHCP server returns a DHCP ACK packet to the DHCP server. When the DHCP ACK packet passes through the access device, the DHCP client receives the DHCP ACK packet. The inbound device adds the identifier information of the peer client to the DHCP ACK packet, and then relays the DHCP ACK packet to the peer client. In this process, the peer client also obtains its own identification information through DHCP ACK packets.
[72] 而对于 DHCPv6来说, 本发明的实施例中, peer客户端接收到的 DHCP报文可以 是 DHCP ADVERTISE (通告) 报文, 也可以是 DHCP REPLY (回复) 报文。 因 此, peer客户端可以通过 DHCP ADVERTISE报文获取自己的标识信息, 也可以 通过 DHCP REPLY报文获取自己的标识信息。 下面分别介绍这两种情况的具体 过程。  For the DHCPv6, in the embodiment of the present invention, the DHCP message received by the peer client may be a DHCP ADVERTISE message or a DHCP REPLY message. Therefore, the peer client can obtain its own identification information through the DHCP ADVERTISE packet, or obtain its own identification information through the DHCP REPLY packet. The specific process of these two cases is described below.
[73] 当 peer客户端通过 DHCP ADVERTISE报文获取自己的标识信息吋, 具体过程可 以是如图 6所示的过程:  [73] When the peer client obtains its own identity information through the DHCP ADVERTISE packet, the specific process can be as shown in Figure 6:
peer客户端发送 DHCP SOLICIT (恳求) 报文, 当接入设备接收到来自 peer客户 端的 DHCP SOLICIT报文吋, 将该 peer客户端的标识信息添加到该 DHCP  The peer client sends a DHCP SOLICIT packet. When the access device receives the DHCP SOLICIT packet from the peer client, the peer client adds the identity information to the DHCP client.
SOLICIT报文中, 并将该报文封装成 DHCP RELAY-FORWARD (中继-转发) 报 文转发至 DHCP服务器。 这样, 当 DHCP服务器向 peer客户端回复 DHCP  In the SOLICIT message, the message is encapsulated into a DHCP RELAY-FORWARD message and forwarded to the DHCP server. In this way, when the DHCP server replies to the peer client DHCP
RELAY-REPLY (中继-回复) 报文吋, 就会携带上 peer客户端的标识信息。 当接 入设备接收到来自 DHCP服务器的 DHCP RELAY-REPLY报文吋, 将报文转换封 装为 DHCP ADVERTISE报文发送给 peer客户端。 从而使得 peer客户端通过 DHCP ADVERTISE报文获取了自己的标识信息。  The RELAY-REPLY message will carry the identification information of the peer client. When the receiving device receives the DHCP RELAY-REPLY packet from the DHCP server, the packet is encapsulated and sent as a DHCP ADVERTISE packet to the peer client. Therefore, the peer client obtains its own identification information through the DHCP ADVERTISE packet.
[75] 当然, 当 peer客户端通过 DHCP ADVERTISE报文获取自己的标识信息吋, 具体 过程也可以是如图 7所示的过程:  [75] Of course, when the peer client obtains its own identity information through the DHCP ADVERTISE message, the specific process may also be the process shown in Figure 7:
[76] peer客户端发送 DHCP SOLICIT报文, 经过接入设备中继后, 转换封装成 DHCP RELAY-FORWARD报文发送至 DHCP服务器; DHCP服务器向 peer客户端返回 D HCP RELAY-REPLY报文, 该 DHCP RELAY-REPLY报文通过接入设备吋, 接入 设备将 peer客户端的标识信息添加到报文中, 并将其转换封装成 DHCP [76] The peer client sends a DHCP SOLICIT message, and after being relayed by the access device, the conversion is encapsulated into DHCP. The RELAY-FORWARD packet is sent to the DHCP server. The DHCP server returns a D HCP RELAY-REPLY packet to the peer client. After the DHCP RELAY-REPLY packet passes through the access device, the access device adds the identifier information of the peer client to the packet. In this article, and transform it into DHCP
ADVERTISE报文发送给 peer客户端。 这个过程中, 同样使得 peer客户端通过 DH CP ADVERTISE报文获取了自己的标识信息。  The ADVERTISE packet is sent to the peer client. In this process, the peer client also obtains its own identification information through the DH CP ADVERTISE message.
[77] 当 peer客户端通过 DHCP REPLY报文获取自己的标识信息吋, 具体过程可以是 如图 8所示的过程: [77] When the peer client obtains its own identity information through the DHCP REPLY packet, the specific process may be as shown in Figure 8:
[78] peer客户端发送 DHCP REQUST报文或者 DHCP INFORMATION-REQUEST报 文, 当接入设备接收到来自 peer客户端的 DHCP REQUST报文或者 DHCP INFORMATION-REQUEST报文吋, 将该 peer客户端的标识信息添加到该 DHCP REQUST报文或者 DHCP  [78] The peer client sends a DHCP REQUST packet or a DHCP INFORMATION-REQUEST packet. When the access device receives the DHCP REQUST packet or the DHCP INFORMATION-REQUEST packet from the peer client, the peer client adds the identifier information of the peer client. To the DHCP REQUST message or DHCP
INFORMATION-REQUEST报文中 , 并将报文封装成 DHCP RELAY-FORWARD 报文转发至 DHCP服务器。 这样, 当 DHCP服务器向 peer客户端回复 DHCP RELAY-REPLY报文吋, 就会携带上 peer客户端的标识信息。 当接入设备接收到 来自 DHCP服务器的 DHCP RELAY-REPLY报文吋, 将报文转换封装为 DHCP REPLY报文发送给 peer客户端, 从而使得 peer客户端通过 DHCP REPLY报文获取 了自己的标识信息。  In the INFORMATION-REQUEST packet, the packet is encapsulated into a DHCP RELAY-FORWARD packet and forwarded to the DHCP server. In this way, when the DHCP server replies to the peer client with a DHCP RELAY-REPLY packet, it will carry the identity information of the peer client. When the access device receives the DHCP RELAY-REPLY packet from the DHCP server, the packet is encapsulated into a DHCP REPLY packet and sent to the peer client, so that the peer client obtains its own identification information through the DHCP REPLY packet. .
[79] 当然, 当 peer客户端通过 DHCP REPLY报文获取自己的标识信息吋, 具体过程 也可以是如图 9所示的过程:  [79] Of course, when the peer client obtains its own identity information through the DHCP REPLY packet, the specific process may also be the process shown in Figure 9:
[80] peer客户端发送 DHCP REQUST报文或者 DHCP INFORMATION-REQUEST报 文, 经过接入设备中继后, 转换封装成 DHCP [80] The peer client sends a DHCP REQUST packet or a DHCP INFORMATION-REQUEST packet. After being relayed by the access device, the translation is encapsulated into DHCP.
RELAY-FORWARD报文发送至 DHCP服务器; DHCP服务器向 peer客户端返回 D HCP RELAY-REPLY报文, 该 DHCP RELAY-REPLY报文通过接入设备吋, 接入 设备将 peer客户端的标识信息添加到报文中, 并将其转换封装成 DHCP REPLY报 文发送给 peer客户端。 这个过程中, 同样使得 peer客户端通过 DHCP REPLY报文 获取了自己的标识信息。  The RELAY-FORWARD packet is sent to the DHCP server. The DHCP server returns a D HCP RELAY-REPLY packet to the peer client. After the DHCP RELAY-REPLY packet passes through the access device, the access device adds the identifier information of the peer client to the packet. In this paper, the packet is encapsulated into a DHCP REPLY packet and sent to the peer client. In this process, the peer client also obtains its own identification information through the DHCP REPLY message.
[81] 上面详细介绍了 peer客户端通过 DHCP报文获取到标识信息的几种情况。 在本 发明的实施例中, peer客户端的标识信息可以是 DHCP报文从 peer客户端发送至 D HCP服务器的过程中, 由接入设备添加至 DHCP报文中, 例如图 2、 图 4、 图 6、 以及图 8所示出的几种场景。 当然, peer客户端的标识信息也可以是 DHCP报文从 DHCP服务器发送至 peer客户端的过程中, 由接入设备添加至 DHCP报文中, 例 如图 3、 图 5、 图 7、 以及图 9所示出的几种场景。 [81] The following describes in detail the cases where the peer client obtains the identification information through DHCP packets. In the embodiment of the present invention, the identifier information of the peer client may be that the DHCP packet is sent from the peer client to the D client. During the process of the HCP server, the access device is added to the DHCP message, such as the scenarios shown in FIG. 2, FIG. 4, FIG. 6, and FIG. The ID of the peer client may be added to the DHCP packet by the access device, for example, as shown in FIG. 3, FIG. 5, FIG. 7, and FIG. Several scenarios.
[82] (2) 当承载 peer客户端标识信息的报文为 PPPoE报文吋: [82] (2) When the packet carrying the peer client identification information is a PPPoE packet:
[83] 由前面的介绍可知, PPPoE对用户接入网络进行授权通常由  [83] According to the previous introduction, PPPoE is usually authorized by the user to access the network.
BRAS来实现 (在 PPPoE的通信过程中, peer客户端也就是 PPPoE客户端) 。 因此 , 可以在 BRAS中预先配置 peer客户端的标识信息, 当 peer客户端与 BRAS进行通 信吋, BRAS就可以将 peer客户端的标识信息添加到 PPPoE报文中, 发送给 peer客 户端, 从而使得 peer客户端通过 PPPoE报文获取标识信息。  BRAS is implemented (in the PPPoE communication process, the peer client is also the PPPoE client). Therefore, the identification information of the peer client can be pre-configured in the BRAS. When the peer client communicates with the BRAS, the BRAS can add the identifier information of the peer client to the PPPoE packet and send it to the peer client, thereby making the peer client The terminal obtains the identification information through the PPPoE packet.
[84] 在 PPPoE [84] In PPPoE
Discovery (发现) 阶段, 本发明的实施例中, peer客户端接收到的 PPPoE报文可 以是 PADO (PPPoE Active Discovery Offer, PPPoE激活发现提供) 报文, 也可 以是 PADS (PPPoE Active Discovery Session-confirmation, PPPoE激活发现会话 确认) 报文。 因此, peer客户端可以通过 PADO报文获取自己的标识信息, 也可 以通过 PADS报文获取自己的标识信息。 下面分别介绍这两种情况的具体过程。  In the discovery phase, in the embodiment of the present invention, the PPPoE message received by the peer client may be a PADO (PPPoE Active Discovery Offer) packet, or may be a PADS (PPPoE Active Discovery Session-confirmation). , PPPoE activates discovery session confirmation) message. Therefore, the peer client can obtain its own identification information through PADO packets, or obtain its own identification information through PADS packets. The specific process of these two cases is introduced below.
[85] 当 peer客户端通过 PADO报文获取自己的标识信息吋, 具体过程可以是如图 10 所示的过程: [85] When the peer client obtains its own identification information through the PADO packet, the specific process may be as shown in Figure 10:
[86] peer客户端发送 PADI (PPPoE Active Discovery Initialization, PPPoE激活发现起 始) 报文, 实际应用中, 可能有多个 BRAS接收到该 PADI报文。 在本发明的实施 例中, 每个接收到 PADI报文的 BRAS都会在回复给该 peer客户端 PADO报文中添 加该 peer客户端的标识信息。 这样, 当 peer客户端接收到来自多个 BRAS的 PADO 报文吋, 选择其中的一个 PADO报文, 就能够从中获取到自己的标识信息。 这里 需要说明的是, 由前面的介绍可知, peer客户端的标识信息中, PID可以是接入 设备的标识信息, 例如接入设备 ID, 或接入设备的 IP地址等, 因此, 在本应用场 景中, 不同的 BRAS在回复给该 peer客户端的 PADO报文中添加的该 peer客户端的 标识信息也可以是不同的。  [86] The peer client sends a PADI (PPPoE Active Discovery Initialization) packet. In actual applications, multiple BRASs may receive the PADI packet. In the embodiment of the present invention, each BRAS that receives the PADI message adds the identification information of the peer client to the PADO message that is replied to the peer client. In this way, when the peer client receives PADO packets from multiple BRASs and selects one of the PADO packets, it can obtain its own identification information. It should be noted that, in the foregoing description, in the identification information of the peer client, the PID may be the identification information of the access device, such as the access device ID, or the IP address of the access device, and therefore, in this application scenario. The identification information of the peer client added by the different BRAS in the PADO message replied to the peer client may also be different.
[87] 当然, 在 PPPoE Discovery阶段, peer客户端也可以通过 PADS报文获取自己的 标识信息, 具体过程可以是如图 11所示的过程: [87] Of course, in the PPPoE Discovery phase, the peer client can also obtain its own through PADS packets. Identification information, the specific process may be the process shown in Figure 11:
peer客户端发送 PADI报文, 实际应用中, 可能有多个 BRAS接收到该 PADI报文 。 每一个收到 PADI报文的 BRAS都会向 peer客户端回复 PADO报文, peer客户端 从多个回复 PADO报文的 BRAS内选择一个 BRAS , 发出单播 PADR (PPPoE The peer client sends PADI packets. In actual applications, multiple BRASs may receive the PADI packets. Each BRAS that receives the PADI message will reply to the peer client with a PADO message. The peer client selects a BRAS from multiple BRASs that reply to the PADO message and sends a unicast PADR (PPPoE).
Active Discovery Request, PPPoE激活发现请求) 报文, 收到 PADR报文的 BRAS 会在回复给该 peer客户端的 PADS报文中添加该 peer客户端的标识信息。 这样, 当 peer客户端接收到来自 BRAS的 PADS报文吋, 就能够获取到自己的标识信息。 而在 PPPoE Session (会话) 阶段, 主要是 LCP (Link Control Protocol , 数据链 路控制协议) 、 认证协议、 NCP (Network Control Protocol, 网络控制协议
Figure imgf000012_0001
The Active Discovery Request (PPPoE activates the discovery request) packet. The BRAS that receives the PADR packet adds the identification information of the peer client to the PADS packet that is replied to the peer client. In this way, when the peer client receives the PADS packet from the BRAS, it can obtain its own identification information. In the PPPoE Session (session) phase, it is mainly LCP (Link Control Protocol), authentication protocol, and NCP (Network Control Protocol).
Figure imgf000012_0001
Authentication Protocol, 口令验证协议) 和 CHAP (Challenge-Handshake
Figure imgf000012_0002
Authentication Protocol, Password Authentication Protocol) and CHAP (Challenge-Handshake
Figure imgf000012_0002
[90] 与 PPPoE Discovery阶段原理相同,为 peer客户端提供标识信息的过程, 也可以 在 PPP Session阶段来完成, BRAS可在回复给 peer客户端的 LCP报文、 或者认证 报文 (例如, RAP报文, 以及 CHAP报文) 、 或者 NCP报文中添加该 peer客户端 的标识信息, 当 peer客户端接收到来自 BRAS的这些报文吋, 就能够获取到自己 的标识信息。  [90] The same principle as the PPPoE Discovery phase, the process of providing identification information for the peer client can also be completed in the PPP Session phase. The BRAS can reply to the LCP packet or the authentication packet of the peer client (for example, the RAP packet). The identifier information of the peer client is added to the text and the NCP packet. When the peer client receives the packets from the BRAS, the peer client can obtain its own identification information.
[91] 上面详细介绍了 peer客户端分别通过 DHCP报文和 PPPoE报文获取到标识信息的 几种情况。 不管釆用何种实现方式, 在本发明的实施例中, peer客户端均能获取 到该 peer客户端的标识信息。  [91] The following describes in detail the cases where the peer client obtains the identification information through DHCP packets and PPPoE packets. Regardless of the implementation manner, in the embodiment of the present invention, the peer client can obtain the identification information of the peer client.
[92] 釆用本发明的实施例提供的获取 peer客户端标识信息的方法, peer客户端能够 在与 DHCP服务器或者 BRAS通信的过程中, 获取自己的标识信息。 因此, 当该 p eer客户端启动 P2P应用吋, 将获取到的自己的标识信息提供给 P2P应用服务器。 从而, P2P应用服务器在为该 peer客户端选择 peer序列吋, 就能够优先选择与该 p eer客户端在同一个 peer集合内的 peer客户端。 进一步的, peer客户端的标识信息 还可以包括 ASID , 因此, 如果在同一个 peer集合内没有合适的 peer客户端, 则可 以扩大选择的范围, 选择与该 peer客户端在同一个自治系统内的 peer客户端。 当 然, 也可以参考其他标识信息等, 来判断选择优化的 peer序列。 P2P应用服务器 将经过优化选择的 peer序列发送给 peer客户端, peer客户端再与 peer序列上的 peer 客户端进行资源的传递和共享。 [92] The method for obtaining the peer client identification information provided by the embodiment of the present invention, the peer client can obtain its own identification information in the process of communicating with the DHCP server or the BRAS. Therefore, when the peer client starts the P2P application, the acquired identity information is provided to the P2P application server. Therefore, after selecting the peer sequence for the peer client, the P2P application server can preferentially select the peer client in the same peer set as the peer client. Further, the identifier information of the peer client may further include an ASID. Therefore, if there is no suitable peer client in the same peer set, the range of the selection may be expanded, and the peer in the same autonomous system as the peer client may be selected. Client. Of course, other identification information and the like can also be referred to to determine the optimal peer sequence. P2P application server The peer sequence that is optimized and selected is sent to the peer client, and the peer client performs resource delivery and sharing with the peer client on the peer sequence.
[93] 当然, 在本实施例中, 当 peer客户端通过 DHCP报文获取标识信息吋, 接入设 备和 DHCP服务器可以是两个不同的设备; 在实际情况中, DHCP服务器也可以 部署在接入设备上。 这种情况下, 本实施例也同样能够实现, 基本原理与之前 的描述类似, 此处不再赞述。 [93] Of course, in this embodiment, when the peer client obtains the identification information through the DHCP packet, the access device and the DHCP server may be two different devices; in actual situations, the DHCP server may also be deployed. On the device. In this case, the embodiment can also be implemented in the same manner, and the basic principle is similar to the previous description, and is not mentioned here.
[94] 可见, 釆用本发明的一个实施例提供的获取 peer客户端标识信息的方法, 能够 对 peerit行快速定位, 从而优化 peer序列的选择。 [94] It can be seen that the method for obtaining the peer client identification information provided by an embodiment of the present invention can quickly locate the peerit line, thereby optimizing the selection of the peer sequence.
[95] 本发明的另一实施例, 提供了一种 peer客户端, 如图 12所示, 该 peer客户端包 括: Another embodiment of the present invention provides a peer client. As shown in FIG. 12, the peer client includes:
[96] 第一接收模块 200, 用于接收报文, 该报文中携带有该 peer客户端的标识信息。  [96] The first receiving module 200 is configured to receive a packet, where the packet carries the identifier information of the peer client.
[97] 解析模块 210, 用于解析第一接收模块 200接收到的报文, 获取该报文中携带的 该 peer客户端的标识信息。 [97] The parsing module 210 is configured to parse the packet received by the first receiving module 200, and obtain the identifier information of the peer client carried in the packet.
[98] 进一步的, 如图 13所示, 在图 12所示的 peer客户端的基础上, 本发明的又一实 施例提供的 peer客户端还可以包括: [98] Further, as shown in FIG. 13, on the basis of the peer client shown in FIG. 12, the peer client provided by another embodiment of the present invention may further include:
[99] 第一发送模块 220, 用于将解析模块 210获取到的该 peer客户端的标识信息发送 给 P2P应用服务器。 [99] The first sending module 220 is configured to send the identifier information of the peer client acquired by the parsing module 210 to the P2P application server.
[100] 本实施例中, 携带 peer客户端标识信息的报文可以是 DHCP报文, 也可以是 PPP oE报文。 其中, DHCP报文可以是: DHCP OFFER报文、 或者 DHCP ACK报文、 或者 DHCP ADVERTISE报文, 或者 DHCP  [100] In this embodiment, the packet carrying the peer client identification information may be a DHCP packet or a PPP oE packet. The DHCP packet can be: a DHCP OFFER packet, or a DHCP ACK packet, or a DHCP ADVERTISE packet, or DHCP.
REPLY报文。 PPPoE报文可以是 PADO报文, 或者 PADS报文, 或者 LCP报文, 或者认证报文, 或者 NCP报文。  REPLY message. The PPPoE packet can be a PADO packet, or a PADS packet, or an LCP packet, or an authentication packet, or an NCP packet.
[101] 可见, 釆用本发明的一个实施例提供的 peer客户端, 能够对 peer进行快速定位[101] It can be seen that the peer client provided by one embodiment of the present invention can quickly locate the peer
, 从而为 P2P应用服务器对 peer序列的优化选择提供信息。 , thus providing information for the P2P application server to optimize the selection of the peer sequence.
[102] 本发明的又一实施例, 提供了一种接入设备, 如图 14所示, 该接入设备包括: [103] 第一信息添加模块 300, 用于在来自 peer客户端的第一 DHCP报文中添加该 peer 客户端的标识信息; [102] A further embodiment of the present invention provides an access device. As shown in FIG. 14, the access device includes: [103] a first information adding module 300, configured to be first in a peer client. Add the identifier information of the peer client to the DHCP packet.
[104] 第二发送模块 310, 用于将经过第一信息添加模块 300处理的第一 DHCP报文提 供给 DHCP服务器; [104] The second sending module 310 is configured to: submit the first DHCP message that is processed by the first information adding module 300. Supply to a DHCP server;
[105] 第三发送模块 320, 用于将来自 DHCP服务器的响应提供给 peer客户端, 该来自 [105] The third sending module 320 is configured to provide a response from the DHCP server to the peer client, where the
DHCP服务器的响应携带有 peer客户端的标识信息。 The response of the DHCP server carries the identification information of the peer client.
[106] 可选的, 在图 14所示的接入设备的基础上, 在本发明的又一实施例中, 如图 15 所示, 第二发送模块 310包括: [106] Optionally, on the basis of the access device shown in FIG. 14, in another embodiment of the present invention, as shown in FIG. 15, the second sending module 310 includes:
[107] 转发单元 311, 用于将经过第一信息添加模块 300处理的第一 DHCP报文直接转 发给 DHCP服务器。 [107] The forwarding unit 311 is configured to directly forward the first DHCP message processed by the first information adding module 300 to the DHCP server.
[108] 第三发送模块 320包括: [108] The third sending module 320 includes:
[109] 回应单元 321, 用于将来自 DHCP服务器的第二 DHCP报文发送给 peer客户端, 其中, 第二 DHCP报文是 DHCP服务器对第一 DHCP报文的响应, 第二 DHCP报文 携带有 peer客户端的标识信息。  [109] The response unit 321 is configured to send the second DHCP message from the DHCP server to the peer client, where the second DHCP message is a response of the DHCP server to the first DHCP message, and the second DHCP message is carried. There is identification information of the peer client.
[110] 可选的, 在图 14所示的接入设备的基础上, 在本发明的又一实施例中, 如图 16 所示, 第二发送模块 310包括: [110] Optionally, on the basis of the access device shown in FIG. 14, in another embodiment of the present invention, as shown in FIG. 16, the second sending module 310 includes:
[111] 封装转发单元 312, 用于将经过第一信息添加模块 300处理的第一 DHCP报文封 装成第三 DHCP报文, 将第三 DHCP报文发送给 DHCP服务器; [111] The packet forwarding unit 312 is configured to encapsulate the first DHCP message processed by the first information adding module 300 into a third DHCP message, and send the third DHCP message to the DHCP server.
[112] 第三发送模块 320包括: [112] The third sending module 320 includes:
[113] 封装回应单元 322, 用于将来自 DHCP服务器的第四 DHCP报文封装成第五 DHC P报文, 将第五 DHCP报文发送给 peer客户端; 其中, 第四 DHCP报文是 DHCP月艮 务器对第三 DHCP报文的响应, 第四 DHCP报文携带有 peer客户端的标识信息。  [113] The encapsulating response unit 322 is configured to encapsulate the fourth DHCP message from the DHCP server into a fifth DHC P message, and send the fifth DHCP message to the peer client. The fourth DHCP message is DHCP. The server responds to the third DHCP message, and the fourth DHCP message carries the identification information of the peer client.
[114] 本发明的又一实施例, 提供了一种接入设备, 如图 17所示, 该接入设备包括: [115] 第二信息添加模块 400, 用于在来自 DHCP服务器的第六 DHCP报文中添力口 peer 客户端的标识信息; [114] A further embodiment of the present invention provides an access device. As shown in FIG. 17, the access device includes: [115] a second information adding module 400, configured to be in the sixth from the DHCP server. Add the identification information of the peer client in the DHCP message;
[116] 第四发送模块 410, 用于将经过第二信息添加模块 400处理的第六 DHCP报文直 接转发给该 peer客户端; 或者, 将经过第二信息添加模块 400处理的第六 DHCP报 文封装成第七 DHCP报文, 将第七 DHCP报文发送给 peer客户端。  [116] The fourth sending module 410 is configured to directly forward the sixth DHCP packet processed by the second information adding module 400 to the peer client, or the sixth DHCP packet processed by the second information adding module 400. The packet is encapsulated into a seventh DHCP packet, and the seventh DHCP packet is sent to the peer client.
[117] 釆用本发明的实施例提供的接入设备, 能够在 peer客户端与 DHCP服务器的通 信过程中为 peer客户端提供标识信息, 从而使得 peer客户端能够对 peer®行快速 定位。 [118] 本发明的又一实施例, 提供了一种宽带远程接入服务器, 如图 18所示, 包括:The access device provided by the embodiment of the present invention can provide the peer client with identification information during the communication process between the peer client and the DHCP server, so that the peer client can quickly locate the peer® line. [118] A further embodiment of the present invention provides a broadband remote access server, as shown in FIG. 18, including:
[119] 第二接收模块 500, 用于接收来自 peer客户端的第一 PPPoE报文; [119] The second receiving module 500 is configured to receive a first PPPoE packet from the peer client.
[120] 第三信息添加模块 510, 用于在第二 PPPoE报文中添加该 peer客户端的标识信息 [120] The third information adding module 510 is configured to add the identifier information of the peer client in the second PPPoE packet.
, 其中, 第二 PPPoE报文是该宽带远程接入服务器对第一 PPPoE报文的响应; [121] 第五发送模块 520, 用于将携带 peer客户端的标识信息的第二 PPPoE报文发送给 该 peer客户端。 The second PPPoE packet is a response of the broadband remote access server to the first PPPoE packet. [121] The fifth sending module 520 is configured to send the second PPPoE packet carrying the identifier information of the peer client to the second PPPoE packet. The peer client.
[122] 本发明的又一实施例, 提供了一种获取 peer客户端标识信息的系统, 如图 19所 示。 该系统包括 peer客户端、 接入设备以及 DHCP服务器, 其中:  [122] A further embodiment of the present invention provides a system for obtaining peer client identification information, as shown in FIG. The system includes a peer client, an access device, and a DHCP server, where:
[123] peer客户端, 用于通过该接入设备与该 DHCP服务器进行通信, 并通过接入设 备中继的 DHCP报文获取 peer客户端的标识信息;  [123] The peer client is configured to communicate with the DHCP server through the access device, and obtain the identifier information of the peer client by using the DHCP message relayed by the access device.
[124] 接入设备, 用于为 peer客户端与 DHCP服务器的通信提供中继, 并在 DHCP报文 中添加 peer客户端的标识信息。  [124] The access device is configured to provide a relay for the communication between the peer client and the DHCP server, and add the identification information of the peer client in the DHCP message.
[125] 在本发明的实施例中, 接入设备在 DHCP报文中添加 peer客户端的标识信息, 可以是在 DHCP报文中新增一个 Option (选项) , 也可以是复用原有的 Option。  In the embodiment of the present invention, the access device adds the identifier information of the peer client to the DHCP packet, and may add an Option (option) to the DHCP packet, or may reuse the original Option. .
[126] 例如, 对于 DHCPv4来说, 可以在 DHCP报文中新增一个 Option, 来承载 peer客 户端的标识信息。 该 Option格式可以包括 Code、 Len、 Value等字段。 其中, Code 和 Len均为 1字节长度, Code标识该选项的类型值; Len标识该 Option的长度, 即 包括了 Code、 Len以及 Value字段的该 Option的总的长度; Value标识该 Option所 携带的信息, 即 ASID, PID等标识信息。 在本发明的一个实施例中, 该 Option的 格式可以是如图 20所示。 [126] For example, for DHCPv4, an Option can be added to a DHCP message to carry the identity information of the peer client. The Option format can include fields such as Code, Len, and Value. Code and Len are both 1 byte length, Code identifies the type value of the option; Len identifies the length of the Option, that is, the total length of the Option including Code, Len, and Value fields; Value identifies the Option to carry Information, ie ASID, PID and other identification information. In an embodiment of the present invention, the format of the Option may be as shown in FIG.
[127] 在这种格式中, 将 Value值划分为 4字节的单位, 分别存储 ASID、 PID、 peer客 户端与接入服务器间的带宽值、 COST值、 以及 peer客户端所属 ISP ID等 peer客户 端的标识信息, 本发明的实施例对具体的存储顺序不做限制。 由于 ASID、 PID可 以釆用 IP地址的格式, peer客户端与接入服务器间的带宽值或 COST值也可釆用 I P地址的 4字节格式进行存储, 并且, 4字节长度可以满足最大值的要求。 [127] In this format, the Value value is divided into 4-byte units, which store the ASID, PID, bandwidth value between the peer client and the access server, COST value, and peer of the peer client's ISP ID. The identification information of the client, the embodiment of the present invention does not limit the specific storage order. Since the ASID and PID can use the format of the IP address, the bandwidth value or COST value between the peer client and the access server can also be stored in the 4-byte format of the IP address, and the 4-byte length can satisfy the maximum value. Requirements.
[128] 当然, 在实际情况中, peer客户端的标识信息并不一定都能统一表示为 4字节的 格式, 此吋, 该 Option可以釆用如图 21所示的格式。 其中, Value字段承载多个 子选项, 每个子选项分别存储不同的标识信息, 每个子选项对应的 Code值可以 预先定义或协商。 在这种情况中, 子选项可以是如图 22所示的格式。 [128] Of course, in the actual situation, the identification information of the peer client may not be uniformly expressed in a 4-byte format. Therefore, the Option may use the format shown in FIG. 21. The Value field carries multiple sub-options, and each sub-option stores different identification information, and the code value corresponding to each sub-option can be Pre-defined or negotiated. In this case, the sub-option may be in the format as shown in FIG.
[129] 当然, 复用 DHCP报文中原有的 Option, 也可以实现本发明的实施例。 如, 复 用 DHCP报文中原有的 Vendor Specific Information Option (厂商特定信息选项) 。 其格式与上面介绍的图 21和图 22的情况基本类似, 此处不再赞述。 [129] Of course, the embodiment of the present invention can also be implemented by multiplexing the original Option in the DHCP message. For example, the original Vendor Specific Information Option in the DHCP message is reused. The format is basically similar to the case of Fig. 21 and Fig. 22 described above, and will not be described here.
[130] 而对于 DHCPv6来说, 同样也可以在 DHCP报文中新增一个 Option来承载 peer客 户端的标识信息。 该选项包括 opt-code、 option-len以及 option-data等字段。 其中 , opt-code字段标识该选项的类型值, option-len标识了包括 opt-code、 option-len 以及 option-data字段的该选项的长度, option-data标识该选项所携带的信息, 即 A SID , PID等标识信息。 在本发明的一个实施例中, 该 Option的格式可以是如图 2 3所示。 [130] For DHCPv6, an Option can also be added to the DHCP message to carry the identity information of the peer client. This option includes fields such as opt-code, option-len, and option-data. The opt-code field identifies the type value of the option, the option-len identifies the length of the option including the opt-code, option-len, and option-data fields, and the option-data identifies the information carried by the option, that is, A. SID, PID and other identification information. In an embodiment of the present invention, the format of the Option may be as shown in FIG.
[131] 在这种格式中, 将 option-data值划分为 16字节的单位, 分别存储 ASID、 PID、 p eer客户端与接入服务器间的带宽值、 COST值、 以及 peer客户端所属 ISP ID等 peer 客户端标识信息, 本发明的实施例对具体的存储顺序不做限制。 由于 ASID、 PID 等信息的格式一般小于 16字节长度, 为保持一致性, 因此釆用 16字节格式; 而 pe er与接入服务器间的带宽值或 COST值也可釆用 IP地址的 16字节格式进行存储, 因此 16字节长度完全可以满足最大值要求。 [131] In this format, the option-data value is divided into 16-byte units, which store the ASID, PID, bandwidth value between the client and the access server, the COST value, and the ISP to which the peer client belongs. Peer client identification information such as ID, and embodiments of the present invention do not limit the specific storage order. Since the format of information such as ASID and PID is generally less than 16 bytes in length, in order to maintain consistency, the 16-byte format is used; and the bandwidth value or COST value between pe e r and the access server can also use the IP address. The 16-byte format is stored, so the length of 16 bytes can fully meet the maximum requirement.
[132] 当然, 与 DHCPV4的情况相类似, peer客户端的标识信息并不一定能统一表示 为 16字节格式, 此吋, option-data仍然可以釆用不定长格式进行存储。 如图 24所 示。 其中, option-data字段承载多个子选项, 每个子选项分别存储不同的标识信 息, 每个子选项对应的 opt-code值可以预先定义或协商。 在这种情况中, 子选项 可以是如图 25所示的格式。  [132] Of course, similar to the case of DHCPV4, the identification information of the peer client may not be uniformly expressed in a 16-byte format. Therefore, option-data can still be stored in an indefinite format. As shown in Figure 24. The option-data field carries multiple sub-options, and each sub-option stores different identification information, and the opt-code value corresponding to each sub-option can be predefined or negotiated. In this case, the suboption can be in the format shown in Fig. 25.
[133] 在 DHCPv6中, 也可以复用已有的 Option, 例如复用 Vendor Specific Information Option, 如图 26所示。 此吋, peer客户端的各种标识信息由 option-data字段承载 , enterprise-number (企业号) 字段可以填写特定的默认值, 可根据具体实现确 定。 同样, l -n字节的 option-data字段可以用多个子选项表示, 每个子选项对应 的 opt-code值可以预先定义或协商。 具体子选项的格式与上面图 25介绍的情况类 似, 此处不再赞述。  [133] In DHCPv6, you can also reuse existing options, such as the Vendor Specific Information Option, as shown in Figure 26. In this case, the various identification information of the peer client is carried by the option-data field, and the enterprise-number field can be filled in with a specific default value, which can be determined according to the specific implementation. Similarly, the l-n byte option-data field can be represented by multiple sub-options, and the opt-code value corresponding to each sub-option can be predefined or negotiated. The format of the specific sub-options is similar to the situation described in Figure 25 above, and is not mentioned here.
[134] 本发明的又一实施例, 提供了又一种获取 peer客户端标识信息的系统, 如图 27 所示, 该系统包括 peer客户端和宽带远程接入服务器, 其中: [134] In another embodiment of the present invention, another system for obtaining peer client identification information is provided, as shown in FIG. 27 As shown, the system includes a peer client and a broadband remote access server, where:
[135] peer客户端, 用于与宽带远程接入服务器进行通信, 并通过宽带远程接入服务 器发送的 PPPoE报文获取 peer客户端的标识信息; [135] The peer client is configured to communicate with the broadband remote access server, and obtain the identification information of the peer client by using the PPPoE packet sent by the broadband remote access server;
[136] 宽带远程接入服务器, 用于与 peer客户端进行通信, 并在发送给 peer客户端的 P[136] Broadband remote access server, used to communicate with the peer client and sent to the peer client.
PPoE报文中添加 peer客户端的标识信息。 Add the identification information of the peer client to the PPoE packet.
[137] 本领域的技术人员可知, PPPoE报文封装在以太网帧格式中, PPPoE的有效载 荷部分格式可以如图 28所示。 其中, VER字段为 4字节, TYPE字段为 4字节, CO[137] It can be known to those skilled in the art that PPPoE packets are encapsulated in an Ethernet frame format, and the payload portion of PPPoE can be formatted as shown in FIG. Where VER field is 4 bytes, TYPE field is 4 bytes, CO
DE字段为 8字节, SESSION_ID字段为 16字节, LENGTH字段为 16字节。 CODE 能够标识不同的报文, 例如: 在 PPPoE The DE field is 8 bytes, the SESSION_ID field is 16 bytes, and the LENGTH field is 16 bytes. CODE can identify different messages, for example: in PPPoE
Discovery阶段, PADI报文为 0x09, PADO报文为 0x07, PADR报文为 0x19, PAD S报文为 0x65; 而在 PPPoE Session阶段, CODE设置为 0x00。 SESSION_ID则标识 不同的会话, 对一个给定的会话来说是一个固定值。 而 LENGTH标识了 PPPoE的 PAYLOAD长度 (不包括以太网头部和 PPPoE头部的长度) 。  In the Discovery phase, the PADI message is 0x09, the PADO message is 0x07, the PADR message is 0x19, and the PAD S message is 0x65. In the PPPoE Session phase, the CODE is set to 0x00. SESSION_ID identifies a different session and is a fixed value for a given session. LENGTH identifies the PAYLOAD length of PPPoE (excluding the length of the Ethernet header and PPPoE header).
[138] 其中, PPPoE报文的 PAYLOAD部分包含 0个或多个 TAG (标签) 。 因此, 在本 发明的实施例中, 宽带远程接入服务器在 PPPoE报文中添加 peer客户端的标识信 息, 可以是在 PPPoE报文中新增一个 TAG, 也可以是复用原有的 TAG。  [138] Among them, the PAYLOAD part of the PPPoE message contains 0 or more TAGs. Therefore, in the embodiment of the present invention, the broadband remote access server adds the identity information of the peer client to the PPPoE packet, and may add a TAG to the PPPoE packet or multiplex the original TAG.
[139] 复用原有的 TAG, 可以如图 29所示。 该 TAG可以包括 TAG_TYPE、 TAG_LEN GTH、 以及 TAG—VALUE等字段。 其中, TAG—TYPE标识该 TAG的类型值; TA G—LENGTH  [139] Reuse the original TAG as shown in Figure 29. The TAG can include fields such as TAG_TYPE, TAG_LEN GTH, and TAG-VALUE. Where TAG_TYPE identifies the type value of the TAG; TA G-LENGTH
标识该 TAG的长度, 而在 TAG_VALUE, 则可以存储 ASID、 PID、 peer客户端与 接入服务器间的带宽值或 COST值等 peer客户端标识信息, 本发明的实施例对具 体的存储顺序不做限制。 较为常见的、 可复用的 TAG如: Vendor-Specific TAG ( 厂商特定信息标签) 、 Relay-Session-Id TAG (中继连接标签) 等。  The length of the TAG is identified, and in the TAG_VALUE, the peer ID information such as the ASID, the PID, the bandwidth value or the COST value between the peer client and the access server may be stored, and the embodiment of the present invention does not perform the specific storage order. limit. The more common, reusable TAGs are: Vendor-Specific TAG, Relay-Session-Id TAG, etc.
[140] 新增一个 TAG来承载 peer客户端标识信息的方式与上述方式类似, 此处不再赞 述。 [140] The method of adding a TAG to carry the peer client identification information is similar to the above method, and is not mentioned here.
[141] 通过以上的实施方式的描述, 本领域的普通技术人员可以清楚地了解到本发明 实施例可借助软件加必需的通用硬件平台的方式来实现, 当然也可以通过硬件 来实现。 基于这样的理解, 本发明实施例的技术方案可以以软件产品的形式体 现出来, 该计算机软件产品可以存储在存储介质中, 如 ROM/RAM、 磁碟、 光盘 等, 包括若干指令用以使得一台计算机设备、 或者服务器、 或者其他网络设备 执行本发明各个实施例或者实施例的某些部分所述的方法。 Through the description of the above embodiments, those skilled in the art can clearly understand that the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on the understanding, the technical solution of the embodiment of the present invention may be in the form of a software product. The computer software product can be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., including instructions for causing a computer device, or server, or other network device to perform various embodiments of the present invention or The method described in certain sections of the examples.
以上仅为本发明的较佳实施例, 并非用于限定本发明的保护范围。 凡在本发明 的精神和原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明 的保护范围之内。  The above are only the preferred embodiments of the present invention and are not intended to limit the scope of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

Claims

权利要求书 Claim
[Claim 1] 一种获取对等机客户端标识信息的方法, 其特征在于, 包括: 对等机客户端接收报文, 所述报文携带有所述对等机客户端的标 识信息;  [Claim 1] A method for obtaining the identity information of the peer client, the method comprising: receiving, by the peer client, the packet, where the packet carries the identification information of the peer client;
解析所述报文, 获取所述报文中携带的所述对等机客户端的标识 Parsing the packet, and obtaining the identifier of the peer client carried in the packet
Ι π Λ∑!、。 Ι π Λ∑! ,.
[Claim 2] 如权利要求 1所述的方法, 其特征在于, 所述对等机客户端的标识 信息包括以下信息中的至少一个: 所述对等机客户端所属的自治 系统标识, 所述对等机客户端所属的对等机集合标识, 以及所述 对等机客户端所属的因特网服务提供商标识。  [Claim 2] The method according to claim 1, wherein the identification information of the peer client includes at least one of the following information: an autonomous system identifier to which the peer client belongs, the pair The peer set identifier to which the peer client belongs, and the Internet service provider ID to which the peer client belongs.
[Claim 3] 如权利要求 2所述的方法, 其特征在于, 所述对等机客户端的标识 信息还包括以下信息中的至少一个:  [Claim 3] The method according to claim 2, wherein the identification information of the peer client further includes at least one of the following information:
所述对等机客户端与接入设备间的带宽, 所述对等机客户端与接 入设备间的代价 COST。  The bandwidth between the peer client and the access device, and the cost COST between the peer client and the access device.
[Claim 4] 如权利要求 2或 3所述的方法, 其特征在于, 所述报文为动态主机 配置协议 DHCP报文, 或者 X承载点到点协议 PPPoX报文; 当所述报文为 DHCP报文吋, 所述 DHCP报文为: DHCP OFFER报 文, 或 DHCP ACK报文, 或 DHCP ADVERTISE报文, 或 DHCP REPLY报文; [Claim 4] The method according to claim 2 or 3, wherein the message is a dynamic host configuration protocol DHCP message, or X carries a point-to-point protocol PPPoX message; when the message is DHCP The DHCP message is: a DHCP OFFER message, or a DHCP ACK message, or a DHCP ADVERTISE message, or a DHCP REPLY message;
当所述报文为 PPPoX报文中的以太网承载点到点协议 PPPoE报文吋 ' 所述 PPPoE报文为: PPPoE激活发现提供 PADO报文' 或 PPPoE 激活发现会话确认 PADS报文, 或数据链路控制协议 LCP报文, 或 认证报文, 或网络控制协议 NCP报文。  When the packet is an Ethernet bearer point-to-point protocol PPPoE packet in the PPPoX packet, the PPPoE packet is: PPPoE activation discovery provides PADO packet or PPPoE activation discovery session confirmation PADS packet, or data Link control protocol LCP message, or authentication message, or network control protocol NCP packet.
[Claim 5] 如权利要求 4所述的方法, 其特征在于, 当所述报文为 DHCP报文 吋, 所述对等机客户端的标识信息承载在所述 DHCP报文的新增选 项, 或者承载在所述 DHCP报文的原有选项; 当所述报文为 PPPoX 报文吋, 所述对等机客户端的标识信息承载在所述 PPPoX报文的 新增 TAG, 或者承载在所述 PPPoX报文的原有 TAG。 如权利要求 1或 2或 3所述的方法, 其特征在于, 还包括: 当所述对等机客户端启动点到点 P2P应用吋, 将所述对等机客户端 的标识信息提供给所述 P2P应用服务器。 [Claim 5] The method according to claim 4, wherein, when the packet is a DHCP packet, the identifier information of the peer client is carried in a new option of the DHCP packet, or The original option of the DHCP message is carried; when the message is a PPPoX message, the identity information of the peer client is carried in the newly added TAG of the PPPoX message, or is carried in the PPPoX The original TAG of the message. The method of claim 1 or 2 or 3, further comprising: providing the peer-to-peer client identification information to the peer when the peer client initiates a point-to-point P2P application P2P application server.
一种对等机客户端, 其特征在于, 包括: A peer-to-peer client, comprising:
第一接收模块, 用于接收报文, 所述报文携带有所述对等机客户 端的标识信息; a first receiving module, configured to receive a packet, where the packet carries identifier information of the peer client;
解析模块, 用于解析所述第一接收模块接收到的所述报文, 获取 所述报文中携带的所述对等机客户端的标识信息。 The parsing module is configured to parse the packet received by the first receiving module, and obtain the identifier information of the peer client carried in the packet.
如权 7所述的对等机客户端, 其特征在于, 所述对等机客户端还包 括: The peer client according to claim 7, wherein the peer client further includes:
第一发送模块, 用于将所述解析模块获取到的所述对等机客户端 的标识信息发送给点到点 P2P应用服务器。 The first sending module is configured to send the identifier information of the peer client acquired by the parsing module to the point-to-point P2P application server.
一种接入设备, 其特征在于, 包括: An access device, comprising:
第一信息添加模块, 用于在第一动态主机配置协议 DHCP报文中添 加对等机客户端的标识信息, 所述第一 DHCP报文来自所述对等机 客户端; a first information adding module, configured to add, to the first dynamic host configuration protocol, the DHCP message, the identifier information of the peer client, where the first DHCP message is from the peer client;
第二发送模块, 用于将经过所述第一信息添加模块处理的所述第 一 DHCP报文提供给 DHCP服务器; a second sending module, configured to provide the first DHCP message processed by the first information adding module to a DHCP server;
第三发送模块, 用于将来自 DHCP服务器的响应提供给所述对等机 客户端, 所述响应携带所述对等机客户端的标识信息。 And a third sending module, configured to provide a response from the DHCP server to the peer client, where the response carries the identifier information of the peer client.
如权利要求 9所述的接入设备, 其特征在于, 所述第二发送模块包 括: The access device according to claim 9, wherein the second sending module comprises:
转发单元, 用于将经过所述第一信息添加模块处理的所述第一 DH CP报文直接转发给所述 DHCP服务器; a forwarding unit, configured to forward the first DH CP packet processed by the first information adding module to the DHCP server directly;
所述第三发送模块包括: The third sending module includes:
回应单元, 用于将来自所述 DHCP服务器的第二 DHCP报文发送给 所述对等机客户端, 其中, 所述第二 DHCP报文是所述 DHCP服务 器对所述第一 DHCP报文的响应, 所述第二 DHCP报文携带所述对 等机客户端的标识信息。 a response unit, configured to send a second DHCP message from the DHCP server to the peer client, where the second DHCP message is the DHCP server that is configured by the DHCP server In response, the second DHCP message carries the pair The identification information of the client.
[Claim 11] 如权利要求 9所述的接入设备, 其特征在于, 所述第二发送模块包 括: [Claim 11] The access device according to claim 9, wherein the second sending module comprises:
封装转发单元, 用于将经过所述第一信息添加模块处理的所述第 一 DHCP报文封装成第三 DHCP报文, 将所述第三 DHCP报文发送 给所述 DHCP服务器;  a packet forwarding unit, configured to encapsulate the first DHCP message processed by the first information adding module into a third DHCP message, and send the third DHCP message to the DHCP server;
所述第三发送模块包括:  The third sending module includes:
封装回应单元, 用于将来自所述 DHCP服务器的第四 DHCP报文封 装成第五 DHCP报文, 将所述第五 DHCP报文发送给所述对等机客 户端; 其中, 所述第四 DHCP报文是所述 DHCP服务器对所述第三 DHCP报文的响应, 所述第四 DHCP报文携带有对等机客户端的标 识信息。  The encapsulating response unit is configured to encapsulate the fourth DHCP message from the DHCP server into a fifth DHCP message, and send the fifth DHCP message to the peer client; The DHCP message is the response of the DHCP server to the third DHCP message, and the fourth DHCP message carries the identity information of the peer client.
[Claim 12] 一种宽带远程接入服务器, 其特征在于, 包括:  [Claim 12] A broadband remote access server, comprising:
第二接收模块, 用于接收来自对等机客户端的第一 X承载点到点协 议 PPPoX报文;  a second receiving module, configured to receive a first X bearer point-to-point protocol PPPoX message from the peer client;
第三信息添加模块, 用于在所述第二 PPPoX报文中添加所述对等 机客户端的标识信息, 其中, 所述第二 PPPoX报文是所述宽带远 程接入服务器对所述第一 PPPoX报文的响应; 第五发送模块, 用于将携带所述对等机客户端的标识信息的所述 第二 PPPoX报文发送给所述对等机客户端。  a third information adding module, configured to add the identifier information of the peer client in the second PPPoX packet, where the second PPPoX packet is the broadband remote access server to the first The second sending module is configured to send the second PPPoX packet carrying the identifier information of the peer client to the peer client.
[Claim 13] 一种获取对等机客户端标识信息的系统, 其特征在于, 包括对等 机客户端、 接入设备以及 DHCP服务器, 其中: [Claim 13] A system for obtaining peer-to-peer client identification information, comprising: a peer client, an access device, and a DHCP server, wherein:
所述对等机客户端, 用于通过所述接入设备与所述动态主机配置 协议 DHCP服务器进行通信, 并通过所述接入设备中继的 DHCP报 文获取所述对等机客户端的标识信息;  The peer client is configured to communicate with the dynamic host configuration protocol DHCP server by using the access device, and obtain the identifier of the peer client by using the DHCP message relayed by the access device. Information
所述接入设备, 用于为所述对等机客户端与所述 DHCP服务器的通 信提供中继, 并在 DHCP报文中添加所述对等机客户端的标识信息 [Claim 14] 一种获取对等机客户端标识信息的系统, 其特征在于, 包括对等 机客户端和宽带远程接入服务器, 其中, The access device is configured to provide a relay for the communication between the peer client and the DHCP server, and add the identifier information of the peer client in the DHCP message. [Claim 14] A system for obtaining peer-to-peer client identification information, comprising: a peer-to-peer client and a broadband remote access server, wherein
所述对等机客户端, 用于与所述宽带远程接入服务器进行通信, 并通过所述宽带远程接入服务器发送的 PPPoX报文获取所述对等 机客户端的标识信息;  The peer client is configured to communicate with the broadband remote access server, and obtain the identifier information of the peer client by using the PPPoX packet sent by the broadband remote access server;
所述宽带远程接入服务器, 用于与所述对等机客户端进行通信, 并在发送给所述对等机客户端的 PPPoX报文中添加所述对等机客 户端的标识信息。  The broadband remote access server is configured to communicate with the peer client, and add the identifier information of the peer client to the PPPoX packet sent to the peer client.
PCT/CN2009/075841 2009-01-17 2009-12-22 Method and system for obtaining identification information of peer client, peer client and access device WO2010081369A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN200910105098 2009-01-17
CN200910105098.6 2009-01-17
CN200910127874.2 2009-04-10
CN200910127874A CN101783764A (en) 2009-01-17 2009-04-10 Method and system for acquiring identification information of peer-to-peer client, peer-to-peer client and access equipment

Publications (1)

Publication Number Publication Date
WO2010081369A1 true WO2010081369A1 (en) 2010-07-22

Family

ID=42339433

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2009/075841 WO2010081369A1 (en) 2009-01-17 2009-12-22 Method and system for obtaining identification information of peer client, peer client and access device

Country Status (1)

Country Link
WO (1) WO2010081369A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1595896A (en) * 2003-09-12 2005-03-16 华为技术有限公司 Method for broadband access server to acquire user location information
CN101002434A (en) * 2004-08-10 2007-07-18 皇家飞利浦电子股份有限公司 Method and apparatus to support P2P communication
CN101001253A (en) * 2006-11-13 2007-07-18 华为技术有限公司 Method and system for sending DHCP message and obtaining configuration information by PPP line

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1595896A (en) * 2003-09-12 2005-03-16 华为技术有限公司 Method for broadband access server to acquire user location information
CN101002434A (en) * 2004-08-10 2007-07-18 皇家飞利浦电子股份有限公司 Method and apparatus to support P2P communication
CN101001253A (en) * 2006-11-13 2007-07-18 华为技术有限公司 Method and system for sending DHCP message and obtaining configuration information by PPP line

Similar Documents

Publication Publication Date Title
US10122574B2 (en) Methods and apparatus for a common control protocol for wired and wireless nodes
Mamakos et al. A method for transmitting PPP over Ethernet (PPPoE)
US7733859B2 (en) Apparatus and method for packet forwarding in layer 2 network
JP4105722B2 (en) Communication device
JP4652944B2 (en) Network service selection, authentication and stateless autoconfiguration in IPv6 access networks
KR101620479B1 (en) A method and a gateway for providing multiple internet access
CN100561969C (en) A kind of broad band access method based on PPPoE
EP2525531B1 (en) Method and network access device for enabling data forwarding between different physical media
US20070195804A1 (en) Ppp gateway apparatus for connecting ppp clients to l2sw
US7228358B1 (en) Methods, apparatus and data structures for imposing a policy or policies on the selection of a line by a number of terminals in a network
JP2005521329A (en) Information routing device having autoconfiguration configuration
WO2011144152A1 (en) Method for providing information, home gateway and home network system
WO2013067884A1 (en) Authorization information transfer method, relay device and server
JP3757863B2 (en) Access network equipment
JP4817797B2 (en) PPPoE bridge device and PPPoE session disconnection method
CN101282229A (en) Method for implementing broadcasting service by PPPoE
CN113542395B (en) Message processing method and message processing system
WO2010081369A1 (en) Method and system for obtaining identification information of peer client, peer client and access device
CN106911817B (en) Method and device for notifying change of MAC address of PPPoE server
CN101079808B (en) A broadband access method
Mamakos et al. RFC2516: A Method for Transmitting PPP Over Ethernet (PPPoE)
WO2009018774A1 (en) A session connection method,apparatus and system in communication system
CN102577299A (en) Simplified protocol for carrying authentication for network access
CN101030877B (en) Method for realizing packet broadcasting service by point-to-point protocol
EP1962453A1 (en) Method for enabling network node redundancy in an access network, messages and nodes

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

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

Country of ref document: EP

Kind code of ref document: A1