WO2008141554A1 - A message transporting method, system and relay device - Google Patents

A message transporting method, system and relay device Download PDF

Info

Publication number
WO2008141554A1
WO2008141554A1 PCT/CN2008/070720 CN2008070720W WO2008141554A1 WO 2008141554 A1 WO2008141554 A1 WO 2008141554A1 CN 2008070720 W CN2008070720 W CN 2008070720W WO 2008141554 A1 WO2008141554 A1 WO 2008141554A1
Authority
WO
WIPO (PCT)
Prior art keywords
user
information
substitute
identification information
relay device
Prior art date
Application number
PCT/CN2008/070720
Other languages
French (fr)
Chinese (zh)
Inventor
Yu Zheng
Zhiqiang Li
Shouwen Liu
Original Assignee
Huawei Technologies Co., Ltd.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co., Ltd. filed Critical Huawei Technologies Co., Ltd.
Priority to EP08156326A priority Critical patent/EP1993268A3/en
Priority to US12/122,459 priority patent/US20080285557A1/en
Publication of WO2008141554A1 publication Critical patent/WO2008141554A1/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/50Network services
    • H04L67/56Provisioning of proxy services

Definitions

  • relay device Message transmission method and system, relay device
  • the present invention relates to the field of communications, and in particular, to a message transmission method and system, and a relay device.
  • some communication systems use the Proxy (proxy) and / or Snooping (monitoring) functions on the Relay (relay) devices (including the DHCP relay devices on L2 and L3).
  • the DHCP Dynamic Host Configuration Protocol
  • the relay device can obtain the information about the client, including the original user identification information that can identify the client, and send the request packet to the server.
  • the server carries the DHCP message in the response.
  • the original user identification information when receiving the DHCP message that the server answers, the relay device can find the user related information of the corresponding client according to the original user identification information carried in the server, so that the client can be determined according to the related information of the user. Location, and the data it has.
  • the DHCP protocol stipulates that the hardware type and hardware address can be used to identify the client.
  • the hardware type and hardware address are MAC addresses.
  • the chaddr field can be used to fill in the MAC address.
  • the chaddr field can be returned intact in the downlink DHCP packet.
  • the MAC address can also be filled in the Client-identifier field, and the Client-identifier field is not returned in the downlink DHCP message.
  • the user may also use the Transaction ID (XID) field in the DHCP message to identify the user.
  • XID Transaction ID
  • the XID field is randomly generated by each client and is still intact in the response message replied by the server. Return to the ground.
  • the inventors have found through research that: when there are multiple clients, the MAC address is likely to conflict; the XID generated by multiple clients is also likely to conflict; in addition, some terminals are considered.
  • the device After receiving the DHCP message from the server, the device cannot find the corresponding client based on the MAC address information and/or XID field carried in the server. Therefore, it cannot be known which client the DHCP message sent by the server should be sent to. The client cannot be obtained. The data that is owned.
  • Embodiments of the present invention provide a message transmission method and system, and a relay device, which are capable of being identified
  • the corresponding client can be found according to the received downlink packet.
  • An embodiment of the present invention provides a message transmission method, including:
  • the substitute user identification information can distinguish the user from other users;
  • An embodiment of the present invention further provides a relay device, where the relay device includes a configuration unit and a positioning unit:
  • the configuration unit is configured to obtain related information of the user according to the received uplink message carrying the substitute user identification information of the user and the location information of the received uplink message, and establish the substitute user identification information and the related information of the user. Corresponding relationship, and forwarding the uplink packet, where the user's substitute user identifier information can distinguish the user from other users;
  • a positioning unit configured to find user related information corresponding to the substitute user identification information by using the corresponding relationship in the configuration unit according to the substitute user identification information carried in the received downlink message, according to the user related information
  • the information is sent in the downlink.
  • An embodiment of the present invention further provides another relay device, including:
  • a transmission unit configured to carry the original usage of the user according to the uplink packet received by the relay device
  • the user identification information is sent with an uplink message carrying the substitute user identification information, where the substitute user identification information can distinguish the user from other users;
  • the processing unit is configured to send, according to the substitute user identification information carried in the downlink packet received by the relay device, a downlink “3” message carrying the original user identifier information.
  • An embodiment of the present invention further provides a communication system, including a first relay device, a second relay device, and a server;
  • the first relay device receives an uplink packet carrying the original user identifier information of the user, determines the substitute user identifier information of the user, and sends an uplink message to the second relay device, where the user
  • the user identifier can be distinguished from the other user by the user identifier information, and the uplink packet sent by the first relay device carries the substitute user identifier information of the user;
  • the second relay device receives the uplink packet from the first relay device, and obtains related information of the user according to the uplink packet received by the second relay device and the location information of the received uplink packet. Establishing a correspondence between the user-related information and the substitute user identifier information of the corresponding user, and sending an uplink packet carrying the substitute user identifier information to the service;
  • the second relay device receives the downlink packet from the server, and finds corresponding user-related information according to the substitute user identifier information in the downlink packet, and sends the corresponding information to the first relay device according to the user-related information. Send a downlink packet.
  • the embodiment of the present invention further provides another communication system, including a relay device and a server.
  • the relay device obtains related information of the user according to the received uplink message carrying the original user identification information of the user, and establishes a Determining a correspondence between the user-related information and the substitute user identifier information of the corresponding user, and sending the uplink packet to the server, where the substitute user identifier information of the user can distinguish the user from other users,
  • the sent uplink " ⁇ text carries the substitute user identification information of the user;
  • the relay device receives, by the server, an uplink packet from the relay device, and returning the substitute user identifier information in the downlink packet;
  • the relay device receives a downlink message from the server, finds corresponding user-related information according to the substitute user identification information, and sends a downlink message according to the found user-related information.
  • the specific implementation provided by the foregoing embodiment of the present invention can determine different alternative user identification information for different users, and send the substitute user identification information by using an uplink packet; carrying the replacement in the downlink >3 ⁇ 4 text User identification information; according to the substitute user identification information, find related information of the corresponding user. Therefore, in the case that the original user identification information of the client can be identified, the corresponding client can be found according to the received downlink packet.
  • Figure 1 is a flow chart of a first embodiment of the present invention
  • Figure 2 is a structural view of a second embodiment of the present invention.
  • Figure 3 is a structural view of a fourth embodiment of the present invention.
  • Fig. 4 is a structural view showing a fifth embodiment of the present invention.
  • a first embodiment of the present invention provides a packet transmission method, and an implementation process thereof is shown in FIG. 1 , including:
  • Step S101 Determine different alternative user identification information for different users, and send the substitute user identification information by using a standard field in the uplink packet, specifically:
  • the device with the Snooping and/or Proxy function After receiving the request packet sent by the client, the device with the Snooping and/or Proxy function records the original user identification information, such as XID1, carried in the packet, and determines an alternate user for the user according to its own needs. Identification information, such as XID11, which distinguishes the user from other users.
  • Step S102 Obtain relevant information of the user according to the uplink packet and the location information of the uplink packet, and establish a correspondence between the user-related information and the substitute user identifier information of the corresponding user, specifically:
  • a device with Snooping and/or Proxy functions according to the uplink packet and receiving the packet.
  • the location information obtains information about the user, such as the hardware type and hardware address used in the DHCP protocol, or user identification information that can be used to identify the user in other protocols, or port information, or VLAN (Virtual LAN, virtual The local area network (LAN), the IP address that the user applies for, and the like, may establish a correspondence between the substitute user identification information and the user-related information of the corresponding user.
  • Step S103 in the downlink packet, carrying the substitute user identifier information, specifically: the field in which the substitute user identifier information (such as the above XID11) is located is the same as the field in which the original user identifier information (such as the above XID1) is located.
  • the server does not need to modify any of the fields, and the XID11 is encapsulated into a response message and returned.
  • Step S104 Find the corresponding user-related information according to the substitute user identifier information carried in the downlink packet, and replace the substitute user identifier information carried in the downlink packet with the original user identifier information that was previously replaced, specifically:
  • the device with the Snooping and/or Proxy function After receiving the downlink response packet, the device with the Snooping and/or Proxy function distinguishes the client corresponding to the substitute user identification information according to the substitute user identification information carried in the packet (such as the above XID11), and finds the record.
  • the data item of the user information replaces the substitute user identification information (such as XID11 above) with the original user identification information (such as XID1 above), that is, the information of the user is determined by the information;
  • a downlink message carrying the original user identification information is transmitted to the user.
  • the embodiment of the present invention is not limited to the XID, and other information that can be used as the user identifier may also be used.
  • Embodiments applicable to the present invention such as hardware types and hardware addresses used in the DHCP protocol, or user identification information that can be used to identify users, or port information, or VLAN (Virtual LAN, Virtual Local Area Network) that can be used in other protocols. Etc., and this information can be used in any combination.
  • the embodiment of the invention is not limited to the alternative method, and the substitute user identifier information may be added to the packet through the reserved standard field in the DHCP packet.
  • the standard field can be returned by the downlink message intact.
  • the downlink message carrying the original user identification information is transmitted to the user according to the location of the user.
  • a second embodiment of the present invention provides a communication system, which is structured as shown in FIG. 2, and includes: a first relay device, a second relay device, and a server.
  • the first relay device includes: a first transmission unit and a first processing unit.
  • the second relay device includes: a positioning unit and a configuration unit.
  • the first relay device determines different substitute user identification information for different users; and transmits the substitute user identification information determined by the first relay device by using an uplink message.
  • the first transmission unit determines different alternate user identification information for different users; and replaces the original user identification information with the substitute user identification information in a field in which the original user identification information carried in the uplink>3 ⁇ 4 text is located,
  • the field in which the user identification information is located can be returned intact through the downlink message.
  • the configuration unit of the second relay device obtains the substitute user identification information according to the uplink packet forwarded by the first relay device, and obtains the user according to the uplink packet and the location information of the received uplink packet.
  • the related information is used to establish a correspondence between the user's substitute user identification information and the user-related information of the corresponding user, and forward the uplink packet to the server.
  • the server obtains the user identifier information of the user, and carries the substitute user identifier information in the downlink message that is fed back.
  • the server does not perform any modification on the substitute user identification information, and directly encapsulates the substitute user identification information into a downlink packet and returns.
  • the locating unit of the second relay device finds the corresponding relationship between the substitute user identification information carried in the downlink packet and the substitute user identifier information configured in the configuration unit and the user related information of the corresponding user.
  • the user-related information corresponding to the user identification information is replaced.
  • the second relay device transmits the downlink packet to the first relay device according to the user-related information, and specifically transmits the downlink packet to the first information according to the location information in the user-related information.
  • the first processing unit of the first relay device replaces the substitute user identifier information carried in the downlink packet with the original user identifier information that was previously replaced.
  • the first relay device has a proxy Proxy function and/or a monitoring Snooping function.
  • the specific processing of each unit is the same as that in the method embodiment, and will not be described in detail here.
  • a third embodiment of the present invention provides another communication system, the structure of which is still as shown in FIG. 2, including: a first relay device, a second relay device, and a server.
  • the first relay device includes: a second transmission unit and a second processing unit; the second relay device includes: a positioning unit and a configuration unit.
  • the first relay device determines different substitute user identification information for different users; and transmits the substitute user identification information determined by the first relay device by using an uplink message.
  • the second transmission unit of the first relay device determines different substitute user identification information for different users; adds the substitute user identification information to a standard field reserved in the uplink packet, and the standard field can The downlink message is returned as it is.
  • the configuration unit of the second relay device obtains the substitute user identification information according to the uplink packet forwarded by the first relay device, and obtains the user according to the uplink packet and the location information of the received uplink packet.
  • the related information is used to establish a correspondence between the user's substitute user identification information and the user-related information of the corresponding user, and forward the uplink packet to the server.
  • the server obtains the user identifier information of the user, and carries the substitute user identifier information in the downlink message that is fed back.
  • the server does not perform any modification on the substitute user identification information, and directly encapsulates the substitute user identification information into a downlink packet and returns.
  • the locating unit of the second relay device finds the corresponding relationship between the substitute user identification information carried in the downlink packet and the substitute user identifier information configured in the configuration unit and the user related information of the corresponding user.
  • the user-related information corresponding to the user identification information is replaced.
  • the second relay device transmits the downlink packet to the first relay device according to the user-related information, and specifically transmits the downlink packet to the first information according to the location information in the user-related information.
  • the second processing unit of the first relay device sends the substitute user identification letter carried in the downlink packet The information is deleted.
  • the first relay device has a proxy Proxy function and/or a monitoring Snooping function.
  • the specific processing of each unit is the same as that in the method embodiment, and will not be described in detail here.
  • the above alternative user identification information may be XID, hardware type and hardware address, port information, and the like.
  • the first relay device may not include the second processing unit, and the substitute user identifier information is still carried in the downlink packet sent to the client.
  • the first relay device and the second relay device are in a cascading situation, and the first relay device located in the lower layer replaces the original user identifier in the packet sent by each client below with a unique one.
  • the value that is, the replacement user ID
  • the second relay device of the upper layer uses the replacement user identifier to identify the user. If multiple lower-level devices are connected to the upper-layer device, such as L2 DHCP Relay 1 and L2 DHCP Relay 2 in Figure 2, a specific mechanism needs to be used on each lower-level device to ensure that the replacement user IDs generated by each lower-level device are different. the same.
  • the fourth embodiment of the present invention provides a third communication system, which is different from the second embodiment and the third embodiment of the present invention in that: the functions of the first relay device and the second relay device are collectively set.
  • the structure of the communication system is as shown in FIG. 3, and the specific processing situation is basically the same as that of the second embodiment of the present invention, and will not be described in detail herein.
  • a fifth embodiment of the present invention provides a relay device.
  • the structure thereof is as shown in FIG. 4, and includes: an identifier determining unit, a transmitting unit, and a positioning unit.
  • the transmission unit includes a first transmission subunit.
  • the relay device still further includes a first processing unit.
  • the relay device still further includes a configuration unit.
  • the identifier determining unit determines different alternative user identification information for different users
  • the transmitting unit transmits the substitute user identification information determined by the identifier determining unit through the uplink packet, and downlinks the downlink packet carrying the substitute user identifier information; the specific processing situation is as follows:
  • the first transmission sub-unit in the field where the original user identification information carried in the uplink packet is located, the original user identification information is replaced by the substitute user identification information, and the field in which the original user identification information is located can be downlinked Returning intact; and transmitting downlink packets carrying alternative user identification information.
  • the configuration unit obtains a phase of the user according to the uplink packet and the location information of receiving the uplink packet.
  • the information is related to the correspondence between the user-related information and the substitute user identification information of the corresponding user, and the uplink packet is forwarded to the server.
  • the locating unit obtains the substitute user identifier information returned by the downlink packet, and finds the user related information corresponding to the substitute user identifier information according to the substitute user identifier information carried in the downlink packet and the configuration information of the configuration unit.
  • the first processing unit is configured to replace the substitute user identification information carried in the downlink packet with the original user identifier information that was previously replaced.
  • the relay device has a proxy Proxy function and/or a monitoring Snooping function.
  • the above alternative user identification information may be XID, hardware type and hardware address, port information, and the like.
  • a sixth embodiment of the present invention provides another relay device, and the structure thereof includes: an identifier determining unit, a transmitting unit, and a positioning unit.
  • the transmission unit includes a second transmission subunit.
  • the relay device still further includes a second processing unit.
  • the relay device still further includes a configuration unit.
  • the identifier determining unit determines different alternative user identification information for different users
  • the transmitting unit transmits the substitute user identification information determined by the identifier determining unit through the uplink packet, and downlinks the downlink packet carrying the substitute user identifier information; the specific processing situation is as follows:
  • a second transmission subunit configured to add the substitute user identification information to a standard field reserved in the uplink >3 ⁇ 4 text, and the standard field can be returned by the downlink message intact; and the downlink transmission carries the substitute user identifier
  • the downside of the information is "3 ⁇ 4 text.
  • the configuration unit obtains the substitute user identification information and user related information corresponding to the substitute user identification information according to the uplink packet forwarded by the first relay device, and establishes the substitute user identification information of the user and the corresponding user. The correspondence between the user-related information and forwarding the uplink packet to the server.
  • the locating unit obtains the substitute user identifier information returned by the downlink packet, and finds the user-related information corresponding to the substitute user identifier information according to the substitute user identifier information carried in the downlink packet and the configuration information of the configuration unit.
  • the second processing unit deletes the substitute user identification information carried in the downlink packet.
  • the relay device has a proxy Proxy function and/or a monitoring Snooping function.
  • the above alternative user identification information may be an XID, a hardware type and a hardware address, port information, and the like.
  • the second processing unit may not be included, and the substitute user identification information is still carried in the downlink information sent to the client.
  • the relay device in the above embodiment may be a DHCP relay agent, or any device that passes between the DHCP client and the server, and both the DHCP uplink packet and the downlink packet pass.
  • the existing standard field in the uplink packet is sent to determine different alternative user identification information for different users, thereby having no impact on the processing of the DHCP server and the client. And performing the modification; and carrying the substitute user identifier information in the downlink packet, and the different user client can be distinguished by the replacement original user identifier, so that the problem that the original user identifier conflicts in each client request packet can be solved.
  • the spirit and scope of the Ming Thus, it is intended that the present invention cover the modifications and variations of the inventions

Abstract

A message transporting method, system and a relay device including: receiving uplink message carrying an initial client identifier information; setting up corresponding relation between client ralated information and a substituted client's identifier information according to the uplink message carrying the initial client's identifier information and transmitting the uplink message carrying the substituted client's identifier information to a server, and the substituted client's identifier information being for distinguishing the client in other clients; receiving downlink message carrying the substituted client's identifier information from the server; finding the client related information corresponding to the substituted client's identifier information according to the corresponding relation, and transporting the downlink message according to the client ralated information. Therefore, corresponding Client can be found according to received downlink message when conflict occurs to the initial client's identifier information for identifying Client.

Description

报文传输方法及系统、 中继设备  Message transmission method and system, relay device
本申请要求于 2007 年 5 月 18 日提交中国专利局、 申请号为 200710107096.1、 发明名称为"标识用户的方法及系统、 中继设备,,的中国专利 申请的优先权, 其全部内容通过引用结合在本申请中。  This application claims priority to Chinese Patent Application No. 200710107096.1, entitled "Methods and Systems for Identifying Users, Relay Devices," filed on May 18, 2007, the entire contents of which are incorporated by reference. In this application.
技术领域 Technical field
本发明涉及通信领域, 尤其涉及报文传输方法及系统、 中继设备。  The present invention relates to the field of communications, and in particular, to a message transmission method and system, and a relay device.
背景技术 Background technique
为了保证 Client (客户端)数据的安全, 一些通信系统在 Relay (中继 ) 设备(包括 L2、 L3上的 DHCP Relay设备)上,利用 Proxy(代理)和/或 Snooping (监控)功能,对 Client(客户端)与 Server(服务器)之间交互的 DHCP( Dynamic Host Configuration Protocol, 动态主机配置协议)报文进行监控。 Relay设备收 到 Client的上行请求 文时, 能够获取到 Client的相关信息, 包括能够标识 Client的原始用户标识信息, 并将所述请求报文发送给 Server; Server在应答 的 DHCP报文中, 携带所述原始用户标识信息; Relay设备收到 Server应答的 DHCP报文时, 根据其中携带的原始用户标识信息, 可以找到对应的 Client的 用户相关信息,从而可以根据所述用户相关信息确定出 Client的位置, 以及其 所拥有的数据。  In order to ensure the security of the client (client) data, some communication systems use the Proxy (proxy) and / or Snooping (monitoring) functions on the Relay (relay) devices (including the DHCP relay devices on L2 and L3). The DHCP (Dynamic Host Configuration Protocol) packets that are exchanged between the client and the server are monitored. When receiving the uplink request message from the client, the relay device can obtain the information about the client, including the original user identification information that can identify the client, and send the request packet to the server. The server carries the DHCP message in the response. The original user identification information; when receiving the DHCP message that the server answers, the relay device can find the user related information of the corresponding client according to the original user identification information carried in the server, so that the client can be determined according to the related information of the user. Location, and the data it has.
目前, DHCP协议中规定, 可以使用硬件类型和硬件地址来标识 Client, 如以太网中, 使用硬件类型和硬件地址是 MAC地址。 在上行 DHCP报文中, 可以使用 chaddr字段来填写 MAC地址, 该 chaddr字段在下行 DHCP报文中 可以原封不动地返回。 另夕卜, 在上行 DHCP报文中, 还可以 Client-identifier 字段来填写 MAC地址, 该 Client-identifier字段在下行 DHCP报文中不返回。  Currently, the DHCP protocol stipulates that the hardware type and hardware address can be used to identify the client. For example, in Ethernet, the hardware type and hardware address are MAC addresses. In the uplink DHCP packet, the chaddr field can be used to fill in the MAC address. The chaddr field can be returned intact in the downlink DHCP packet. In addition, in the uplink DHCP message, the MAC address can also be filled in the Client-identifier field, and the Client-identifier field is not returned in the downlink DHCP message.
在实际应用中, 还可以使用 DHCP报文中的传输标识(Transaction ID, XID )字段来标识用户, 所述 XID字段由每个 Client随机产生, 并在 Server 回复的应答报文中被原封不动地返回。  In the actual application, the user may also use the Transaction ID (XID) field in the DHCP message to identify the user. The XID field is randomly generated by each client and is still intact in the response message replied by the server. Return to the ground.
在实现本发明的过程中, 发明人经过研究发现: 当有多个 Client存在时, MAC地址很有可能发生冲突; 多个 Client产生的 XID也很有可能发生冲突; 另外, 考虑到某些终端生产厂家实现的不规范性以及现实网络环境的复杂性, 多个 Client的 MAC地址或产生的 XID发生冲突的可能性会更大, 因此 Relay 设备收到 Server应答的 DHCP报文后,无法根据其中携带的 MAC地址信息和 /或 XID字段找到对应的 Client, 从而无法得知 Server应答的 DHCP报文该发 送给哪个 Client; 也无法获得该 Client所拥有的数据。 In the process of implementing the present invention, the inventors have found through research that: when there are multiple clients, the MAC address is likely to conflict; the XID generated by multiple clients is also likely to conflict; in addition, some terminals are considered. The non-standardization achieved by the manufacturer and the complexity of the actual network environment, the possibility that the MAC addresses of the multiple clients or the generated XIDs will be more conflicted, so Relay After receiving the DHCP message from the server, the device cannot find the corresponding client based on the MAC address information and/or XID field carried in the server. Therefore, it cannot be known which client the DHCP message sent by the server should be sent to. The client cannot be obtained. The data that is owned.
发明内容 Summary of the invention
本发明的实施例提供一种报文传输方法及系统、 中继设备, 在能够标识 Embodiments of the present invention provide a message transmission method and system, and a relay device, which are capable of being identified
Client的原始用户标识信息发生冲突的情况下, 能够根据接收到的下行报文找 到对应的 Client。 If the original user ID information of the client conflicts, the corresponding client can be found according to the received downlink packet.
本发明的实施例通过如下技术方案实现:  Embodiments of the present invention are implemented by the following technical solutions:
本发明的实施例提供一种报文传输方法, 其包括:  An embodiment of the present invention provides a message transmission method, including:
接收携带有用户的原始用户标识信息的上行报文;  Receiving an uplink message carrying the original user identification information of the user;
根据所述携带有用户的原始用户标识信息的上行报文,建立所述用户的用 户相关信息和替代用户标识信息的对应关系,并向服务器发送携带所述用户的 替代用户标识信息的上行>¾文,所述替代用户标识信息能够将所述用户与其他 用户区分;  And establishing, according to the uplink packet carrying the original user identifier information of the user, a correspondence between the user-related information of the user and the substitute user identifier information, and sending, to the server, an uplink that carries the substitute user identifier information of the user>3⁄4 The substitute user identification information can distinguish the user from other users;
接收来自服务器的下行报文, 所述下行报文中携带所述替代用户标识信 息;  Receiving a downlink packet from the server, where the downlink packet carries the substitute user identifier information;
根据所述对应关系找到所述下行报文中的替代用户标识信息对应的用户 相关信息, 根据所述用户相关信息传输所述下行报文。  Deleting the user-related information corresponding to the substitute user identification information in the downlink packet according to the corresponding relationship, and transmitting the downlink packet according to the user-related information.
本发明的实施例还提供一种中继设备,该中继设备包括配置单元和定位单 元:  An embodiment of the present invention further provides a relay device, where the relay device includes a configuration unit and a positioning unit:
配置单元,用于根据接收到的携带有用户的替代用户标识信息的上行报文 和接收此上行报文的位置信息得到用户的相关信息,建立所述替代用户标识信 息与所述用户相关信息之间的对应关系, 并转发所述上行报文, 其中, 所述用 户的替代用户标识信息能够将所述用户与其它用户区分;  The configuration unit is configured to obtain related information of the user according to the received uplink message carrying the substitute user identification information of the user and the location information of the received uplink message, and establish the substitute user identification information and the related information of the user. Corresponding relationship, and forwarding the uplink packet, where the user's substitute user identifier information can distinguish the user from other users;
定位单元, 用于根据接收到的下行报文中携带的替代用户标识信息,通过 所述配置单元中的所述对应关系找到与所述替代用户标识信息对应的用户相 关信息, 根据所述用户相关信息发送所述下行 文。  a positioning unit, configured to find user related information corresponding to the substitute user identification information by using the corresponding relationship in the configuration unit according to the substitute user identification information carried in the received downlink message, according to the user related information The information is sent in the downlink.
本发明的实施例还提供另一种中继设备, 包括:  An embodiment of the present invention further provides another relay device, including:
传输单元,用于根据所述中继设备接收到的上行报文中携带用户的原始用 户标识信息发送携带有替代用户标识信息的上行 文, 其中, 所述替代用户标 识信息能够将所述用户和其他用户区分; a transmission unit, configured to carry the original usage of the user according to the uplink packet received by the relay device The user identification information is sent with an uplink message carrying the substitute user identification information, where the substitute user identification information can distinguish the user from other users;
处理单元,用于根据所述中继设备接收到的下行报文中携带的替代用户标 识信息发送携带有所述原始用户标识信息的下行"¾文。  The processing unit is configured to send, according to the substitute user identification information carried in the downlink packet received by the relay device, a downlink “3” message carrying the original user identifier information.
本发明的实施例还提供一种通信系统, 包括第一中继设备、第二中继设备 和服务器;  An embodiment of the present invention further provides a communication system, including a first relay device, a second relay device, and a server;
在上行方向:  In the upstream direction:
所述第一中继设备接收携带有用户的原始用户标识信息的上行报文,确定 所述用户的替代用户标识信息, 并向所述第二中继设备发送上行 文, 其中, 所述用户的替代用户标识信息能够将所述用户和其他用户区分,所述第一中继 设备发送的上行报文中携带有所述用户的替代用户标识信息;  The first relay device receives an uplink packet carrying the original user identifier information of the user, determines the substitute user identifier information of the user, and sends an uplink message to the second relay device, where the user The user identifier can be distinguished from the other user by the user identifier information, and the uplink packet sent by the first relay device carries the substitute user identifier information of the user;
所述第二中继设备接收来自所述第一中继设备的上行报文,根据所述第二 中继设备接收的上行报文和接收所述上行报文的位置信息得到用户的相关信 息, 建立所述用户相关信息与对应用户的替代用户标识信息之间的对应关系, 并向所述服务发送携带有所述替代用户标识信息的上行报文;  The second relay device receives the uplink packet from the first relay device, and obtains related information of the user according to the uplink packet received by the second relay device and the location information of the received uplink packet. Establishing a correspondence between the user-related information and the substitute user identifier information of the corresponding user, and sending an uplink packet carrying the substitute user identifier information to the service;
所述服务器接收到携带有所述替代用户标识信息的上行报文,在下行报文 中返回所述替代用户标识信息;  Receiving, by the server, an uplink packet carrying the substitute user identifier information, and returning the substitute user identifier information in the downlink packet;
在下行方向:  In the down direction:
所述第二中继设备接收来自所述服务器的下行报文,根据所述下行报文中 的所述替代用户标识信息找到对应的用户相关信息,根据用户相关信息向所述 第一中继设备发送下行报文。  The second relay device receives the downlink packet from the server, and finds corresponding user-related information according to the substitute user identifier information in the downlink packet, and sends the corresponding information to the first relay device according to the user-related information. Send a downlink packet.
本发明的实施例还提供另一种通信系统, 包括中继设备和服务器; 所述中继设备,根据接收到的携带有用户的原始用户标识信息的上行报文 得到用户的相关信息,建立所述用户相关信息与对应用户的替代用户标识信息 之间的对应关系, 并向所述服务器发送上行报文, 其中, 所述用户的替代用户 标识信息能够将所述用户和其他用户区分,所述发送的上行 "^文中携带有所述 用户的替代用户标识信息;  The embodiment of the present invention further provides another communication system, including a relay device and a server. The relay device obtains related information of the user according to the received uplink message carrying the original user identification information of the user, and establishes a Determining a correspondence between the user-related information and the substitute user identifier information of the corresponding user, and sending the uplink packet to the server, where the substitute user identifier information of the user can distinguish the user from other users, The sent uplink "^ text carries the substitute user identification information of the user;
所述服务器接收到来自所述中继设备的上行报文,在下行报文中返回所述 替代用户标识信息; 所述中继设备接收来自所述服务器的下行报文,根据所述替代用户标识信 息找到对应的用户相关信息, 根据找到的用户相关信息发送下行"¾文。 Receiving, by the server, an uplink packet from the relay device, and returning the substitute user identifier information in the downlink packet; The relay device receives a downlink message from the server, finds corresponding user-related information according to the substitute user identification information, and sends a downlink message according to the found user-related information.
由上述本发明的实施例提供的具体实施方案可以看出,其为不同的用户确 定不同的替代用户标识信息,通过上行报文发送所述替代用户标识信息; 在下 行>¾文中携带所述替代用户标识信息; 根据所述替代用户标识信息,找到对应 用户的相关信息。因此在能够标识 Client的原始用户标识信息发生冲突的情况 下, 能够根据接收到的下行报文, 找到对应的 Client。  It can be seen that the specific implementation provided by the foregoing embodiment of the present invention can determine different alternative user identification information for different users, and send the substitute user identification information by using an uplink packet; carrying the replacement in the downlink >3⁄4 text User identification information; according to the substitute user identification information, find related information of the corresponding user. Therefore, in the case that the original user identification information of the client can be identified, the corresponding client can be found according to the received downlink packet.
附图说明 DRAWINGS
图 1为本发明第一实施例的流程图;  Figure 1 is a flow chart of a first embodiment of the present invention;
图 2为本发明第二实施例的结构图;  Figure 2 is a structural view of a second embodiment of the present invention;
图 3为本发明第四实施例的结构图;  Figure 3 is a structural view of a fourth embodiment of the present invention;
图 4为本发明第五实施例的结构图。  Fig. 4 is a structural view showing a fifth embodiment of the present invention.
具体实施方式 detailed description
本发明第一实施例提供了一种报文传输方法, 其实施流程如图 1所示, 包 括:  A first embodiment of the present invention provides a packet transmission method, and an implementation process thereof is shown in FIG. 1 , including:
步骤 S101 , 为不同的用户确定不同的替代用户标识信息, 将所述替代用 户标识信息, 通过上行报文中的标准字段传送出去, 具体为:  Step S101: Determine different alternative user identification information for different users, and send the substitute user identification information by using a standard field in the uplink packet, specifically:
具有 Snooping和 /或 Proxy功能的设备, 收到 Client发送的请求报文后, 将报文中携带的原始用户标识信息, 如 XID1 , 记录下来, 根据自己的需要, 为所述用户确定一个替代用户标识信息, 如 XID11 , 该 XID11可以将所述用 户与其它用户区别出来。  After receiving the request packet sent by the client, the device with the Snooping and/or Proxy function records the original user identification information, such as XID1, carried in the packet, and determines an alternate user for the user according to its own needs. Identification information, such as XID11, which distinguishes the user from other users.
当为用户确定替代用户标识信息后,在上行 文中携带的原始用户标识信 息所在的字段, 用所述替代用户标识信息替换所述原始用户标识信息; 所述原 始用户标识信息所在的字段能够在下行报文中原封不动地返回。 步骤 S102, 根据上行报文以及接收此上行报文的位置信息, 得到用户的 相关信息; 建立用户相关信息与对应用户的替代用户标识信息之间的对应关 系, 具体为:  After the user identifier information is determined for the user, the field in which the original user identifier information is carried in the uplink text is replaced by the substitute user identifier information; the field where the original user identifier information is located can be downlinked. The message is returned as it is. Step S102: Obtain relevant information of the user according to the uplink packet and the location information of the uplink packet, and establish a correspondence between the user-related information and the substitute user identifier information of the corresponding user, specifically:
具有 Snooping和 /或 Proxy功能的设备, 根据上行报文以及接收此报文的 位置信息得到此用户的相关信息, 如 DHCP协议中使用的硬件类型和硬件地 址, 或者是其它协议中可以使用的能够标识用户的用户标识信息等, 或者, 端 口信息, 或者 VLAN ( Virtual LAN, 虚拟局域网)、 用户申请到的 IP地址等, 可以建立替代用户标识信息与对应用户的用户相关信息之间的对应关系。 A device with Snooping and/or Proxy functions, according to the uplink packet and receiving the packet. The location information obtains information about the user, such as the hardware type and hardware address used in the DHCP protocol, or user identification information that can be used to identify the user in other protocols, or port information, or VLAN (Virtual LAN, virtual The local area network (LAN), the IP address that the user applies for, and the like, may establish a correspondence between the substitute user identification information and the user-related information of the corresponding user.
步骤 S103 , 在下行报文中, 携带所述替代用户标识信息, 具体为: 由于替代用户标识信息(如上述的 XID11 )所在的字段, 与原始用户标识 信息 (如上述的 XID1 )所在的字段相同, 依据 DHCP协议规定, Server端无 需对所述字段做任何修改, 原封不动地将所述 XID11封装到应答报文中, 返 回。  Step S103, in the downlink packet, carrying the substitute user identifier information, specifically: the field in which the substitute user identifier information (such as the above XID11) is located is the same as the field in which the original user identifier information (such as the above XID1) is located. According to the DHCP protocol, the server does not need to modify any of the fields, and the XID11 is encapsulated into a response message and returned.
步骤 S104, 根据下行报文中携带的替代用户标识信息, 找到对应的用户 相关信息;将下行报文中携带的替代用户标识信息替换为先前被替换掉的原始 用户标识信息, 具体为:  Step S104: Find the corresponding user-related information according to the substitute user identifier information carried in the downlink packet, and replace the substitute user identifier information carried in the downlink packet with the original user identifier information that was previously replaced, specifically:
具有 Snooping和 /或 Proxy功能的设备, 收到下行的应答报文后, 根据报 文中携带的替代用户标识信息 (如上述的 XID11 ), 区分出此替代用户标识信 息对应的 Client,找到记录此用户信息的数据项,将所述替代用户标识信息(如 上述的 XID11 ), 替换回原始用户标识信息 (如上述的 XID1 ), 也就是说, 将 关信息确定用户的位置; 并才艮据所述用户的位置, 将携带所述原始用户标识信 息的下行报文传输给所述用户。  After receiving the downlink response packet, the device with the Snooping and/or Proxy function distinguishes the client corresponding to the substitute user identification information according to the substitute user identification information carried in the packet (such as the above XID11), and finds the record. The data item of the user information replaces the substitute user identification information (such as XID11 above) with the original user identification information (such as XID1 above), that is, the information of the user is determined by the information; A downlink message carrying the original user identification information is transmitted to the user.
上述是以 DHCP报文使用的 XID作为替代用户标识信息为例, 对本发明 第一实施例进行的详细说明,但本发明实施例并不局限于所述 XID,其它能够 作为用户标识的信息同样可以适用于本发明的实施例, 如 DHCP协议中使用 的硬件类型和硬件地址,或者是其它协议中可以使用的能够标识用户的用户标 识信息等, 或者端口信息, 或者 VLAN ( Virtual LAN, 虚拟局域网)等, 并且 这些信息可以任意组合在一起使用。  The foregoing is a description of the first embodiment of the present invention by using the XID of the DHCP message as an example of the user identification information. However, the embodiment of the present invention is not limited to the XID, and other information that can be used as the user identifier may also be used. Embodiments applicable to the present invention, such as hardware types and hardware addresses used in the DHCP protocol, or user identification information that can be used to identify users, or port information, or VLAN (Virtual LAN, Virtual Local Area Network) that can be used in other protocols. Etc., and this information can be used in any combination.
由上述实施例可以看出, 其描述了在原始用户标识信息所在的字段, 完成 由原始用户标识信息到替代用户标识信息的替换,由替代用户标识信息到原始 用户标识信息的替换过程; 当然本发明实施例不局限于这一种替换方法,也可 以通过 DHCP报文中的预留标准字段, 将替代用户标识信息添加到报文中, 下行时, 所述标准字段能够被下行报文原封不动地返回。根据下行报文中携带 的替代用户标识信息,找到与所述替代用户标识信息对应的用户相关信息; 将 下行 "^文中携带的替代用户标识信息删除,并根据所找到的用户相关信息确定 用户的位置; 根据所述用户的位置, 将携带原始用户标识信息的下行报文, 传 输给所述用户。 It can be seen from the above embodiment that it describes the replacement process from the original user identification information to the replacement user identification information in the field where the original user identification information is located, and the replacement process from the replacement user identification information to the original user identification information; The embodiment of the invention is not limited to the alternative method, and the substitute user identifier information may be added to the packet through the reserved standard field in the DHCP packet. When downlinking, the standard field can be returned by the downlink message intact. And determining, according to the substitute user identifier information carried in the downlink packet, user related information corresponding to the substitute user identifier information; deleting the substitute user identifier information carried in the downlink “^ text, and determining the user according to the found user related information. The downlink message carrying the original user identification information is transmitted to the user according to the location of the user.
本发明的第二实施例提供了一种通信系统, 其结构如图 2所示, 包括: 第 一中继设备、 第二中继设备和服务器。 所述第一中继设备包括: 第一传输单元 和第一处理单元。 所述第二中继设备包括: 定位单元和配置单元。  A second embodiment of the present invention provides a communication system, which is structured as shown in FIG. 2, and includes: a first relay device, a second relay device, and a server. The first relay device includes: a first transmission unit and a first processing unit. The second relay device includes: a positioning unit and a configuration unit.
所述第一中继设备, 为不同的用户确定不同的替代用户标识信息; 将所述 第一中继设备所确定的替代用户标识信息,通过上行 "^文传送。具体处理情况 下:  The first relay device determines different substitute user identification information for different users; and transmits the substitute user identification information determined by the first relay device by using an uplink message.
第一传输单元, 为不同的用户确定不同的替代用户标识信息; 在上行 >¾文 中携带的原始用户标识信息所在的字段,用所述替代用户标识信息替换所述原 始用户标识信息,所述原始用户标识信息所在的字段能够通过下行报文被原封 不动地返回。  The first transmission unit determines different alternate user identification information for different users; and replaces the original user identification information with the substitute user identification information in a field in which the original user identification information carried in the uplink>3⁄4 text is located, The field in which the user identification information is located can be returned intact through the downlink message.
所述第二中继设备的配置单元, 根据所述第一中继设备转发的上行报文, 获得所述替代用户标识信息, 以及,根据上行报文和接收此上行报文的位置信 息得到用户的相关信息,建立用户的替代用户标识信息与对应用户的用户相关 信息之间的对应关系, 并转发所述上行报文给服务器。  The configuration unit of the second relay device obtains the substitute user identification information according to the uplink packet forwarded by the first relay device, and obtains the user according to the uplink packet and the location information of the received uplink packet. The related information is used to establish a correspondence between the user's substitute user identification information and the user-related information of the corresponding user, and forward the uplink packet to the server.
所述服务器,根据所述第二中继设备发送的上行报文, 获得用户的替代用 户标识信息, 并在反馈的下行报文中, 携带所述替代用户标识信息。 所述服务 器不对所述替代用户标识信息进行任何修改,直接将所述替代用户标识信息封 装到下行报文中返回。  And the server, according to the uplink packet sent by the second relay device, obtains the user identifier information of the user, and carries the substitute user identifier information in the downlink message that is fed back. The server does not perform any modification on the substitute user identification information, and directly encapsulates the substitute user identification information into a downlink packet and returns.
所述第二中继设备的定位单元, 根据下行报文中携带的替代用户标识信 息,以及配置单元中所配置的替代用户标识信息与对应用户的用户相关信息之 间的对应关系,找到与所述替代用户标识信息对应的用户相关信息。 所述第二 中继设备根据用户相关信息将所述下行报文传送给所述第一中继设备,具体的 根据所述用户相关信息中的位置信息将所述下行报文传送给所述第一中继设 备。 所述第一中继设备的第一处理单元,将下行报文中携带的替代用户标识信 息替换为先前被替换掉的原始用户标识信息。 The locating unit of the second relay device finds the corresponding relationship between the substitute user identification information carried in the downlink packet and the substitute user identifier information configured in the configuration unit and the user related information of the corresponding user. The user-related information corresponding to the user identification information is replaced. The second relay device transmits the downlink packet to the first relay device according to the user-related information, and specifically transmits the downlink packet to the first information according to the location information in the user-related information. A relay device. The first processing unit of the first relay device replaces the substitute user identifier information carried in the downlink packet with the original user identifier information that was previously replaced.
上述第一中继设备具有代理 Proxy功能和 /或监控 Snooping功能。 各个单 元的具体处理情况与方法实施例中的相关描述雷同, 这里不再详细描述。  The first relay device has a proxy Proxy function and/or a monitoring Snooping function. The specific processing of each unit is the same as that in the method embodiment, and will not be described in detail here.
上述替代用户标识信息可以是 XID、 硬件类型和硬件地址、 端口信息等。 本发明的第三实施例提供了另一种通信系统, 其结构仍然如图 2所示, 包 括: 第一中继设备、 第二中继设备和服务器。 所述第一中继设备包括: 第二传 输单元和第二处理单元; 所述第二中继设备包括: 定位单元和配置单元。  The above alternative user identification information may be an XID, a hardware type and a hardware address, port information, and the like. A third embodiment of the present invention provides another communication system, the structure of which is still as shown in FIG. 2, including: a first relay device, a second relay device, and a server. The first relay device includes: a second transmission unit and a second processing unit; the second relay device includes: a positioning unit and a configuration unit.
所述第一中继设备, 为不同的用户确定不同的替代用户标识信息; 将所述 第一中继设备所确定的替代用户标识信息,通过上行 "^文传送。具体处理情况 下:  The first relay device determines different substitute user identification information for different users; and transmits the substitute user identification information determined by the first relay device by using an uplink message.
所述第一中继设备的第二传输单元,为不同的用户确定不同的替代用户标 识信息; 将所述替代用户标识信息添加到上行报文中预留的标准字段, 并且所 述标准字段能够被下行报文原封不动地返回。  The second transmission unit of the first relay device determines different substitute user identification information for different users; adds the substitute user identification information to a standard field reserved in the uplink packet, and the standard field can The downlink message is returned as it is.
所述第二中继设备的配置单元, 根据所述第一中继设备转发的上行报文, 获得所述替代用户标识信息, 以及,根据上行报文和接收此上行报文的位置信 息得到用户的相关信息,建立用户的替代用户标识信息与对应用户的用户相关 信息之间的对应关系, 并转发所述上行报文给服务器。  The configuration unit of the second relay device obtains the substitute user identification information according to the uplink packet forwarded by the first relay device, and obtains the user according to the uplink packet and the location information of the received uplink packet. The related information is used to establish a correspondence between the user's substitute user identification information and the user-related information of the corresponding user, and forward the uplink packet to the server.
所述服务器,根据所述第二中继设备发送的上行报文, 获得用户的替代用 户标识信息, 并在反馈的下行报文中, 携带所述替代用户标识信息。 所述服务 器不对所述替代用户标识信息进行任何修改,直接将所述替代用户标识信息封 装到下行报文中返回。  And the server, according to the uplink packet sent by the second relay device, obtains the user identifier information of the user, and carries the substitute user identifier information in the downlink message that is fed back. The server does not perform any modification on the substitute user identification information, and directly encapsulates the substitute user identification information into a downlink packet and returns.
所述第二中继设备的定位单元, 根据下行报文中携带的替代用户标识信 息,以及配置单元中所配置的替代用户标识信息与对应用户的用户相关信息之 间的对应关系,找到与所述替代用户标识信息对应的用户相关信息。 所述第二 中继设备根据用户相关信息将所述下行报文传送给所述第一中继设备,具体的 根据所述用户相关信息中的位置信息将所述下行报文传送给所述第一中继设 备。  The locating unit of the second relay device finds the corresponding relationship between the substitute user identification information carried in the downlink packet and the substitute user identifier information configured in the configuration unit and the user related information of the corresponding user. The user-related information corresponding to the user identification information is replaced. The second relay device transmits the downlink packet to the first relay device according to the user-related information, and specifically transmits the downlink packet to the first information according to the location information in the user-related information. A relay device.
所述第一中继设备的第二处理单元,将下行报文中携带的替代用户标识信 息删除。 The second processing unit of the first relay device sends the substitute user identification letter carried in the downlink packet The information is deleted.
上述第一中继设备具有代理 Proxy功能和 /或监控 Snooping功能。 各个单 元的具体处理情况与方法实施例中的相关描述雷同, 这里不再详细描述。 上述 替代用户标识信息可以是 XID、 硬件类型和硬件地址、 端口信息等。  The first relay device has a proxy Proxy function and/or a monitoring Snooping function. The specific processing of each unit is the same as that in the method embodiment, and will not be described in detail here. The above alternative user identification information may be XID, hardware type and hardware address, port information, and the like.
此实施例中, 所述第一中继设备也可以不包括第二处理单元, 这样发送给 客户端的下行报文中仍然携带所述替代用户标识信息。  In this embodiment, the first relay device may not include the second processing unit, and the substitute user identifier information is still carried in the downlink packet sent to the client.
由上述实施例可以看出, 第一中继设备和第二中继设备处于级联情况,位 于下层的第一中继设备对下面的各 Client发送的报文中的原始用户标识替换 为一个唯一的值, 即替换用户标识, 供位于上层的第二中继设备使用。 上层的 第二中继设备釆用替换用户标识来识别用户。如果上层设备下面挂有多个下级 设备, 如图 2中的 L2 DHCP Relay 1 和 L2 DHCP Relay 2, 则各个下级设备 上需要釆用特定的机制, 以保证各个下级设备生成的替换用户标识各不相同。  It can be seen from the foregoing embodiment that the first relay device and the second relay device are in a cascading situation, and the first relay device located in the lower layer replaces the original user identifier in the packet sent by each client below with a unique one. The value, that is, the replacement user ID, is used by the second relay device located at the upper layer. The second relay device of the upper layer uses the replacement user identifier to identify the user. If multiple lower-level devices are connected to the upper-layer device, such as L2 DHCP Relay 1 and L2 DHCP Relay 2 in Figure 2, a specific mechanism needs to be used on each lower-level device to ensure that the replacement user IDs generated by each lower-level device are different. the same.
本发明第四实施例提供了第三种通信系统,其与本发明第二实施例和第三 实施例的区别之处在于: 将第一中继设备和第二中继设备的功能, 集中设置在 一个中继设备上, 此时所述通信系统的结构如图 3所示, 其具体处理情况与本 发明第二实施例基本雷同, 这里不再详细描述。  The fourth embodiment of the present invention provides a third communication system, which is different from the second embodiment and the third embodiment of the present invention in that: the functions of the first relay device and the second relay device are collectively set. On a relay device, the structure of the communication system is as shown in FIG. 3, and the specific processing situation is basically the same as that of the second embodiment of the present invention, and will not be described in detail herein.
本发明第五实施例提供了一种中继设备, 其结构如图 4所示, 包括: 标识 确定单元、 传输单元和定位单元。 其中, 所述传输单元包括第一传输子单元。 所述中继设备还进一步包括第一处理单元。所述中继设备还进一步包括配置单 元。  A fifth embodiment of the present invention provides a relay device. The structure thereof is as shown in FIG. 4, and includes: an identifier determining unit, a transmitting unit, and a positioning unit. The transmission unit includes a first transmission subunit. The relay device still further includes a first processing unit. The relay device still further includes a configuration unit.
标识确定单元, 为不同的用户确定不同的替代用户标识信息;  The identifier determining unit determines different alternative user identification information for different users;
传输单元, 将所述标识确定单元所确定的替代用户标识信息,通过上行报 文传送出去; 并下行传输携带替代用户标识信息的下行报文; 具体处理情况如 下:  The transmitting unit transmits the substitute user identification information determined by the identifier determining unit through the uplink packet, and downlinks the downlink packet carrying the substitute user identifier information; the specific processing situation is as follows:
第一传输子单元, 在上行报文中携带的原始用户标识信息所在的字段, 用 所述替代用户标识信息替换所述原始用户标识信息,所述原始用户标识信息所 在的字段能够被下行报文原封不动地返回;并下行传输携带替代用户标识信息 的下行报文。  The first transmission sub-unit, in the field where the original user identification information carried in the uplink packet is located, the original user identification information is replaced by the substitute user identification information, and the field in which the original user identification information is located can be downlinked Returning intact; and transmitting downlink packets carrying alternative user identification information.
所述配置单元,根据上行报文和接收此上行报文的位置信息得到用户的相 关信息, 建立用户相关信息与对应用户的替代用户标识信息之间的对应关系, 并转发所述上行报文给服务器。 The configuration unit obtains a phase of the user according to the uplink packet and the location information of receiving the uplink packet. The information is related to the correspondence between the user-related information and the substitute user identification information of the corresponding user, and the uplink packet is forwarded to the server.
定位单元, 获取下行报文返回的替代用户标识信息; 根据下行报文中携带 的替代用户标识信息,以及配置单元的配置信息找到与所述替代用户标识信息 对应的用户相关信息。  The locating unit obtains the substitute user identifier information returned by the downlink packet, and finds the user related information corresponding to the substitute user identifier information according to the substitute user identifier information carried in the downlink packet and the configuration information of the configuration unit.
第一处理单元,用于将下行报文中携带的替代用户标识信息替换为先前被 替换掉的原始用户标识信息。  The first processing unit is configured to replace the substitute user identification information carried in the downlink packet with the original user identifier information that was previously replaced.
所述中继设备具有代理 Proxy功能和 /或监控 Snooping功能。 上述替代用 户标识信息可以是 XID、 硬件类型和硬件地址、 端口信息等。  The relay device has a proxy Proxy function and/or a monitoring Snooping function. The above alternative user identification information may be XID, hardware type and hardware address, port information, and the like.
本发明第六实施例提供了另一种中继设备, 其结构包括: 标识确定单元、 传输单元和定位单元。 其中, 所述传输单元包括第二传输子单元。 所述中继设 备还进一步包括第二处理单元。 所述中继设备还进一步包括配置单元。  A sixth embodiment of the present invention provides another relay device, and the structure thereof includes: an identifier determining unit, a transmitting unit, and a positioning unit. The transmission unit includes a second transmission subunit. The relay device still further includes a second processing unit. The relay device still further includes a configuration unit.
标识确定单元, 为不同的用户确定不同的替代用户标识信息;  The identifier determining unit determines different alternative user identification information for different users;
传输单元, 将所述标识确定单元所确定的替代用户标识信息,通过上行报 文传送出去; 并下行传输携带替代用户标识信息的下行报文; 具体处理情况如 下:  The transmitting unit transmits the substitute user identification information determined by the identifier determining unit through the uplink packet, and downlinks the downlink packet carrying the substitute user identifier information; the specific processing situation is as follows:
第二传输子单元 ,用于将所述替代用户标识信息添加到上行 >¾文中预留的 标准字段, 并且所述标准字段能够被下行报文原封不动地返回; 并下行传输携 带替代用户标识信息的下行"¾文。  a second transmission subunit, configured to add the substitute user identification information to a standard field reserved in the uplink >3⁄4 text, and the standard field can be returned by the downlink message intact; and the downlink transmission carries the substitute user identifier The downside of the information is "3⁄4 text.
所述配置单元,根据所述第一中继设备转发的上行报文, 获得所述替代用 户标识信息以及与所述替代用户标识信息对应的用户相关信息,建立用户的替 代用户标识信息与对应用户的用户相关信息之间的对应关系,并转发所述上行 报文给服务器。  The configuration unit obtains the substitute user identification information and user related information corresponding to the substitute user identification information according to the uplink packet forwarded by the first relay device, and establishes the substitute user identification information of the user and the corresponding user. The correspondence between the user-related information and forwarding the uplink packet to the server.
定位单元, 获取下行报文返回的替代用户标识信息; 根据下行报文中携带 的替代用户标识信息, 以及配置单元的配置信息, 找到与所述替代用户标识信 息对应的用户相关信息。  The locating unit obtains the substitute user identifier information returned by the downlink packet, and finds the user-related information corresponding to the substitute user identifier information according to the substitute user identifier information carried in the downlink packet and the configuration information of the configuration unit.
第二处理单元, 将下行报文中携带的替代用户标识信息删除。  The second processing unit deletes the substitute user identification information carried in the downlink packet.
所述中继设备具有代理 Proxy功能和 /或监控 Snooping功能。 上述替代用 户标识信息可以是 XID、 硬件类型和硬件地址、 端口信息等。 上述实施例中,也可以不包括第二处理单元, 这样发送给客户端的下行才艮 文中仍然携带所述替代用户标识信息。 The relay device has a proxy Proxy function and/or a monitoring Snooping function. The above alternative user identification information may be an XID, a hardware type and a hardware address, port information, and the like. In the foregoing embodiment, the second processing unit may not be included, and the substitute user identification information is still carried in the downlink information sent to the client.
上述实施例中的中继设备可以是 DHCP Relay,也可以是处于 DHCP Client 到 Server之间, DHCP上行报文与下行报文都经过的任何设备。  The relay device in the above embodiment may be a DHCP relay agent, or any device that passes between the DHCP client and the server, and both the DHCP uplink packet and the downlink packet pass.
由上述实施例的具体实施方案可以看出,其通过上行报文中现有的标准字 段发送为不同的用户确定不同的替代用户标识信息,从而对 DHCP Server以及 Client的处理不造成任何影响, 无需做任何修改; 并且在下行报文中携带所述 替代用户标识信息, 通过所述替换原始用户标识能够区分不同的用户 Client, 从而能够解决各个 Client请求报文中原始用户标识发生冲突的问题。 明的精神和范围。 这样,倘若本发明的这些修改和变型属于本发明权利要求及 其等同技术的范围之内, 则本发明也意图包含这些改动和变型在内。  It can be seen from the specific implementation of the foregoing embodiment that the existing standard field in the uplink packet is sent to determine different alternative user identification information for different users, thereby having no impact on the processing of the DHCP server and the client. And performing the modification; and carrying the substitute user identifier information in the downlink packet, and the different user client can be distinguished by the replacement original user identifier, so that the problem that the original user identifier conflicts in each client request packet can be solved. The spirit and scope of the Ming. Thus, it is intended that the present invention cover the modifications and variations of the inventions

Claims

权 利 要 求 Rights request
1、 一种报文传输方法, 其特征在于, 包括:  A message transmission method, characterized in that:
接收携带有用户的原始用户标识信息的上行报文;  Receiving an uplink message carrying the original user identification information of the user;
根据所述携带有用户的原始用户标识信息的上行报文,建立所述用户的用 户相关信息和替代用户标识信息的对应关系,并向服务器发送携带所述用户的 替代用户标识信息的上行>¾文,所述替代用户标识信息能够将所述用户与其他 用户区分;  And establishing, according to the uplink packet carrying the original user identifier information of the user, a correspondence between the user-related information of the user and the substitute user identifier information, and sending, to the server, an uplink that carries the substitute user identifier information of the user>3⁄4 The substitute user identification information can distinguish the user from other users;
接收来自服务器的下行报文, 所述下行报文中携带所述替代用户标识信 息;  Receiving a downlink packet from the server, where the downlink packet carries the substitute user identifier information;
根据所述对应关系找到所述下行报文中的替代用户标识信息对应的用户 相关信息, 根据所述用户相关信息传输所述下行报文。  Deleting the user-related information corresponding to the substitute user identification information in the downlink packet according to the corresponding relationship, and transmitting the downlink packet according to the user-related information.
2、 如权利要求 1所述的方法, 其特征在于, 所述根据所述携带有用户的 原始用户标识信息的上行>¾文,建立所述用户的用户相关信息和替代用户标识 信息的对应关系具体包括:  The method according to claim 1, wherein the establishing a correspondence between the user-related information of the user and the substitute user identification information according to the uplink>3⁄4 text carrying the original user identification information of the user Specifically include:
根据所述携带有用户的原始用户标识信息的上行报文和接收所述上行报 文的位置信息,得到用户的相关信息, 建立所述用户相关信息与对应用户的替 代用户标识信息之间的对应关系。  And obtaining the related information of the user according to the uplink message carrying the original user identification information of the user and the location information of the received uplink message, and establishing a correspondence between the user related information and the substitute user identification information of the corresponding user. relationship.
3、 如权利要求 1或 2所述的方法, 其特征在于, 在携带所述用户的替代 用户标识信息的上行 "^文中,  3. The method according to claim 1 or 2, wherein in the uplink "^" carrying the substitute user identification information of the user,
所述用户的替代用户标识信息被承载在所述原始用户标识信息的字段;或 者  The substitute user identification information of the user is carried in a field of the original user identification information; or
所述替代用户标识信息被添加到上行报文中预留的标准字段。  The substitute user identification information is added to a standard field reserved in the uplink message.
4、 如权利要求 2所述的方法, 其特征在于, 所述根据所述用户相关信息 传输所述下行 文具体包括:  The method according to claim 2, wherein the transmitting the downlink according to the user-related information specifically includes:
才艮据所述用户相关信息确定用户的位置,才艮据所述用户的位置,传输携带 所述原始用户标识信息的下行报文。  And determining the location of the user according to the information about the user, and transmitting the downlink message carrying the original user identification information according to the location of the user.
5、 如权利要求 1或 4所述的方法, 其特征在于, 所述方法进一步包括: 将来自服务器的下行报文中携带的所述用户的替代用户标识信息替换为 所述原始用户标识信息; 或者 将来自服务器的下行报文预留的标准字段中的所述用户的替代用户标识 删除。 The method according to claim 1 or 4, wherein the method further comprises: replacing the substitute user identification information of the user carried in the downlink message from the server with the original user identification information; Or The user's alternate user ID in the standard field of the downlink message reservation from the server is deleted.
6、 如权利要求 1所述的方法, 其特征在于, 所述上行报文和下行报文为 DHCP报文。  The method of claim 1, wherein the uplink packet and the downlink packet are DHCP packets.
7, 如权利要求 1所述的方法, 其特征在于, 所述替代用户标识信息包括 以下信息的一种或几种:  7. The method according to claim 1, wherein the substitute user identification information comprises one or more of the following information:
端口信息;  Port information;
硬件类型和硬件地址;  Hardware type and hardware address;
传输标识;  Transmission identifier
虚拟局域网 VLAN。  Virtual LAN VLAN.
8、 一种中继设备, 其特征在于, 该中继设备包括配置单元和定位单元: 配置单元,用于根据接收到的携带有用户的替代用户标识信息的上行报文 和接收此上行报文的位置信息得到用户的相关信息,建立所述替代用户标识信 息与所述用户相关信息之间的对应关系, 并转发所述上行报文, 其中, 所述用 户的替代用户标识信息能够将所述用户与其它用户区分;  A relay device, comprising: a configuration unit and a positioning unit: a configuration unit, configured to receive the uplink packet according to the received uplink packet carrying the substitute user identification information of the user The location information is obtained by the user, and the correspondence between the substitute user identifier information and the user-related information is established, and the uplink packet is forwarded, where the user's substitute user identifier information can be The user is distinguished from other users;
定位单元, 用于根据接收到的下行报文中携带的替代用户标识信息,通过 所述配置单元中的所述对应关系找到与所述替代用户标识信息对应的用户相 关信息, 根据所述用户相关信息发送所述下行 文。  a positioning unit, configured to find user related information corresponding to the substitute user identification information by using the corresponding relationship in the configuration unit according to the substitute user identification information carried in the received downlink message, according to the user related information The information is sent in the downlink.
9、 根据权利要求 8所述的继设备, 其特征在于, 所述替代用户标识信息 包括以下信息的一种或几种:  9. The relay device according to claim 8, wherein the substitute user identification information comprises one or more of the following information:
端口信息;  Port information;
硬件类型和硬件地址;  Hardware type and hardware address;
传输标识;  Transmission identifier
虚拟局域网 VLAN。  Virtual LAN VLAN.
10、 一种中继设备, 其特征在于, 该中继设备包括:  A relay device, characterized in that the relay device comprises:
传输单元 ,用于根据所述中继设备接收到的上行报文中携带用户的原始用 户标识信息发送携带有替代用户标识信息的上行 文, 其中, 所述替代用户标 识信息能够将所述用户和其他用户区分;  a transmitting unit, configured to send, according to the original user identifier information of the user that the uplink packet received by the relay device, the uplink text carrying the substitute user identifier information, where the substitute user identifier information can be used by the user and Other user distinctions;
处理单元,用于根据所述中继设备接收到的下行报文中携带的替代用户标 识信息发送携带有所述原始用户标识信息的下行"¾文。 a processing unit, configured to receive, according to the substitute user identifier carried in the downlink packet received by the relay device The identification information is sent with the downlink "3⁄4 text" carrying the original user identification information.
11、 根据权利要求 10所述的中继设备, 其特征在于, 所述传输单元在所 述原始用户标识信息所在的字段用所述用户的替代用户标识信息替换所述原 始用户标识信息,所述处理单元将所述中继设备接收到的下行"¾文中携带的替 代用户标识信息替换为所述原始用户标识信息; 或者 到的上行报文的预留标准字段。  The relay device according to claim 10, wherein the transmission unit replaces the original user identification information with the substitute user identification information of the user in a field where the original user identification information is located, The processing unit replaces the substitute user identification information carried in the downlink "3⁄4 text" received by the relay device with the original user identification information; or the reserved standard field of the uplink message to be sent.
12、 根据权利要求 10所述的中继设备, 其特征在于, 所述中继设备还包 括配置单元和定位单元,  The relay device according to claim 10, wherein the relay device further includes a configuration unit and a positioning unit,
所述配置单元,用于根据所述中继设备接收到上行报文和接收此上行报文 的位置信息得到用户的相关信息,建立所述替代用户标识信息与所述用户相关 信息之间的对应关系;  The configuration unit is configured to obtain related information of the user according to the uplink information received by the relay device and the location information of the received uplink message, and establish a correspondence between the substitute user identification information and the user related information. Relationship
所述定位单元,用于根据所述中继设备接收到下行报文中携带的替代用户 标识信息,通过所述配置单元中的所述对应关系找到与所述替代用户标识信息 对应的用户相关信息。  The locating unit is configured to find, according to the substitute user identifier information carried in the downlink packet, the user-related information corresponding to the substitute user identifier information by using the corresponding relationship in the configuration unit .
13、 根据权利要求 10所述的中继设备, 其特征在于, 所述替代用户标识 信息包括以下信息的一种或几种:  The relay device according to claim 10, wherein the substitute user identification information comprises one or more of the following information:
端口信息;  Port information;
硬件类型和硬件地址;  Hardware type and hardware address;
传输标识;  Transmission identifier
虚拟局域网 VLAN。  Virtual LAN VLAN.
14、 一种通信系统, 其特征在于, 包括第一中继设备、 第二中继设备和服 务器;  A communication system, comprising: a first relay device, a second relay device, and a server;
在上行方向:  In the upstream direction:
所述第一中继设备接收携带有用户的原始用户标识信息的上行报文,确定 所述用户的替代用户标识信息, 并向所述第二中继设备发送上行 文, 其中, 所述用户的替代用户标识信息能够将所述用户和其他用户区分,所述第一中继 设备发送的上行报文中携带有所述用户的替代用户标识信息;  The first relay device receives an uplink packet carrying the original user identifier information of the user, determines the substitute user identifier information of the user, and sends an uplink message to the second relay device, where the user The user identifier can be distinguished from the other user by the user identifier information, and the uplink packet sent by the first relay device carries the substitute user identifier information of the user;
所述第二中继设备接收来自所述第一中继设备的上行报文,根据所述第二 中继设备接收的上行报文和接收所述上行报文的位置信息得到用户的相关信 息, 建立所述用户相关信息与对应用户的替代用户标识信息之间的对应关系, 并向所述服务发送携带有所述替代用户标识信息的上行报文; Receiving, by the second relay device, an uplink packet from the first relay device, according to the second The uplink message received by the relay device and the location information of the received uplink message obtain related information of the user, establish a correspondence between the user related information and the substitute user identification information of the corresponding user, and send the corresponding relationship between the user information and the service An uplink message carrying the substitute user identification information;
所述服务器接收到携带有所述替代用户标识信息的上行报文,在下行报文 中返回所述替代用户标识信息;  Receiving, by the server, an uplink packet carrying the substitute user identifier information, and returning the substitute user identifier information in the downlink packet;
在下行方向:  In the down direction:
所述第二中继设备接收来自所述服务器的下行报文,根据所述下行报文中 的所述替代用户标识信息找到对应的用户相关信息 ,根据用户相关信息向所述 第一中继设备发送下行报文。  The second relay device receives the downlink packet from the server, and finds corresponding user-related information according to the substitute user identifier information in the downlink packet, and sends the corresponding information to the first relay device according to the user-related information. Send a downlink packet.
15、 一种通信系统, 其特征在于, 包括中继设备和服务器;  15. A communication system, comprising: a relay device and a server;
所述中继设备,根据接收到的携带有用户的原始用户标识信息的上行报文 得到用户的相关信息,建立所述用户相关信息与对应用户的替代用户标识信息 之间的对应关系, 并向所述服务器发送上行报文, 其中, 所述用户的替代用户 标识信息能够将所述用户和其他用户区分,所述发送的上行 "^文中携带有所述 用户的替代用户标识信息;  The relay device obtains the related information of the user according to the received uplink message carrying the original user identification information of the user, and establishes a correspondence between the user related information and the substitute user identification information of the corresponding user, and The server sends an uplink packet, where the user's substitute user identifier information can distinguish the user from other users, and the sent uplink text carries the substitute user identifier information of the user;
所述服务器接收到来自所述中继设备的上行报文,在下行报文中返回所述 替代用户标识信息;  Receiving, by the server, an uplink packet from the relay device, and returning the substitute user identifier information in the downlink packet;
所述中继设备接收来自所述服务器的下行报文,根据所述替代用户标识信 息找到对应的用户相关信息, 根据找到的用户相关信息发送下行"¾文。  The relay device receives a downlink message from the server, finds corresponding user-related information according to the substitute user identification information, and sends a downlink message according to the found user-related information.
PCT/CN2008/070720 2007-05-18 2008-04-16 A message transporting method, system and relay device WO2008141554A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP08156326A EP1993268A3 (en) 2007-05-18 2008-05-16 Method, system and relay device for transmitting packet
US12/122,459 US20080285557A1 (en) 2007-05-18 2008-05-16 Method, System and Relay Device for Transmitting Packet

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200710107096.1 2007-05-18
CN200710107096.1A CN101309202A (en) 2007-05-18 2007-05-18 Method and system for identifying user, relay apparatus

Publications (1)

Publication Number Publication Date
WO2008141554A1 true WO2008141554A1 (en) 2008-11-27

Family

ID=40125431

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2008/070720 WO2008141554A1 (en) 2007-05-18 2008-04-16 A message transporting method, system and relay device

Country Status (2)

Country Link
CN (1) CN101309202A (en)
WO (1) WO2008141554A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102026200B (en) * 2009-09-16 2014-01-01 中兴通讯股份有限公司 Method and device for identifying users in relay link
CN106953938A (en) * 2017-03-29 2017-07-14 武汉米风通信技术有限公司 A kind of broadcasting and TV frequency spectrum ultra-narrow the band recognition methods of internet-of-things terminal Information Repeater and device
CN113114325B (en) * 2021-03-19 2022-05-17 中国联合网络通信集团有限公司 Communication method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7096273B1 (en) * 2001-04-25 2006-08-22 Cisco Technology, Inc. DHCP over mobile IP
JP2006262378A (en) * 2005-03-18 2006-09-28 Fujitsu Ltd Frame relaying apparatus
CN1866904A (en) * 2005-05-17 2006-11-22 华为技术有限公司 Method and apparatus for astringing two layer MAC address
CN1885763A (en) * 2006-07-06 2006-12-27 华为技术有限公司 Method for preventing IP address leakage

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7096273B1 (en) * 2001-04-25 2006-08-22 Cisco Technology, Inc. DHCP over mobile IP
JP2006262378A (en) * 2005-03-18 2006-09-28 Fujitsu Ltd Frame relaying apparatus
CN1866904A (en) * 2005-05-17 2006-11-22 华为技术有限公司 Method and apparatus for astringing two layer MAC address
CN1885763A (en) * 2006-07-06 2006-12-27 华为技术有限公司 Method for preventing IP address leakage

Also Published As

Publication number Publication date
CN101309202A (en) 2008-11-19

Similar Documents

Publication Publication Date Title
US7139818B1 (en) Techniques for dynamic host configuration without direct communications between client and server
US11218488B2 (en) Access enforcement at a wireless access point
EP2364543B1 (en) Broadband network access
KR100716968B1 (en) Method and apparatus for wireless communication in wire/wireless complex communication device
KR100811890B1 (en) Anycast routing method and apparatus for supporting service flow in internet system
JP4664143B2 (en) Packet transfer apparatus, communication network, and packet transfer method
EP1693996B1 (en) Automatic discovery of psuedo-wire peer addresses in ethernet-based networks
JP5364671B2 (en) Terminal connection status management in network authentication
EP4009593A1 (en) Data transmission method and apparatus, network card and storage medium
EP3720100A1 (en) Service request processing method and device
EP1427171A2 (en) User identifying technique on networks having different address systems
JP5653912B2 (en) Method and apparatus for multicast group management
US20050089034A1 (en) Network switching apparatus, route management server, network interface apparatus, control method therefor, computer program for route management server, and computer-readable storage medium
WO2011041967A1 (en) Method for anonymous communication, method for registration, method and system for trasmitting and receiving information
MX2007001777A (en) Methods and apparatus for efficient vpn server interface, address allocation , and signaling with a local addressing domain.
JP2003298635A (en) Source address selection system, router equipment, communication node and source address selection method
JP2011508551A (en) Apparatus and method for simultaneously accessing multiple wireless networks
US20080285557A1 (en) Method, System and Relay Device for Transmitting Packet
US7940760B2 (en) Method and apparatus for discovering component in at least one sub-network
WO2008141554A1 (en) A message transporting method, system and relay device
JP2002084306A (en) Packet communication apparatus and network system
WO2011044807A1 (en) Method for registration and communication of anonymous communication and transceiver system for data message
WO2002003147A2 (en) Method for detecting invalid packets by rewriting transaction identifiers
KR100888596B1 (en) Method and apparatus for wireless communication in wire/wireless complex communication device
WO2008141516A1 (en) Message transmitting method, transmitting device and transmitting system

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

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

Country of ref document: EP

Kind code of ref document: A1