CN101808107B - A method, device and system for two-layer intercommunication between a storage device and a user - Google Patents
A method, device and system for two-layer intercommunication between a storage device and a user Download PDFInfo
- Publication number
- CN101808107B CN101808107B CN200910077765.4A CN200910077765A CN101808107B CN 101808107 B CN101808107 B CN 101808107B CN 200910077765 A CN200910077765 A CN 200910077765A CN 101808107 B CN101808107 B CN 101808107B
- Authority
- CN
- China
- Prior art keywords
- storage device
- address
- mac address
- arp
- message
- Prior art date
- Legal status (The legal status 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 status listed.)
- Expired - Fee Related
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/09—Mapping addresses
- H04L61/10—Mapping addresses of different types
- H04L61/103—Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1097—Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
Abstract
Description
技术领域 technical field
本发明涉及通信技术领域,尤其涉及一种存储设备与用户二层互通的方法、装置及系统。The present invention relates to the field of communication technology, and in particular to a method, device and system for
背景技术 Background technique
对于高带宽的流媒体业务,业界普遍采用在靠近用户侧的网络设备上增加存储设备的方法。所述存储设备可以缓存用户下载所需的部分内容,用户可以从距离最近的存储设备获取内容。相对于数量庞大的流媒体内容,存储设备的容量通常比较小,存储的内容有限,单独的存储设备很难满足用户需求。因此目前通常在每个存储设备上存储部分内容,用户不仅可以从距离最近的存储设备获取内容,还可以从别的存储设备获取内容。For high-bandwidth streaming media services, the industry generally adopts a method of adding storage devices to network devices close to the user side. The storage device can cache part of the content that the user needs to download, and the user can obtain the content from the nearest storage device. Compared with the huge amount of streaming media content, the capacity of the storage device is usually relatively small, and the stored content is limited, so it is difficult for a single storage device to meet the needs of users. Therefore, at present, some content is usually stored on each storage device, and users can obtain content not only from the nearest storage device, but also from other storage devices.
现有的接入网架构包括三个部分:宽带网关(例如BRAS)、汇聚网(Aggregation Network)、接入网(Access Network)。发明人在实现本发明过程中发现,在现有的接入网中,所有的用户之间二层隔离,即使用户与最近的存储设备之间的流量也必须要经过网关转发。随着用户的不断增长和占据大量网络带宽的流媒体业务的持续增长,现有接入网的架构导致经过网关的流量过高,成为网络中的瓶颈。The existing access network architecture includes three parts: broadband gateway (such as BRAS), aggregation network (Aggregation Network), and access network (Access Network). In the process of implementing the present invention, the inventor found that in the existing access network, all users are isolated on the second layer, even the traffic between the user and the nearest storage device must be forwarded through the gateway. With the continuous growth of users and the continuous growth of streaming media services that occupy a large amount of network bandwidth, the architecture of the existing access network leads to excessive traffic passing through the gateway, which becomes a bottleneck in the network.
发明内容 Contents of the invention
本发明实施例提供一种存储设备与用户二层互通的方法、装置及系统,避免用户与存储设备之间的报文都经过网关转发,减轻对网关的冲击。Embodiments of the present invention provide a method, device, and system for
本发明实施例是通过以下技术方案实现的:Embodiments of the present invention are achieved through the following technical solutions:
本发明实施例提供一种存储设备与用户二层互通的方法,包括:An embodiment of the present invention provides a method for
接收地址解析协议ARP请求,所述ARP请求中携带目的节点的IP地址;receiving an Address Resolution Protocol ARP request, where the ARP request carries the IP address of the destination node;
判断所述目的节点是否为存储设备;judging whether the destination node is a storage device;
若所述目的节点为存储设备,则提供所述存储设备的MAC地址给发送所述ARP请求的用户端设备,使所述用户端设备通过所述存储设备的MAC地址和所述存储设备进行通信。If the destination node is a storage device, provide the MAC address of the storage device to the client device sending the ARP request, so that the client device communicates with the storage device through the MAC address of the storage device .
本发明实施例提供一种代理设备,包括:An embodiment of the present invention provides a proxy device, including:
第一接收单元,用于接收ARP请求,所述ARP请求中携带目的节点的IP地址;The first receiving unit is configured to receive an ARP request, where the ARP request carries the IP address of the destination node;
判断单元,用于判断所述APR请求中所请求的目的节点是否为存储设备;a judging unit, configured to judge whether the destination node requested in the APR request is a storage device;
MAC地址提供单元,用于当所述判断单元确定所述ARP请求中所请求的目的节点为存储设备时,提供所述存储设备的MAC地址给发送所述ARP请求的用户端设备,使所述用户端设备通过所述存储设备的MAC地址和所述存储设备进行通信。A MAC address providing unit, configured to provide the MAC address of the storage device to the client device sending the ARP request when the judging unit determines that the destination node requested in the ARP request is a storage device, so that the The client device communicates with the storage device through the MAC address of the storage device.
本发明实施例提供一种接入节点,包括:An embodiment of the present invention provides an access node, including:
第三接收单元,用于接收与所述接入节点归属于同一虚拟局域网VLAN的存储设备发送的地址解析协议ARP报文,在所述ARP报文中携带该存储设备的MAC地址;所述同一VLAN为归属于同一网关下的所有网关设备、接入节点、汇聚节点以及存储设备组成的VLAN;The third receiving unit is configured to receive an address resolution protocol ARP message sent by a storage device belonging to the same virtual local area network VLAN as the access node, and the ARP message carries the MAC address of the storage device; the same VLAN is a VLAN composed of all gateway devices, access nodes, aggregation nodes and storage devices belonging to the same gateway;
记录单元,用于记录第三接收单元接收的所述存储设备的MAC地址及发送给所述存储设备的报文的处理规则;所述处理规则包括:对接收到的报文中目的MAC为存储设备MAC的报文,修改VLAN标记为同一网关下的所有网关设备、接入节点、汇聚节点以及存储设备组成的VLAN的标记;The recording unit is used to record the MAC address of the storage device received by the third receiving unit and the processing rules of the message sent to the storage device; the processing rule includes: storing the destination MAC in the received message For the MAC message of the device, modify the VLAN tag to be the tag of the VLAN composed of all gateway devices, access nodes, aggregation nodes and storage devices under the same gateway;
第四接收单元,用于接收用户端设备发送的报文;The fourth receiving unit is configured to receive a message sent by the client device;
发送单元,用于在所述第四接收单元接收的报文的目的MAC为存储设备MAC时,根据所述记录单元记录的处理规则发送所述报文给所述存储设备。A sending unit, configured to send the message to the storage device according to the processing rules recorded by the recording unit when the destination MAC of the message received by the fourth receiving unit is the MAC of the storage device.
本发明实施例提供一种存储设备与用户二层互通的系统,包括:地址解析协议ARP代理设备、存储设备、接入节点、汇聚节点,所述存储设备侧挂在所述接入节点或汇聚节点上,且所述存储设备、接入节点和汇聚节点归属于同一网关下,所述存储设备、接入节点和汇聚节点组成一个虚拟局域网VLAN;An embodiment of the present invention provides a system for
所述ARP代理设备,用于接收ARP请求,在所述ARP请求中所请求的目的节点是存储设备时,向发送所述ARP请求的用户端设备提供目的存储设备的MAC地址;The ARP proxy device is configured to receive an ARP request, and when the requested destination node in the ARP request is a storage device, provide the MAC address of the destination storage device to the client device sending the ARP request;
所述接入节点,用于在接收到以存储设备的MAC地址封装后的报文后,根据记录的所述存储设备的MAC地址及发送给所述存储设备的报文的处理规则发送所述报文,所述处理规则包括:对接收到的报文中,目的MAC为存储设备MAC的报文,修改VLAN标记为所述存储设备、接入节点和汇聚节点组成的VLAN的标记。The access node is configured to, after receiving the packet encapsulated with the MAC address of the storage device, send the message, the processing rule includes: among the received messages, for which the destination MAC is the MAC of the storage device, modify the VLAN tag to be the tag of the VLAN composed of the storage device, the access node and the aggregation node.
由上述本发明实施例提供的技术方案可以看出,本发明实施例代理设备可以区分ARP请求的目的节点来提供相应的MAC地址,并在目的节点为存储设备时,提供存储设备的MAC地址给请求的用户端设备,有效避免了用户与存储设备之间的报文都经过网关转发,减轻了对网关的冲击。It can be seen from the technical solutions provided by the above-mentioned embodiments of the present invention that the proxy device in the embodiments of the present invention can distinguish the destination node of the ARP request to provide the corresponding MAC address, and when the destination node is a storage device, provide the MAC address of the storage device to the The requested client device effectively prevents the messages between the user and the storage device from being forwarded through the gateway, reducing the impact on the gateway.
附图说明 Description of drawings
图1为本发明实施例存储设备与用户二层互通的方法流程图;FIG. 1 is a flowchart of a method for
图2为图1所述方法步骤14包含的子步骤流程图;Fig. 2 is the flow chart of the substeps that
图3为本发明实施例存储设备与用户二层互通的方法一种实例流程图;FIG. 3 is a flow chart of an example of a method for
图4为本发明实施例报文发送过程报文被修改示意图;FIG. 4 is a schematic diagram of a message being modified during a message sending process according to an embodiment of the present invention;
图5为本发明实施例代理设备结构示意图;FIG. 5 is a schematic structural diagram of a proxy device according to an embodiment of the present invention;
图6为本发明实施例接入节点结构示意图;FIG. 6 is a schematic structural diagram of an access node according to an embodiment of the present invention;
图7为本发明实施例报文发送系统结构示意图。FIG. 7 is a schematic structural diagram of a message sending system according to an embodiment of the present invention.
具体实施方式 Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,可以理解的是,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. It should be understood that the described embodiments are only some of the embodiments of the present invention, not all of them. example. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
本发明实施例公开了一种存储设备与用户二层互通的方法,以图1所示为例,为本实施例所述方法操作流程图,包括如下步骤:The embodiment of the present invention discloses a method for
步骤10:接收地址解析协议(ARP,Address Resolution Protocol)请求,所述ARP请求中携带目的节点的IP地址;Step 10: receiving an Address Resolution Protocol (ARP, Address Resolution Protocol) request, carrying the IP address of the destination node in the ARP request;
ARP代理设备接收用户端设备发送的所述ARP请求,所述ARP代理设备可以为接入节点(AN,Access Node),也可以为宽带网关,如BRAS等。所述ARP请求为请求获得目的节点的媒体接入控制(MAC,Medium AccessControl)地址。The ARP proxy device receives the ARP request sent by the client device, and the ARP proxy device may be an access node (AN, Access Node), or a broadband gateway, such as a BRAS. The ARP request is a request to obtain a Medium Access Control (MAC, Medium Access Control) address of the destination node.
所述目的节点的IP地址可以由用户端设备获取,其获取方式为现有技术,本发明实施例不做限定,例如可以通过动态主机配置协议(DHCP,Dynamic Host Configuration Protocol)服务器或者内容索引服务器来获取。The IP address of the destination node can be acquired by the client device, and the acquisition method is the prior art, and the embodiment of the present invention does not limit it, for example, it can be through a Dynamic Host Configuration Protocol (DHCP, Dynamic Host Configuration Protocol) server or a content index server to get.
步骤11:判断所述目的节点是否为存储设备;Step 11: judging whether the destination node is a storage device;
本发明实施例将归属于同一网关的所有网关设备、接入节点AN、汇聚节点以及存储设备组成一虚拟局域网(VLAN,Virtual Local Area Network),存储设备在该VLAN内发送ARP报文,所述ARP报文中携带本存储设备的MAC地址以及IP地址,ARP代理设备通过该ARP报文学习到MAC地址和IP地址,并记录所述MAC地址和IP地址的对应关系,以及该IP地址和/或MAC地址对应的设备是否为存储设备。因此作为ARP代理设备的AN或者BRAS可以根据记录的MAC地址和IP地址的对应关系,以及该IP地址和/或MAC地址对应的设备是否为存储设备确定目的节点是否为存储设备。In the embodiment of the present invention, all gateway devices, access nodes AN, aggregation nodes and storage devices belonging to the same gateway form a virtual local area network (VLAN, Virtual Local Area Network), and the storage device sends an ARP message in the VLAN. The ARP message carries the MAC address and IP address of the storage device, and the ARP proxy device learns the MAC address and the IP address through the ARP message, and records the correspondence between the MAC address and the IP address, as well as the IP address and/or Or whether the device corresponding to the MAC address is a storage device. Therefore, the AN or BRAS as an ARP proxy device can determine whether the destination node is a storage device according to the recorded correspondence between the MAC address and the IP address, and whether the device corresponding to the IP address and/or the MAC address is a storage device.
若目的节点为存储设备,则执行步骤12;否则执行步骤13。If the destination node is a storage device, go to
步骤12:向发送所述ARP请求的用户端设备提供存储设备的MAC地址。Step 12: Provide the MAC address of the storage device to the client device sending the ARP request.
ARP代理设备可以根据记录的MAC地址和IP地址的对应关系,查找与所述ARP请求中目的节点的IP地址对应的存储设备的MAC地址;提供查找到的与所述ARP请求中目的节点的IP地址对应的存储设备的MAC地址给用户端设备。The ARP proxy device can search for the MAC address of the storage device corresponding to the IP address of the destination node in the ARP request according to the corresponding relationship between the recorded MAC address and the IP address; provide the IP address found and the destination node in the ARP request The MAC address of the storage device corresponding to the address is given to the client device.
所述用户端设备在需要与所述存储设备通讯时,可以使用上述获取的所述存储设备的MAC地址封装报文并发送,实现用户端设备与存储设备之间的通讯无需经过网关设备。When the client device needs to communicate with the storage device, it can use the obtained MAC address of the storage device to encapsulate the message and send it, so that the communication between the client device and the storage device does not need to go through the gateway device.
步骤13:向发送所述ARP请求的用户端设备提供网关的MAC地址。Step 13: Provide the MAC address of the gateway to the client device sending the ARP request.
步骤14:所述用户端设备通过所述存储设备的MAC地址和所述存储设备进行通信。Step 14: The client device communicates with the storage device through the MAC address of the storage device.
具体来说,本步骤中,可以由AN接收用户端设备使用目的存储设备的MAC地址封装的报文,所述存储设备的MAC地址采用上述实施例中所述方法得到。Specifically, in this step, the AN may receive the message encapsulated by the client device using the MAC address of the destination storage device, and the MAC address of the storage device is obtained by the method described in the above-mentioned embodiments.
如图2所示,用户端设备通过所述存储设备的MAC地址和所述存储设备进行通信的过程包括如下子步骤:As shown in Figure 2, the process in which the client device communicates with the storage device through the MAC address of the storage device includes the following sub-steps:
步骤140:AN接收所述用户端设备发送的以所述存储设备的MAC地址封装后的报文;Step 140: AN receives the packet sent by the client device and encapsulated with the MAC address of the storage device;
步骤141:AN根据记录的存储设备的MAC地址及发送给所述存储设备的报文的处理规则,修改报文的虚拟局域网VLAN标记为同一网关下的所有网关设备、接入节点、汇聚节点以及存储设备组成的VLAN的标记;Step 141: According to the MAC address of the recorded storage device and the processing rules of the message sent to the storage device, the AN modifies the virtual local area network VLAN tag of the message to be all gateway devices, access nodes, aggregation nodes and Tags of VLANs composed of storage devices;
所述存储设备的MAC地址及发送给所述存储设备的报文的处理规则由所述存储设备发送的ARP报文中得到,具体包括:存储设备在该VLAN内发送ARP报文,所述ARP报文中携带有该存储设备的MAC地址,同一VLAN内的各AN接收到该ARP报文后,记录此存储设备的MAC地址以及发送给所述存储设备的报文的处理规则,所述处理规则包括:对接收到的报文中,目的MAC为存储设备MAC的报文,修改报文的VLAN标记(VLAN ID)为所述同一网关的所有网关设备、接入节点AN、汇聚节点以及存储设备组成的VLAN的标记。The MAC address of the storage device and the processing rules for the message sent to the storage device are obtained from the ARP message sent by the storage device, specifically including: the storage device sends an ARP message in the VLAN, and the ARP The MAC address of the storage device is carried in the message. After receiving the ARP message, each AN in the same VLAN records the MAC address of the storage device and the processing rules for the message sent to the storage device. The processing The rules include: in the received message, the destination MAC is the message of the storage device MAC, and the VLAN tag (VLAN ID) of the modified message is all gateway devices, access nodes AN, aggregation nodes and storage devices of the same gateway. The tag of the VLAN that the device is composed of.
因此,AN接收到所述报文后,发现所述报文的目的MAC为存储设备的MAC,则修改所述报文的VLAN标记为同一网关的所有网关设备、接入节点AN、汇聚节点以及存储设备组成的VLAN的标记。Therefore, after the AN receives the message, it finds that the destination MAC of the message is the MAC of the storage device, and then modifies the VLAN tag of the message to be all gateway devices, access nodes AN, convergence nodes and The tag of the VLAN composed of storage devices.
步骤142:发送修改VLAN标记后的报文给所述存储设备。Step 142: Send the message with the modified VLAN tag to the storage device.
AN在所述同一网关的所有网关设备、接入节点AN、汇聚节点以及存储设备组成的VLAN内发送所述报文给所述存储设备。The AN sends the message to the storage device in a VLAN formed by all gateway devices, access nodes AN, aggregation nodes and storage devices of the same gateway.
本实施例所述ARP代理设备,可以区分ARP请求的目的节点来提供相应的MAC地址,并在目的节点为存储设备时,提供存储设备的MAC地址给请求的用户端设备,在用户端设备需要与存储设备通讯时,可以以所述存储设备的MAC地址封装报文并发送,所述用户端设备的归属AN可以根据记录的目的存储设备的MAC地址及处理规则发送报文,实现了用户端设备与存储设备之间的流量不必都经过网关转发,减少了对网关的冲击。The ARP proxy device described in this embodiment can distinguish the destination node of the ARP request to provide the corresponding MAC address, and when the destination node is a storage device, provide the MAC address of the storage device to the requesting client device. When communicating with the storage device, the MAC address of the storage device can be used to encapsulate the message and send it. The AN to which the client device belongs can send the message according to the recorded MAC address of the destination storage device and the processing rules, realizing the The traffic between the device and the storage device does not need to be forwarded through the gateway, which reduces the impact on the gateway.
下面以本发明实施例的具体应用进行详细说明,首先需要把同一网关下所有网关设备、AN、汇聚节点,以及存储设备(本实例中为Cache)组成一个VLAN,也就是都增加同一个VLAN ID,将所述VLAN称之为CacheVLAN,如图3所示,ARP代理设备提供MAC地址给用户端设备及用户端设备与Cache通讯的过程包括如下步骤:The following is a detailed description of the specific application of the embodiment of the present invention. First, all gateway devices, ANs, aggregation nodes, and storage devices (Cache in this example) under the same gateway need to be formed into a VLAN, that is, the same VLAN ID must be added. , the VLAN is referred to as CacheVLAN, as shown in Figure 3, the ARP proxy device provides the MAC address to the client device and the process of client device and Cache communication includes the following steps:
步骤30:在一个Cache VLAN中的各Cache设备在所述Cache VLAN中广播ARP报文,在该ARP报文中携带本Cache的MAC地址及IP地址;Step 30: Each Cache device in a Cache VLAN broadcasts an ARP message in the Cache VLAN, and carries the MAC address and the IP address of this Cache in the ARP message;
所述ARP报文可以为免费ARP报文。The ARP packet may be a gratuitous ARP packet.
步骤31:与Cache设备属于同一Cache VLAN的各AN接收到该ARP报文后,通过该报文学习到各Cache的MAC地址,记录各Cache的MAC地址以及发送给所述存储设备的报文的处理规则,所述处理规则包括:对接收到的报文中,目的MAC为Cache设备MAC的报文,修改VLAN标记为Cache VLAN标记(VLAN ID)后发送;与Cache设备属于同一Cache VLAN的ARP代理设备接收到该ARP报文后,记录所述MAC地址和IP地址的对应关系,以及与IP地址和/或MAC地址对应的设备是否为Cache设备。Step 31: After each AN belonging to the same Cache VLAN with the Cache device receives the ARP message, learn the MAC address of each Cache by the message, record the MAC address of each Cache and the address of the message sent to the storage device Processing rule, described processing rule comprises: in the message that receives, destination MAC is the message of Cache equipment MAC, revises VLAN mark and sends after being Cache VLAN mark (VLAN ID); Belong to the ARP of same Cache VLAN with Cache equipment After receiving the ARP message, the proxy device records the correspondence between the MAC address and the IP address, and whether the device corresponding to the IP address and/or the MAC address is a Cache device.
本实例中所述ARP代理设备为网关,实际应用中也可以为AN或其他执行ARP功能的设备。The ARP proxy device described in this example is a gateway, and it may also be an AN or other devices that perform the ARP function in practical applications.
步骤32:ARP代理设备接收用户端设备D2发送的ARP请求,所述ARP请求中携带目的Cache1的IP地址;Step 32: The ARP proxy device receives the ARP request sent by the client device D2, and the ARP request carries the IP address of the destination Cache1;
用户端设备D2可以通过内容索引服务器,比如IPTV系统中的电子节目单,或者其他重定向服务器确定目的Cache1的IP地址,在所述ARP请求中携带该IP地址;The client device D2 can determine the IP address of the destination Cache1 through the content index server, such as the electronic program guide in the IPTV system, or other redirection servers, and carry the IP address in the ARP request;
步骤33:ARP代理设备根据所述ARP请求向用户端设备D2返回相应的Cache1的MAC地址;Step 33: The ARP proxy device returns the corresponding MAC address of Cache1 to the client device D2 according to the ARP request;
ARP代理设备根据记录的MAC地址和IP地址的对应关系,以及与IP地址和/或MAC地址对应的设备是否为Cache设备,查找与ARP请求中的目的节点的IP地址对应的Cache1的MAC地址,并发现目的节点Cache1是一个Cache设备,则向用户端设备D2发送ARP响应,返回Cache1的MAC地址,例如Cache1的MAC地址为mac-c;The ARP proxy device searches for the MAC address of Cache1 corresponding to the IP address of the destination node in the ARP request according to the corresponding relationship between the recorded MAC address and the IP address, and whether the device corresponding to the IP address and/or the MAC address is a Cache device, And find that the destination node Cache1 is a Cache device, then send an ARP response to the client device D2, and return the MAC address of Cache1, for example, the MAC address of Cache1 is mac-c;
若所述ARP请求中的目的节点非Cache设备,则ARP代理设备返回网关的MAC地址(图中未示出)。If the destination node in the ARP request is not a Cache device, the ARP proxy device returns the MAC address of the gateway (not shown in the figure).
步骤34:用户端设备D2所连接的接入节点AN2接收用户端设备D2使用所述Cache1的MAC地址mac-c封装的报文。Step 34: The access node AN2 to which the client device D2 is connected receives the message encapsulated by the client device D2 using the MAC address mac-c of the Cache1.
步骤35:AN2根据记录的各Cache的MAC地址以及发送给所述存储设备的报文的处理规则,将报文VLAN标记修改为Cache VLAN标记后在所述Cache VLAN中发送。Step 35: AN2 modifies the message VLAN tag to a Cache VLAN tag according to the recorded MAC addresses of each Cache and the processing rules of the message sent to the storage device, and then sends it in the Cache VLAN.
若所述用户端设备D2发送的报文中没有VLAN标记,则直接在报文中增加Cache VLAN标记。If there is no VLAN tag in the message sent by the client device D2, the Cache VLAN tag is directly added to the message.
步骤36:侧挂Cache1的设备AN1收到该报文,将报文转发给目的Cache1设备。Step 36: The device AN1 with Cache1 attached to the side receives the message, and forwards the message to the destination Cache1 device.
若所述Cache1侧挂在AN2上,则AN2直接将所述修改了VLAN标记后的报文发送给Cache1。If the Cache1 is connected to the AN2, the AN2 directly sends the packet with the modified VLAN tag to the Cache1.
上述实例在需要发送报文给Cache1时,首先获得Cache1的MAC地址,并根据Cache1的MAC地址封装报文并发送,使用户端设备与Cache之间的报文不必经过网关转发,减轻了对网关的冲击。在上述实例中,报文只在AN中被修改一次,也就是由AN修改报文中VLAN标记为Cache VLAN标记。如图4中所示,虚线以上为报文由用户端设备D2向Cache1发送的过程,虚线以下为报文由Cache1向用户端设备D2发送的过程,在两个方向的报文转发过程中,报文分别仅有一处修改,即AN在接收到报文后修改报文中的VLAN标记为Cache VLAN标记,若原报文中没有VLAN标记则添加Cache VLAN标记,若已经存在VLAN标记,则将其修改为Cache VLAN标记。图4中D1IP表示目的IP地址,即Cache1的IP地址,D2IP表示源IP地址,即D2的IP地址。In the above example, when a message needs to be sent to Cache1, the MAC address of Cache1 is obtained first, and the message is encapsulated and sent according to the MAC address of Cache1, so that the message between the client device and Cache does not need to be forwarded through the gateway, which reduces the burden on the gateway. shock. In the above example, the message is only modified once in the AN, that is, the AN modifies the VLAN tag in the message to be the Cache VLAN tag. As shown in Figure 4, above the dotted line is the process of sending the message from the client device D2 to Cache1, and below the dotted line is the process of sending the message from Cache1 to the user device D2. In the message forwarding process in both directions, There is only one modification of the message respectively, that is, after receiving the message, the AN modifies the VLAN tag in the message as a Cache VLAN tag. If there is no VLAN tag in the original message, it will add a Cache VLAN tag. Changed to Cache VLAN tag. In FIG. 4, D1IP represents the destination IP address, that is, the IP address of Cache1, and D2IP represents the source IP address, that is, the IP address of D2.
实际应用中,由于AN侧挂的存储设备的容量限制,常将多个存储设备采用P2P的方式组织起来,实现不同存储设备上的内容共享,即存储设备间实现P2P,对于存储设备为Cache时,称为P2P AN Cache,本发明实施例的方案在P2P AN Cache的场景下仍然适用。可以理解的是,本发明实施例对于多个Cache侧挂在汇聚节点或其他设备上,并采用P2P的方式组织起来的情况同样适用。In practical applications, due to the limited capacity of storage devices attached to the AN side, multiple storage devices are often organized in a P2P manner to share content on different storage devices, that is, P2P is implemented between storage devices. , called P2P AN Cache, the solution of the embodiment of the present invention is still applicable in the scenario of P2P AN Cache. It can be understood that the embodiment of the present invention is also applicable to the case where multiple Caches are side-hung on a sink node or other devices and organized in a P2P manner.
本发明实施例提供一种代理设备,如图5所示,该代理设备包括:An embodiment of the present invention provides a proxy device. As shown in FIG. 5, the proxy device includes:
第一接收单元500,用于接收ARP请求,所述ARP请求中携带目的节点的IP地址;The
判断单元501,用于判断所述APR请求中所请求的目的节点是否为存储设备;A judging
MAC地址提供单元502,用于当所述判断单元501确定所述ARP请求中所请求的目的节点为存储设备时,提供所述存储设备的MAC地址给发送所述ARP请求的用户端设备,使所述用户端设备通过所述存储设备的MAC地址和所述存储设备进行通信。The MAC
所述代理设备还可以包括:The proxy device may also include:
第二接收单元503,用于接收与所述代理设备归属子同一VLAN的存储设备发送的ARP报文,所述ARP报文中携带所述存储设备的MAC地址及IP地址;The
存储单元504,用于存储所述第二接收单元503接收的ARP报文中携带的存储设备的MAC地址及IP地址的对应关系,以及与MAC地址和/或IP地址对应的设备是否为存储设备的信息。The
所述代理设备部署在接入节点或网关。The proxy device is deployed on an access node or a gateway.
本实施例所述代理设备实现了判断ARP请求中的目的地址是否为存储设备,如果是存储设备则返回存储设备的MAC地址。The proxy device in this embodiment realizes judging whether the destination address in the ARP request is a storage device, and returns the MAC address of the storage device if it is a storage device.
本发明实施例还提供一种接入节点,如图6所示,该接入节点包括:The embodiment of the present invention also provides an access node. As shown in FIG. 6, the access node includes:
第三接收单元600,用于接收与所述接入节点归属于同一VLAN的存储设备发送的ARP报文,在所述ARP报文中携带该存储设备的MAC地址;所述同一VLAN为归属于同一网关下的所有网关设备、接入节点、汇聚节点以及存储设备组成的VLAN;The
记录单元601,用于记录所述第三接收单元600接收的所述存储设备的MAC地址以及发送给所述存储设备的报文的处理规则,所述处理规则包括:对接收到的报文中,目的MAC为存储设备MAC的报文,修改VLAN标记为同一网关下的所有网关设备、接入节点、汇聚节点以及存储设备组成的VLAN的标记;The
第四接收单元602,用于接收用户端设备发送的报文。The
发送单元603,用于在所述第四接收单元602接收的报文的目的MAC为存储设备MAC时,根据所述记录单元601记录的处理规则发送所述报文给所述存储设备。The sending
所述接入节点还包括侧挂存储设备的接口(图中未示出),用于侧挂存储设备。The access node also includes an interface (not shown in the figure) for mounting the storage device on the side, for mounting the storage device on the side.
本实施例所述接入节点可以保存存储设备的MAC地址及发送给存储设备的报文的处理规则,并根据存储设备的MAC地址及所述处理规则转发以目的存储设备的MAC封装的报文,按照所述处理规则使用户端设备与存储设备间的报文不必全部经网关转发,减少了对网关的冲击。The access node described in this embodiment can save the MAC address of the storage device and the processing rules of the message sent to the storage device, and forward the message encapsulated with the MAC address of the destination storage device according to the MAC address of the storage device and the processing rule According to the processing rule, all the messages between the client device and the storage device do not need to be forwarded through the gateway, thereby reducing the impact on the gateway.
本发明实施例还提供一种存储设备与用户二层互通的系统,如图7所示,包括:ARP代理设备71、存储设备72、接入节点73、汇聚节点74,所述存储设备72侧挂在所述接入节点73或汇聚节点74上,图7中所示为存储设备72侧挂在所述接入节点73上,且所述存储设备72、接入节点73和汇聚节点74归属于同一网关设备75下,所述存储设备72、接入节点73和汇聚节点74以及网关设备75组成一个VLAN;The embodiment of the present invention also provides a system for
所述ARP代理设备71,用于接收ARP请求,在判断所述ARP请求中所请求的目的节点是存储设备时,向发送所述ARP请求的用户端设备提供目的存储设备的MAC地址;所述ARP代理设备可以设置于所述接入节点73上,也可以设置于网关设备75上。The
所述存储设备72,用于在所述VLAN内广播ARP报文,在所述ARP报文中携带本存储设备的MAC地址及IP地址;所述存储设备72侧挂于所述接入节点73上。The
所述接入节点73,用于接收并记录所述存储设备的MAC地址及发送给所述存储设备的报文的处理规则,所述处理规则包括:对接收到的报文中,目的MAC为存储设备MAC的报文,修改VLAN标记为所述存储设备72、接入节点73和汇聚节点74以及网关设备75组成的VLAN的标记,并在接收到以存储设备的MAC地址封装后的报文后,根据所述处理规则发送所述报文。The
本实施例所述系统ARP代理设备实现了判断ARP请求中的目的地址是否为存储设备,如果是存储设备,则返回存储设备的MAC地址,报文发送时使用目的存储设备的MAC地址封装报文,接入节点根据报文的目的MAC地址及对应的处理规则转发报文,实现了不必将用户端设备与存储设备间通讯的报文全部经网关转发,减少了对网关的冲击。The ARP agent device of the system described in this embodiment realizes judging whether the destination address in the ARP request is a storage device, if it is a storage device, then returns the MAC address of the storage device, and uses the MAC address of the destination storage device to encapsulate the message when the message is sent , the access node forwards the message according to the destination MAC address of the message and the corresponding processing rules, so that all the messages communicated between the client device and the storage device do not need to be forwarded through the gateway, reducing the impact on the gateway.
综上所述,本发明实施例ARP代理设备实现了判断ARP请求中的目的地址是否为存储设备,如果是存储设备,则返回存储设备的MAC地址,报文发送时使用目的存储设备的MAC地址封装报文,接入节点根据报文的目的MAC地址及对应的处理规则转发报文,实现了不必将用户端设备与存储设备间通讯的报文全部经网关转发,减少了对网关的冲击。In summary, the ARP proxy device in the embodiment of the present invention realizes judging whether the destination address in the ARP request is a storage device, and if it is a storage device, returns the MAC address of the storage device, and uses the MAC address of the destination storage device when sending a message Encapsulate the message, and the access node forwards the message according to the destination MAC address of the message and the corresponding processing rules, so that all the messages communicated between the client device and the storage device do not need to be forwarded through the gateway, reducing the impact on the gateway.
本领域普通技术人员可以理解,实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一计算机可读存储介质中。该可读存储介质例如只读存储器(简称ROM)、随机存取存储器(简称RAM)、磁盘、光盘等。Those skilled in the art can understand that all or part of the steps in the methods of the above embodiments can be implemented by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium. The readable storage medium is, for example, a read-only memory (referred to as ROM), a random access memory (referred to as RAM), a magnetic disk, an optical disk, and the like.
以上所述,仅为本发明较佳的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应该以权利要求的保护范围为准。The above is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art within the technical scope disclosed in the present invention can easily think of changes or Replacement should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be determined by the protection scope of the claims.
Claims (13)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN200910077765.4A CN101808107B (en) | 2009-02-17 | 2009-02-17 | A method, device and system for two-layer intercommunication between a storage device and a user |
| PCT/CN2010/070212 WO2010094214A1 (en) | 2009-02-17 | 2010-01-15 | Method, apparatus and system for layer 2 interworking between a storage device and a user |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN200910077765.4A CN101808107B (en) | 2009-02-17 | 2009-02-17 | A method, device and system for two-layer intercommunication between a storage device and a user |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN101808107A CN101808107A (en) | 2010-08-18 |
| CN101808107B true CN101808107B (en) | 2013-06-26 |
Family
ID=42609727
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN200910077765.4A Expired - Fee Related CN101808107B (en) | 2009-02-17 | 2009-02-17 | A method, device and system for two-layer intercommunication between a storage device and a user |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN101808107B (en) |
| WO (1) | WO2010094214A1 (en) |
Families Citing this family (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102457586B (en) * | 2010-10-18 | 2015-06-03 | 中兴通讯股份有限公司 | Expanding method for realizing double-layer network and expanded double-layer network |
| CN103248720A (en) * | 2012-02-13 | 2013-08-14 | 中兴通讯股份有限公司 | Method and device for inquiring physical address |
| CN102891890B (en) * | 2012-09-26 | 2015-07-29 | 腾讯科技(深圳)有限公司 | Exchange method between a kind of terminal and relevant device, system |
| US9319358B2 (en) | 2012-09-26 | 2016-04-19 | Tencent Technology (Shenzhen) Company Limited | Terminal interaction methods and related devices and systems |
| CN111226427B (en) * | 2017-08-14 | 2021-11-26 | 华为技术有限公司 | Method and apparatus for avoiding paging storm during ARP broadcast of Ethernet type PDUs |
| CN108540588A (en) * | 2018-03-15 | 2018-09-14 | 深信服科技股份有限公司 | MAC Address acquisition methods and system, Network Security Device and readable storage medium storing program for executing |
| CN108924052B (en) * | 2018-07-17 | 2021-07-06 | 迈普通信技术股份有限公司 | Message forwarding method, convergence gateway, access gateway and system |
| CN110838966B (en) * | 2019-11-20 | 2022-03-01 | 紫光华山科技有限公司 | Equipment connection control method and device |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1411210A (en) * | 2002-03-08 | 2003-04-16 | 华为技术有限公司 | Method of acting address analytic protocol Ethernet Switch in application |
| CN1832458A (en) * | 2005-03-09 | 2006-09-13 | 阿尔卡特公司 | Method and access node for implementing application server functionality |
| CN101098292A (en) * | 2006-06-29 | 2008-01-02 | 中兴通讯股份有限公司 | Method for reducing user address resolution protocol broadcast on access equipment |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN100438478C (en) * | 2005-04-13 | 2008-11-26 | 达创科技股份有限公司 | Wireless adapter and information transmission and acquisition method |
-
2009
- 2009-02-17 CN CN200910077765.4A patent/CN101808107B/en not_active Expired - Fee Related
-
2010
- 2010-01-15 WO PCT/CN2010/070212 patent/WO2010094214A1/en active Application Filing
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1411210A (en) * | 2002-03-08 | 2003-04-16 | 华为技术有限公司 | Method of acting address analytic protocol Ethernet Switch in application |
| CN1832458A (en) * | 2005-03-09 | 2006-09-13 | 阿尔卡特公司 | Method and access node for implementing application server functionality |
| CN101098292A (en) * | 2006-06-29 | 2008-01-02 | 中兴通讯股份有限公司 | Method for reducing user address resolution protocol broadcast on access equipment |
Also Published As
| Publication number | Publication date |
|---|---|
| WO2010094214A1 (en) | 2010-08-26 |
| CN101808107A (en) | 2010-08-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN101808107B (en) | A method, device and system for two-layer intercommunication between a storage device and a user | |
| US20120257628A1 (en) | Mapping private and public addresses | |
| CN101404619B (en) | Method for implementing server load balancing and a three-layer switchboard | |
| EP2600573B1 (en) | Method for transmitting addresses correspondence relationship in second-layer protocol using link status routing | |
| US10652047B2 (en) | Connectivity to internet via shared services in enterprise fabric based network with LISP control plane | |
| EP2853077B1 (en) | Method of seamless integration and independent evolution of information-centric networking via software defined networking | |
| WO2018028606A1 (en) | Forwarding policy configuration | |
| US10484271B2 (en) | Data universal forwarding plane for information exchange | |
| WO2018010529A1 (en) | Method and apparatus for an information-centric mac layer | |
| EP2456130A1 (en) | System for network deployment and method for mapping and data forwarding thereof | |
| CN104243265A (en) | Gateway control method, device and system based on virtual machine migration | |
| CN104040527A (en) | Connecting layer-2 domains over layer-3 networks | |
| JP6601784B2 (en) | Method, network component, and program for supporting context-aware content requests in an information-oriented network | |
| CN103841056A (en) | Open storage managing and scheduling method and system based on software-defined network | |
| CN103139071A (en) | Method, device and system of message transmitting | |
| TW201541262A (en) | Method for virtual machine migration using software defined networking (SDN) | |
| US9166884B2 (en) | Network location service | |
| CN104205729B (en) | Method, device, and system for configuring device in network | |
| WO2018001339A1 (en) | Method and apparatus for forwarding packet in virtual extensible local area network (vxlan) | |
| CN105979405A (en) | Method and device for accessing video device | |
| CN107135118B (en) | A unicast communication method, gateway and VXLAN access device | |
| CN111835858B (en) | Equipment access method, equipment and system | |
| WO2024001701A1 (en) | Data processing method, apparatus and system | |
| US20180367452A1 (en) | Information centric networking over multi-access network interfaces | |
| CN102547908A (en) | Table maintenance method and system, and access gateway router (AGR) |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20130626 Termination date: 20170217 |
|
| CF01 | Termination of patent right due to non-payment of annual fee |