Nothing Special   »   [go: up one dir, main page]

WO2018113693A1 - Local area network device communication management method and system, and gateway device - Google Patents

Local area network device communication management method and system, and gateway device Download PDF

Info

Publication number
WO2018113693A1
WO2018113693A1 PCT/CN2017/117420 CN2017117420W WO2018113693A1 WO 2018113693 A1 WO2018113693 A1 WO 2018113693A1 CN 2017117420 W CN2017117420 W CN 2017117420W WO 2018113693 A1 WO2018113693 A1 WO 2018113693A1
Authority
WO
WIPO (PCT)
Prior art keywords
area network
information
local area
communication
gateway
Prior art date
Application number
PCT/CN2017/117420
Other languages
French (fr)
Chinese (zh)
Inventor
李小虎
武云飞
姜志俊
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2018113693A1 publication Critical patent/WO2018113693A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/26Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks using dedicated tools for LAN [Local Area Network] management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways

Definitions

  • the present invention relates to the field of communications, and in particular, to a LAN device communication management method, system, and gateway device.
  • a WAN connection is a virtual channel established when a home gateway device accesses a wide area network. For example, the video source server requested by the set-top box and the game server accessed by the Xbox are not in a network, which requires the home gateway device to establish two WAN connections for connecting the video source server and the game server respectively.
  • the port of the gateway device is usually port-bound, but in this case, the LAN device connected to the specific LAN port can only pass the corresponding The WAN connection accesses network resources. Therefore, this solution has the following drawbacks: First, the flexibility is poor, because the type of the LAN device that each port of the gateway device can access is fixed in the solution; the second is that the port utilization is low, and cannot be applied to one port access differently. The scenario of the type device.
  • Embodiments of the present invention provide a LAN device communication management method, system, and gateway device.
  • An embodiment of the present invention provides a communication management method for a local area network device, including: a gateway device receiving communication information sent by a local area network device, where the communication information carries device attribute information of the local area network device; Decoding the device attribute information in the communication information; the gateway device determines a wide area network (WAN) connection corresponding to the communication information based on a pre-established communication management table, wherein the communication management table includes the local area network device Device type, the device attribute information, and a mapping relationship between the WAN connections; and the gateway device transmits the communication information over the WAN connection.
  • WAN wide area network
  • the embodiment of the present invention further provides a gateway device, including: an information acquiring module, configured to acquire device attribute information and a device type of a local area network device; and a mapping establishing module configured to: according to the device attribute information, the device type, Establishing, by the WAN connection corresponding to the device attribute information and the device type, the communication management table; the information receiving module is configured to receive communication information sent by the local area network device, where the communication information carries the The device attribute information of the local area network device, the device attribute information may include a physical address or a hardware identifier of the local area network device; a connection query module configured to be based on the pre-established communication management table and from the communication information The parsed device attribute information determines a WAN connection corresponding to the communication information; and an information outgoing module configured to transmit the communication information over the WAN connection.
  • a gateway device including: an information acquiring module, configured to acquire device attribute information and a device type of a local area network device; and a mapping establishing module configured to: according to the device
  • An embodiment of the present invention further provides a local area network device communication management system, where the local area network device communication management system includes at least one local area network device and a gateway device as described above.
  • FIG. 1 is a flowchart of a method for managing communication of a local area network device according to Embodiment 1 of the present invention
  • FIG. 3 is a flowchart of acquiring a device type by a gateway device according to Embodiment 1 of the present invention
  • FIG. 4 is a flowchart of forwarding, by a gateway device, communication information according to Embodiment 1 of the present invention
  • FIG. 5 is a sequence diagram of communication management performed by a home gateway to a local area network device according to Embodiment 2 of the present invention.
  • FIG. 6 is a schematic structural diagram of a gateway device according to Embodiment 3 of the present invention.
  • FIG. 7 is a schematic structural diagram of hardware of a gateway device according to Embodiment 3 of the present invention.
  • the first type of server that provides network resources for different LAN devices is located on different network segments.
  • a video resource server corresponding to a set top box in a home is located in the 14.25.XX network segment, and a game machine server that provides an online game service for the game machine.
  • the two servers are on different networks.
  • the second type of servers that provide network resources for different LAN devices are located in the same network segment, but different servers use different VLANs (Virtual Local Area Network).
  • VLANs Virtual Local Area Network
  • online web games correspond to VLAN 100
  • online video viewing corresponds to VLAN 200.
  • the WAN connection used by the two types of LAN devices, the game console and the set-top box, is also different.
  • FIG. 1 is a flowchart of a method for managing communication of a local area network device according to Embodiment 1 of the present invention. As shown in FIG. 1 , the process includes the following steps:
  • the gateway device receives the communication information sent by the LAN device.
  • the gateway device When the LAN device accesses its corresponding network resource, that is, accesses the network resource it needs, the gateway device sends a communication message for characterizing the request to the server providing the network resource.
  • the communication information carries device attribute information of the information transmitting end, that is, device attribute information of the LAN device carrying the communication information.
  • the gateway device After receiving the communication information sent by the LAN device, the gateway device can parse the communication information and obtain the device attribute information of the information sending end.
  • the device attribute information of the LAN device includes, but is not limited to, a hardware identifier of the LAN device, a MAC (Media Access Control) address (physical address) of the LAN device, and the like.
  • the device attribute information uniquely corresponds to the LAN device accessed by the gateway device, so that the gateway device can accurately distinguish each LAN device that accesses itself.
  • the device attribute information is selected because the device attribute information of the LAN device itself is unique and cannot be counterfeited.
  • other device information that can uniquely distinguish each LAN device that accesses the same gateway device may be used instead of the device attribute information.
  • the user separately sets the difference information of the set top box, the game machine, and the notebook computer that access the same gateway device to 01, 02, and 03 respectively. It should be understood by those skilled in the art that when the user customizes the setting difference information, it should be ensured that the customized difference information has a long-term unique identifier for a LAN device under one gateway device.
  • the LAN device does not need to perform special processing on the communication information when transmitting the communication information to the gateway device, and the gateway device can directly parse the corresponding MAC address. address. If the distinguishing information set by the user is used to uniquely identify the LAN device, it is possible that the LAN device needs to add the difference information of the LAN device to the communication information when transmitting the communication information.
  • the gateway device determines, according to the pre-established communication management table and the device attribute information acquired from the communication information, a WAN connection manner corresponding to the communication information.
  • the gateway device may parse the device attribute information of the LAN device from the communication information, and then according to the device type of the LAN device in the communication management table established in advance, the device attribute information of the LAN device, and the WAN.
  • the mapping relationship between the three connections determines the WAN connection corresponding to the device attribute information, so that the WAN connection required to send the communication information can be determined.
  • FIG. 2 is a flowchart of creating a communication management table in Embodiment 1 of the present invention. As shown in Figure 2, the process includes the following steps:
  • the gateway device acquires device attribute information and a device type of the LAN device.
  • the gateway device obtains the device attribute information and the device type of the LAN device, so as to establish a mapping relationship between the device attribute information, the device type, and the WAN connection.
  • the device attribute information and the device type can be acquired together or separately.
  • the gateway device obtains the device type of the LAN device through the universal plug and play technology.
  • UFP Universal Plug and Play
  • UPnP is an architecture for common peer-to-peer network connections for PCs and smart devices (or instruments), especially in the home. Based on Internet standards and technologies (such as TCP/IP, HTTP, and XML), UPnP enables such devices to automatically connect and work with each other, making networks (especially home networks) possible for more people.
  • UPnP includes multiple protocols, and SSDP (Simple Service Discovery Protocol) refers to a simple service discovery protocol, which is one of the core protocols of UPnP technology.
  • SSDP Simple Service Discovery Protocol
  • the gateway device may acquire the device type of the LAN device based on the notification message, and the following describes the process of the gateway device acquiring the device type of the LAN device.
  • FIG. 3 is a flowchart of acquiring a device type by a gateway device according to Embodiment 1 of the present invention. As shown in FIG. 3, the process includes the following steps:
  • the gateway device receives the notification message sent by the LAN device.
  • the gateway device After receiving the notification message sent by the LAN device, the gateway device can confirm that the LAN device has accessed the network. After that, the LAN device has a need to access network resources, so the gateway device needs to determine its device type. The LAN device can send a notification message to the gateway device through the Simple Service Discovery Protocol after accessing the gateway device.
  • the gateway device parses the notification message to obtain a URL (Uniform Resource Locator) of the description file of the LAN device.
  • URL Uniform Resource Locator
  • the location field of the notification message carries the URL of the description file of the device. Therefore, the gateway device only needs to parse the notification message to obtain the URL of the description file of the LAN device, for example, the URL of the description file of a LAN device is http. //192.168.1.20:49152/des.xml.
  • the gateway device accesses the description file according to the parsed URL to obtain a device type of the LAN device.
  • the description file of the LAN device can be accessed according to the URL.
  • the description file is, for example, "des.xml”, and the ⁇ modelName> in the description file des.xml describes the type of the LAN device.
  • the gateway device accesses the description file according to http//192.168.1.20:49152/des.xml, Obtain such information from the description file: " ⁇ modelName>STB ⁇ /modelName>", which means that the device type of the LAN device is a set top box.
  • the gateway device accesses the description file of the LAN device according to the URL of the LAN device, for example, a TCP (Transmission Control Protocol) connection should be established with the LAN device. Then, the description file corresponding to the URL is accessed through HTTP (Hyper Text Transfer Protocol), and the device type of the LAN device is obtained from the description file.
  • HTTP Hyper Text Transfer Protocol
  • the device attribute information of the device can be actively reported by the LAN device, and the device attribute information of the LAN device can be obtained by the gateway device actively sending the inquiry message.
  • the device attribute information is a MAC address of the LAN device, and the MAC address is obtained by parsing the notification message sent from the LAN device to the gateway device. Therefore, in this embodiment, the gateway device is based on the universal Plug and Play technology can get the device attribute information and device type of the LAN device together.
  • the gateway device may obtain the device type or the device attribute information of the LAN device by using other methods, for example, the gateway device receives the information actively sent by the LAN device.
  • the device type or device attribute information of the LAN device is included in the information.
  • the gateway device after the LAN device accesses the gateway device, the gateway device actively sends the inquiry information to the LAN device, and after receiving the inquiry information, the LAN device sends the information including the device attribute information and/or the device type to the gateway device according to the inquiry information. .
  • the gateway device establishes a communication management table based on the acquired device type, device attribute information, and a WAN connection corresponding to the device attribute information and the device type.
  • the communication management table is mainly used by the gateway device to query the WAN connection corresponding to each LAN device.
  • the correspondence between different LAN devices and different WAN connections is mainly determined by the mapping relationship between the device attribute information of the LAN device, the device type, and the WAN connection used by the LAN device to access the required network resources. Therefore, after the gateway device obtains the device type and the device attribute information, a mapping relationship is established between the two and the WAN connection, and the mapping relationship is recorded through the communication management table.
  • the gateway device does not need to establish a communication management table every time before receiving the communication information of the LAN device. It may also be created once after a LAN device establishes a connection with the gateway device, and the gateway device does not need to re-create a communication management table for the LAN device after the LAN device accesses the gateway device and does not disconnect.
  • the gateway device connects the outgoing communication information by using the determined WAN connection.
  • the gateway device determines the WAN connection corresponding to the communication information
  • the communication information of the LAN device can be sent out through the WAN connection, so that the LAN device can access the network resources required by the LAN device through the communication information.
  • the communication management table may further include an identification identifier, where the length of the identification identifier is smaller than the length of the MAC address of the LAN device, and respectively corresponding to the device type and the WAN connection.
  • the gateway device parses and determines the device attribute information of a LAN device from the received communication information in a subsequent management process, it can be determined.
  • the device type of the LAN device may further set an identification identifier corresponding to the device type for the communication information, so as to conveniently select a WAN connection corresponding to the identification identifier when forwarding the communication information.
  • Table 1 shows a communication management table provided by this embodiment.
  • the embodiment does not limit the relationship between the WAN connection, the identification identifier, the LAN device type, and the device attribute information in the form of the above table, as long as the communication management table can represent the WAN connection and the LAN device.
  • the above mapping relationship exists between the type and the device attribute information.
  • FIG. 4 is a flowchart of a gateway device forwarding communication information according to Embodiment 1 of the present invention. As shown in FIG. 4, the process includes the following steps:
  • the gateway device determines, according to the communication management table, an identification identifier corresponding to the device attribute information carried by the communication information.
  • the identification identifier corresponding to the LAN device can be determined.
  • the device attribute information of the LAN device is user-defined, and the gateway device If the parsed device attribute information is "00:11:22:33:22:10", the identification identifier corresponding to the LAN device may be determined as "B" according to the communication management table.
  • the gateway device is an identification identifier corresponding to the communication information identifier.
  • the gateway device identifies the identification for the communication information so that it can subsequently simply identify which WAN connection the communication information should be sent over. For example, in the above example, the gateway device may mark the identification identifier "B" on the communication information.
  • the gateway device selects a corresponding wide area network connection for the communication information according to the identification identifier marked for the communication information, and sends the communication information.
  • the gateway device determines, according to the communication management table and the identification identifier marked on the communication information, the WAN connection that the LAN device needs to access the required network resource, and sends the communication information by using the corresponding WAN connection. Go out.
  • the identification identifier is only an auxiliary information for facilitating the actual communication information forwarding by the gateway device, and is not necessary for implementing the solution of the embodiment.
  • the gateway device obtains the device type of the LAN device by using the universal plug-and-play technology, and the manner of obtaining the device type is different from the manner in which the device type is obtained through DHCP in the related art.
  • the device type of all LAN devices connected to the gateway device can be obtained without distinguishing the IP configuration mode of the LAN device.
  • the gateway device After acquiring the device type and device attribute information of the LAN device, the gateway device creates a mapping relationship between the device type, the device attribute information, and the WAN connection used by the LAN device to access the network resource, where the device attribute information is inherent to the LAN device. Attribute information, therefore, device attribute information does not change and can be used to characterize LAN devices for a long time.
  • the gateway device may determine the WAN connection for sending the communication information according to the foregoing mapping relationship, so that the port of the gateway device is not rigidly bound, and the IP address of each LAN device does not need to be kept at any time. In this case, it is possible to ensure that different LAN devices access the network using different WAN connections. Compared with the related art in which the gateway device port resources are sacrificed or the gateway device processing performance is sacrificed, and the IP address of the LAN device is always concerned, the resource utilization of the gateway device is not only improved, but also the communication of all the LAN devices under the gateway device can be performed. The management of the same way further simplifies the management of the gateway device.
  • FIG. 5 is a sequence diagram of communication management of a local area network device by a home gateway according to Embodiment 2 of the present invention. As shown in FIG. 5, the timing diagram includes the following steps:
  • the home gateway establishes a first mapping relationship between the identifier, the device type, and the WAN connection.
  • the set-top box needs to access the WAN resources through the WAN connection A.
  • the game machine (such as the Xbox) needs to access the WAN environment of the WAN resources through the WAN connection B, and the home gateway generates the first mapping relationship as shown in Table 2.
  • the LAN device sends an SSDP notification message to the home gateway.
  • the home gateway parses the notification message to obtain a description file URL and device attribute information of the LAN device.
  • the URL of the LAN device description file is in the Location field of the notification message, and the home gateway only needs to parse the notification message to obtain the URL of the LAN device description file.
  • the home gateway can obtain the MAC address of the LAN device from the notification message by parsing the notification message sent by the LAN device.
  • the MAC address of a LAN device is “00:11:22:33:44:55”, and the home gateway can This MAC address is used as device attribute information of the LAN device.
  • the home gateway establishes a TCP connection with the LAN device.
  • the communication connection established by the home gateway with the LAN device may be any other connection having a similar function in addition to the TCP connection.
  • the home gateway accesses the description file of the LAN device to obtain the device type of the LAN device.
  • the home gateway obtains a description file corresponding to the URL through HTTP. Then, according to ⁇ modelName>STB ⁇ /modelName> in the device description file, the device type of the LAN device accessing the home gateway is STB, that is, the set top box.
  • the home gateway can also obtain the device type of the Xbox accessing the home gateway and its device attribute information.
  • the home gateway establishes a communication management table.
  • the communication management table as shown in Table 3 can be generated.
  • the home gateway establishes the first mapping relationship at the beginning, it should be understood that the home gateway may also create a communication management table after obtaining all the information.
  • the home gateway releases the TCP connection with the LAN device
  • the home gateway When the home gateway writes the device attribute information of the LAN device and its device type to the communication management table, the home gateway can release the TCP connection previously established with the LAN.
  • the LAN device determines that the communication management table on the home gateway side has been maintained.
  • the set-top box, Xbox, or other LAN device determines that the TCP connection between itself and the home gateway has been released, it is known that the home gateway has maintained the management information table and can receive the service message sent by the LAN device.
  • the LAN device sends a service packet to the home gateway to access the network resources required by the LAN device after the home gateway forwards the service packet.
  • S510 The home gateway prepares the packet forwarding.
  • the home gateway parses the service packet to obtain the device attribute information of the LAN device, for example, parses the MAC address as "00:11:22:33:22:10".
  • the home gateway determines that the identification identifier that the message should be marked is "B", and identifies the identifier "B" for the message identifier.
  • the home gateway forwards the service packet to the server.
  • the home gateway identifies the outgoing service packet of the WAN connection B corresponding to the identifier "B" in the communication management table.
  • the home gateway After obtaining the device attribute information of the LAN device and the device type of the LAN device, the home gateway establishes a communication management table, and the device attribute information can uniquely identify a LAN device for a long time. Therefore, in this embodiment, the home gateway can ensure that different LAN devices use different WAN connections to access the network without rigidly binding their own ports and without paying attention to the IP addresses of the LAN devices at any time. Compared with the related art in which the home gateway port resource is sacrificed or the gateway device processing performance is sacrificed, and the IP address of the LAN device is always concerned, the resource utilization of the home gateway and the flexibility and uniformity of the LAN device communication management are greatly improved. Sex.
  • FIG. 6 is a schematic structural diagram of a gateway device according to Embodiment 3 of the present invention.
  • the gateway device 60 includes an information obtaining module 602, a mapping establishing module 604, an information receiving module 606, a connection query module 608, and an information outgoing module 610.
  • the information acquisition module 602 is configured to acquire device attribute information and device type of the LAN device.
  • the mapping establishment module 604 is configured to establish a communication management table according to the device attribute information, the device type, the WAN connection manner corresponding to the device attribute information and the device type.
  • the information receiving module 606 receives the communication information sent by the local area network device, where the communication information carries the device attribute information of the local area network device.
  • the wide area network connection used by the outgoing communication information is then determined by the connection inquiry module 608 based on the pre-established communication management table and the device attribute information acquired from the communication information.
  • the information outgoing module 610 connects the outgoing communication information through the determined wide area network.
  • the information receiving module 606 transmits the communication information for characterizing the request to the server providing the network resource.
  • the communication information carries device attribute information of the information transmitting end, that is, device attribute information of the LAN device that transmits the communication information.
  • the information may be parsed to obtain the device attribute information of the information sending end.
  • the device attribute information of the LAN device includes, but is not limited to, a hardware unique identifier of the LAN device, a MAC address of the LAN device, and the like.
  • the device attribute information uniquely corresponds to the LAN device accessed by the gateway device 60, so that the gateway device 60 can accurately distinguish the LAN devices of the access gateway device 60.
  • the device attribute information is selected because the device attribute information of the LAN device itself is unique and cannot be counterfeited.
  • other device information that can uniquely distinguish each LAN device that accesses the same gateway device may be used instead of the device attribute information.
  • the user separately sets the difference information of the set top box, the game machine, and the notebook computer that access the same gateway device 60 to 01, 02, and 03, respectively.
  • the LAN device if the LAN device is uniquely distinguished by the MAC address of the LAN device, the LAN device does not need to perform special processing on the communication information when transmitting the communication information to the information receiving module 606, and the information receiving module 606 can directly parse the communication information. The corresponding MAC address is output. If the distinguishing information set by the user is used to uniquely identify the LAN device, it is possible that the LAN device needs to add the difference information of the LAN device to the communication information when transmitting the communication information.
  • the information receiving module 606 can parse the device attribute information of the LAN device from the communication information, and then according to the device type of the LAN device and the device attribute of the LAN device in the communication management table established in advance.
  • the mapping relationship between the information and the WAN connection determines the WAN connection corresponding to the device attribute information, so that the WAN connection required for the outgoing communication information can be determined.
  • the gateway device 60 Before receiving the communication information of the LAN device, the gateway device 60 needs to establish a communication management table.
  • the device attribute information and the device type may be acquired together or separately.
  • the information acquisition module 602 acquires the device type of the LAN device through the Universal Plug and Play technology (UPnP) described above.
  • UFP Universal Plug and Play technology
  • the information acquisition module 602 can acquire the device type of the LAN device based on the notification message. The following describes the process of the information acquisition module 602 acquiring the device type of the LAN device.
  • the information obtaining module 602 can confirm that the LAN device has accessed the network. After that, the LAN device has a need to access network resources, so the information acquisition module 602 needs to determine its device type.
  • the LAN device can send a notification message to the gateway device through the Simple Service Discovery Protocol after accessing the gateway device.
  • the URL of the description file of the device is included in the Location field of the notification message. Therefore, the information acquisition module 602 can obtain the URL of the LAN device description file only by parsing the notification message, for example, the URL of a LAN device description file is http. //192.168.1.20:49152/des.xml.
  • the profile of the LAN device can be accessed according to the URL.
  • the description file is, for example, "des.xml", and the ⁇ modelName> in the description file des.xml describes the type of the LAN device.
  • the information acquisition module 602 accesses the description file according to http//192.168.1.20:49152/des.xml. You can get this information from the description file: " ⁇ modelName>STB ⁇ /modelName>", which means that the device type of the LAN device is set-top box.
  • the information acquisition module 602 should establish a TCP connection with the LAN device before accessing the description file of the LAN device according to the URL of the LAN device. Then, the description file corresponding to the URL is accessed through HTTP, and the device type of the LAN device is obtained from the description file.
  • the device information of the LAN device may be actively reported by the LAN device, or the device may be sent by the information acquisition module 602 to obtain the device of the LAN device. Attribute information.
  • the device attribute information is the MAC address of the LAN device, and the MAC address can be obtained by parsing the notification message sent from the LAN device to the information acquiring module 602. Therefore, in this embodiment, the information acquiring module The 602 can obtain the device attribute information and the device type of the LAN device together based on the universal plug and play technology.
  • the information acquiring module 602 may acquire the device type or device attribute information of the LAN device by using other methods, for example, the information acquiring module 602 receives the LAN device.
  • the information sent actively includes the device type or device attribute information of the LAN device in the information.
  • the information acquiring module 602 actively sends the inquiry information to the LAN device, and after receiving the inquiry information, the LAN device sends the device attribute information and/or the device to the gateway device according to the inquiry information.
  • Type of information is the information sent actively includes the device type or device attribute information of the LAN device in the information.
  • the communication management table created by the mapping establishment module 604 is mainly used in the subsequent process to connect the query module to query the WAN connection corresponding to each LAN device.
  • the correspondence between different LAN devices and different WAN connections is mainly determined by the mapping relationship between the device attribute information of the LAN device, the device type, and the WAN connection used by the LAN device to access the required network resources. Therefore, after the information acquisition module 602 obtains the device type and the device attribute information, the mapping establishment module 604 establishes a mapping relationship between the two and the WAN connection, and records the mapping relationship through the communication management table.
  • mapping establishment module 604 does not need to establish a communication management table every time the communication information of the LAN device is received. It may also be created once after a LAN device establishes a connection with the gateway device 60. After the LAN device accesses the gateway device 60 and does not disconnect, the mapping establishment module 604 does not need to re-create a communication management table for the LAN device.
  • the information outgoing module 610 can send out the communication information of the LAN device through the WAN connection, so that the LAN device can access the LAN device through the communication information.
  • Internet resources can be used to send out the communication information of the LAN device through the WAN connection, so that the LAN device can access the LAN device through the communication information.
  • the intermediate processing may need to be performed based on the device attribute information.
  • the device attribute information of a part of the LAN device for example, the MAC address of the device
  • the management table may further include an identification identifier, where the length of the identifier is smaller than the length of the MAC address of the LAN device, and corresponds to the device type and the WAN connection respectively.
  • the device attribute information of the LAN device has a correspondence relationship with the device type
  • the connection query module 608 parses and determines the device attribute of a LAN device from the received communication information.
  • the device type of the LAN device can be determined, and an identification identifier corresponding to the device type can be set for the communication information, so as to conveniently select the WAN connection corresponding to the identification identifier when forwarding the communication information.
  • the present embodiment is also not limited to the relationship between the WAN connection, the identification identifier, the LAN device type, and the device attribute information that must be stored in the gateway device 60 in the form of the above table, as long as the communication management table can represent the WAN connection, the LAN.
  • the above mapping relationship exists between the device type and the device attribute information.
  • the identification identifier corresponding to the LAN device can be determined.
  • the device attribute information of the LAN device is user-defined, and If the device attribute information obtained by the connection query module 608 is "00:11:22:33:22:10", the identification identifier corresponding to the LAN device can be determined as "B" according to the communication management table.
  • connection query module 608 identifies the identification for the communication information so that it can subsequently be easily identified by which WAN connection the communication information should be sent. For example, in the above example, the connection query module 608 can mark the identification identifier "B" on the communication information.
  • the information outgoing module 610 selects a corresponding wide area network connection for the communication information according to the identification identifier marked on the communication information, and issues the communication information.
  • the information outgoing module 610 forwards the communication information, it determines the WAN connection that the LAN device needs to use to access the required network resources according to the communication management table and the identification identifier on the communication information, and sends the communication information by using the corresponding WAN connection. Go out.
  • the identification identifier is only an auxiliary information for facilitating the forwarding of the actual communication information by the information outgoing module 610, and is not necessary for implementing the solution of the embodiment.
  • the mapping establishment module 604 may also create a first mapping relationship before the information acquiring module 602 acquires the device attribute information and the device type of the LAN device, and the first mapping relationship may be as shown in Table 2. After the information obtaining module 602 obtains the device attribute information and the device type, the mapping establishing module 604 can directly supplement the device attribute information of the LAN device based on the first mapping relationship (Table 2), thereby completing the work of creating the communication management table.
  • Table 2 the first mapping relationship
  • the embodiment further provides a local area network device communication management system, which includes one or more local area network devices and the above-mentioned gateway device.
  • the local area network device accesses the gateway device, and communicates with the external wide area network through the gateway device, and the gateway device not only transmits information from the wide area network.
  • Forwarded to the LAN device and also establishes a communication management table to manage the communication of the LAN device, and forwards the information sent by the LAN device to the external WAN based on the communication management table.
  • FIG. 7 is a schematic structural diagram of hardware of a gateway device according to Embodiment 3 of the present invention.
  • the gateway device 7 includes a processor 701, a memory 702, and a communication device 703.
  • the communication device 703 can acquire the device attribute information of the LAN device under the control of the processor 701 and acquire the device type of the LAN device based on the universal plug and play technology, and then the processor 701 creates a communication management table based on the information acquired by the communication device 703.
  • the communication management table can be stored in the memory 702.
  • the processor 701 may parse the communication information, thereby acquiring the device attribute information of the LAN device transmitting the communication information.
  • the processor determines a WAN connection to transmit the communication information based on the communication management table stored in the memory 702, and controls the communication device 703 to select a corresponding WAN connection to forward the communication information.
  • the functions of the information acquisition module in the second embodiment can be implemented by the communication device 703 of the gateway device 7 and the processor 701, and the functions of the information receiving module and the information delivery module can be implemented by the communication device 703.
  • the functions of the mapping establishment module and the connection query module can be implemented by the processor 701 and the memory 702.
  • the gateway device acquires the device type of the LAN device and the device attribute information that can uniquely identify a LAN device for a long time, and creates a device type, device attribute information, and a WAN connection used by the LAN device to access the network resource.
  • the mapping relationship, the device attribute information is the intrinsic attribute information of the LAN device. Therefore, the device attribute information does not change, and the LAN device can be characterized for a long time.
  • the gateway device may determine the WAN connection for sending the communication information according to the foregoing mapping relationship, so that the port of the gateway device is not rigidly bound, and the IP address of each LAN device does not need to be kept at any time.
  • the gateway device port resources are sacrificed or the gateway device processing performance is sacrificed, and the IP address of the LAN device is always concerned
  • the resource utilization of the gateway device is not only improved, but also because the acquisition device type is through the universal plug and play technology.
  • the method of obtaining the device type by using DHCP is different, and the device type of all LAN devices connected to the gateway device can be obtained without distinguishing the IP configuration mode of the LAN device, and all LAN devices under the gateway device can be obtained.
  • the communication is managed in the same way, so the management of the gateway device is further simplified.
  • modules or steps of the above embodiments of the present invention can be implemented by a general computing device, which can be concentrated on a single computing device or distributed among multiple computing devices. On the network, or they may be implemented by program code executable by the computing device so that they can be stored in a computer storage medium (ROM/RAM, disk, optical disk) by a computing device, and in some cases
  • ROM/RAM, disk, optical disk a computer storage medium
  • the steps shown or described may be performed in a different order than that described herein, or they may be separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof may be implemented as a single integrated circuit module. Therefore, the invention is not limited to any particular combination of hardware and software.
  • the embodiment of the invention provides a LAN device communication management method, system and gateway device, which improves the flexibility of the gateway device for LAN device communication management and the resource utilization of the gateway device.

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

Disclosed are a local area network device communication management method and system, and a gateway device. A gateway device pre-establishes a communication management table of a mapping relationship between device attribute information about an LAN device, a device type, and a WAN connection used by the LAN device for accessing a network resource. When the LAN device sends communication information to the gateway device, the gateway device can determine the WAN connection used for sending out the communication information according to the communication management table and the device attribute information carried in the communication information, and sends out the communication information.

Description

局域网设备通信管理方法、系统及网关设备LAN device communication management method, system and gateway device 技术领域Technical field
本发明涉及通信领域,尤其涉及局域网设备通信管理方法、系统及网关设备。The present invention relates to the field of communications, and in particular, to a LAN device communication management method, system, and gateway device.
背景技术Background technique
随着家庭通信终端种类与日俱增,接入网关设备的LAN(Local Area Network,局域网)设备越来越多,比如数字电视机顶盒、个人电脑、游戏机(如Xbox,PS4)等等。这些LAN设备需要通过不同的WAN(Wide Area Network,广域网)连接去访问各自的网络资源。WAN连接是指家庭网关设备接入广域网时建立的虚拟通道。举个例子,机顶盒请求的视频源服务器和Xbox访问的游戏服务器不在一个网络中,这就需要家庭网关设备建立两条WAN连接,分别用于连接视频源服务器和游戏服务器。在一些情形下,为了让不同的LAN设备通过不同的WAN连接去访问网络资源,通常将网关设备的端口进行端口绑定,但这种情况下,特定LAN端口接入的LAN设备只能通过对应的WAN连接访问网络资源。因此这种方案存在如下缺陷:一是灵活性较差,因为该方案中固定了网关设备各端口所能接入的LAN设备的类型;二是端口利用率低,无法适用于一个端口接入不同类型设备的场景。With the increasing variety of home communication terminals, there are more and more LAN (Local Area Network) devices accessing gateway devices, such as digital TV set-top boxes, personal computers, game consoles (such as Xbox, PS4) and the like. These LAN devices need to access their respective network resources through different WAN (Wide Area Network) connections. A WAN connection is a virtual channel established when a home gateway device accesses a wide area network. For example, the video source server requested by the set-top box and the game server accessed by the Xbox are not in a network, which requires the home gateway device to establish two WAN connections for connecting the video source server and the game server respectively. In some cases, in order to allow different LAN devices to access network resources through different WAN connections, the port of the gateway device is usually port-bound, but in this case, the LAN device connected to the specific LAN port can only pass the corresponding The WAN connection accesses network resources. Therefore, this solution has the following drawbacks: First, the flexibility is poor, because the type of the LAN device that each port of the gateway device can access is fixed in the solution; the second is that the port utilization is low, and cannot be applied to one port access differently. The scenario of the type device.
综上,现在亟需提出一种新的方案以保证不同LAN设备通过不同WAN连接访问网络资源。In summary, there is an urgent need to propose a new solution to ensure that different LAN devices access network resources through different WAN connections.
发明内容Summary of the invention
本发明实施例提供一种局域网设备通信管理方法、系统及网关设备。Embodiments of the present invention provide a LAN device communication management method, system, and gateway device.
本发明实施例提供了一种局域网设备通信管理方法,包括:网关设备接收局域网设备发送的通信信息,其中,所述通信信息中携带有所述局域网设备的设备属性信息;所述网关设备从所述 通信信息中解析出所述设备属性信息;所述网关设备基于预先建立的通信管理表确定与所述通信信息对应的广域网(WAN)连接,其中,所述通信管理表中包括所述局域网设备的设备类型、所述设备属性信息以及所述WAN连接之间的映射关系;以及所述网关设备通过所述WAN连接发送所述通信信息。An embodiment of the present invention provides a communication management method for a local area network device, including: a gateway device receiving communication information sent by a local area network device, where the communication information carries device attribute information of the local area network device; Decoding the device attribute information in the communication information; the gateway device determines a wide area network (WAN) connection corresponding to the communication information based on a pre-established communication management table, wherein the communication management table includes the local area network device Device type, the device attribute information, and a mapping relationship between the WAN connections; and the gateway device transmits the communication information over the WAN connection.
本发明实施例还提供一种网关设备,包括:信息获取模块,其构造为获取局域网设备的设备属性信息与设备类型;映射建立模块,其构造为依据所述设备属性信息、所述设备类型、与所述设备属性信息和所述设备类型对应的WAN连接建立所述通信管理表;信息接收模块,其构造为接收所述局域网设备发送的通信信息,其中,所述通信信息中携带有所述局域网设备的所述设备属性信息,所述设备属性信息可包括所述局域网设备的物理地址或硬件标识;连接查询模块,其构造为基于预先建立的所述通信管理表和从所述通信信息中解析出的所述设备属性信息确定与所述通信信息对应的WAN连接;以及信息外发模块,其构造为通过所述WAN连接发送所述通信信息。The embodiment of the present invention further provides a gateway device, including: an information acquiring module, configured to acquire device attribute information and a device type of a local area network device; and a mapping establishing module configured to: according to the device attribute information, the device type, Establishing, by the WAN connection corresponding to the device attribute information and the device type, the communication management table; the information receiving module is configured to receive communication information sent by the local area network device, where the communication information carries the The device attribute information of the local area network device, the device attribute information may include a physical address or a hardware identifier of the local area network device; a connection query module configured to be based on the pre-established communication management table and from the communication information The parsed device attribute information determines a WAN connection corresponding to the communication information; and an information outgoing module configured to transmit the communication information over the WAN connection.
本发明实施例还提供一种局域网设备通信管理系统,所述局域网设备通信管理系统包括至少一个局域网设备以及如上所述的网关设备。An embodiment of the present invention further provides a local area network device communication management system, where the local area network device communication management system includes at least one local area network device and a gateway device as described above.
附图说明DRAWINGS
图1是本发明实施例一提供的局域网设备通信管理方法的流程图;1 is a flowchart of a method for managing communication of a local area network device according to Embodiment 1 of the present invention;
图2是本发明实施例一中创建通信管理表的流程图;2 is a flowchart of creating a communication management table in Embodiment 1 of the present invention;
图3是本发明实施例一中网关设备获取设备类型的流程图;3 is a flowchart of acquiring a device type by a gateway device according to Embodiment 1 of the present invention;
图4是本发明实施例一中网关设备对通信信息进行转发的流程图;4 is a flowchart of forwarding, by a gateway device, communication information according to Embodiment 1 of the present invention;
图5是本发明实施例二提供的家庭网关对局域网设备进行通信管理的时序图;5 is a sequence diagram of communication management performed by a home gateway to a local area network device according to Embodiment 2 of the present invention;
图6是本发明实施例三提供的网关设备的结构示意图;以及6 is a schematic structural diagram of a gateway device according to Embodiment 3 of the present invention;
图7是本发明实施例三提供的网关设备的硬件结构示意图。FIG. 7 is a schematic structural diagram of hardware of a gateway device according to Embodiment 3 of the present invention.
具体实施方式detailed description
下面结合附图通过实施例对本发明作进一步详细说明。The present invention will be further described in detail below by way of embodiments with reference to the accompanying drawings.
实施例一Embodiment 1
由于不同LAN设备所需访问的网络资源并不在同一网络中,因此不同LAN设备需要通过不同的WAN连接去访问各自的网络资源。本文描述的“不同网络”至少有以下两种情况:Since the network resources required by different LAN devices are not in the same network, different LAN devices need to access their respective network resources through different WAN connections. The "different networks" described in this article have at least two things:
第一种、为不同LAN设备提供网络资源的服务器位于不同的网段,例如,一个家庭中机顶盒对应的视频资源服务器位于14.25.X.X网段中,而为游戏机提供联机游戏服务的游戏机服务器处于104.75.X.X网段中,则这两个服务器处于不同网络中。The first type of server that provides network resources for different LAN devices is located on different network segments. For example, a video resource server corresponding to a set top box in a home is located in the 14.25.XX network segment, and a game machine server that provides an online game service for the game machine. In the network segment 104.75.XX, the two servers are on different networks.
第二种、为不同LAN设备提供网络资源的服务器位于同一网段中,但是不同服务器所使用的VLAN(Virtual Local Area Network,虚拟局域网)不同,例如在线网页游戏对应VLAN100,但是在线视频观看对应VLAN200,这种情况下,游戏机与机顶盒这两种LAN设备所使用的WAN连接也是不相同的。The second type of servers that provide network resources for different LAN devices are located in the same network segment, but different servers use different VLANs (Virtual Local Area Network). For example, online web games correspond to VLAN 100, but online video viewing corresponds to VLAN 200. In this case, the WAN connection used by the two types of LAN devices, the game console and the set-top box, is also different.
由于在相关技术中,网关设备在确保接入自身的各LAN设备均通过对应WAN连接访问网络资源的时候,或多或少都必须对网关设备实际的端口资源或者处理资源做一些牺牲。而且,当网关设备不采用端口绑定的方式来管理LAN设备的通信时,可能不能对接入网关设备的全部LAN设备进行管理。针对这些问题,本实施例提供一种局域网设备通信管理方法。图1是本发明实施例一提供的局域网设备通信管理方法的流程图,如图1所示,该流程包括如下步骤:In the related art, when the gateway device ensures that each LAN device accessing itself accesses the network resource through the corresponding WAN connection, it is more or less necessary to make some sacrifice to the actual port resource or processing resource of the gateway device. Moreover, when the gateway device does not use port binding to manage communication of the LAN device, all LAN devices accessing the gateway device may not be managed. To address these problems, the embodiment provides a communication management method for a local area network device. FIG. 1 is a flowchart of a method for managing communication of a local area network device according to Embodiment 1 of the present invention. As shown in FIG. 1 , the process includes the following steps:
S102、网关设备接收LAN设备发送的通信信息。S102. The gateway device receives the communication information sent by the LAN device.
在LAN设备访问其对应的网络资源,也即访问其所需的网络资源时,会通过网关设备向提供网络资源的服务器发送用于表征请求的通信信息。通信信息携带有信息发送端的设备属性信息,也即携带有发送通信信息的LAN设备的设备属性信息。当网关设 备接收到LAN设备发送的通信信息后,可以对通信信息进行解析,获取到信息发送端的设备属性信息。When the LAN device accesses its corresponding network resource, that is, accesses the network resource it needs, the gateway device sends a communication message for characterizing the request to the server providing the network resource. The communication information carries device attribute information of the information transmitting end, that is, device attribute information of the LAN device carrying the communication information. After receiving the communication information sent by the LAN device, the gateway device can parse the communication information and obtain the device attribute information of the information sending end.
LAN设备的设备属性信息包括但不限于LAN设备的硬件标识、LAN设备的MAC(Media Access Control)地址(物理地址)等。在本实施例中,设备属性信息与网关设备接入的LAN设备唯一对应,从而使网关设备能够准确区分接入自身的各LAN设备。在本实施例中,选用设备属性信息是因为LAN设备的设备属性信息本身就是唯一且不可仿冒的。但事实上,也可以采用其他能够唯一区分接入同一个网关设备的各LAN设备的区别信息来代替设备属性信息。例如,可以自定义设置区别信息来替代设备属性信息,只要保证一个网关设备下的每个LAN设备的区别信息独一无二即可。例如,由用户将接入同一个网关设备的机顶盒、游戏机以及笔记本电脑的区别信息分别自定义设置为01、02、03,这也是可行的。本领域技术人员应当明白的是,当用户自定义设置区别信息时,应当保证自定义的区别信息在一个网关设备下具有长期唯一标识一个LAN设备的作用。The device attribute information of the LAN device includes, but is not limited to, a hardware identifier of the LAN device, a MAC (Media Access Control) address (physical address) of the LAN device, and the like. In this embodiment, the device attribute information uniquely corresponds to the LAN device accessed by the gateway device, so that the gateway device can accurately distinguish each LAN device that accesses itself. In this embodiment, the device attribute information is selected because the device attribute information of the LAN device itself is unique and cannot be counterfeited. However, in fact, other device information that can uniquely distinguish each LAN device that accesses the same gateway device may be used instead of the device attribute information. For example, you can customize the difference information to replace the device attribute information, as long as the difference information of each LAN device under a gateway device is unique. For example, it is also feasible that the user separately sets the difference information of the set top box, the game machine, and the notebook computer that access the same gateway device to 01, 02, and 03 respectively. It should be understood by those skilled in the art that when the user customizes the setting difference information, it should be ensured that the customized difference information has a long-term unique identifier for a LAN device under one gateway device.
具体地,若采用LAN设备的MAC地址来唯一区分该LAN设备,则LAN设备在向网关设备发送通信信息的时候并不需要对通信信息做特别的处理,网关设备就可以直接解析出对应的MAC地址。若采用由用户自定义设置的区分信息来唯一标识LAN设备,则可能LAN设备在发送通信信息的时候需要在通信信息中添加该LAN设备的区别信息。Specifically, if the MAC device is used to uniquely distinguish the LAN device, the LAN device does not need to perform special processing on the communication information when transmitting the communication information to the gateway device, and the gateway device can directly parse the corresponding MAC address. address. If the distinguishing information set by the user is used to uniquely identify the LAN device, it is possible that the LAN device needs to add the difference information of the LAN device to the communication information when transmitting the communication information.
S104、网关设备基于预先建立的通信管理表和从通信信息中获取到的设备属性信息确定与通信信息对应的WAN连接方式。S104. The gateway device determines, according to the pre-established communication management table and the device attribute information acquired from the communication information, a WAN connection manner corresponding to the communication information.
网关设备在接收到LAN设备发送的通信信息后,可以从通信信息中解析出LAN设备的设备属性信息,然后根据预先建立的通信管理表中LAN设备的设备类型、LAN设备的设备属性信息和WAN连接三者之间的映射关系确定与该设备属性信息对应的WAN连接,从而就可以确定出外发该通信信息所需要使用的WAN连接。After receiving the communication information sent by the LAN device, the gateway device may parse the device attribute information of the LAN device from the communication information, and then according to the device type of the LAN device in the communication management table established in advance, the device attribute information of the LAN device, and the WAN. The mapping relationship between the three connections determines the WAN connection corresponding to the device attribute information, so that the WAN connection required to send the communication information can be determined.
在接收LAN设备的通信信息之前,网关设备需要建立通信管 理表,为了建立通信管理表,网关设备需要获得接入自身的LAN设备的设备属性信息和设备类型。下面结合图2对网关设备预先建立通信管理表的过程进行介绍。图2是本发明实施例一中创建通信管理表的流程图。如图2所示,该流程包括如下步骤:Before receiving the communication information of the LAN device, the gateway device needs to establish a communication management table. In order to establish the communication management table, the gateway device needs to obtain device attribute information and device type of the LAN device accessing itself. The process of establishing a communication management table in advance by the gateway device will be described below with reference to FIG. FIG. 2 is a flowchart of creating a communication management table in Embodiment 1 of the present invention. As shown in Figure 2, the process includes the following steps:
S202、网关设备获取LAN设备的设备属性信息以及设备类型。S202. The gateway device acquires device attribute information and a device type of the LAN device.
网关设备获取LAN设备的设备属性信息以及设备类型,是为了建立设备属性信息、设备类型以及WAN连接三者之间的映射关系。设备属性信息和设备类型的获取可以是一起获取,也可以是分别获取。在本实施例中,网关设备通过通用即插即用技术获取LAN设备的设备类型,下面对通用即插即用技术(Universal Plug and Play,UPnP)进行简单的介绍:The gateway device obtains the device attribute information and the device type of the LAN device, so as to establish a mapping relationship between the device attribute information, the device type, and the WAN connection. The device attribute information and the device type can be acquired together or separately. In this embodiment, the gateway device obtains the device type of the LAN device through the universal plug and play technology. The following is a brief introduction to the Universal Plug and Play (UPnP) technology:
UPnP是一种用于PC机和智能设备(或仪器)的常见对等网络连接的体系结构,尤其是在家庭中。UPnP以Internet标准和技术(例如TCP/IP、HTTP和XML)为基础,使这样的设备彼此可自动连接和协同工作,从而使网络(尤其是家庭网络)对更多的人成为可能。UPnP中包括多种协议,其中SSDP(Simple Service Discovery Protocol)是指简单服务发现协议,该协议是UPnP技术的核心协议之一。LAN设备接入到网关设备时,发送SSDP协议的通知消息(NOTIFY消息),宣告自己已接入网络。网关设备可基于通知消息获取到LAN设备的设备类型,下面对网关设备获取LAN设备的设备类型的过程进行介绍。图3是本发明实施例一中网关设备获取设备类型的流程图,如图3所示,该流程包括如下步骤:UPnP is an architecture for common peer-to-peer network connections for PCs and smart devices (or instruments), especially in the home. Based on Internet standards and technologies (such as TCP/IP, HTTP, and XML), UPnP enables such devices to automatically connect and work with each other, making networks (especially home networks) possible for more people. UPnP includes multiple protocols, and SSDP (Simple Service Discovery Protocol) refers to a simple service discovery protocol, which is one of the core protocols of UPnP technology. When the LAN device accesses the gateway device, it sends a notification message (NOTIFY message) of the SSDP protocol to announce that it has access to the network. The gateway device may acquire the device type of the LAN device based on the notification message, and the following describes the process of the gateway device acquiring the device type of the LAN device. FIG. 3 is a flowchart of acquiring a device type by a gateway device according to Embodiment 1 of the present invention. As shown in FIG. 3, the process includes the following steps:
S302、网关设备接收LAN设备发送的通知消息。S302. The gateway device receives the notification message sent by the LAN device.
网关设备接收到LAN设备发送的通知消息后,即可确认该LAN设备已经接入了网络。在此之后,该LAN设备便有了访问网络资源的需求,因此网关设备需要确定其设备类型。LAN设备可以在接入网关设备之后通过简单服务发现协议向网关设备发送通知消息。After receiving the notification message sent by the LAN device, the gateway device can confirm that the LAN device has accessed the network. After that, the LAN device has a need to access network resources, so the gateway device needs to determine its device type. The LAN device can send a notification message to the gateway device through the Simple Service Discovery Protocol after accessing the gateway device.
S304、网关设备解析通知消息以获取LAN设备的描述文件的 URL(Uniform Resource Locator,统一资源定位符)。S304. The gateway device parses the notification message to obtain a URL (Uniform Resource Locator) of the description file of the LAN device.
在通知消息的Location字段带有该设备的描述文件的URL,所以,网关设备只需对通知消息进行解析,就能够获得LAN设备的描述文件的URL,例如一个LAN设备的描述文件的URL为http//192.168.1.20:49152/des.xml。The location field of the notification message carries the URL of the description file of the device. Therefore, the gateway device only needs to parse the notification message to obtain the URL of the description file of the LAN device, for example, the URL of the description file of a LAN device is http. //192.168.1.20:49152/des.xml.
S306、网关设备根据解析出的URL访问描述文件,以获取LAN设备的设备类型。S306. The gateway device accesses the description file according to the parsed URL to obtain a device type of the LAN device.
当网关设备解析出LAN设备的描述文件的URL之后,就可以根据该URL对LAN设备的描述文件进行访问。描述文件例如为“des.xml”,描述文件des.xml中的<modelName>会描述该LAN设备的类型,例如网关设备根据http//192.168.1.20:49152/des.xml访问描述文件后,可以从描述文件中获得这样的信息:“<modelName>STB</modelName>”,这表示LAN设备的设备类型为机顶盒。After the gateway device parses the URL of the description file of the LAN device, the description file of the LAN device can be accessed according to the URL. The description file is, for example, "des.xml", and the <modelName> in the description file des.xml describes the type of the LAN device. For example, after the gateway device accesses the description file according to http//192.168.1.20:49152/des.xml, Obtain such information from the description file: "<modelName>STB</modelName>", which means that the device type of the LAN device is a set top box.
另外网关设备在根据LAN设备的URL访问LAN设备的描述文件之前,例如,应当先与LAN设备建立TCP(Transmission Control Protocol传输控制协议)连接。然后再通过HTTP(Hyper Text Transfer Protocol,超文本传输协议)方式访问与URL对应的描述文件,并从描述文件中获得LAN设备的设备类型。In addition, before the gateway device accesses the description file of the LAN device according to the URL of the LAN device, for example, a TCP (Transmission Control Protocol) connection should be established with the LAN device. Then, the description file corresponding to the URL is accessed through HTTP (Hyper Text Transfer Protocol), and the device type of the LAN device is obtained from the description file.
对于网关设备获取LAN设备的设备属性信息的方式,在本实施例中,可以由LAN设备主动上报自身的设备属性信息,也可以由网关设备主动发送询问消息获取到LAN设备的设备属性信息。在本实施例中,设备属性信息为LAN设备的MAC地址,而MAC地址可以通过对从LAN设备向网关设备发送的通知消息进行解析而获取到,所以在本实施例中,网关设备基于通用即插即用技术就可以一同获取到LAN设备的设备属性信息以及设备类型。For the manner in which the gateway device obtains the device attribute information of the LAN device, in the embodiment, the device attribute information of the device can be actively reported by the LAN device, and the device attribute information of the LAN device can be obtained by the gateway device actively sending the inquiry message. In this embodiment, the device attribute information is a MAC address of the LAN device, and the MAC address is obtained by parsing the notification message sent from the LAN device to the gateway device. Therefore, in this embodiment, the gateway device is based on the universal Plug and Play technology can get the device attribute information and device type of the LAN device together.
除了上述通过通用即插即用技术获取设备类型或设备属性信息的方案以外,网关设备还可以通过其他方式获取LAN设备的设备类型或者设备属性信息,例如,由网关设备接收LAN设备主动发送的信息,在该信息中包括LAN设备的设备类型或者设备属性 信息。或者,在LAN设备接入到网关设备之后,网关设备主动向LAN设备发送询问信息,而LAN设备在接收到询问信息之后,根据询问信息向网关设备发送包含设备属性信息和/或设备类型的信息。In addition to the foregoing, the gateway device may obtain the device type or the device attribute information of the LAN device by using other methods, for example, the gateway device receives the information actively sent by the LAN device. The device type or device attribute information of the LAN device is included in the information. Alternatively, after the LAN device accesses the gateway device, the gateway device actively sends the inquiry information to the LAN device, and after receiving the inquiry information, the LAN device sends the information including the device attribute information and/or the device type to the gateway device according to the inquiry information. .
S204、网关设备基于获取到的设备类型、设备属性信息、以及与所述设备属性信息和所述设备类型对应的WAN连接建立通信管理表。S204. The gateway device establishes a communication management table based on the acquired device type, device attribute information, and a WAN connection corresponding to the device attribute information and the device type.
通信管理表在后续的过程中主要用于网关设备查询每个LAN设备对应的WAN连接。而不同LAN设备与不同WAN连接之间的对应关系主要依靠LAN设备的设备属性信息、设备类型以及LAN设备访问所需网络资源所使用的WAN连接三者之间的映射关系来确定。因此,在网关设备获取到设备类型和设备属性信息之后,会在这两者以及WAN连接之间建立映射关系,并将这种映射关系通过通信管理表进行记录。In the subsequent process, the communication management table is mainly used by the gateway device to query the WAN connection corresponding to each LAN device. The correspondence between different LAN devices and different WAN connections is mainly determined by the mapping relationship between the device attribute information of the LAN device, the device type, and the WAN connection used by the LAN device to access the required network resources. Therefore, after the gateway device obtains the device type and the device attribute information, a mapping relationship is established between the two and the WAN connection, and the mapping relationship is recorded through the communication management table.
可以理解的是,网关设备并不是在每次接收到LAN设备的通信信息之前都需要建立通信管理表。也可以在一个LAN设备与网关设备建立连接后创建一次,在LAN设备接入网关设备之后且未断开连接之前,网关设备不需要重新针对该LAN设备创建通信管理表。It can be understood that the gateway device does not need to establish a communication management table every time before receiving the communication information of the LAN device. It may also be created once after a LAN device establishes a connection with the gateway device, and the gateway device does not need to re-create a communication management table for the LAN device after the LAN device accesses the gateway device and does not disconnect.
S106、网关设备通过确定出来的WAN连接外发通信信息。S106. The gateway device connects the outgoing communication information by using the determined WAN connection.
当网关设备确定出与通信信息对应的WAN连接之后,就可以通过该WAN连接将LAN设备的通信信息外发出去,以便使得LAN设备可以通过通信信息访问LAN设备需要的网络资源。After the gateway device determines the WAN connection corresponding to the communication information, the communication information of the LAN device can be sent out through the WAN connection, so that the LAN device can access the network resources required by the LAN device through the communication information.
在通信信息到达网关设备之后,可能还需要在网关设备内部经过一些流转处理才能进行转发,中间的处理过程可能都需要基于设备属性信息来进行。但是部分LAN设备的设备属性信息(例如设备的MAC地址)可能比较长,这导致网关设备在进行通信信息发送的时候,可能不是很方便。因此在本实施例中,通信管理表中还可以包括识别标识,识别标识的长度小于LAN设备的MAC地址长度,且分别与设备类型、WAN连接唯一对应。由于LAN设备 的设备属性信息同设备类型之间存在对应关系,因此当网关设备在后续管理过程中,从接收到的通信信息中解析并确定了一个LAN设备的设备属性信息时,就可以确定该LAN设备的设备类型,进而可以为该通信信息设置一个与设备类型对应的识别标识,以方便在转发该通信信息时选择与识别标识对应的WAN连接。表1示出本实施例提供的一种通信管理表。After the communication information arrives at the gateway device, it may be necessary to perform some forwarding processing inside the gateway device to perform forwarding. The intermediate processing may need to be performed based on the device attribute information. However, the device attribute information of some LAN devices (such as the MAC address of the device) may be relatively long, which may cause the gateway device to be inconvenient when transmitting communication information. Therefore, in this embodiment, the communication management table may further include an identification identifier, where the length of the identification identifier is smaller than the length of the MAC address of the LAN device, and respectively corresponding to the device type and the WAN connection. Because the device attribute information of the LAN device has a corresponding relationship with the device type, when the gateway device parses and determines the device attribute information of a LAN device from the received communication information in a subsequent management process, it can be determined. The device type of the LAN device may further set an identification identifier corresponding to the device type for the communication information, so as to conveniently select a WAN connection corresponding to the identification identifier when forwarding the communication information. Table 1 shows a communication management table provided by this embodiment.
表1Table 1
Figure PCTCN2017117420-appb-000001
Figure PCTCN2017117420-appb-000001
可以理解的是,在本实施例中,一个网关设备下同类型的LAN设备可以有多个,例如在一个家庭中,有两个游戏机,这两个游戏机均属于游戏机类型,但是它们可以拥有不同的设备属性信息。另外,实际的通信管理表中还可以包括其他信息。而且,本实施例也并不限定在网关设备中必须要以上述表格的形式存储WAN连接、识别标识、LAN设备类型以及设备属性信息之间的关系,只要通信管理表能够表征WAN连接、LAN设备类型以及设备属性信息三者之间存在上述映射关系即可。It can be understood that, in this embodiment, there may be multiple LAN devices of the same type under one gateway device, for example, in a home, there are two game machines, both of which belong to the game machine type, but they Can have different device attribute information. In addition, other information may be included in the actual communication management table. Moreover, the embodiment does not limit the relationship between the WAN connection, the identification identifier, the LAN device type, and the device attribute information in the form of the above table, as long as the communication management table can represent the WAN connection and the LAN device. The above mapping relationship exists between the type and the device attribute information.
下面结合图4对网关设备对通信信息进行转发的过程进行介绍。图4是本发明实施例一中网关设备对通信信息进行转发的流程图,如图4所示,该流程包括如下步骤:The process of forwarding the communication information by the gateway device will be described below with reference to FIG. 4. 4 is a flowchart of a gateway device forwarding communication information according to Embodiment 1 of the present invention. As shown in FIG. 4, the process includes the following steps:
S402、网关设备根据通信管理表确定与通信信息携带的设备属性信息相对应的识别标识。S402. The gateway device determines, according to the communication management table, an identification identifier corresponding to the device attribute information carried by the communication information.
网关设备从通信信息中解析出LAN设备的设备属性信息之后,可以确定出该LAN设备对应的识别标识,例如,在本实施例中,LAN设备的设备属性信息是用户自定义的,且网关设备解析出的设备属性信息为“00:11:22:33:22:10”,则根据通信管理表可以确定该LAN设备对应的识别标识为“B”。After the gateway device parses the device attribute information of the LAN device from the communication information, the identification identifier corresponding to the LAN device can be determined. For example, in this embodiment, the device attribute information of the LAN device is user-defined, and the gateway device If the parsed device attribute information is "00:11:22:33:22:10", the identification identifier corresponding to the LAN device may be determined as "B" according to the communication management table.
S404、网关设备为通信信息标记对应的识别标识。S404. The gateway device is an identification identifier corresponding to the communication information identifier.
网关设备为通信信息标记识别标识,以便后续能够简单地识别出该通信信息应当通过哪一个WAN连接发送出去。如,在上述实例中,网关设备可以在通信信息上标记识别标识“B”。The gateway device identifies the identification for the communication information so that it can subsequently simply identify which WAN connection the communication information should be sent over. For example, in the above example, the gateway device may mark the identification identifier "B" on the communication information.
S406、网关设备根据为通信信息标记的识别标识为通信信息选择对应的广域网连接,并外发通信信息。S406. The gateway device selects a corresponding wide area network connection for the communication information according to the identification identifier marked for the communication information, and sends the communication information.
当网关设备转发通信信息的时候,网关设备根据通信管理表和通信信息上所标记的识别标识确定出LAN设备访问其所需网络资源需要使用的WAN连接,并使用对应的WAN连接将通信信息发送出去。When the gateway device forwards the communication information, the gateway device determines, according to the communication management table and the identification identifier marked on the communication information, the WAN connection that the LAN device needs to access the required network resource, and sends the communication information by using the corresponding WAN connection. Go out.
可以理解的是,识别标识只是方便网关设备进行实际通信信息转发的一个辅助信息,并不是实现本实施例方案所必须的。It can be understood that the identification identifier is only an auxiliary information for facilitating the actual communication information forwarding by the gateway device, and is not necessary for implementing the solution of the embodiment.
在本实施例提供的局域网设备通信管理方法中,网关设备通过通用即插即用技术获取LAN设备的设备类型,这种获取设备类型的方式与相关技术中通过DHCP获取设备类型的方式不同,其不必区分LAN设备的IP配置方式,便能够获取到与网关设备连接的所有LAN设备的设备类型。网关设备在获取到LAN设备的设备类型以及设备属性信息之后,创建出设备类型、设备属性信息和该LAN设备访问网络资源所使用的WAN连接之间的映射关系,设备属性信息是LAN设备的固有属性信息,因此,设备属性信息不会发生变化,可以长期表征LAN设备。当LAN设备需要发送通信信息访问网络资源的时候,网关设备可以根据上述映射关系确定出发送通信信息的WAN连接,从而在不对网关设备的端口进行僵化绑 定、不必随时关注各LAN设备IP地址的情况下,能够保证不同的LAN设备使用不同的WAN连接接入网络。与相关技术中牺牲网关设备端口资源或者牺牲网关设备处理性能、时刻关注LAN设备IP地址的方案相比,不仅提高了网关设备的资源利用率,而且因为可以对网关设备下所有LAN设备的通信进行相同方式的管理,所以还进一步简化了网关设备的管理工作。In the local area network device communication management method provided by the embodiment, the gateway device obtains the device type of the LAN device by using the universal plug-and-play technology, and the manner of obtaining the device type is different from the manner in which the device type is obtained through DHCP in the related art. The device type of all LAN devices connected to the gateway device can be obtained without distinguishing the IP configuration mode of the LAN device. After acquiring the device type and device attribute information of the LAN device, the gateway device creates a mapping relationship between the device type, the device attribute information, and the WAN connection used by the LAN device to access the network resource, where the device attribute information is inherent to the LAN device. Attribute information, therefore, device attribute information does not change and can be used to characterize LAN devices for a long time. When the LAN device needs to send the communication information to access the network resource, the gateway device may determine the WAN connection for sending the communication information according to the foregoing mapping relationship, so that the port of the gateway device is not rigidly bound, and the IP address of each LAN device does not need to be kept at any time. In this case, it is possible to ensure that different LAN devices access the network using different WAN connections. Compared with the related art in which the gateway device port resources are sacrificed or the gateway device processing performance is sacrificed, and the IP address of the LAN device is always concerned, the resource utilization of the gateway device is not only improved, but also the communication of all the LAN devices under the gateway device can be performed. The management of the same way further simplifies the management of the gateway device.
实施例二Embodiment 2
本实施例将以网关设备为家庭网关作为具体示例对实施例一中的局域网设备通信管理方法进行进一步说明。图5是本发明实施例二提供的家庭网关对局域网设备进行通信管理的时序图,如图5所示,该时序图包括如下步骤:In this embodiment, the LAN device communication management method in Embodiment 1 is further described by using the gateway device as a home gateway as a specific example. FIG. 5 is a sequence diagram of communication management of a local area network device by a home gateway according to Embodiment 2 of the present invention. As shown in FIG. 5, the timing diagram includes the following steps:
S501、家庭网关建立识别标识、设备类型与WAN连接之间的第一映射关系。S501. The home gateway establishes a first mapping relationship between the identifier, the device type, and the WAN connection.
机顶盒需要通过WAN连接A访问广域网资源,游戏机(比如Xbox)需要通过WAN连接B访问广域网资源的网络场景,则家庭网关生成如表2所示的第一映射关系。The set-top box needs to access the WAN resources through the WAN connection A. The game machine (such as the Xbox) needs to access the WAN environment of the WAN resources through the WAN connection B, and the home gateway generates the first mapping relationship as shown in Table 2.
表2Table 2
设备类型Equipment type WAN连接WAN connection 识别标识Identification mark
机顶盒Set top box WAN连接AWAN connection A AA
XboxXbox WAN连接BWAN connection B BB
S502、LAN设备向家庭网关发送SSDP通知消息。S502. The LAN device sends an SSDP notification message to the home gateway.
机顶盒与Xbox在接入家庭网关时,向家庭网关发送SSDP NOTIFY消息,以宣告自己已接入网络。When the set-top box and the Xbox access the home gateway, they send an SSDP NOTIFY message to the home gateway to announce that they have access to the network.
S503、家庭网关解析通知消息得到LAN设备的描述文件URL和设备属性信息。S503. The home gateway parses the notification message to obtain a description file URL and device attribute information of the LAN device.
LAN设备描述文件的URL在通知消息的Location字段中,家庭网关只需对通知消息进行解析,就能够获得LAN设备描述文件的URL。另外,家庭网关通过解析LAN设备发送的通知消息还能从通知消息中获得LAN设备的MAC地址,如一个LAN设备的MAC地址为“00:11:22:33:44:55”,家庭网关可以将该MAC地址作为 LAN设备的设备属性信息。The URL of the LAN device description file is in the Location field of the notification message, and the home gateway only needs to parse the notification message to obtain the URL of the LAN device description file. In addition, the home gateway can obtain the MAC address of the LAN device from the notification message by parsing the notification message sent by the LAN device. For example, the MAC address of a LAN device is “00:11:22:33:44:55”, and the home gateway can This MAC address is used as device attribute information of the LAN device.
S504、家庭网关与LAN设备建立TCP连接。S504. The home gateway establishes a TCP connection with the LAN device.
应当理解的是,家庭网关与LAN设备建立的通信连接除了TCP连接以外,还可以是其他任何具有相似作用的连接。It should be understood that the communication connection established by the home gateway with the LAN device may be any other connection having a similar function in addition to the TCP connection.
S505、家庭网关访问LAN设备的描述文件获得LAN设备的设备类型。S505. The home gateway accesses the description file of the LAN device to obtain the device type of the LAN device.
家庭网关通过HTTP方式获得与URL对应的描述文件。然后再根据设备描述文件中的<modelName>STB</modelName>获取到接入家庭网关的LAN设备的设备类型为STB,即机顶盒。The home gateway obtains a description file corresponding to the URL through HTTP. Then, according to <modelName>STB</modelName> in the device description file, the device type of the LAN device accessing the home gateway is STB, that is, the set top box.
基于上述方式,家庭网关也可以获取到接入家庭网关的Xbox的设备类型及其设备属性信息。Based on the above manner, the home gateway can also obtain the device type of the Xbox accessing the home gateway and its device attribute information.
S506、家庭网关建立通信管理表。S506. The home gateway establishes a communication management table.
基于表2所示的第一映射关系,以及家庭网关根据通知消息获取到的设备类型以及设备属性信息,就可以生成如表3所示的通信管理表。Based on the first mapping relationship shown in Table 2, and the device type and device attribute information acquired by the home gateway according to the notification message, the communication management table as shown in Table 3 can be generated.
表3table 3
Figure PCTCN2017117420-appb-000002
Figure PCTCN2017117420-appb-000002
虽然在本实施例中,家庭网关在一开始就建立了第一映射关系,但是,应当理解的,家庭网关也可以在获得所有的信息之后再创建通信管理表。Although in the present embodiment, the home gateway establishes the first mapping relationship at the beginning, it should be understood that the home gateway may also create a communication management table after obtaining all the information.
S507、家庭网关释放与LAN设备之间的TCP连接S507, the home gateway releases the TCP connection with the LAN device
当家庭网关将LAN设备的设备属性信息及其设备类型写入通 信管理表后,家庭网关可以释放之前与LAN建立的TCP连接。When the home gateway writes the device attribute information of the LAN device and its device type to the communication management table, the home gateway can release the TCP connection previously established with the LAN.
S508、LAN设备确定家庭网关侧的通信管理表已维护完成。S508. The LAN device determines that the communication management table on the home gateway side has been maintained.
当机顶盒、Xbox或其他LAN设备确定自身与家庭网关之间的TCP连接已被释放,就知道家庭网关已经维护好了管理信息表并且可以接收LAN设备发送的业务报文了。When the set-top box, Xbox, or other LAN device determines that the TCP connection between itself and the home gateway has been released, it is known that the home gateway has maintained the management information table and can receive the service message sent by the LAN device.
S509、向家庭网关发送业务报文。S509. Send a service packet to the home gateway.
LAN设备向家庭网关发送业务报文,以便在家庭网关转发业务报文后访问LAN设备所需的网络资源。The LAN device sends a service packet to the home gateway to access the network resources required by the LAN device after the home gateway forwards the service packet.
S510、家庭网关做报文转发准备。S510: The home gateway prepares the packet forwarding.
家庭网关解析业务报文得到LAN设备的设备属性信息,例如解析出MAC地址为“00:11:22:33:22:10”。The home gateway parses the service packet to obtain the device attribute information of the LAN device, for example, parses the MAC address as "00:11:22:33:22:10".
根据通信管理表中MAC地址和识别标识之间的对应关系,家庭网关确定并为该报文应当被标记的识别标识是“B”,并为该报文标记识别标识“B”。According to the correspondence between the MAC address and the identification identifier in the communication management table, the home gateway determines that the identification identifier that the message should be marked is "B", and identifies the identifier "B" for the message identifier.
S511、家庭网关向服务器转发业务报文。S511. The home gateway forwards the service packet to the server.
家庭网关根据通信管理表中识别标识“B”所对应的WAN连接B外发业务报文。The home gateway identifies the outgoing service packet of the WAN connection B corresponding to the identifier "B" in the communication management table.
在本发明实施例提供的局域网设备通信管理方法中,家庭网关在获取到LAN设备的设备属性信息以及LAN设备的设备类型之后,建立通信管理表,由于设备属性信息能够长期唯一标识一个LAN设备,因此,在本实施例中,家庭网关能够在不对自身的端口进行僵化绑定、不必随时关注各LAN设备IP地址的情况下,保证不同的LAN设备使用不同的WAN连接接入网络。与相关技术中牺牲家庭网关端口资源或者牺牲网关设备处理性能、时刻关注LAN设备IP地址的方案相比,在很大程度上提高了家庭网关的资源利用率和LAN设备通信管理的灵活性与统一性。In the local area network device communication management method provided by the embodiment of the present invention, after obtaining the device attribute information of the LAN device and the device type of the LAN device, the home gateway establishes a communication management table, and the device attribute information can uniquely identify a LAN device for a long time. Therefore, in this embodiment, the home gateway can ensure that different LAN devices use different WAN connections to access the network without rigidly binding their own ports and without paying attention to the IP addresses of the LAN devices at any time. Compared with the related art in which the home gateway port resource is sacrificed or the gateway device processing performance is sacrificed, and the IP address of the LAN device is always concerned, the resource utilization of the home gateway and the flexibility and uniformity of the LAN device communication management are greatly improved. Sex.
实施例三Embodiment 3
本实施例提供一种网关设备,图6是本发明实施例三提供的网关设备的结构示意图。This embodiment provides a gateway device. FIG. 6 is a schematic structural diagram of a gateway device according to Embodiment 3 of the present invention.
如图6所示,网关设备60包括信息获取模块602、映射建立 模块604、信息接收模块606、连接查询模块608以及信息外发模块610。信息获取模块602构造为获取LAN设备的设备属性信息与设备类型。映射建立模块604构造为依据设备属性信息、设备类型、与设备属性信息和设备类型对应的WAN连接方式建立通信管理表。信息接收模块606接收局域网设备发送的通信信息,其中,通信信息中携带有局域网设备的设备属性信息。然后由连接查询模块608基于预先建立的通信管理表和从通信信息中获取到的设备属性信息确定外发通信信息所使用的广域网连接。最后,信息外发模块610通过确定出来的广域网连接外发通信信息。As shown in FIG. 6, the gateway device 60 includes an information obtaining module 602, a mapping establishing module 604, an information receiving module 606, a connection query module 608, and an information outgoing module 610. The information acquisition module 602 is configured to acquire device attribute information and device type of the LAN device. The mapping establishment module 604 is configured to establish a communication management table according to the device attribute information, the device type, the WAN connection manner corresponding to the device attribute information and the device type. The information receiving module 606 receives the communication information sent by the local area network device, where the communication information carries the device attribute information of the local area network device. The wide area network connection used by the outgoing communication information is then determined by the connection inquiry module 608 based on the pre-established communication management table and the device attribute information acquired from the communication information. Finally, the information outgoing module 610 connects the outgoing communication information through the determined wide area network.
在LAN设备访问其对应的网络资源,也即访问其所需的网络资源时,会通过信息接收模块606向提供网络资源的服务器发送用于表征请求的通信信息。在通信信息中携带有信息发送端的设备属性信息,也即包含发送通信信息的LAN设备的设备属性信息。当信息接收模块606接收到LAN设备发送的通信信息后,可以对通信信息进行解析,获取到信息发送端的设备属性信息。When the LAN device accesses its corresponding network resource, that is, accesses the network resource it needs, the information receiving module 606 transmits the communication information for characterizing the request to the server providing the network resource. The communication information carries device attribute information of the information transmitting end, that is, device attribute information of the LAN device that transmits the communication information. After the information receiving module 606 receives the communication information sent by the LAN device, the information may be parsed to obtain the device attribute information of the information sending end.
LAN设备的设备属性信息包括但不限于LAN设备的硬件唯一标识、LAN设备的MAC地址等。在本实施例中,设备属性信息与网关设备60接入的LAN设备唯一对应,从而使网关设备60能够准确区分接入网关设备60的各LAN设备。在本实施例中,选用设备属性信息是因为LAN设备的设备属性信息本身就是唯一且不可仿冒的。但事实上,也可以采用其他能够唯一区分接入同一个网关设备的各LAN设备的区别信息来代替设备属性信息。例如,可以自定义设置区别信息来替代设备属性信息,只要保证一个网关设备下的每个LAN设备的区别信息独一无二即可。例如,由用户将接入同一个网关设备60的机顶盒、游戏机以及笔记本电脑的区别信息分别自定义设置为01、02、03,这也是可行的。The device attribute information of the LAN device includes, but is not limited to, a hardware unique identifier of the LAN device, a MAC address of the LAN device, and the like. In this embodiment, the device attribute information uniquely corresponds to the LAN device accessed by the gateway device 60, so that the gateway device 60 can accurately distinguish the LAN devices of the access gateway device 60. In this embodiment, the device attribute information is selected because the device attribute information of the LAN device itself is unique and cannot be counterfeited. However, in fact, other device information that can uniquely distinguish each LAN device that accesses the same gateway device may be used instead of the device attribute information. For example, you can customize the difference information to replace the device attribute information, as long as the difference information of each LAN device under a gateway device is unique. For example, it is also feasible that the user separately sets the difference information of the set top box, the game machine, and the notebook computer that access the same gateway device 60 to 01, 02, and 03, respectively.
具体地,若采用LAN设备的MAC地址来唯一区分该LAN设备,则LAN设备在向信息接收模块606发送通信信息的时候并不需要对通信信息做特别的处理,信息接收模块606就可以直接解析出对应的MAC地址。若采用由用户自定义设置的区分信息来唯一标 识LAN设备,则可能LAN设备在发送通信信息的时候需要在通信信息中添加该LAN设备的区别信息。Specifically, if the LAN device is uniquely distinguished by the MAC address of the LAN device, the LAN device does not need to perform special processing on the communication information when transmitting the communication information to the information receiving module 606, and the information receiving module 606 can directly parse the communication information. The corresponding MAC address is output. If the distinguishing information set by the user is used to uniquely identify the LAN device, it is possible that the LAN device needs to add the difference information of the LAN device to the communication information when transmitting the communication information.
信息接收模块606在接收到LAN设备发送的通信信息后,可以从通信信息中解析出LAN设备的设备属性信息,然后根据预先建立的通信管理表中的LAN设备的设备类型、LAN设备的设备属性信息和WAN连接三者之间的映射关系确定与该设备属性信息对应的WAN连接,从而就可以确定出外发该通信信息所需要使用的WAN连接。After receiving the communication information sent by the LAN device, the information receiving module 606 can parse the device attribute information of the LAN device from the communication information, and then according to the device type of the LAN device and the device attribute of the LAN device in the communication management table established in advance. The mapping relationship between the information and the WAN connection determines the WAN connection corresponding to the device attribute information, so that the WAN connection required for the outgoing communication information can be determined.
在接收LAN设备的通信信息之前,网关设备60需要建立通信管理表,为了建立通信管理表,在本实施例中,设备属性信息和设备类型的获取可以是一起获取,也可以是分别获取。在本实施例中,信息获取模块602通过上文描述的通用即插即用技术(UPnP)获取LAN设备的设备类型。Before receiving the communication information of the LAN device, the gateway device 60 needs to establish a communication management table. In order to establish the communication management table, in this embodiment, the device attribute information and the device type may be acquired together or separately. In the present embodiment, the information acquisition module 602 acquires the device type of the LAN device through the Universal Plug and Play technology (UPnP) described above.
LAN设备接入到网关设备60时,发送SSDP协议的通知消息(NOTIFY消息),宣告自己已接入网络。信息获取模块602可基于通知消息获取到LAN设备的设备类型,下面对信息获取模块602获取LAN设备的设备类型的过程进行介绍。When the LAN device accesses the gateway device 60, it sends a notification message (NOTIFY message) of the SSDP protocol to announce that it has accessed the network. The information acquisition module 602 can acquire the device type of the LAN device based on the notification message. The following describes the process of the information acquisition module 602 acquiring the device type of the LAN device.
信息获取模块602接收到LAN设备发送的通知消息后,即可确认该LAN设备已经接入了网络。在此之后,该LAN设备便有了访问网络资源的需求,因此信息获取模块602需要确定其设备类型。LAN设备可以在接入网关设备之后通过简单服务发现协议向网关设备发送通知消息。After receiving the notification message sent by the LAN device, the information obtaining module 602 can confirm that the LAN device has accessed the network. After that, the LAN device has a need to access network resources, so the information acquisition module 602 needs to determine its device type. The LAN device can send a notification message to the gateway device through the Simple Service Discovery Protocol after accessing the gateway device.
在通知消息的Location字段带有该设备的描述文件的URL,所以,信息获取模块602只需对通知消息进行解析,就能够获得LAN设备描述文件的URL,例如一个LAN设备描述文件的URL为http//192.168.1.20:49152/des.xml。The URL of the description file of the device is included in the Location field of the notification message. Therefore, the information acquisition module 602 can obtain the URL of the LAN device description file only by parsing the notification message, for example, the URL of a LAN device description file is http. //192.168.1.20:49152/des.xml.
当信息获取模块602解析出LAN设备的描述文件的URL之后,就可以根据该URL对LAN设备的描述文件进行访问。描述文件例如为“des.xml”,描述文件des.xml中的<modelName>会描述该LAN设备的类型,例如信息获取模块602根据 http//192.168.1.20:49152/des.xml访问描述文件后,可以从描述文件中获得这样的信息:“<modelName>STB</modelName>”,这表示LAN设备的设备类型为机顶盒。After the information obtaining module 602 parses the URL of the description file of the LAN device, the profile of the LAN device can be accessed according to the URL. The description file is, for example, "des.xml", and the <modelName> in the description file des.xml describes the type of the LAN device. For example, the information acquisition module 602 accesses the description file according to http//192.168.1.20:49152/des.xml. You can get this information from the description file: "<modelName>STB</modelName>", which means that the device type of the LAN device is set-top box.
另外,信息获取模块602在根据LAN设备的URL访问LAN设备的描述文件之前,应当先与LAN设备建立TCP连接。然后再通过HTTP方式访问与URL对应的描述文件,并从描述文件中获得LAN设备的设备类型。In addition, the information acquisition module 602 should establish a TCP connection with the LAN device before accessing the description file of the LAN device according to the URL of the LAN device. Then, the description file corresponding to the URL is accessed through HTTP, and the device type of the LAN device is obtained from the description file.
对于信息获取模块602获取LAN设备的设备属性信息的方式,在本实施例中,可以由LAN设备主动上报自身的设备属性信息,也可以由信息获取模块602主动发送询问消息获取到LAN设备的设备属性信息。在本实施例中,设备属性信息为LAN设备的MAC地址,而MAC地址可以通过对从LAN设备向信息获取模块602发送的通知消息进行解析而获取到,所以在本实施例中,信息获取模块602基于通用即插即用技术就可以一同获取到LAN设备的设备属性信息以及设备类型。For the manner in which the information acquisition module 602 obtains the device attribute information of the LAN device, in the embodiment, the device information of the LAN device may be actively reported by the LAN device, or the device may be sent by the information acquisition module 602 to obtain the device of the LAN device. Attribute information. In this embodiment, the device attribute information is the MAC address of the LAN device, and the MAC address can be obtained by parsing the notification message sent from the LAN device to the information acquiring module 602. Therefore, in this embodiment, the information acquiring module The 602 can obtain the device attribute information and the device type of the LAN device together based on the universal plug and play technology.
除了上述通过通用即插即用技术获取设备类型或设备属性信息的方案以外,信息获取模块602还可以通过其他方式获取LAN设备的设备类型或者设备属性信息,例如,由信息获取模块602接收LAN设备主动发送的信息,在该信息中包括LAN设备的设备类型或者设备属性信息。或者,在LAN设备接入到网关设备60之后,信息获取模块602主动向LAN设备发送询问信息,而LAN设备在接收到询问信息之后,根据询问信息向网关设备发送包含设备属性信息和/或设备类型的信息。The information acquiring module 602 may acquire the device type or device attribute information of the LAN device by using other methods, for example, the information acquiring module 602 receives the LAN device. The information sent actively includes the device type or device attribute information of the LAN device in the information. Alternatively, after the LAN device accesses the gateway device 60, the information acquiring module 602 actively sends the inquiry information to the LAN device, and after receiving the inquiry information, the LAN device sends the device attribute information and/or the device to the gateway device according to the inquiry information. Type of information.
映射建立模块604创建的通信管理表在后续的过程中主要用于连接查询模块查询每个LAN设备对应的WAN连接。而不同LAN设备与不同WAN连接之间的对应关系主要依靠LAN设备的设备属性信息、设备类型以及LAN设备访问所需网络资源所使用的WAN连接三者之间的映射关系来确定。因此,在信息获取模块602获取到设备类型、设备属性信息之后,映射建立模块604会在这两者以及WAN连接之间建立映射关系,并将这种映射关系通过通信 管理表进行记录。The communication management table created by the mapping establishment module 604 is mainly used in the subsequent process to connect the query module to query the WAN connection corresponding to each LAN device. The correspondence between different LAN devices and different WAN connections is mainly determined by the mapping relationship between the device attribute information of the LAN device, the device type, and the WAN connection used by the LAN device to access the required network resources. Therefore, after the information acquisition module 602 obtains the device type and the device attribute information, the mapping establishment module 604 establishes a mapping relationship between the two and the WAN connection, and records the mapping relationship through the communication management table.
可以理解的是,映射建立模块604并不是在每次接收到LAN设备的通信信息之前都需要建立通信管理表。也可以在一个LAN设备与网关设备60建立连接后创建一次,在LAN设备接入网关设备60之后且未断开连接之前,映射建立模块604不需要重新针对该LAN设备创建通信管理表。It can be understood that the mapping establishment module 604 does not need to establish a communication management table every time the communication information of the LAN device is received. It may also be created once after a LAN device establishes a connection with the gateway device 60. After the LAN device accesses the gateway device 60 and does not disconnect, the mapping establishment module 604 does not need to re-create a communication management table for the LAN device.
当连接查询模块608确定出与通信信息对应的WAN连接之后,信息外发模块610就可以通过该WAN连接将LAN设备的通信信息外发出去,以便使得LAN设备可以通过通信信息访问LAN设备需要的网络资源。After the connection query module 608 determines the WAN connection corresponding to the communication information, the information outgoing module 610 can send out the communication information of the LAN device through the WAN connection, so that the LAN device can access the LAN device through the communication information. Internet resources.
在通信信息到达网关设备之后,可能还需要在网关设备内部经过一些流转处理才能进行转发,中间的处理过程可能都需要基于设备属性信息来进行。但是部分LAN设备的设备属性信息(例如设备的MAC地址)可能比较长,这导致网关设备在进行通信信息发送的时候,可能不是很方便,因此在本实施例中,映射建立模块604创建的通信管理表中还可以包括识别标识,识别标识的长度小于LAN设备的MAC地址长度,且分别与设备类型、WAN连接唯一对应。由于LAN设备的设备属性信息同设备类型之间存在对应关系,因此当信息接收模块606接收到一条通信信息,并且连接查询模块608从接收到的通信信息中解析并确定了一个LAN设备的设备属性信息时,就可以确定该LAN设备的设备类型,进而可以为该通信信息设置一个与设备类型对应的识别标识,以方便在转发该通信信息时选择与识别标识对应的WAN连接。After the communication information arrives at the gateway device, it may be necessary to perform some forwarding processing inside the gateway device to perform forwarding. The intermediate processing may need to be performed based on the device attribute information. However, the device attribute information of a part of the LAN device (for example, the MAC address of the device) may be relatively long, which may cause the gateway device to be inconvenient when transmitting the communication information. Therefore, in the embodiment, the communication created by the mapping establishing module 604 is not convenient. The management table may further include an identification identifier, where the length of the identifier is smaller than the length of the MAC address of the LAN device, and corresponds to the device type and the WAN connection respectively. Since the device attribute information of the LAN device has a correspondence relationship with the device type, when the information receiving module 606 receives a piece of communication information, and the connection query module 608 parses and determines the device attribute of a LAN device from the received communication information. When the information is used, the device type of the LAN device can be determined, and an identification identifier corresponding to the device type can be set for the communication information, so as to conveniently select the WAN connection corresponding to the identification identifier when forwarding the communication information.
如表1所示,一个网关设备60下同类型的LAN设备可以有多个,例如在一个家庭中,有两个游戏机,这两个游戏机均属于游戏机类型,但是它们可以拥有不同的设备属性信息。另外,实际的通信管理表中还可以包括其他信息。而且,本实施例也并不限定在网关设备60中必须要以上述表格的形式存储WAN连接、识别标识、LAN设备类型以及设备属性信息之间的关系,只要通信管理表能够表征WAN连接、LAN设备类型以及设备属性信息三者之间存 在上述映射关系即可。下面对连接查询模块608和信息外发模块610对通信信息进行转发的过程进行介绍。As shown in Table 1, there may be multiple LAN devices of the same type under one gateway device 60. For example, in a home, there are two game machines, both of which belong to the game machine type, but they may have different Device attribute information. In addition, other information may be included in the actual communication management table. Moreover, the present embodiment is also not limited to the relationship between the WAN connection, the identification identifier, the LAN device type, and the device attribute information that must be stored in the gateway device 60 in the form of the above table, as long as the communication management table can represent the WAN connection, the LAN. The above mapping relationship exists between the device type and the device attribute information. The process of forwarding the communication information by the connection query module 608 and the information outgoing module 610 is described below.
连接查询模块608从通信信息中解析出LAN设备的设备属性信息之后,可以确定出该LAN设备对应的识别标识,例如,在本实施例中,LAN设备的设备属性信息是用户自定义的,且连接查询模块608解析得到的设备属性信息为“00:11:22:33:22:10”,则根据通信管理表可以确定该LAN设备对应的识别标识为“B”。After the connection query module 608 parses the device attribute information of the LAN device from the communication information, the identification identifier corresponding to the LAN device can be determined. For example, in this embodiment, the device attribute information of the LAN device is user-defined, and If the device attribute information obtained by the connection query module 608 is "00:11:22:33:22:10", the identification identifier corresponding to the LAN device can be determined as "B" according to the communication management table.
连接查询模块608为通信信息标记识别标识,以便后续能够简单地识别出该通信信息应当通过哪一个WAN连接发送出去。如,在上述实例中,连接查询模块608可以在通信信息上标记识别标识“B”。The connection query module 608 identifies the identification for the communication information so that it can subsequently be easily identified by which WAN connection the communication information should be sent. For example, in the above example, the connection query module 608 can mark the identification identifier "B" on the communication information.
信息外发模块610根据通信信息上标记的识别标识为通信信息选择对应的广域网连接,并外发通信信息。The information outgoing module 610 selects a corresponding wide area network connection for the communication information according to the identification identifier marked on the communication information, and issues the communication information.
当信息外发模块610转发通信信息的时候,其根据通信管理表和通信信息上的识别标识确定出LAN设备访问其所需网络资源需要使用的WAN连接,并使用对应的WAN连接将通信信息发送出去。When the information outgoing module 610 forwards the communication information, it determines the WAN connection that the LAN device needs to use to access the required network resources according to the communication management table and the identification identifier on the communication information, and sends the communication information by using the corresponding WAN connection. Go out.
可以理解的是,识别标识只是方便信息外发模块610进行实际通信信息转发的一个辅助信息,并不是实现本实施例方案所必须的。It can be understood that the identification identifier is only an auxiliary information for facilitating the forwarding of the actual communication information by the information outgoing module 610, and is not necessary for implementing the solution of the embodiment.
另外,在本实施例中,映射建立模块604也可以在信息获取模块602获取LAN设备的设备属性信息和设备类型之前先创建第一映射关系,第一映射关系可如表2所示。当信息获取模块602获取到设备属性信息和设备类型后,映射建立模块604可直接在第一映射关系(表2)的基础上补充LAN设备的设备属性信息,从而完成创建通信管理表的工作。In addition, in the embodiment, the mapping establishment module 604 may also create a first mapping relationship before the information acquiring module 602 acquires the device attribute information and the device type of the LAN device, and the first mapping relationship may be as shown in Table 2. After the information obtaining module 602 obtains the device attribute information and the device type, the mapping establishing module 604 can directly supplement the device attribute information of the LAN device based on the first mapping relationship (Table 2), thereby completing the work of creating the communication management table.
本实施例还提供一种局域网设备通信管理系统,其包括一个或多个局域网设备以及上述网关设备,局域网设备接入网关设备,通过网关设备与外部广域网进行通信,网关设备不仅将来自广域网的信息转发给局域网设备,而且还会建立通信管理表对局域网 设备的通信进行管理,基于通信管理表将局域网设备发送的信息转发给外部广域网。The embodiment further provides a local area network device communication management system, which includes one or more local area network devices and the above-mentioned gateway device. The local area network device accesses the gateway device, and communicates with the external wide area network through the gateway device, and the gateway device not only transmits information from the wide area network. Forwarded to the LAN device, and also establishes a communication management table to manage the communication of the LAN device, and forwards the information sent by the LAN device to the external WAN based on the communication management table.
下面对本实施例中的网络设备的硬件结构进行介绍。图7是本发明实施例三提供的网关设备的硬件结构示意图。The hardware structure of the network device in this embodiment will be described below. FIG. 7 is a schematic structural diagram of hardware of a gateway device according to Embodiment 3 of the present invention.
如图7所示,网关设备7包括处理器701、存储器702、通信装置703。通信装置703可以在处理器701的控制下获取LAN设备的设备属性信息并基于通用即插即用技术获取LAN设备的设备类型,然后处理器701基于通信装置703获取到的信息创建通信管理表,通信管理表可以存储在存储器702中。当通信装置703接收到LAN设备发送的、用于请求网络资源的通信信息时,处理器701可以对通信信息进行解析,从而获取到发送通信信息LAN设备的设备属性信息。接着处理器根据存储器702中存储的通信管理表确定出发送该通信信息的WAN连接,并控制通信装置703选择对应的WAN连接转发通信信息。也就是说,第二实施例中的信息获取模块的功能可以通过网关设备7的通信装置703和处理器701共同实现,而信息接收模块、信息外发模块的功能则可以由通信装置703单独实现,映射建立模块和连接查询模块的功能可由处理器701与存储器702共同实现。As shown in FIG. 7, the gateway device 7 includes a processor 701, a memory 702, and a communication device 703. The communication device 703 can acquire the device attribute information of the LAN device under the control of the processor 701 and acquire the device type of the LAN device based on the universal plug and play technology, and then the processor 701 creates a communication management table based on the information acquired by the communication device 703. The communication management table can be stored in the memory 702. When the communication device 703 receives the communication information for requesting the network resource transmitted by the LAN device, the processor 701 may parse the communication information, thereby acquiring the device attribute information of the LAN device transmitting the communication information. The processor then determines a WAN connection to transmit the communication information based on the communication management table stored in the memory 702, and controls the communication device 703 to select a corresponding WAN connection to forward the communication information. That is to say, the functions of the information acquisition module in the second embodiment can be implemented by the communication device 703 of the gateway device 7 and the processor 701, and the functions of the information receiving module and the information delivery module can be implemented by the communication device 703. The functions of the mapping establishment module and the connection query module can be implemented by the processor 701 and the memory 702.
本实施例提供的网关设备获取LAN设备的设备类型以及能够长期唯一标识一个LAN设备的设备属性信息,并创建出设备类型、设备属性信息和该LAN设备访问网络资源所使用的WAN连接之间的映射关系,设备属性信息是LAN设备的固有属性信息,因此,设备属性信息不会发生变化,可以长期表征LAN设备。当LAN设备需要发送通信信息访问网络资源的时候,网关设备可以根据上述映射关系确定出发送通信信息的WAN连接,从而在不对网关设备的端口进行僵化绑定、不必随时关注各LAN设备IP地址的情况下,能够保证不同的LAN设备使用不同的WAN连接接入网络。与相关技术中牺牲网关设备端口资源或者牺牲网关设备处理性能、时刻关注LAN设备IP地址的方案相比,不仅提高了网关设备的资源利用率,而且因为获取设备类型是通过通用即插即用技术进行 的,所以与相关技术中通过DHCP获取设备类型的方式不同,不必区分LAN设备的IP配置方式,便能够获取到与网关设备连接的所有LAN设备的设备类型,可以对网关设备下所有LAN设备的通信进行相同方式的管理,所以还进一步简化了网关设备的管理工作。The gateway device provided in this embodiment acquires the device type of the LAN device and the device attribute information that can uniquely identify a LAN device for a long time, and creates a device type, device attribute information, and a WAN connection used by the LAN device to access the network resource. The mapping relationship, the device attribute information is the intrinsic attribute information of the LAN device. Therefore, the device attribute information does not change, and the LAN device can be characterized for a long time. When the LAN device needs to send the communication information to access the network resource, the gateway device may determine the WAN connection for sending the communication information according to the foregoing mapping relationship, so that the port of the gateway device is not rigidly bound, and the IP address of each LAN device does not need to be kept at any time. In this case, it is possible to ensure that different LAN devices access the network using different WAN connections. Compared with the related art in which the gateway device port resources are sacrificed or the gateway device processing performance is sacrificed, and the IP address of the LAN device is always concerned, the resource utilization of the gateway device is not only improved, but also because the acquisition device type is through the universal plug and play technology. In the related art, the method of obtaining the device type by using DHCP is different, and the device type of all LAN devices connected to the gateway device can be obtained without distinguishing the IP configuration mode of the LAN device, and all LAN devices under the gateway device can be obtained. The communication is managed in the same way, so the management of the gateway device is further simplified.
尽管上述各实施例以家庭网络和家庭网关为例进行描述,但本领域的技术人员应该明白,本发明也可应用于家庭网络和家庭网关以外的局域网和网关设备,例如在办公室、医院或学校中使用的局域网和网关设备等。Although the above embodiments are described by taking a home network and a home gateway as an example, those skilled in the art should understand that the present invention is also applicable to a local area network and a gateway device other than a home gateway, such as an office, a hospital, or a school. LAN and gateway devices used in the middle.
显然,本领域的技术人员应该明白,上述本发明实施例的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,或者,它们可以用计算装置可执行的程序代码来实现,从而可以将它们存储在计算机存储介质(ROM/RAM、磁碟、光盘)中由计算装置来执行,并且在某些情况下,可以以不同于本文描述的顺序执行所示出或描述的步骤,或者可以将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。所以本发明不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that the modules or steps of the above embodiments of the present invention can be implemented by a general computing device, which can be concentrated on a single computing device or distributed among multiple computing devices. On the network, or they may be implemented by program code executable by the computing device so that they can be stored in a computer storage medium (ROM/RAM, disk, optical disk) by a computing device, and in some cases The steps shown or described may be performed in a different order than that described herein, or they may be separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof may be implemented as a single integrated circuit module. Therefore, the invention is not limited to any particular combination of hardware and software.
工业实用性Industrial applicability
本发明实施例提供一种局域网设备通信管理方法、系统及网关设备,提高了网关设备对LAN设备通信管理的灵活性和网关设备的资源利用率。The embodiment of the invention provides a LAN device communication management method, system and gateway device, which improves the flexibility of the gateway device for LAN device communication management and the resource utilization of the gateway device.

Claims (15)

  1. 一种局域网设备通信管理方法,包括:A LAN device communication management method includes:
    网关设备接收局域网设备发送的通信信息,其中,所述通信信息中携带有所述局域网设备的设备属性信息;The gateway device receives the communication information sent by the local area network device, where the communication information carries the device attribute information of the local area network device;
    所述网关设备从所述通信信息中解析出所述设备属性信息;The gateway device parses the device attribute information from the communication information;
    所述网关设备基于预先建立的通信管理表确定与所述通信信息对应的广域网连接,其中,所述通信管理表中包括所述局域网设备的设备类型、所述设备属性信息以及所述广域网连接之间的映射关系;以及The gateway device determines a wide area network connection corresponding to the communication information based on a pre-established communication management table, where the communication management table includes a device type of the local area network device, the device attribute information, and the wide area network connection Mapping relationship between;
    所述网关设备通过所述广域网连接发送所述通信信息。The gateway device transmits the communication information through the wide area network connection.
  2. 如权利要求1所述的局域网设备通信管理方法,其中,在所述网关设备接收所述局域网设备发送的所述通信信息之前,所述方法还包括:The method for managing a local area network device communication according to claim 1, wherein before the receiving, by the gateway device, the communication information sent by the local area network device, the method further comprises:
    所述网关设备获取所述局域网设备的所述设备属性信息和所述设备类型;以及Obtaining, by the gateway device, the device attribute information of the local area network device and the device type;
    所述网关设备依据所述设备属性信息、所述设备类型、与所述设备属性信息和所述设备类型对应的广域网连接建立所述通信管理表。The gateway device establishes the communication management table according to the device attribute information, the device type, and the wide area network connection corresponding to the device attribute information and the device type.
  3. 如权利要求2所述的局域网设备通信管理方法,其中,所述网关设备获取所述局域网设备的所述设备类型包括:The method for managing a local area network device communication according to claim 2, wherein the obtaining, by the gateway device, the device type of the local area network device comprises:
    所述网关设备接收所述局域网设备发送的通知消息;Receiving, by the gateway device, a notification message sent by the local area network device;
    所述网关设备解析所述通知消息以获取所述局域网设备的描述文件的统一资源定位符;以及The gateway device parses the notification message to obtain a uniform resource locator of a description file of the local area network device;
    所述网关设备根据所述统一资源定位符访问所述描述文件以获取所述设备类型。The gateway device accesses the description file according to the uniform resource locator to obtain the device type.
  4. 如权利要求3所述的局域网设备通信管理方法,其中,所述网关设备根据所述统一资源定位符访问所述描述文件以获取所述设备类型包括:The method for managing a local area network device communication according to claim 3, wherein the accessing the description file by the gateway device according to the uniform resource locator to obtain the device type comprises:
    所述网关设备建立与所述局域网设备的传输控制协议连接;以及The gateway device establishes a connection with a transmission control protocol of the local area network device;
    所述网关设备通过超文本传输协议方式访问与所述统一资源定位符对应的所述描述文件并从所述描述文件中获得所述设备类型。And the gateway device accesses the description file corresponding to the uniform resource locator by using a hypertext transfer protocol and obtains the device type from the description file.
  5. 如权利要求1-4中任一项所述的局域网设备通信管理方法,其中,所述设备属性信息包括所述局域网设备的物理地址。The local area network device communication management method according to any one of claims 1 to 4, wherein the device attribute information includes a physical address of the local area network device.
  6. 如权利要求1-4中任一项所述的局域网设备通信管理方法,其特征在于其中,所述设备属性信息唯一标识信息包括所述局域网设备的硬件标识。The method for managing a local area network device communication according to any one of claims 1 to 4, wherein the device attribute information unique identification information comprises a hardware identifier of the local area network device.
  7. 如权利要求3或4所述的局域网设备通信管理方法,其中,所述设备属性信息为所述局域网设备的物理地址,并且所述网关设备获取所述局域网设备的所述设备属性信息包括:The local area network device communication management method according to claim 3 or 4, wherein the device attribute information is a physical address of the local area network device, and the obtaining, by the gateway device, the device attribute information of the local area network device includes:
    所述网关设备基于通用即插即用技术从所述局域网设备发送的所述通知消息中解析出所述局域网设备的所述物理地址。The gateway device parses the physical address of the local area network device from the notification message sent by the local area network device based on a universal plug and play technology.
  8. 如权利要求7所述的局域网设备通信管理方法,其中,所述网关设备基于预先建立的通信管理表确定与所述通信信息对应的广域网连接,并通过所述广域网连接发送所述通信信息包括:The local area network device communication management method according to claim 7, wherein the gateway device determines a wide area network connection corresponding to the communication information based on a pre-established communication management table, and transmitting the communication information through the wide area network connection comprises:
    所述网关设备根据所述通信管理表和与从所述通信信息中解析出的所述设备属性信息对应的识别标识为所述通信信息选择对应的广域网连接,并外发所述通信信息,其中,所述识别标识被包括在所述通信管理表中并且构造为标识所述物理地址,并且其中,所述识别标识的长度小于所述物理地址的长度。The gateway device selects a corresponding wide area network connection for the communication information according to the communication management table and an identification identifier corresponding to the device attribute information parsed from the communication information, and sends the communication information, wherein The identification identifier is included in the communication management table and configured to identify the physical address, and wherein the length of the identification identifier is less than a length of the physical address.
  9. 如权利要求7所述的局域网设备通信管理方法,其中,所述网关设备使用所述通用即插即用技术,以不区分所述局域网设备的IP配置方式的方式获取与所述网关设备连接的所有局域网设备的设备类型。The method for managing a local area network device communication according to claim 7, wherein the gateway device obtains the connection with the gateway device in a manner that does not distinguish the IP configuration mode of the local area network device by using the universal plug and play technology. The device type of all LAN devices.
  10. 一种网关设备,包括:A gateway device comprising:
    信息获取模块,其构造为获取局域网设备的设备属性信息与设备类型;An information acquiring module configured to acquire device attribute information and a device type of the local area network device;
    映射建立模块,其构造为依据所述设备属性信息、所述设备类型、与所述设备属性信息和所述设备类型对应的广域网连接建立通信管理表;a mapping establishing module, configured to establish a communication management table according to the device attribute information, the device type, and the wide area network connection corresponding to the device attribute information and the device type;
    信息接收模块,其构造为接收所述局域网设备发送的通信信息,其中,所述通信信息中携带有所述局域网设备的所述设备属性信息;An information receiving module, configured to receive communication information sent by the local area network device, where the communication information carries the device attribute information of the local area network device;
    连接查询模块,其构造为基于预先建立的所述通信管理表和从所述通信信息中解析出的所述设备属性信息确定与所述通信信息对应的广域网连接;以及a connection query module configured to determine a wide area network connection corresponding to the communication information based on the communication management table established in advance and the device attribute information parsed from the communication information;
    信息外发模块,其构造为通过所述广域网连接发送所述通信信息。An information outgoing module configured to transmit the communication information over the wide area network connection.
  11. 如权利要求10所述的网关设备,其中,所述信息获取模块通过通用即插即用技术获取所述设备类型。The gateway device of claim 10, wherein the information acquisition module acquires the device type by a universal plug and play technology.
  12. 如权利要求10所述的网关设备,其中,所述信息获取模块通过接收所述局域网设备发送的通知消息,解析所述通知消息,获取到所述局域网设备的描述文件的统一资源定位符,并根据所述统一资源定位符访问所述描述文件,来获取所述设备类型。The gateway device according to claim 10, wherein the information acquisition module parses the notification message by receiving a notification message sent by the local area network device, and acquires a uniform resource locator of a description file of the local area network device, and Obtaining the device type according to the uniform resource locator accessing the description file.
  13. 如权利要求10-12中任一项所述的网关设备,其中,所述设备属性信息包括所述局域网设备的物理地址。A gateway device according to any of claims 10-12, wherein the device attribute information comprises a physical address of the local area network device.
  14. 如权利要求10-12中任一项所述的网关设备,其中,所述设备属性信息包括所述局域网设备的硬件标识。The gateway device of any of claims 10-12, wherein the device attribute information comprises a hardware identification of the local area network device.
  15. 一种局域网设备通信管理系统,包括至少一个局域网设备以及A local area network device communication management system, including at least one local area network device and
    如权利要求10-14中任一项所述的网关设备。A gateway device according to any of claims 10-14.
PCT/CN2017/117420 2016-12-23 2017-12-20 Local area network device communication management method and system, and gateway device WO2018113693A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201611207307.4 2016-12-23
CN201611207307.4A CN108243026A (en) 2016-12-23 2016-12-23 Lan device communication management method, system and gateway device

Publications (1)

Publication Number Publication Date
WO2018113693A1 true WO2018113693A1 (en) 2018-06-28

Family

ID=62624521

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/117420 WO2018113693A1 (en) 2016-12-23 2017-12-20 Local area network device communication management method and system, and gateway device

Country Status (2)

Country Link
CN (1) CN108243026A (en)
WO (1) WO2018113693A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108924165A (en) * 2018-08-24 2018-11-30 北京和利时工业软件有限公司 A kind of Intranet remote access method and its device and Intranet gateway

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109462659B (en) * 2018-12-17 2021-06-15 深圳市网心科技有限公司 Remote access control system, method and storage medium for embedded device
CN110442059B (en) * 2019-08-02 2021-03-23 珠海格力电器股份有限公司 Controlled equipment expanding method and device and control equipment
CN115460030B (en) * 2022-08-03 2024-01-26 深圳市华迅光通信有限公司 Fusion gateway, data processing method and device thereof and readable storage medium
CN116055372B (en) * 2022-08-24 2023-10-20 荣耀终端有限公司 Network port type determining method, device, system and medium
CN116055438B (en) * 2023-04-03 2023-06-02 四川汉科计算机信息技术有限公司 Cross-region forwarding method, device, computer and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102497369A (en) * 2011-12-12 2012-06-13 深圳市共进电子股份有限公司 Routing method for multi-wide area network (WAN) connection in voice over Internet phone (VOIP) voice communication system
CN103166854A (en) * 2011-12-12 2013-06-19 深圳市共进电子股份有限公司 Local area network (LAN) and wide area network (WAN) service binding method and service binding system
CN103716181A (en) * 2013-12-13 2014-04-09 上海斐讯数据通信技术有限公司 LAN_WAN virtual channel implementation method under gateway device routing mode
CN104115545A (en) * 2012-02-27 2014-10-22 高通股份有限公司 Serving multiple subscribers through a software-enabled access point
US20160094662A1 (en) * 2014-09-29 2016-03-31 Qualcomm Incorporated Providing Simultaneous Data Calls for Client Devices on a Plurality of Subscriptions of a Multi-SIM Computing Device Configured with Software-Enabled Access Point Functionality

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102571390B (en) * 2010-12-10 2015-07-08 华为终端有限公司 Equipment management method, equipment and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102497369A (en) * 2011-12-12 2012-06-13 深圳市共进电子股份有限公司 Routing method for multi-wide area network (WAN) connection in voice over Internet phone (VOIP) voice communication system
CN103166854A (en) * 2011-12-12 2013-06-19 深圳市共进电子股份有限公司 Local area network (LAN) and wide area network (WAN) service binding method and service binding system
CN104115545A (en) * 2012-02-27 2014-10-22 高通股份有限公司 Serving multiple subscribers through a software-enabled access point
CN103716181A (en) * 2013-12-13 2014-04-09 上海斐讯数据通信技术有限公司 LAN_WAN virtual channel implementation method under gateway device routing mode
US20160094662A1 (en) * 2014-09-29 2016-03-31 Qualcomm Incorporated Providing Simultaneous Data Calls for Client Devices on a Plurality of Subscriptions of a Multi-SIM Computing Device Configured with Software-Enabled Access Point Functionality

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108924165A (en) * 2018-08-24 2018-11-30 北京和利时工业软件有限公司 A kind of Intranet remote access method and its device and Intranet gateway

Also Published As

Publication number Publication date
CN108243026A (en) 2018-07-03

Similar Documents

Publication Publication Date Title
WO2018113693A1 (en) Local area network device communication management method and system, and gateway device
US8078665B2 (en) Sharing media content based on a media server
EP2249547B1 (en) A service-provider network-based digital media server
US8626879B2 (en) Systems and methods for establishing network connections using local mediation services
US9451032B2 (en) System and method for simple service discovery in content-centric networks
US20070280230A1 (en) Method and system for service discovery across a wide area network
US20120226817A1 (en) Methods for Transferring Media Sessions Between Local Networks Using an External Network Connected ue and Related Devices
US8190751B2 (en) Personalized media server in a service provider network
US10075354B2 (en) Identification of servers by common wide area network addresses
KR102270909B1 (en) Multimedia sharing method, registration method, server and proxy server
JP2013511887A (en) Provision of media content information
US20050111486A1 (en) Device and method for controlling network devices located within private networks
JP2009230256A (en) Communication controller, communication control method and communication control program
CN104168302B (en) Equipment manipulation implementation method, system and proxy gateway
US20110238854A1 (en) Streaming data relay apparatus and related wireless gateway apparatus
JP5586689B2 (en) Home network, device information sharing method between home networks, and home network system
CN103001930A (en) Remote data communication system
EP2804346A1 (en) Method and system for discovering dlna device automatically
CN105323125A (en) Cross-family network processing method, HTTP gateway, DLNA (digital living network alliance) apparatus
US11218523B2 (en) Method of providing information to an audio/video receiver device and corresponding apparatus
JP2017028383A (en) Sensor storage system, gateway, management server, sensor storage method, and sensor storage program

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

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

Country of ref document: EP

Kind code of ref document: A1