WO2012016411A1 - Routing method, routing system and service gateway in intelligent home system - Google Patents

Routing method, routing system and service gateway in intelligent home system Download PDF

Info

Publication number
WO2012016411A1
WO2012016411A1 PCT/CN2010/080071 CN2010080071W WO2012016411A1 WO 2012016411 A1 WO2012016411 A1 WO 2012016411A1 CN 2010080071 W CN2010080071 W CN 2010080071W WO 2012016411 A1 WO2012016411 A1 WO 2012016411A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
information
service gateway
industry application
service
Prior art date
Application number
PCT/CN2010/080071
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 WO2012016411A1 publication Critical patent/WO2012016411A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks

Definitions

  • the invention relates to a smart home system, in particular to a routing method, a routing system and a service gateway in a smart home system.
  • Smart home is a residential, platform that combines architecture, network communication, information appliances, equipment automation and sensor networks. It integrates systems, structures, services and management into an efficient, comfortable, safe, convenient and environmentally friendly living environment.
  • the ubiquitous network-based smart home accesses the external network through wireless/wired multiple access methods, and forms the home internal network through the wired/wireless mode of the home internal gateway.
  • the external network and the internal network constitute the ubiquitous network foundation of the smart home service. .
  • the application scope of smart home includes: control services, security alarm services, monitoring services, entertainment services, communication services, life services, video surveillance services, etc.
  • Service gateways need to support a wide variety of applications, complex application scenarios, and different data interaction requirements for services. For example, security alarm services and video surveillance services all require high real-time performance, while communication services require lower real-time requirements.
  • the smart home system networking is shown in Figure 1.
  • the terminal device domain and the network domain mainly includes functional home gateways, such as smart home gateway functions, smart home control functions, and terminal devices.
  • the network domain mainly includes service gateways. Business support functions, management functions, third-party business capabilities, smart home industry applications, etc.
  • the service gateway plays the role of terminal access, industry application access, and data routing transit in the smart home system.
  • the present invention aims to provide a routing method, a routing system, and a service gateway in a smart home system, to solve the problem that the routing method of the smart home system has not been defined and implemented in the industry.
  • a routing method in a smart home system comprising:
  • the local service gateway obtains the destination terminal or destination industry application that is forwarded from the packet;
  • the local service gateway forwards the packet to the destination terminal or the destination industry application that is connected to the local service gateway, or forwards the message to the local service gateway to the attached office.
  • the destination terminal or the destination industry application on the remote service gateway is the responsibility of the packet to the destination terminal or the destination industry application that is connected to the local service gateway, or forwards the message to the local service gateway to the attached office.
  • the method further includes: determining a policy for forwarding the packet, and inserting the packet into a predetermined forwarding queue of the corresponding priority according to the policy.
  • the policy for determining the current forwarding message includes: according to the terminal subscription relationship Obtaining the service information and the terminal information corresponding to the packet, or the service information and the industry application information, according to the service information and terminal information corresponding to the packet, or the service information and the industry application information, and the predetermined priority policy. This strategy for forwarding texts.
  • the method further includes: the local service gateway searching for the next hop of the current route according to the preset remote terminal routing table or the remote industry application routing table, the next hop An off-site service gateway that is attached to the remote terminal or the off-site industry application.
  • the service information includes at least one of a service type and a service priority
  • the industry application information includes at least one of an industry application priority and an industry application processing capability
  • the terminal information includes at least one of a terminal priority and a terminal processing capability.
  • a routing system in a smart home system comprising: a local service gateway and an off-site service gateway; wherein
  • the local service gateway is configured to: when the packet needs to be forwarded, obtain the destination terminal or the destination industry application that is forwarded from the packet; and forward the packet to the local service. Determining, by the destination terminal, the destination terminal or the destination industry application on the gateway, or forwarding the packet to the destination terminal or the target industry application attached to the remote service gateway by using the off-site service gateway;
  • the off-site service gateway is configured to forward the received packet to the destination terminal or the destination industry application that is connected to the remote service gateway.
  • a service gateway in a smart home system including:
  • An obtaining unit configured to: when a packet needs to be forwarded, obtain the destination terminal or the destination industry application that is forwarded from the packet;
  • a forwarding unit configured to forward the packet to the destination terminal or the destination industry application that is connected to the service gateway, or forward the packet to an off-site service gateway to be connected to the remote location The destination terminal or the destination industry application on the service gateway.
  • the service gateway further includes: a decision unit, configured to: before the forwarding unit forwards the packet, determine a policy for forwarding the packet, and insert the packet into a predetermined forwarding queue of the corresponding priority according to the policy.
  • a decision unit configured to: before the forwarding unit forwards the packet, determine a policy for forwarding the packet, and insert the packet into a predetermined forwarding queue of the corresponding priority according to the policy.
  • the local service gateway further includes an information configuration unit configured to preset a plurality of information in the terminal subscription relationship information, the service information, the terminal information, and the industry application information.
  • the determining unit is configured to: obtain service information and terminal information corresponding to the packet, or service information and industry application information according to the terminal subscription relationship information preset in the information configuration unit, according to the report The service information and the terminal information corresponding to the text, or the service information and the description policy, insert the message into a predetermined forwarding queue of the corresponding priority.
  • the forwarding unit is further configured to: the remote terminal preset according to the routing configuration unit The route or the off-site industry application routing table is used to find the next hop of the current route, and the next hop is the off-site service gateway that is connected to the remote terminal or the remote industry application.
  • the routing method, the routing system and the service gateway applicable to the intelligent system proposed by the invention solve the problem that the routing mode of the smart home system has not been defined and implemented in the industry.
  • 1 is a schematic structural view of an existing smart home system
  • FIG. 2 is a schematic flow chart of a routing method in a smart home system according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of different forwarding modes in an embodiment of the present invention.
  • FIG. 4 is a schematic diagram showing the main structure of a service gateway in a smart home system according to an embodiment of the present invention. detailed description
  • the routing method in the smart home system mainly includes: Step 201: When a packet needs to be forwarded, the local service gateway obtains the destination terminal that is forwarded from the packet or Target industry application;
  • Step 201 The local service gateway determines the policy for forwarding the packet, and inserts the packet into the predetermined forwarding queue of the corresponding priority according to the policy.
  • the policy for determining the locally forwarded packet includes: A plurality of information in the terminal subscription relationship information, the service information, the terminal information, and the industry application information may be preset, and the local service gateway obtains the service information and the terminal information, or the service information corresponding to the packet according to the terminal subscription relationship information.
  • the local service gateway forwards the message to the destination terminal on the local service gateway or the The destination industry application, or forwarding the packet to the destination terminal or the target industry application attached to the remote service gateway by using the off-site service gateway.
  • terminal subscription relationship information The terminal subscription relationship information, service information, terminal information, and industry application information are specifically explained as follows:
  • Terminal signing relationship Identify the relationship between the terminal and specific services and industry applications; for example, smart home terminal A, signed a home security service through the business hall, and associated with the industrial application B of the home security business, this smart home Terminal A can communicate with the industrial application B of the home security service by accessing the service gateway;
  • (2) Business information including: service type and service priority
  • the business type can be defined as:
  • control class security alarm class
  • video surveillance class etc.
  • terminal information including: a terminal identifier, a terminal priority, and a terminal processing capability; wherein, the terminal identifier: a unique ID of the entire network allocated according to the smart home terminal identification policy, similar to an international mobile device identifier (IMEI) of the handheld terminal ;
  • IMEI international mobile device identifier
  • the predetermined priority policy service type > service priority > industry application priority > industry application processing capability; that is, the service gateway checks the type of the smart home service for each forwarded message, if it is real time.
  • the service type of the high-priority service is preferentially forwarded.
  • the forwarding packets of the same service type and the service of different priorities are forwarded according to the service priority.
  • the industry application priority and industry application processing capability must be added. Multidimensional strategy judgment;
  • the priority policy is defined as: service type > service priority > terminal priority > terminal processing capability; that is, the service gateway checks the type of smart home service for each forwarded message, if it is real-time.
  • the high-quality service type is preferentially forwarded.
  • the forwarding packets of the same service type and different service priorities are forwarded according to the service priority. In the forwarding process, the terminal priority and terminal processing capability multi-dimensional policy judgment are required.
  • the destination terminal in the embodiment of the present invention may be a local terminal or an off-site terminal, and the destination industry application may be a local industry application or an off-site industry application, where a local terminal or a local industry application attached to the local service gateway is hanged.
  • the embodiment of the present invention can mainly include three forwarding modes: local terminal ⁇ --> forwarding between local industry applications, local terminal ⁇ --> forwarding between off-site industry applications, local terminal ⁇ --> forwarding between the remote terminals; and, when the forwarding mode is set to the local service gateway, predetermined routing configuration information is also included, including: an off-site terminal routing table and/or an off-site industry application routing table.
  • FIG. 3 is a schematic diagram of different forwarding modes according to an embodiment of the present invention.
  • the forwarding process between the local terminal and the local industry application may include:
  • the terminal initiates the process:
  • the source of the current forwarding is the terminal A, the purpose is the industry application A, and the terminal A and the industrial application A are all connected to the service gateway A;
  • the service gateway A After receiving the packet that the terminal A needs to forward to the industry application A, the service gateway A extracts the terminal identifier and the destination industry application identifier (the unique identifier of the entire network of the industry application) from the packet, and determines the terminal A according to the terminal identifier.
  • the service information and the industry application information corresponding to the text are obtained according to the terminal contract relationship, and the service information and the industry application information corresponding to the message are
  • the predetermined priority policy inserts the message into the predetermined forwarding queue of the corresponding priority (the forwarding queue preset according to the priority in the service gateway), and controls the predetermined forwarding queue to forward the packet to the destination industry application A.
  • the service gateway A receives the packet that the industry application A needs to forward to the terminal A, and obtains the industry application ID and the destination terminal ID from the packet, and determines that the industry application A is the local industry application according to the industry application identifier and according to the terminal identifier.
  • the terminal information and the service information corresponding to the packet are obtained according to the terminal subscription relationship, and the terminal information corresponding to the packet is obtained according to the terminal information.
  • the message and the service priority information and the predetermined priority policy insert the message into the predetermined forwarding queue of the corresponding priority, and control the predetermined forwarding queue to forward the message to the destination terminal A.
  • the forwarding is different from the above process:
  • the industry application information is added for judgment, and the terminal information and the service information are used as the policy dimension, and the message is forwarded to the destination terminal 8.
  • the forwarding process between the local terminal ⁇ --> off-site industry applications may specifically include:
  • the local terminal is connected to the off-site industry application, and the industry application corresponding to the terminal subscription relationship is not connected to the local service gateway, and the local service gateway is required to be routed to the off-site service gateway (the service gateway attached to the industry application corresponding to the terminal subscription relationship) ;
  • the terminal initiates the process:
  • the source of the current forwarding is the terminal B, and the purpose is the industry application B, where the terminal B is connected to the service gateway A, and the industry application B is attached to the service gateway B;
  • the terminal identifier and the destination industry application identifier are extracted from the packet, and after confirming that the terminal belongs to the local terminal and has the right to send the packet to the target industry application, Check whether the target industry application exists in the local service gateway. If not, you can determine that the target industry application is an off-site industry application.
  • the industry application ID is used to query the off-site industry application routing table to obtain the next hop forwarded.
  • the next hop of the secondary forwarding is the service gateway B.
  • the service gateway A obtains the service information and the industry application information corresponding to the packet through the terminal subscription relationship, and the service information and the industry application information corresponding to the packet and the predetermined priority.
  • the policy inserts the message into the predetermined forwarding of the corresponding priority in the service gateway A, and controls the scheduled forwarding team.
  • the packet is forwarded to the service gateway B.
  • the service gateway B also needs to insert the packet into the predetermined forwarding queue of the corresponding priority according to the service information and the industry application information corresponding to the packet and the predetermined priority policy, and control the scheduled forwarding.
  • the queue forwards the message to industry application B.
  • the industry application B When the application B needs to forward the packet to the terminal B, the industry application B first sends the packet to the service gateway B that is connected to the service.
  • the service gateway B extracts the destination terminal identifier from the packet, and passes the remote terminal according to the destination terminal identifier.
  • the routing table is queried to the next hop of the current forwarding.
  • the next hop of the current forwarding is the service gateway A.
  • the terminal information and the service information corresponding to the packet are obtained according to the terminal subscription relationship, and corresponding to the packet.
  • the terminal information and the service information and the predetermined priority policy insert the message into the predetermined forwarding queue of the corresponding priority, and control the predetermined forwarding queue to forward the message to the service gateway A; the service gateway A checks whether the terminal B is in the online state.
  • the terminal information and the service information corresponding to the packet are obtained according to the terminal subscription relationship, and the packet is inserted into the predetermined forwarding queue of the corresponding priority according to the terminal information and the service information corresponding to the packet and the predetermined priority policy.
  • the control predetermined forwarding queue forwards the message to the terminal B.
  • the forwarding process between the local terminal ⁇ --> remote terminal may specifically include:
  • the forwarding of the local terminal to the remote terminal requires the local terminal to route to the remote service gateway (the service gateway attached to the remote terminal) through the local service gateway, and then forwards it to the corresponding remote terminal.
  • the terminal initiates the process:
  • the source of the current forwarding is the terminal B (or the terminal C)
  • the destination is the terminal C (or the terminal B), where the terminal B is connected to the service gateway A, and the terminal C is attached to the service gateway B.
  • the service gateway A receives the packet that the terminal B needs to forward to the terminal C, and extracts the source terminal identifier and the destination terminal identifier from the packet, and confirms the destination according to the terminal identifier.
  • the information about the next hop forwarded by the remote terminal routing table is obtained, that is, the information of the service gateway B, and the terminal information and service information corresponding to the packet are obtained according to the terminal subscription relationship, and According to the terminal information corresponding to the message And the service information and the predetermined priority policy insert the message into the predetermined forwarding queue of the corresponding priority, and control the predetermined forwarding queue to forward the message to the service gateway B; the service gateway B checks whether the terminal C is online, if online Obtaining the terminal information and the service information corresponding to the packet according to the terminal subscription relationship, and inserting the packet into the predetermined forwarding queue of the corresponding priority according to the terminal information and the service information corresponding to the packet and the predetermined priority policy. Controlling the predetermined forwarding queue to forward the message to terminal C.
  • the terminal when the terminal is forwarded to the terminal C to the terminal B, the source terminal is the terminal C and the destination terminal is the terminal B.
  • the terminal C sequentially forwards the packet to the terminal B through the service gateway B and the service gateway A.
  • the specific forwarding process is similar and will not be described here.
  • the routing system in the smart home system may specifically include: a local service gateway and an off-site service gateway;
  • the local service gateway is configured to: when the packet needs to be forwarded, obtain the destination terminal or the destination industry application that is forwarded from the packet; and forward the packet to the local service gateway.
  • the terminal or the destination industry application, or the packet is forwarded to the destination terminal or the destination industry application attached to the remote service gateway by using the off-site service gateway;
  • the remote service gateway is configured to forward the received packet to the destination terminal or the destination industry application that is connected to the remote service gateway.
  • the service gateway in the smart home system may specifically include: an acquiring unit, a determining unit, a forwarding unit, an information configuration unit, and a routing configuration unit;
  • An obtaining unit configured to obtain, when the packet needs to be forwarded, the destination terminal or the destination industry application that is forwarded from the packet;
  • a decision unit configured to: before the forwarding unit forwards the packet, determine a policy for forwarding the packet, and insert the packet into a predetermined forwarding queue corresponding to the priority according to the policy; Obtaining service information and terminal information corresponding to the packet, or service information and industry application information according to the terminal subscription relationship information preset in the information configuration unit, according to service information and terminal information corresponding to the packet, or service information and industry The application information, and the predetermined priority policy determine the strategy for forwarding the text;
  • the forwarding unit is configured to forward the packet to the destination terminal or the destination industry application that is connected to the service gateway, or forward the packet to the destination terminal that is connected to the remote service gateway or The destination industry application; when the forwarding mode is that the local terminal and the off-site line find the next hop of the current route according to the remote terminal routing table or the remote industry application routing table preset in the routing configuration unit, the next hop of the current route refers to the destination.
  • the terminal is an off-site terminal or a destination industry application for an off-site industry application, the remote terminal or the off-site service gateway to which the off-site industry application is connected;
  • the information configuration unit is preset with a plurality of information in the terminal subscription relationship information, the service information, the terminal information, and the industry application information;
  • the routing configuration unit is pre-configured with an off-site terminal routing table and/or an off-site industry application routing table. It should be noted that the specific implementation of the routing system and the service gateway in the smart home system has been described in detail in the routing method in the above smart home system, and therefore will not be described here.
  • the routing method, the routing system, and the service gateway in the smart home system solve the problem that the routing mode of the smart home system has not been defined and implemented in the industry; and, the smart home based service

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The present invention discloses a routing method, routing system and service gateway in an intelligent home system. Said routing method includes: when a message needs to be forwarded, a local service gateway obtains the destination terminal or the destination industry application of current forwarding from said message; said local service gateway forwards said message to said destination terminal or said destination industry application which is attached to said local service gateway, or forwards said message through a service gateway in another place to said destination terminal or said destination industry application which is attached to said service gateway in another place. The routing system comprises the local service gateway and the service gateway in another place. The service gateway comprises an obtaining unit and a forwarding unit. The present invention resolves the problem that the routing mode of the intelligent home system has not yet been defined and implemented in the industry.

Description

智能家居系统中的路由方法、 路由系统及业务网关 技术领域  Routing method, routing system and service gateway in smart home system
本发明涉及智能家居系统, 尤其涉及一种智能家居系统中的路由方法、 路由系统及业务网关。 背景技术  The invention relates to a smart home system, in particular to a routing method, a routing system and a service gateway in a smart home system. Background technique
智能家居是以住宅为平台, 兼备建筑、 网络通信、 信息家电、 设备自 动化和传感网络, 集系统、 结构、 服务、 管理为一体的高效、 舒适、 安全、 便利、 环保的居住环境。 基于泛在网络的智能家居通过无线 /有线多种接入 方式接入外部网络,通过家庭内部网关的有线 /无线方式构成家庭内部网络, 外部网络和内部网络构成智能家居服务泛在化的网络基础。  Smart home is a residential, platform that combines architecture, network communication, information appliances, equipment automation and sensor networks. It integrates systems, structures, services and management into an efficient, comfortable, safe, convenient and environmentally friendly living environment. The ubiquitous network-based smart home accesses the external network through wireless/wired multiple access methods, and forms the home internal network through the wired/wireless mode of the home internal gateway. The external network and the internal network constitute the ubiquitous network foundation of the smart home service. .
智能家居的应用范围包括: 控制类业务、 安防告警类业务、 监测类业 务、 娱乐类业务、 沟通类业务、 生活类业务、 视频监控类业务等。 业务网 关需要支持的应用种类繁多, 应用场景复杂, 对业务的数据交互要求也有 不同。 例如安防告警类业务、 视频监控类业务, 都对实时性要求很高, 而 沟通类业务则对实时性要求低一些。  The application scope of smart home includes: control services, security alarm services, monitoring services, entertainment services, communication services, life services, video surveillance services, etc. Service gateways need to support a wide variety of applications, complex application scenarios, and different data interaction requirements for services. For example, security alarm services and video surveillance services all require high real-time performance, while communication services require lower real-time requirements.
智能家居系统组网如图 1 所示, 分终端设备域和网络域, 终端设备域 主要包括的功能网元有智能家居网关功能、 智能家居控制功能、 终端设备 等, 网络域主要包括业务网关、 业务支撑功能、 管理功能、 第三方业务能 力、 智能家居行业应用等。 其中业务网关在智能家居系统中起到终端接入、 行业应用接入、 数据路由中转的作用。  The smart home system networking is shown in Figure 1. The terminal device domain and the network domain. The terminal device domain mainly includes functional home gateways, such as smart home gateway functions, smart home control functions, and terminal devices. The network domain mainly includes service gateways. Business support functions, management functions, third-party business capabilities, smart home industry applications, etc. The service gateway plays the role of terminal access, industry application access, and data routing transit in the smart home system.
目前, 业界还未对智能家居系统的路由方式做出更多的定义和实现。 由于传统的路由策略都是使用从路由协议派生出来的路由表, 其根据目的 地址进行报文的转发, 因此不适用于智能家居系统。 发明内容 At present, the industry has not made more definitions and implementations of the routing methods of smart home systems. Since the traditional routing policy uses a routing table derived from a routing protocol, the packet is forwarded according to the destination address, and thus is not applicable to the smart home system. Summary of the invention
鉴于上述的分析, 本发明旨在提供一种智能家居系统中的路由方法、 路由系统及业务网关, 用以解决业界尚未对智能家居系统的路由方式进行 定义和实现的问题。  In view of the above analysis, the present invention aims to provide a routing method, a routing system, and a service gateway in a smart home system, to solve the problem that the routing method of the smart home system has not been defined and implemented in the industry.
本发明的目的主要是通过以下技术方案实现的:  The object of the present invention is mainly achieved by the following technical solutions:
一种智能家居系统中的路由方法, 包括:  A routing method in a smart home system, comprising:
当有报文需要转发时, 本地业务网关从所述报文中获取到本次转发的 目的终端或目的行业应用;  When a packet needs to be forwarded, the local service gateway obtains the destination terminal or destination industry application that is forwarded from the packet;
所述本地业务网关将所述报文转发给挂接于所述本地业务网关上的所 述目的终端或者所述目的行业应用, 或者将所述 ^艮文通过异地业务网关转 发给挂接于所述异地业务网关上的所述目的终端或所述目的行业应用。  The local service gateway forwards the packet to the destination terminal or the destination industry application that is connected to the local service gateway, or forwards the message to the local service gateway to the attached office. The destination terminal or the destination industry application on the remote service gateway.
进一步地, 转发报文之前, 所述方法还包括: 确定本次转发报文的策 略, 并根据所述策略将报文插入到对应优先级的预定转发队列中。  Further, before forwarding the packet, the method further includes: determining a policy for forwarding the packet, and inserting the packet into a predetermined forwarding queue of the corresponding priority according to the policy.
进一步地, 当所述本地业务网关中预先设置有终端签约关系信息、 业 务信息、 终端信息和行业应用信息中的多个信息时, 确定本次转发报文的 策略包括: 根据所述终端签约关系信息获取到所述报文对应的业务信息和 终端信息, 或者业务信息和行业应用信息, 根据所述报文对应的业务信息 和终端信息, 或者业务信息和行业应用信息, 以及预定优先级策略决定本 次转发 文的策略。  Further, when the local service gateway is pre-set with a plurality of information in the terminal subscription relationship information, the service information, the terminal information, and the industry application information, the policy for determining the current forwarding message includes: according to the terminal subscription relationship Obtaining the service information and the terminal information corresponding to the packet, or the service information and the industry application information, according to the service information and terminal information corresponding to the packet, or the service information and the industry application information, and the predetermined priority policy. This strategy for forwarding texts.
进一步地, 当通过异地业务网关转发报文时, 所述方法还包括: 本地业务网关根据预设置的异地终端路由表或者异地行业应用路由表 查找本次路由的下一跳, 所述下一跳为所述异地终端或者所述异地行业应 用所挂接的异地业务网关。  Further, when the packet is forwarded by the remote service gateway, the method further includes: the local service gateway searching for the next hop of the current route according to the preset remote terminal routing table or the remote industry application routing table, the next hop An off-site service gateway that is attached to the remote terminal or the off-site industry application.
进一步地, 所述业务信息至少包括业务类型和业务优先级中的一个; 所述行业应用信息至少包括行业应用优先级和行业应用处理能力中的一 个; 所述终端信息至少包括终端优先级和终端处理能力中的一个。 Further, the service information includes at least one of a service type and a service priority; the industry application information includes at least one of an industry application priority and an industry application processing capability. The terminal information includes at least one of a terminal priority and a terminal processing capability.
所述优先级策略包括:  The priority policy includes:
报文转发优先级=业务类型>业务优先级 >行业应用优先级>行业应用处 理能力; 或者, 报文转发优先级= 业务类型>业务优先级 >终端优先级 >终端 处理能力。  Packet forwarding priority = service type > service priority > industry application priority > industry application processing capability; or, packet forwarding priority = service type > service priority > terminal priority > terminal processing capability.
一种智能家居系统中的路由系统, 包括: 本地业务网关和异地业务网 关; 其中,  A routing system in a smart home system, comprising: a local service gateway and an off-site service gateway; wherein
所述本地业务网关, 用于当有报文需要转发时, 从所述报文中获取到 本次转发的目的终端或目的行业应用; 并将所述报文转发给挂接于所述本 地业务网关上的所述目的终端或者所述目的行业应用, 或者将所述 ^艮文通 过异地业务网关转发给挂接于所述异地业务网关上的所述目的终端或所述 目的行业应用;  The local service gateway is configured to: when the packet needs to be forwarded, obtain the destination terminal or the destination industry application that is forwarded from the packet; and forward the packet to the local service. Determining, by the destination terminal, the destination terminal or the destination industry application on the gateway, or forwarding the packet to the destination terminal or the target industry application attached to the remote service gateway by using the off-site service gateway;
所述异地业务网关, 用于将接收到的报文转发给挂接于所述异地业务 网关上的所述目的终端或者所述目的行业应用。  The off-site service gateway is configured to forward the received packet to the destination terminal or the destination industry application that is connected to the remote service gateway.
一种智能家居系统中的业务网关, 包括:  A service gateway in a smart home system, including:
获取单元, 用于当有报文需要转发时, 从所述报文中获取到本次转发 的目的终端或目的行业应用;  An obtaining unit, configured to: when a packet needs to be forwarded, obtain the destination terminal or the destination industry application that is forwarded from the packet;
转发单元, 用于将所述报文转发给挂接于所述业务网关上的所述目的 终端或者所述目的行业应用, 或者将所述报文通过异地业务网关转发给挂 接于所述异地业务网关上的所述目的终端或者所述目的行业应用。  a forwarding unit, configured to forward the packet to the destination terminal or the destination industry application that is connected to the service gateway, or forward the packet to an off-site service gateway to be connected to the remote location The destination terminal or the destination industry application on the service gateway.
进一步地, 所述业务网关还包括: 决策单元, 用于转发单元转发报文 之前, 确定本次转发报文的策略, 并根据所述策略将报文插入到对应优先 级的预定转发队列中。  Further, the service gateway further includes: a decision unit, configured to: before the forwarding unit forwards the packet, determine a policy for forwarding the packet, and insert the packet into a predetermined forwarding queue of the corresponding priority according to the policy.
进一步地, 当所述本地业务网关还包括用于预先设置有终端签约关系 信息、 业务信息、 终端信息和行业应用信息中的多个信息的信息配置单元 时, 所述决策单元具体用于, 根据所述信息配置单元中预设置的终端签约 关系信息获取到所述报文对应的业务信息和终端信息, 或者业务信息和行 业应用信息, 根据所述报文对应的业务信息和终端信息, 或者业务信息和 述策略将报文插入到对应优先级的预定转发队列中。 Further, the local service gateway further includes an information configuration unit configured to preset a plurality of information in the terminal subscription relationship information, the service information, the terminal information, and the industry application information. The determining unit is configured to: obtain service information and terminal information corresponding to the packet, or service information and industry application information according to the terminal subscription relationship information preset in the information configuration unit, according to the report The service information and the terminal information corresponding to the text, or the service information and the description policy, insert the message into a predetermined forwarding queue of the corresponding priority.
进一步地, 当所述业务网关还包括用于预先设置有异地终端路由表和 / 或异地行业应用路由表的路由配置单元时, 所述转发单元还用于, 根据路 由配置单元预设置的异地终端路由或者异地行业应用路由表查找本次路由 的下一跳, 所述下一跳为所述异地终端或者所述异地行业应用所挂接的异 地业务网关。  Further, when the service gateway further includes a routing configuration unit configured to pre-set an off-site terminal routing table and/or an off-site industry application routing table, the forwarding unit is further configured to: the remote terminal preset according to the routing configuration unit The route or the off-site industry application routing table is used to find the next hop of the current route, and the next hop is the off-site service gateway that is connected to the remote terminal or the remote industry application.
本发明有益效果如下:  The beneficial effects of the present invention are as follows:
本发明提出的适用于智能系统中的路由方法、 路由系统及业务网关, 解决了业界尚未对智能家居系统的路由方式进行定义和实现的问题。 附图说明  The routing method, the routing system and the service gateway applicable to the intelligent system proposed by the invention solve the problem that the routing mode of the smart home system has not been defined and implemented in the industry. DRAWINGS
图 1为现有智能家居系统的结构示意图;  1 is a schematic structural view of an existing smart home system;
图 2为本发明实施例所述智能家居系统中的路由方法的主要流程示意 图;  2 is a schematic flow chart of a routing method in a smart home system according to an embodiment of the present invention;
图 3为本发明实施例中不同转发模式的示意图;  3 is a schematic diagram of different forwarding modes in an embodiment of the present invention;
图 4为本发明实施例所述智能家居系统中的业务网关的主要结构示意 图。 具体实施方式  FIG. 4 is a schematic diagram showing the main structure of a service gateway in a smart home system according to an embodiment of the present invention. detailed description
下面结合附图来具体描述本发明的优选实施例, 其中, 附图构成本申 请一部分, 并与本发明的实施例一起用于阐释本发明的原理。  The preferred embodiments of the present invention are described in detail below with reference to the accompanying drawings in which FIG.
首先结合图 2和图 3对智能家居系统中的路由方法进行详细说明。 如图 2所示, 本发明实施例所述智能家居系统中的路由方法主要包括: 步骤 201 : 当有报文需要转发时, 本地业务网关从该报文中获取到本次 转发的目的终端或目的行业应用; First, the routing method in the smart home system will be described in detail in conjunction with FIG. 2 and FIG. 3. As shown in FIG. 2, the routing method in the smart home system according to the embodiment of the present invention mainly includes: Step 201: When a packet needs to be forwarded, the local service gateway obtains the destination terminal that is forwarded from the packet or Target industry application;
步骤 201 : 本地业务网关确定本次转发报文的策略, 并根据所述策略将 该报文插入到对应优先级的预定转发队列中; 其中, 确定本地转发报文的 策略包括: 本地业务网关中可以预先设置有终端签约关系信息、 业务信息、 终端信息和行业应用信息中的多个信息, 本地业务网关根据所述终端签约 关系信息获取到该报文对应的业务信息和终端信息, 或者业务信息和行业 应用信息, 根据该报文对应的业务信息和终端信息, 或者业务信息和行业 步骤 203:本地业务网关将该报文转发给挂接所述本地业务网关上的所 述目的终端或者所述目的行业应用, 或者将该报文通过异地业务网关转发 给挂接于该异地业务网关上的所述目的终端或所述目的行业应用。  Step 201: The local service gateway determines the policy for forwarding the packet, and inserts the packet into the predetermined forwarding queue of the corresponding priority according to the policy. The policy for determining the locally forwarded packet includes: A plurality of information in the terminal subscription relationship information, the service information, the terminal information, and the industry application information may be preset, and the local service gateway obtains the service information and the terminal information, or the service information corresponding to the packet according to the terminal subscription relationship information. And the application information of the industry, according to the service information and the terminal information corresponding to the message, or the service information and the industry step 203: the local service gateway forwards the message to the destination terminal on the local service gateway or the The destination industry application, or forwarding the packet to the destination terminal or the target industry application attached to the remote service gateway by using the off-site service gateway.
其中, 终端签约关系信息、 业务信息、 终端信息和行业应用信息具体 解释如下:  The terminal subscription relationship information, service information, terminal information, and industry application information are specifically explained as follows:
( 1 )终端签约关系: 标识终端与具体业务以及行业应用的关联关系; 例如, 智能家居终端 A, 通过营业厅签约了家庭安防业务, 并关联到家庭 安防业务的行业应用 B上, 此智能家居终端 A就可以通过接入业务网关, 与家庭安防业务的行业应用 B实现通信;  (1) Terminal signing relationship: Identify the relationship between the terminal and specific services and industry applications; for example, smart home terminal A, signed a home security service through the business hall, and associated with the industrial application B of the home security business, this smart home Terminal A can communicate with the industrial application B of the home security service by accessing the service gateway;
( 2 )业务信息, 包括: 业务类型和业务优先级; 其中,  (2) Business information, including: service type and service priority;
业务类型可定义为:  The business type can be defined as:
高实时性: 控制类、 安防告警类、 视频监控类等;  High real-time: control class, security alarm class, video surveillance class, etc.
中实时性: 环境监测类、 计量类、 监护类;  Real-time: environmental monitoring, measurement, and monitoring;
低实时性: 娱乐类、 生活类、 沟通类;  Low real-time: entertainment, life, communication;
业务优先级(1-9 ) , 值越大优先级越高; ( 3 )行业应用信息, 包括: 行业应用优先级和行业应用处理能力; 其 中, Business priority (1-9), the higher the value, the higher the priority; (3) Industry application information, including: industry application priority and industry application processing capability;
行业应用优先级(1-9 ) , 值越大优先级越高;  Industry application priority (1-9), the higher the value, the higher the priority;
行业应用处理能力 (高、 中、 低) ;  Industry application processing capabilities (high, medium, low);
( 4 )终端信息, 包括: 终端标识、 终端优先级、 终端处理能力; 其中, 终端标识: 根据智能家居终端标识策略分配的全网唯一 ID, 类似于手 持终端的国际移动设备识别码(IMEI ) ;  (4) terminal information, including: a terminal identifier, a terminal priority, and a terminal processing capability; wherein, the terminal identifier: a unique ID of the entire network allocated according to the smart home terminal identification policy, similar to an international mobile device identifier (IMEI) of the handheld terminal ;
终端优先级(1-9 ) , 值越大优先级越高;  Terminal priority (1-9), the higher the value, the higher the priority;
终端处理能力 (高、 中、 低) 。 当报文目的为终端时,预定优先级策略=业务类型>业务优先级 >行业应 用优先级>行业应用处理能力; 即, 业务网关对每个转发报文检查智能家居 业务的类型, 如果是实时性高的业务类型, 优先进行转发处理; 对相同业 务类型、 不同优先级的业务的转发报文, 根据业务优先级进行转发; 在转 发过程中, 同时需要加入行业应用优先级、 行业应用处理能力多维策略判 断;  Terminal processing capabilities (high, medium, low). When the destination of the packet is the terminal, the predetermined priority policy = service type > service priority > industry application priority > industry application processing capability; that is, the service gateway checks the type of the smart home service for each forwarded message, if it is real time. The service type of the high-priority service is preferentially forwarded. The forwarding packets of the same service type and the service of different priorities are forwarded according to the service priority. In the forwarding process, the industry application priority and industry application processing capability must be added. Multidimensional strategy judgment;
当报文目的为行业应用时, 预定优先级策略=业务类型>业务优先级 > 终端优先级 >终端处理能力; 即, 业务网关对每个转发报文检查智能家居业 务的类型, 如果是实时性高的业务类型, 优先进行转发处理; 对相同业务 类型、 不同业务优先级的转发报文, 根据业务优先级进行转发; 在转发过 程中, 同时需要加入终端优先级、 终端处理能力多维策略判断。  When the purpose of the message is an industry application, the priority policy is defined as: service type > service priority > terminal priority > terminal processing capability; that is, the service gateway checks the type of smart home service for each forwarded message, if it is real-time. The high-quality service type is preferentially forwarded. The forwarding packets of the same service type and different service priorities are forwarded according to the service priority. In the forwarding process, the terminal priority and terminal processing capability multi-dimensional policy judgment are required.
为了便于理解本发明, 下面将举例进一步说明。  In order to facilitate the understanding of the present invention, further explanation will be given below by way of example.
本发明实施例涉及到的目的终端可以为本地终端或异地终端, 目的行 业应用可以为本地行业应用或者异地行业应用, 其中, 挂接在本地业务网 关上的称为本地终端或本地行业应用, 挂接在异地业务网关上的称为异地 终端或异地行业应用; 因此, 本发明实施例主要可以包括三种转发模式: 本地终端< -- >本地行业应用之间的转发、 本地终端< -- >异地行业应用之 间的转发、 本地终端< -— >异地终端之间的转发; 并且, 当转发模式为本地 业务网关中还设置有预定的路由配置信息, 包括: 异地终端路由表和 /或异 地行业应用路由表。 The destination terminal in the embodiment of the present invention may be a local terminal or an off-site terminal, and the destination industry application may be a local industry application or an off-site industry application, where a local terminal or a local industry application attached to the local service gateway is hanged. Connected to the off-site service gateway Terminal or off-site industry application; therefore, the embodiment of the present invention can mainly include three forwarding modes: local terminal <--> forwarding between local industry applications, local terminal <--> forwarding between off-site industry applications, local terminal <--> forwarding between the remote terminals; and, when the forwarding mode is set to the local service gateway, predetermined routing configuration information is also included, including: an off-site terminal routing table and/or an off-site industry application routing table.
如图 3所示, 图 3为本发明实施例中不同转发模式的示意图, 作为本 发明的一个具体实施例, 本地终端< -一 >本地行业应用之间的转发过程具体 可以包括:  As shown in FIG. 3, FIG. 3 is a schematic diagram of different forwarding modes according to an embodiment of the present invention. As a specific embodiment of the present invention, the forwarding process between the local terminal and the local industry application may include:
( 1 )终端发起流程: 设定本次转发的源为终端 A, 目的为行业应用 A, 并且, 终端 A和行业应用 A均挂接在业务网关 A上;  (1) The terminal initiates the process: The source of the current forwarding is the terminal A, the purpose is the industry application A, and the terminal A and the industrial application A are all connected to the service gateway A;
业务网关 A收到终端 A需要转发给行业应用 A的报文后,从报文中提 取出终端标识以及目的行业应用标识 (行业应用的全网唯一的标识) , 当 根据终端标识确定终端 A为本地终端且根据目的行业应用标识确定目的行 业应用 A为本地行业应用时, 依据终端签约关系获取到该 文对应的业务 信息以及行业应用信息, 并根据该报文对应的业务信息和行业应用信息以 及预定优先级策略将该报文插入到对应优先级的预定转发队列 (业务网关 中按照优先级预先设置的转发队列) 中, 控制预定转发队列将该报文转发 到目的行业应用 A。  After receiving the packet that the terminal A needs to forward to the industry application A, the service gateway A extracts the terminal identifier and the destination industry application identifier (the unique identifier of the entire network of the industry application) from the packet, and determines the terminal A according to the terminal identifier. When the local terminal determines the destination industry application A as the local industry application according to the target industry application identifier, the service information and the industry application information corresponding to the text are obtained according to the terminal contract relationship, and the service information and the industry application information corresponding to the message are The predetermined priority policy inserts the message into the predetermined forwarding queue of the corresponding priority (the forwarding queue preset according to the priority in the service gateway), and controls the predetermined forwarding queue to forward the packet to the destination industry application A.
( 2 )行业应用发起流程: 设定本次转发的源为行业应用 A, 目的为终 端 A, 并且, 终端 A和行业应用 A均挂接在业务网关 A上;  (2) Industry application initiation process: The source of this forwarding is set to industry application A, the purpose is terminal A, and both terminal A and industry application A are connected to service gateway A;
业务网关 A收到行业应用 A需要转发给终端 A的报文,从报文中获取 到行业应用 ID和目的终端 ID , 当才艮据行业应用标识确定行业应用 A为本 地行业应用并且根据终端标识确定终端 A为本地终端时, 依据终端签约关 系获取到该报文对应的终端信息和业务信息, 并根据该报文对应的终端信 息和业务信息以及预定优先级策略将该报文插入到对应优先级的预定转发 队列中, 控制预定转发队列将该报文转发到目的终端 A; 此时转发与上面 流程不同的是: 不需要加入行业应用信息进行判断, 而釆用终端信息和业 务信息作为策略维度, 将报文转发到目的终端八。 The service gateway A receives the packet that the industry application A needs to forward to the terminal A, and obtains the industry application ID and the destination terminal ID from the packet, and determines that the industry application A is the local industry application according to the industry application identifier and according to the terminal identifier. When the terminal A is determined to be the local terminal, the terminal information and the service information corresponding to the packet are obtained according to the terminal subscription relationship, and the terminal information corresponding to the packet is obtained according to the terminal information. The message and the service priority information and the predetermined priority policy insert the message into the predetermined forwarding queue of the corresponding priority, and control the predetermined forwarding queue to forward the message to the destination terminal A. At this time, the forwarding is different from the above process: The industry application information is added for judgment, and the terminal information and the service information are used as the policy dimension, and the message is forwarded to the destination terminal 8.
作为本发明的又一个具体实施例, 本地终端<—- >异地行业应用之间的 转发过程具体可以包括:  As a further embodiment of the present invention, the forwarding process between the local terminal <--> off-site industry applications may specifically include:
本地终端接入到异地行业应用, 其终端签约关系对应的行业应用未接 入在本地业务网关上, 需要本地业务网关路由到异地业务网关 (该终端签 约关系对应的行业应用挂接的业务网关) ;  The local terminal is connected to the off-site industry application, and the industry application corresponding to the terminal subscription relationship is not connected to the local service gateway, and the local service gateway is required to be routed to the off-site service gateway (the service gateway attached to the industry application corresponding to the terminal subscription relationship) ;
( 1 )终端发起流程: 设定本次转发的源为终端 B, 目的为行业应用 B, 其中, 终端 B挂接在业务网关 A上, 行业应用 B挂接在业务网关 B上; 业务网关 A在收到终端 B需要转发给行业应用 B的报文后, 从报文中 提取出终端标识以及目的行业应用标识, 当确认该终端属于本地终端且有 权限发送报文给该目的行业应用后, 检查本地业务网关中是否存有该目的 行业应用, 如果没有, 则可以确定该目的行业应用为异地行业应用, 通过 行业应用 ID在异地行业应用路由表中查询得到本次转发的下一跳, 本次转 发的下一跳即为业务网关 B; 进而业务网关 A通过终端签约关系获取到该 报文对应的业务信息以及行业应用信息, 根据该报文对应的业务信息和行 业应用信息以及预定优先级策略将该 ^艮文插入到业务网关 A中对应优先级 的预定转发中, 并控制预定转发队列将该报文转发到业务网关 B; 业务网 关 B同样需要根据报文对应的业务信息和行业应用信息以及预定优先级策 略将该报文插入到对应优先级的预定转发队列中, 控制预定转发队列将该 报文转发到行业应用 B。  (1) The terminal initiates the process: The source of the current forwarding is the terminal B, and the purpose is the industry application B, where the terminal B is connected to the service gateway A, and the industry application B is attached to the service gateway B; After receiving the packet that the terminal B needs to forward to the industry application B, the terminal identifier and the destination industry application identifier are extracted from the packet, and after confirming that the terminal belongs to the local terminal and has the right to send the packet to the target industry application, Check whether the target industry application exists in the local service gateway. If not, you can determine that the target industry application is an off-site industry application. The industry application ID is used to query the off-site industry application routing table to obtain the next hop forwarded. The next hop of the secondary forwarding is the service gateway B. The service gateway A obtains the service information and the industry application information corresponding to the packet through the terminal subscription relationship, and the service information and the industry application information corresponding to the packet and the predetermined priority. The policy inserts the message into the predetermined forwarding of the corresponding priority in the service gateway A, and controls the scheduled forwarding team. The packet is forwarded to the service gateway B. The service gateway B also needs to insert the packet into the predetermined forwarding queue of the corresponding priority according to the service information and the industry application information corresponding to the packet and the predetermined priority policy, and control the scheduled forwarding. The queue forwards the message to industry application B.
( 2 )异地行业应用发起流程: 设定本次转发的源为行业应用 B, 目的 终端为终端 B, 行业应用 B挂接在业务网关 B上, 终端 B挂接在业务网关 A上; (2) Off-site industry application initiation process: Set the source of this forwarding to industry application B, the destination terminal is terminal B, the industry application B is attached to service gateway B, and terminal B is attached to the service gateway. On A;
行业应用 B需要向终端 B转发报文时, 行业应用 B首先将报文发送给 自己挂接的业务网关 B, 此业务网关 B从报文中提取出目的终端标识, 根 据目的终端标识通过异地终端路由表查询到本次转发的下一跳, 本次转发 的下一跳即为业务网关 A; 然后依据终端签约关系获取到该报文对应的终 端信息和业务信息, 并根据该报文对应的终端信息和业务信息以及预定优 先级策略将该报文插入到对应优先级的预定转发队列中, 控制预定转发队 列将该报文转发到业务网关 A;业务网关 A检查终端 B是否处于在线状态, 如果在线, 依据终端签约关系获取到该报文对应的终端信息和业务信息, 并根据该报文对应的终端信息和业务信息以及预定优先级策略将该报文插 入到对应优先级的预定转发队列中, 控制预定转发队列将该报文转发到终 端 B。  When the application B needs to forward the packet to the terminal B, the industry application B first sends the packet to the service gateway B that is connected to the service. The service gateway B extracts the destination terminal identifier from the packet, and passes the remote terminal according to the destination terminal identifier. The routing table is queried to the next hop of the current forwarding. The next hop of the current forwarding is the service gateway A. Then, the terminal information and the service information corresponding to the packet are obtained according to the terminal subscription relationship, and corresponding to the packet. The terminal information and the service information and the predetermined priority policy insert the message into the predetermined forwarding queue of the corresponding priority, and control the predetermined forwarding queue to forward the message to the service gateway A; the service gateway A checks whether the terminal B is in the online state. If online, the terminal information and the service information corresponding to the packet are obtained according to the terminal subscription relationship, and the packet is inserted into the predetermined forwarding queue of the corresponding priority according to the terminal information and the service information corresponding to the packet and the predetermined priority policy. The control predetermined forwarding queue forwards the message to the terminal B.
作为本发明的另外一个实施例, 本地终端<—- >异地终端之间的转发过 程具体可以包括:  As another embodiment of the present invention, the forwarding process between the local terminal <--> remote terminal may specifically include:
本地终端到异地终端的 ^艮文转发, 需要本地终端通过本地业务网关路 由到异地业务网关 (异地终端挂接的业务网关) , 进而转发到对应的异地 终端。  The forwarding of the local terminal to the remote terminal requires the local terminal to route to the remote service gateway (the service gateway attached to the remote terminal) through the local service gateway, and then forwards it to the corresponding remote terminal.
终端发起流程: 设定本次转发的源为终端 B (或者终端 C ) , 目的为终 端 C (或者终端 B ) , 其中, 终端 B挂接在业务网关 A上, 终端 C挂接在 业务网关 B上;  The terminal initiates the process: The source of the current forwarding is the terminal B (or the terminal C), and the destination is the terminal C (or the terminal B), where the terminal B is connected to the service gateway A, and the terminal C is attached to the service gateway B. Upper
如果本次转发为终端 B转发到终端 C, 则业务网关 A收到终端 B需要 转发给终端 C的报文, 从报文中提取出源终端标识和目的终端标识, 当根 据终端标识确认该目的终端是异地接入时, 根据异地终端路由表查询得到 本次转发的下一跳的信息, 即业务网关 B的信息; 进而依据终端签约关系 获取到该报文对应的终端信息和业务信息, 并根据该报文对应的终端信息 和业务信息以及预定优先级策略将该报文插入到对应优先级的预定转发队 列中, 控制预定转发队列将该报文转发到业务网关 B; 业务网关 B检查终 端 C是否处于在线状态, 如果在线, 依据终端签约关系获取到该报文对应 的终端信息和业务信息, 并根据该报文对应的终端信息和业务信息以及预 定优先级策略将该报文插入到对应优先级的预定转发队列中, 控制预定转 发队列将该报文转发到终端 C。 If the forwarding is forwarded to the terminal B, the service gateway A receives the packet that the terminal B needs to forward to the terminal C, and extracts the source terminal identifier and the destination terminal identifier from the packet, and confirms the destination according to the terminal identifier. When the terminal is remotely accessed, the information about the next hop forwarded by the remote terminal routing table is obtained, that is, the information of the service gateway B, and the terminal information and service information corresponding to the packet are obtained according to the terminal subscription relationship, and According to the terminal information corresponding to the message And the service information and the predetermined priority policy insert the message into the predetermined forwarding queue of the corresponding priority, and control the predetermined forwarding queue to forward the message to the service gateway B; the service gateway B checks whether the terminal C is online, if online Obtaining the terminal information and the service information corresponding to the packet according to the terminal subscription relationship, and inserting the packet into the predetermined forwarding queue of the corresponding priority according to the terminal information and the service information corresponding to the packet and the predetermined priority policy. Controlling the predetermined forwarding queue to forward the message to terminal C.
同理, 当本次转发为终端 C到终端 B时, 此时源终端为终端 C , 目的 终端为终端 B, 转发过程是终端 C依次通过业务网关 B和业务网关 A将报 文转发到终端 B, 具体转发过程类似, 此处不再赘述。  Similarly, when the terminal is forwarded to the terminal C to the terminal B, the source terminal is the terminal C and the destination terminal is the terminal B. In the forwarding process, the terminal C sequentially forwards the packet to the terminal B through the service gateway B and the service gateway A. The specific forwarding process is similar and will not be described here.
接下来对智能家居系统中的路由系统进行详细说明。  Next, the routing system in the smart home system will be described in detail.
智能家居系统中的路由系统具体可以包括: 本地业务网关和异地业务 网关; 其中,  The routing system in the smart home system may specifically include: a local service gateway and an off-site service gateway;
本地业务网关, 用于当有报文需要转发时, 从该报文中获取到本次转 发的目的终端或目的行业应用; 并将该报文转发给挂接于所述本地业务网 关上的目的终端或者目的行业应用, 或者将该报文通过异地业务网关转发 给挂接于所述异地业务网关上的目的终端或目的行业应用;  The local service gateway is configured to: when the packet needs to be forwarded, obtain the destination terminal or the destination industry application that is forwarded from the packet; and forward the packet to the local service gateway. The terminal or the destination industry application, or the packet is forwarded to the destination terminal or the destination industry application attached to the remote service gateway by using the off-site service gateway;
异地业务网关, 用于将接收到的报文转发给挂接于所述异地业务网关 上的目的终端或者目的行业应用。  The remote service gateway is configured to forward the received packet to the destination terminal or the destination industry application that is connected to the remote service gateway.
最后, 结合附图 4对智能家居系统中的业务网关进行详细说明。  Finally, the service gateway in the smart home system is described in detail with reference to FIG.
如图 4所示, 智能家居系统中的业务网关具体可以包括: 获取单元、 决策单元、 转发单元、 信息配置单元和路由配置单元; 其中,  As shown in FIG. 4, the service gateway in the smart home system may specifically include: an acquiring unit, a determining unit, a forwarding unit, an information configuration unit, and a routing configuration unit;
获取单元, 用于当有报文需要转发时, 从该报文中获取到本次转发的 目的终端或目的行业应用;  An obtaining unit, configured to obtain, when the packet needs to be forwarded, the destination terminal or the destination industry application that is forwarded from the packet;
决策单元, 用于转发单元转发报文之前, 确定本次转发报文的策略, 并根据所述策略将报文插入到对应优先级的预定转发队列中; 具体用于, 根据信息配置单元中预设置的终端签约关系信息获取到该报文对应的业务 信息和终端信息, 或者业务信息和行业应用信息, 根据该报文对应的业务 信息和终端信息, 或者业务信息和行业应用信息, 以及预定优先级策略决 定本次转发 文的策略; a decision unit, configured to: before the forwarding unit forwards the packet, determine a policy for forwarding the packet, and insert the packet into a predetermined forwarding queue corresponding to the priority according to the policy; Obtaining service information and terminal information corresponding to the packet, or service information and industry application information according to the terminal subscription relationship information preset in the information configuration unit, according to service information and terminal information corresponding to the packet, or service information and industry The application information, and the predetermined priority policy determine the strategy for forwarding the text;
转发单元, 用于将该报文转发给挂接于所述业务网关上的目的终端或 者目的行业应用, 或者将该报文通过异地业务网关转发给挂接于该异地业 务网关上的目的终端或者目的行业应用; 当转发模式为本地终端与异地行 根据路由配置单元中预设置的异地终端路由表或者异地行业应用路由表查 找本次路由的下一跳, 本次路由的下一跳是指目的终端为异地终端或者目 的行业应用为异地行业应用时, 该异地终端或者该异地行业应用所挂接的 异地业务网关;  The forwarding unit is configured to forward the packet to the destination terminal or the destination industry application that is connected to the service gateway, or forward the packet to the destination terminal that is connected to the remote service gateway or The destination industry application; when the forwarding mode is that the local terminal and the off-site line find the next hop of the current route according to the remote terminal routing table or the remote industry application routing table preset in the routing configuration unit, the next hop of the current route refers to the destination. When the terminal is an off-site terminal or a destination industry application for an off-site industry application, the remote terminal or the off-site service gateway to which the off-site industry application is connected;
信息配置单元, 预先设置有终端签约关系信息、 业务信息、 终端信息 和行业应用信息中的多个信息;  The information configuration unit is preset with a plurality of information in the terminal subscription relationship information, the service information, the terminal information, and the industry application information;
路由配置单元,预先设置有异地终端路由表和 /或异地行业应用路由表。 需要说明的说, 对于智能家居系统中的路由系统以及业务网关的具体 实现, 由于上述智能家居系统中的路由方法中已有详细说明, 故此处不再 赘述。  The routing configuration unit is pre-configured with an off-site terminal routing table and/or an off-site industry application routing table. It should be noted that the specific implementation of the routing system and the service gateway in the smart home system has been described in detail in the routing method in the above smart home system, and therefore will not be described here.
综上所述, 本发明实施例提供的智能家居系统中的路由方法、 路由系 统及业务网关, 解决了业界尚未对智能家居系统的路由方式进行定义和实 现的问题; 并且, 基于智能家居的业务网关需要完成的功能及业务特点, 通过业务信息、 行业应用信息以及终端信息等多维度来控制报文的转发, 从而提高业务网关对个性化业务的支持能力, 节省平台成本运行资源, 推 动智能家居行业的快速发展。  In summary, the routing method, the routing system, and the service gateway in the smart home system provided by the embodiments of the present invention solve the problem that the routing mode of the smart home system has not been defined and implemented in the industry; and, the smart home based service The functions and service features that the gateway needs to complete, control the forwarding of packets through multiple dimensions such as service information, industry application information, and terminal information, thereby improving the service gateway's ability to support personalized services, saving platform costs, and running resources to promote smart homes. The rapid development of the industry.
以上所述, 仅为本发明较佳的具体实施方式, 但本发明的保护范围并 不局限于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易想到的变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本 发明的保护范围应该以权利要求书的保护范围为准。 The above description is only a preferred embodiment of the present invention, but the scope of protection of the present invention is It is to be understood that those skilled in the art are susceptible to variations or substitutions within the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the claims.

Claims

权利要求书 Claim
1、 一种智能家居系统中的路由方法, 其特征在于, 所述方法包括: 当有报文需要转发时, 本地业务网关从所述报文中获取到本次转发的 目的终端或目的行业应用;  A routing method in a smart home system, the method includes: when a packet needs to be forwarded, the local service gateway obtains the destination terminal or the destination industry application that is forwarded from the packet ;
所述本地业务网关将所述报文转发给挂接于所述本地业务网关上的所 述目的终端或者所述目的行业应用, 或者将所述 ^艮文通过异地业务网关转 发给挂接于所述异地业务网关上的所述目的终端或所述目的行业应用。  The local service gateway forwards the packet to the destination terminal or the destination industry application that is connected to the local service gateway, or forwards the message to the local service gateway to the attached office. The destination terminal or the destination industry application on the remote service gateway.
2、 根据权利要求 1所述的方法, 其特征在于, 转发报文之前, 所述方 法还包括: 确定本次转发报文的策略, 并根据所述策略将报文插入到对应 优先级的预定转发队列中。  The method according to claim 1, wherein before the forwarding of the message, the method further includes: determining a policy for forwarding the message, and inserting the message into the corresponding priority according to the policy. In the forwarding queue.
3、 根据权利要求 2所述的方法, 其特征在于, 当所述本地业务网关中 预先设置有终端签约关系信息、 业务信息、 终端信息和行业应用信息中的 多个信息时, 确定本次转发报文的策略包括: 根据所述终端签约关系信息 获取到所述报文对应的业务信息和终端信息, 或者业务信息和行业应用信 息, 根据所述报文对应的业务信息和终端信息, 或者业务信息和行业应用 信息, 以及预定优先级策略决定本次转发报文的策略。  The method according to claim 2, wherein when the local service gateway is pre-set with a plurality of information in the terminal subscription relationship information, the service information, the terminal information, and the industry application information, determining the current forwarding The policy of the packet includes: obtaining service information and terminal information corresponding to the packet, or service information and industry application information according to the terminal subscription relationship information, according to service information and terminal information corresponding to the packet, or service The information and industry application information, as well as the predetermined priority policy, determine the strategy for forwarding the message.
4、 根据权利要求 1至 3任一项所述的方法, 其特征在于, 当通过异地 业务网关转发报文时, 所述方法还包括:  The method according to any one of claims 1 to 3, wherein, when the packet is forwarded by the off-site service gateway, the method further includes:
本地业务网关根据预设置的异地终端路由表或者异地行业应用路由表 查找本次路由的下一跳, 所述下一跳为所述异地终端或者所述异地行业应 用所挂接的异地业务网关。  The local service gateway searches for the next hop of the current route according to the preset remote terminal routing table or the off-site industry application routing table, where the next hop is the remote service gateway to which the remote terminal or the remote industry application is attached.
5、 根据权利要求 3的方法, 其特征在于, 所述业务信息至少包括业务 类型和业务优先级中的一个; 所述行业应用信息至少包括行业应用优先级 和行业应用处理能力中的一个; 所述终端信息至少包括终端优先级和终端 处理能力中的一个。 The method according to claim 3, wherein the service information includes at least one of a service type and a service priority; the industry application information includes at least one of an industry application priority and an industry application processing capability; The terminal information includes at least one of a terminal priority and a terminal processing capability.
6、 根据权利要求 5所述的方法, 其特征在于, 所述优先级策略包括: 报文转发优先级=业务类型>业务优先级 >行业应用优先级>行业应用处 理能力; 或者, The method according to claim 5, wherein the priority policy comprises: a packet forwarding priority=service type>service priority>industry application priority>industry application processing capability; or
报文转发优先级=业务类型>业务优先级 >终端优先级 >终端处理能力。 Packet forwarding priority = service type > service priority > terminal priority > terminal processing capability.
7、 一种智能家居系统中的路由系统, 其特征在于, 该路由系统包括: 本地业务网关和异地业务网关; 其中, A routing system in a smart home system, the routing system comprising: a local service gateway and an off-site service gateway; wherein
所述本地业务网关, 用于当有报文需要转发时, 从所述报文中获取到 本次转发的目的终端或目的行业应用; 并将所述报文转发给挂接于所述本 地业务网关上的所述目的终端或者所述目的行业应用, 或者将所述 ^艮文通 过异地业务网关转发给挂接于所述异地业务网关上的所述目的终端或者所 述目的行业应用;  The local service gateway is configured to: when the packet needs to be forwarded, obtain the destination terminal or the destination industry application that is forwarded from the packet; and forward the packet to the local service. Determining, by the destination terminal, the destination terminal or the destination industry application on the gateway, or forwarding the packet to the destination terminal or the target industry application connected to the remote service gateway by using an off-site service gateway;
所述异地业务网关, 用于将接收到的所述报文转发给挂接于所述异地 业务网关上的所述目的终端或者所述目的行业应用。  And the off-site service gateway is configured to forward the received packet to the destination terminal or the destination industry application that is connected to the remote service gateway.
8、 一种智能家居系统中的业务网关, 其特征在于, 包括:  8. A service gateway in a smart home system, characterized in that:
获取单元, 用于当有报文需要转发时, 从所述报文中获取到本次转发 的目的终端或目的行业应用;  An obtaining unit, configured to: when a packet needs to be forwarded, obtain the destination terminal or the destination industry application that is forwarded from the packet;
转发单元, 用于将所述报文转发给挂接于所述业务网关上的所述目的 终端或者所述目的行业应用, 或者将所述报文通过异地业务网关转发给挂 接于所述异地业务网关上的所述目的终端或者所述目的行业应用。  a forwarding unit, configured to forward the packet to the destination terminal or the destination industry application that is connected to the service gateway, or forward the packet to an off-site service gateway to be connected to the remote location The destination terminal or the destination industry application on the service gateway.
9、 根据权利要求 8所述的业务网关, 其特征在于, 所述业务网关还包 括: 决策单元, 用于转发单元转发报文之前, 确定本次转发报文的策略, 并根据所述策略将报文插入到对应优先级的预定转发队列中。  The service gateway according to claim 8, wherein the service gateway further includes: a decision unit, configured to determine, before the forwarding unit forwards the packet, a policy for forwarding the packet, and according to the policy The message is inserted into a predetermined forwarding queue of the corresponding priority.
10、 根据权利要求 9所述的业务网关, 其特征在于, 当所述本地业务 网关还包括用于预先设置有终端签约关系信息、 业务信息、 终端信息和行 业应用信息中的多个信息的信息配置单元时, 所述决策单元具体用于, 根 据所述信息配置单元中预设置的终端签约关系信息获取到所述报文对应的 业务信息和终端信息, 或者业务信息和行业应用信息, 根据所述报文对应 的业务信息和终端信息, 或者业务信息和行业应用信息, 以及预定优先级 策略决定本次转发报文的策略, 并根据所述策略将报文插入到对应优先级 的预定转发队列中。 The service gateway according to claim 9, wherein the local service gateway further includes information for pre-setting a plurality of information in the terminal subscription relationship information, the service information, the terminal information, and the industry application information. When the unit is configured, the decision unit is specifically used for Acquiring the service information and the terminal information corresponding to the packet, or the service information and the industry application information according to the terminal subscription relationship information preset in the information configuration unit, according to the service information and the terminal information corresponding to the packet, or The service information and the industry application information, and the predetermined priority policy determine the policy for forwarding the message, and insert the message into the predetermined forwarding queue of the corresponding priority according to the policy.
11、 根据权利要求 8至 10任一项所述的业务网关, 其特征在于, 当所 述业务网关还包括用于预先设置有异地终端路由表和 /或异地行业应用路由 表的路由配置单元时, 所述转发单元还用于, 根据路由配置单元预设置的 异地终端路由或者异地行业应用路由表查找本次路由的下一跳, 所述下一 跳为所述异地终端或者所述异地行业应用所挂接的异地业务网关。  The service gateway according to any one of claims 8 to 10, wherein when the service gateway further includes a routing configuration unit configured to pre-set an off-site terminal routing table and/or an off-site industry application routing table The forwarding unit is further configured to: search for a next hop of the current route according to an off-site terminal route or an off-site industry application routing table preset by the routing configuration unit, where the next hop is the remote terminal or the off-site industry application The off-site service gateway that is attached.
PCT/CN2010/080071 2010-08-06 2010-12-21 Routing method, routing system and service gateway in intelligent home system WO2012016411A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010246899.7 2010-08-06
CN201010246899.7A CN101909009B (en) 2010-08-06 2010-08-06 Method for routing in intelligent domestic system, route system and Service Gateway

Publications (1)

Publication Number Publication Date
WO2012016411A1 true WO2012016411A1 (en) 2012-02-09

Family

ID=43264332

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/080071 WO2012016411A1 (en) 2010-08-06 2010-12-21 Routing method, routing system and service gateway in intelligent home system

Country Status (2)

Country Link
CN (1) CN101909009B (en)
WO (1) WO2012016411A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114488828A (en) * 2021-12-30 2022-05-13 深圳市欧瑞博科技股份有限公司 Control method and device of intelligent home system and intelligent home system

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101909009B (en) * 2010-08-06 2015-09-16 中兴通讯股份有限公司 Method for routing in intelligent domestic system, route system and Service Gateway
CN107682265B (en) * 2017-09-07 2021-04-20 银清科技有限公司 Message routing method and device of payment system
CN112532513A (en) * 2019-09-19 2021-03-19 上海淘票儿信息科技有限公司 Gateway and service data processing method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101119180A (en) * 2007-09-12 2008-02-06 当代天启技术(北京)有限公司 Data transmission method of intelligent domestic system
CN101594278A (en) * 2008-05-30 2009-12-02 当代天启技术(北京)有限公司 A kind of intelligent domestic system, swap server and data processing method
CN101909009A (en) * 2010-08-06 2010-12-08 中兴通讯股份有限公司 Routing method, routing system and service gateway in intelligent home system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101119180A (en) * 2007-09-12 2008-02-06 当代天启技术(北京)有限公司 Data transmission method of intelligent domestic system
CN101594278A (en) * 2008-05-30 2009-12-02 当代天启技术(北京)有限公司 A kind of intelligent domestic system, swap server and data processing method
CN101909009A (en) * 2010-08-06 2010-12-08 中兴通讯股份有限公司 Routing method, routing system and service gateway in intelligent home system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114488828A (en) * 2021-12-30 2022-05-13 深圳市欧瑞博科技股份有限公司 Control method and device of intelligent home system and intelligent home system
CN114488828B (en) * 2021-12-30 2023-11-28 深圳市欧瑞博科技股份有限公司 Control method and device of intelligent home system and intelligent home system

Also Published As

Publication number Publication date
CN101909009B (en) 2015-09-16
CN101909009A (en) 2010-12-08

Similar Documents

Publication Publication Date Title
JP6922061B2 (en) Efficient communication for residential network equipment
KR101806257B1 (en) Method and apparatus for implementing subscription notification
US9438601B2 (en) Operating group resources in sub-groups and nested groups
US20170244792A1 (en) Power-Line Carrier Terminal Control Apparatus, System, and Method
CN110830575B (en) Data transmission method and control system of intelligent household equipment and intelligent gateway equipment
CN112671638B (en) Gateway structure for multi-protocol conversion
US20150249588A1 (en) Distributed Processing System
WO2016101646A1 (en) Access method and apparatus for ethernet virtual network
KR20170039262A (en) Server for device location registration in an internet of things(iot)
RU2010136044A (en) WIRELESS RADIO CONTROL UNITS USING IDENTIFIERS
WO2012094898A1 (en) Virtual machine migration method, switch, virtual machine system
WO2014048059A1 (en) Gateway apparatus and data processing method
WO2011150707A1 (en) Method and system for managing terminal states or terminal events in machine-to-machine or machine-to-man or man-to-machine (m2m) service
CN104301238A (en) Message processing method, device and system
CN202285423U (en) Intelligent set top box
WO2011116598A1 (en) Method and system for achieving management of gateway
WO2012016411A1 (en) Routing method, routing system and service gateway in intelligent home system
CN104253849A (en) Method and system for remotely accessing web camera
CN104168302B (en) Equipment manipulation implementation method, system and proxy gateway
WO2015070763A1 (en) Self-establishing method and apparatus for x2 interface
WO2017215383A1 (en) Network element configuration method and device, and network element management method and device
JP5742268B2 (en) COMMUNICATION SYSTEM, CONTROL DEVICE, COMMUNICATION METHOD
WO2019120188A1 (en) Automatic communication mode switching method, terminal and smart device
CN107547691B (en) Address resolution protocol message proxy method and device
WO2016074354A1 (en) Wifi sharing method and system, home gateway and wireless local area network gateway

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

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

Country of ref document: EP

Kind code of ref document: A1