CN107105069A - Device searching processing method - Google Patents
Device searching processing method Download PDFInfo
- Publication number
- CN107105069A CN107105069A CN201710164986.XA CN201710164986A CN107105069A CN 107105069 A CN107105069 A CN 107105069A CN 201710164986 A CN201710164986 A CN 201710164986A CN 107105069 A CN107105069 A CN 107105069A
- Authority
- CN
- China
- Prior art keywords
- terminal device
- unified terminal
- identifier
- management frame
- unified
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/30—Managing network names, e.g. use of aliases or nicknames
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/51—Discovery or management thereof, e.g. service location protocol [SLP] or web services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/06—Notations for structuring of protocol data, e.g. abstract syntax notation one [ASN.1]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L2101/00—Indexing scheme associated with group H04L61/00
- H04L2101/60—Types of network addresses
- H04L2101/618—Details of network addresses
- H04L2101/622—Layer-2 addresses, e.g. medium access control [MAC] addresses
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Small-Scale Networks (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Description
本申请是申请日为2012年7月26日,申请号为201210262669.9,发明名称为“装置搜寻的处理方法”的专利申请的分案申请。This application is a divisional application of a patent application with an application date of July 26, 2012, an application number of 201210262669.9, and an invention title of "processing method for device search".
技术领域technical field
本发明涉及一种通讯系统处理方法,尤其涉及一种于一网络系统的一通讯装置中装置搜寻(Device Discovery)的处理方法。The invention relates to a communication system processing method, in particular to a device discovery processing method in a communication device of a network system.
背景技术Background technique
随着用户对存取数字内容的需求日益增加,多种通讯标准被制定,以用来传输该数字内容。这些通讯标准被制定以适应不同的使用环境、不同的传输速率及/或不同的使用者需求。此外,多种媒体访问控制层/物理层协议会依据不同的通讯标准而制定,其中不同的通讯标准会依据不同的媒介定义不同的通讯方法。举例来说,IEEE 1091通讯标准用于电力线通讯(power line communications,PLC)、IEEE 802.11通讯标准用于无线通信(即WiFi)、IEEE 802.3通讯标准用于以太网络以及多媒体同轴电缆联盟(Multimedia overCoax Alliance,MoCA)通讯标准用于同轴电缆线,以此类推。With the increasing demands of users for accessing digital content, various communication standards have been formulated for transmitting the digital content. These communication standards are formulated to adapt to different usage environments, different transmission rates and/or different user requirements. In addition, a variety of MAC layer/physical layer protocols will be formulated according to different communication standards, wherein different communication standards will define different communication methods according to different media. For example, the IEEE 1091 communication standard is used for power line communications (power line communications, PLC), the IEEE 802.11 communication standard is used for wireless communication (ie WiFi), the IEEE 802.3 communication standard is used for Ethernet and the Multimedia over Coax Alliance (Multimedia overCoax Alliance, MoCA) communication standard for coaxial cables, and so on.
因此,媒体访问控制抽象子层(MAC abstraction sub-layer)被制定用来集成多个通讯标准。请参考图1,图1为一已知的通讯装置10于一数据平台的示意图。通讯装置10可为一移动电话、一笔记本电脑、一平板计算机、一电子书、一调制解调器、或是一便携计算机系统,并可使用不同的通讯标准来进行通讯。如图1所示,媒体访问控制抽象子层配置于一上层与多个媒体访问控制层之间,该多个媒体访问控制层是对应于多个通讯标准的多种媒体访问控制类型的媒体访问控制层。多个媒体访问控制类型的媒体访问控制层包含有电力线通讯媒体访问控制层、WiFi媒体访问控制层、多媒体同轴电缆联盟媒体访问控制层或是以太网络媒体访问控制层。进一步地,每一媒体访问控制类型的媒体访问控制层皆包含有一服务访问点(service access point,SAP),使得媒体访问控制抽象子层可通过相对应的服务访问点与媒体访问控制层进行通讯。上层可为一网络层、一传送层、一应用层或是负责处理从媒体访问控制抽象子层接收的信号与帧以及将通过媒体访问控制抽象子层传输的信号与帧的一通讯协议层。此外,位于数据平台上的通讯装置10包含有一具有多种物理层种类的物理层。此物理层的多种物理层种类包含有根据IEEE 802.3通讯标准制定的以太网络物理层、根据IEEE 802.11通讯标准制定的WiFi物理层、根据IEEE 1901通讯标准制定的电力线通讯物理层、或是根据多媒体同轴电缆联盟通讯标准制定的多媒体同轴电缆联盟物理层。因此,电力线通讯媒体访问控制层、WiFi媒体访问控制层、多媒体同轴电缆联盟媒体访问控制层或是以太网络媒体访问控制层可通过相对应的物理层种类的物理层,进行帧的传送与接收。Therefore, a media access control abstraction sub-layer (MAC abstraction sub-layer) is formulated to integrate multiple communication standards. Please refer to FIG. 1 , which is a schematic diagram of a known communication device 10 on a data platform. The communication device 10 can be a mobile phone, a notebook computer, a tablet computer, an e-book, a modem, or a portable computer system, and can use different communication standards for communication. As shown in Figure 1, the MAC abstraction sublayer is configured between an upper layer and multiple MAC layers, and the multiple MAC layers are media access control types corresponding to multiple communication standards. control layer. The MAC layer of multiple MAC types includes a power line communication MAC layer, a WiFi MAC layer, a multimedia coax alliance MAC layer or an Ethernet MAC layer. Further, the media access control layer of each media access control type includes a service access point (service access point, SAP), so that the media access control abstraction sublayer can communicate with the media access control layer through the corresponding service access point . The upper layer can be a network layer, a transport layer, an application layer or a communication protocol layer responsible for processing signals and frames received from the MAC abstraction sub-layer and signals and frames to be transmitted through the MAC abstraction sub-layer. In addition, the communication device 10 on the data platform includes a physical layer with multiple physical layer types. The various physical layer types of this physical layer include Ethernet physical layer formulated according to IEEE 802.3 communication standard, WiFi physical layer formulated according to IEEE 802.11 communication standard, power line communication physical layer formulated according to IEEE 1901 communication standard, or based on multimedia The Multimedia Coax Alliance physical layer developed by the Coax Alliance communication standard. Therefore, the power line communication media access control layer, WiFi media access control layer, multimedia coax alliance media access control layer or Ethernet media access control layer can transmit and receive frames through the physical layer of the corresponding physical layer type .
进一步地,媒体访问控制抽象子层提供了通讯装置之间的管理功能(例如装置管理或是服务质量协商)。为了实现这些管理功能,通讯装置应能搜寻网络中包含有多少通讯装置。然而,目前并未明确制定装置搜寻的规范,亦未说明如何维持或更新一装置目录。Furthermore, the MAC abstraction sublayer provides management functions between communication devices (such as device management or QoS negotiation). In order to realize these management functions, the communication device should be able to search how many communication devices are included in the network. However, currently there is no clear specification for device search, nor does it describe how to maintain or update a device directory.
发明内容Contents of the invention
有鉴于此,本发明提供一种装置搜寻的处理方法。In view of this, the present invention provides a device search processing method.
依据本发明一实施方式,提供一种装置搜寻的处理方法,用于一网络系统中,该网络系统至少包含一第一统一终端装置以及一第二统一终端装置。该方法包含有产生包含有该第一统一终端装置的一标识符以及一媒体访问控制地址的一搜寻管理帧;传播该搜寻管理帧;以及当从一第二统一终端装置接收到对应于该搜寻管理帧且包含有该第二统一终端装置的一标识符以及一媒体访问控制地址的一响应消息时,根据该第二统一终端装置的该标识符以及该媒体访问控制地址,新增一入口到储存于该第一统一终端装置的一装置目录中。According to an embodiment of the present invention, a device search processing method is provided, which is used in a network system, and the network system includes at least a first unified terminal device and a second unified terminal device. The method includes generating a search management frame including an identifier of the first unified terminal device and a media access control address; propagating the search management frame; and receiving a search corresponding to the search from a second unified terminal device When the management frame contains an identifier of the second unified terminal device and a response message of a media access control address, according to the identifier of the second unified terminal device and the media access control address, a new entry is added to stored in a device directory of the first unified terminal device.
依据本发明另一实施方式,提供一种装置搜寻的处理方法,用于一网络系统,该网络系统至少包含一第一统一终端装置以及一第二统一终端装置。该方法包含有判断是否从一第二统一终端装置接收到包含有该第二统一终端装置的一标识符以及一媒体访问控制地址的一搜寻管理帧;以及当接收到该搜寻管理帧时,根据取得的该第二统一终端装置的该标识符以及该媒体访问控制地址,更新储存于该第一统一终端装置的一装置目录。According to another embodiment of the present invention, a processing method for device search is provided, which is used in a network system, and the network system includes at least a first unified terminal device and a second unified terminal device. The method includes judging whether a search management frame including an identifier of the second unified terminal device and a media access control address is received from a second unified terminal device; and when the search management frame is received, according to The obtained identifier and the MAC address of the second unified terminal device are used to update a device directory stored in the first unified terminal device.
本发明提供的用于装置搜寻的处理方法,能够建立并维护一通讯装置的装置目录。The processing method for device search provided by the invention can establish and maintain a device directory of a communication device.
附图说明Description of drawings
图1为现有的一通讯装置的示意图。FIG. 1 is a schematic diagram of a conventional communication device.
图2为本发明实施例一统一网络系统的示意图。FIG. 2 is a schematic diagram of a unified network system according to an embodiment of the present invention.
图3为本发明实施例一通讯装置的示意图。FIG. 3 is a schematic diagram of a communication device according to an embodiment of the present invention.
图4为本发明实施例一方法的流程图。FIG. 4 is a flowchart of a method according to Embodiment 1 of the present invention.
图5为本发明实施例一装置搜寻处理方法的流程图。FIG. 5 is a flow chart of a device search processing method according to an embodiment of the present invention.
图6为依据图5的传输时序图。FIG. 6 is a transmission timing diagram according to FIG. 5 .
图7为本发明实施例一方法的流程图。FIG. 7 is a flowchart of a method according to Embodiment 1 of the present invention.
图8为本发明实施例一装置搜寻处理方法的流程图。FIG. 8 is a flowchart of a device search processing method according to an embodiment of the present invention.
图9为依据图8的传输时序图。FIG. 9 is a transmission timing diagram according to FIG. 8 .
图10为本发明实施例一定时器更新方法的流程图。FIG. 10 is a flowchart of a method for updating a timer according to an embodiment of the present invention.
图11为依据图10的传输时序图。FIG. 11 is a transmission timing diagram according to FIG. 10 .
具体实施方式detailed description
在本说明书以及权利要求书当中使用了某些词汇来指代特定的组件。本领域技术人员应可理解,硬件制造商可能会用不同的名词来称呼同样的组件。本说明书及权利要求并不以名称的差异作为区分组件的方式,而是以组件在功能上的差异作为区分的准则。在通篇说明书及权利要求当中所提及的“包含”是一个开放式的用语,因此应解释成“包含但不限定于”。另外,“耦接”一词在此包含任何直接及间接的电气连接手段。因此,若文中描述第一装置耦接于第二装置,则代表第一装置可以直接电气连接于第二装置,或通过其它装置或连接手段间接地电气连接至第二装置。Certain terms are used throughout the specification and claims to refer to particular components. Those skilled in the art should understand that hardware manufacturers may use different terms to refer to the same component. The specification and claims do not use the difference in name as a way to distinguish components, but use the difference in function of components as a criterion for distinguishing. "Includes" mentioned throughout the specification and claims is an open-ended term, so it should be interpreted as "including but not limited to". In addition, the term "coupled" herein includes any direct and indirect means of electrical connection. Therefore, if it is described that the first device is coupled to the second device, it means that the first device may be directly electrically connected to the second device, or indirectly electrically connected to the second device through other devices or connection means.
请参考图2,图2为本发明实施例一统一网络系统20的示意图。在图2中,统一网络系统20包含有网络端1~4以及网桥201~203。网络端1~4分别兼容于一通讯标准,如IEEE1901、IEEE 802.11、IEEE 802.3或是多媒体同轴电缆联盟(Multimedia over CoaxAlliance,MoCA)。网桥201~203用来进行网络端1~4之间的通讯。每一通讯标准依据一媒介定义一通讯方式。举例来说,IEEE 1901用于电力线通讯(Power line communications,PLC)、IEEE 802.11用于无线通信(即WiFi)、IEEE 802.3用于以太网络,而多媒体同轴电缆联盟用于同轴电缆。因此,在网络端1中,统一终端装置(unified terminal device、UTDs)a1、a2会通过一媒介Medium a互相通讯或是与网络端1通讯。在网络端2中,统一终端装置b1、b2会通过一媒介Medium b互相通讯或是与网络端2进行通讯,并以此类推。进一步地,使用不同媒介的统一终端装置a1、a2、b1、b2、c1、c2、d1、d2会通过网桥201~203进行彼此之间的通讯。举例来说,统一终端装置b1、b2会通过网桥201与统一终端装置a1、a2进行通讯,以及通过网桥202与统一终端装置c1、c2进行通讯。统一终端装置d1、d2则通过网桥203与统一终端装置c1、c2进行通讯。需注意的是,统一终端装置a1、a2、b1、b2、c1、c2、d1、d2可为移动电话、笔记本电脑、平板式计算机、电子书、调制解调器以及便携计算机系统等电子装置。Please refer to FIG. 2 , which is a schematic diagram of a unified network system 20 according to an embodiment of the present invention. In FIG. 2 , the unified network system 20 includes network terminals 1 - 4 and network bridges 201 - 203 . The network terminals 1-4 are respectively compatible with a communication standard, such as IEEE1901, IEEE 802.11, IEEE 802.3 or Multimedia over Coax Alliance (MoCA). The network bridges 201-203 are used for communication between the network terminals 1-4. Each communication standard defines a communication method according to a medium. For example, IEEE 1901 is used for power line communications (PLC), IEEE 802.11 is used for wireless communication (ie, WiFi), IEEE 802.3 is used for Ethernet, and MMCA is used for coaxial cables. Therefore, in the network terminal 1 , unified terminal devices (unified terminal devices, UTDs) a1 and a2 communicate with each other or with the network terminal 1 through a medium a. In the network terminal 2, the unified terminal devices b1 and b2 communicate with each other or with the network terminal 2 through a medium b, and so on. Further, unified terminal devices a1 , a2 , b1 , b2 , c1 , c2 , d1 , and d2 using different media communicate with each other through the network bridges 201 - 203 . For example, the unified terminal devices b1 and b2 communicate with the unified terminal devices a1 and a2 through the network bridge 201 , and communicate with the unified terminal devices c1 and c2 through the network bridge 202 . The unified terminal devices d1 and d2 communicate with the unified terminal devices c1 and c2 through the network bridge 203 . It should be noted that the unified terminal devices a1, a2, b1, b2, c1, c2, d1, d2 can be electronic devices such as mobile phones, notebook computers, tablet computers, e-books, modems, and portable computer systems.
请参考图3,图3为本发明实施例一通讯装置30的示意图。通讯装置30可为图2中的统一终端装置,但不限于此。通讯装置30包含一处理装置300、一储存单元310以及一通讯接口单元320。处理装置300可为一微处理器或一专用集成电路(application~specificintegrated circuit,ASIC)。储存单元310可为任一可被处理装置300访问的数据储存装置,用来储存一程序代码314,处理装置300可读取及执行程序代码314。举例来说,储存单元310可为用户识别模块(subscriber identity module,SIM)、只读存储器(read-onlymemory,ROM)、闪存(flash memory)、随机存取存储器(random-access memory,RAM)、光盘只读存储器(CD-ROM/DVD-ROM)、磁带(magnetic tape)、硬盘(hard disk)及光学数据储存装置(optical data storage device)等,而不限于此。通讯接口单元320可为一收发器,其根据处理装置300的处理结果,用来与一统一终端装置或网络端交换信号。Please refer to FIG. 3 , which is a schematic diagram of a communication device 30 according to an embodiment of the present invention. The communication device 30 may be the unified terminal device shown in FIG. 2 , but is not limited thereto. The communication device 30 includes a processing device 300 , a storage unit 310 and a communication interface unit 320 . The processing device 300 may be a microprocessor or an application-specific integrated circuit (ASIC). The storage unit 310 can be any data storage device that can be accessed by the processing device 300 for storing a program code 314 , and the processing device 300 can read and execute the program code 314 . For example, the storage unit 310 may be a subscriber identity module (SIM), a read-only memory (ROM), a flash memory (flash memory), a random-access memory (random-access memory, RAM), CD-ROM/DVD-ROM, magnetic tape, hard disk, optical data storage device, etc., but not limited thereto. The communication interface unit 320 can be a transceiver, which is used to exchange signals with a unified terminal device or a network terminal according to the processing result of the processing device 300 .
值得注意的是,本发明的主要特征在于提供用于一统一终端装置的媒体访问控制抽象子层中的一装置搜寻方法。请参考图4,图4为本发明实施例的装置搜寻(DeviceDiscovery)的处理方法40的流程图。方法40用于图2所示的一第一统一终端装置(及任意一统一终端装置),以用来处理装置搜寻。方法40可被编译为图3中的程序代码314,且包含下列步骤:It should be noted that the main feature of the present invention is to provide a device discovery method in the MAC abstraction sub-layer of a unified terminal device. Please refer to FIG. 4 , which is a flowchart of a device discovery (Device Discovery) processing method 40 according to an embodiment of the present invention. The method 40 is applied to a first unified terminal device shown in FIG. 2 (and any unified terminal device) for processing device search. The method 40 can be compiled as the program code 314 in FIG. 3, and includes the following steps:
步骤400:开始。Step 400: start.
步骤402:产生包含有该第一通讯装置的一标识符以及一媒体访问控制地址的一搜寻管理帧(frame)。Step 402: Generate a search management frame including an identifier of the first communication device and a MAC address.
步骤404:传播该搜寻管理帧。Step 404: Propagate the search management frame.
步骤406:当从一第二通讯装置接收到对应于该搜寻管理帧的一响应消息(其包含有该第二通讯装置的一标识符以及一媒体访问控制地址)时,根据该第二通讯装置的该标识符以及该媒体访问控制地址,新增一入口(entry)到储存于该第一通讯装置的一装置目录中。Step 406: When a response message corresponding to the search management frame (which includes an identifier of the second communication device and a MAC address) is received from a second communication device, according to the second communication device An entry is added to a device directory stored in the first communication device for the identifier and the MAC address.
步骤408:结束。Step 408: end.
依据方法40,统一终端装置传送包含有本身的装置标识符以及媒体访问控制地址的至少一搜寻管理帧,并根据从其它统一终端装置接收到的响应消息中的装置标识符以及媒体访问控制地址,建立装置目录。According to method 40, the unified terminal device transmits at least one search management frame including its own device identifier and media access control address, and according to the device identifier and media access control address in the response message received from other unified terminal devices, Create a device directory.
关于方法40,举例说明如下。请参考图5,图5为本发明实施例一装置搜寻方法50的示意图。第一统一终端装置产生包含有一帧种类、一来源装置标识符(source deviceidentity,SDID)以及一目标装置标识符(destination device identity,DDID)等元素的一管理帧(步骤502)。在图5中,管理帧的帧种类是设为装置标识符搜寻帧(DID_DISCOVERY),来源装置标识符SDID是设为第一统一终端装置的装置标识符DID,而目标装置标识符DDID设为传播模式。通过第一统一终端装置的媒体访问控制抽象子层下层的媒体(或接口),第一统一终端装置将多次传送装置标识符搜寻帧,并启动用于指示接收对应于装置标识符搜寻帧的响应消息的接收期间的一定时器(步骤504)。对应于装置标识符搜寻帧的响应消息包含有装置种类、来源媒体访问控制地址以及来源装置标识符等元素。其中,响应消息的帧种类被设为装置标识符回复帧(DID_REPORT)。若于接收定时器计时期满前,第一统一终端装置从其它统一终端装置接收到至少一个装置标识符回复帧,第一统一终端装置进行处理各装置标识符回复帧(步骤506、508)。举例来说,当第一统一终端装置从第二统一终端装置接收到一装置标识符回复帧时,第一统一终端装置根据此装置标识符回复帧的来源媒体访问控制地址以及来源装置标识符,取得第二统一终端装置的一媒体访问控制地址以及一装置标识符。接着,第一统一终端装置根据第二统一终端装置的装置标识符以及媒体访问控制地址,新增一入口(entry)于装置目录中。如此一来,第二统一终端装置被视为第一统一终端装置的一新入口。进一步地,第一统一终端装置可启动用于此入口的一定时器。值得注意的是,若第一统一终端装置未收到任何装置标识符回复帧,则装置搜寻方法50结束(步骤510)。The method 40 is illustrated as follows. Please refer to FIG. 5 , which is a schematic diagram of a device search method 50 according to an embodiment of the present invention. The first unified terminal device generates a management frame including a frame type, a source device identity (SDID) and a destination device identity (DDID) and other elements (step 502 ). In FIG. 5, the frame type of the management frame is set to device identifier search frame (DID_DISCOVERY), the source device identifier SDID is set to the device identifier DID of the first unified terminal device, and the target device identifier DDID is set to broadcast model. Through the medium (or interface) of the lower layer of the media access control abstraction sublayer of the first unified terminal device, the first unified terminal device will transmit the device identifier search frame multiple times, and start the device identifier search frame corresponding to the instruction for receiving A timer during receipt of the response message (step 504). The response message corresponding to the device identifier search frame includes elements such as device type, source MAC address, and source device identifier. Wherein, the frame type of the response message is set as a device identifier reply frame (DID_REPORT). If the first unified terminal device receives at least one device identifier reply frame from other unified terminal devices before the receiving timer expires, the first unified terminal device processes each device identifier reply frame (steps 506, 508). For example, when the first unified terminal device receives a device identifier reply frame from the second unified terminal device, the first unified terminal device responds to the source MAC address and the source device identifier of the frame based on the device identifier, A MAC address and a device identifier of the second unified terminal device are obtained. Next, the first unified terminal device adds an entry in the device directory according to the device identifier and the MAC address of the second unified terminal device. In this way, the second unified terminal device is regarded as a new entry of the first unified terminal device. Further, the first unified terminal device can start a timer for this entry. It should be noted that if the first unified terminal device does not receive any device identifier reply frame, the device searching method 50 ends (step 510 ).
此外,请参考图6,图6为依据装置搜寻方法50的一传输时序图。在图6中,第一统一终端装置UTD1将一装置标识符搜寻帧DID_DISCOVERY传送三次,其中装置标识符搜寻帧DID_DISCOVERY的来源装置标识符SDID是设为该第一统一终端装置UTD1的装置标识符,且装置标识符搜寻帧DID_DISCOVERY的目标装置标识符DDID是设为传播模式(broadcast)。若第二统一终端装置UTD2识别出装置标识符搜寻帧DID_DISCOVERY,第二统一终端装置UTD2通过一装置标识符回复帧DID_REPORT,以响应装置标识符搜寻帧DID_DISCOVERY。其中,装置标识符回复帧DID_REPORT的来源装置标识符SDID是第二统一终端装置UTD2的装置标识符,且装置标识符回复帧DID_REPORT的目标装置标识符DDID是第一统一终端装置UTD1的装置标识符。值得注意的是,装置标识符回复帧DID_REPORT是根据第一统一终端装置UTD1的媒体访问控制地址,被单播(unicast)至该第一统一终端装置UTD1(即,第二统一终端装置UTD2单播该装置标识符回复帧DID_REPORT的目标媒体访问控制地址dest及来源媒体访问控制地址src分别为第一统一终端装置UTD1的媒体访问控制地址和第二统一终端装置UTD2的媒体访问控制地址)。相似地,若一第三统一终端装置UTF3识别出装置标识符搜寻帧DID_DISCOVERY,则第三统一终端装置UTD3通过另一装置标识符回复帧DID_REPORT,响应装置标识符搜寻帧DID_DISCOVERY。其中,此装置标识符回复帧DID_REPORT的来源装置标识符SDID是设为第三统一终端装置UTD3的装置标识符,且装置标识符回复帧DID_REPORT的目标装置标识符DDID是设为第一统一终端装置UTD1的装置标识符。于第一统一终端装置UTD1从第二、第三统一终端装置UTD2、UTD3接收到装置标识符回复帧DID_REPORT后,第一统一终端装置UTD1建立第二、第三统一终端装置UTD2、UTD3的入口于装置目录中(即第一统一终端装置UTD1将第二、第三统一终端装置UTD2、UTD3的装置标识符新增于第一统一终端装置UTD1的装置目录)。然而,若网络系统中的一装置(例如非统一终端装置)无法识别出装置标识符搜寻帧DID_DISCOVERY,此装置不会回复装置标识符搜寻帧DID_DISCOVERY。In addition, please refer to FIG. 6 , which is a transmission timing diagram according to the device search method 50 . In FIG. 6, the first unified terminal device UTD1 transmits a device identifier search frame DID_DISCOVERY three times, wherein the source device identifier SDID of the device identifier search frame DID_DISCOVERY is set as the device identifier of the first unified terminal device UTD1, And the target device identifier DDID of the device identifier search frame DID_DISCOVERY is set to broadcast mode. If the second unified terminal device UTD2 recognizes the device identifier search frame DID_DISCOVERY, the second unified terminal device UTD2 responds to the device identifier search frame DID_DISCOVERY through a device identifier reply frame DID_REPORT. Wherein, the source device identifier SDID of the device identifier reply frame DID_REPORT is the device identifier of the second unified terminal device UTD2, and the destination device identifier DDID of the device identifier reply frame DID_REPORT is the device identifier of the first unified terminal device UTD1 . It should be noted that the device identifier reply frame DID_REPORT is unicast to the first unified terminal device UTD1 according to the media access control address of the first unified terminal device UTD1 (that is, the second unified terminal device UTD2 unicasts the The destination MAC address dest and the source MAC address src of the device identifier reply frame DID_REPORT are respectively the MAC address of the first unified terminal device UTD1 and the MAC address of the second unified terminal device UTD2). Similarly, if a third unified terminal device UTF3 recognizes the device identifier search frame DID_DISCOVERY, the third unified terminal device UTD3 responds to the device identifier search frame DID_DISCOVERY through another device identifier reply frame DID_REPORT. Wherein, the source device identifier SDID of the device identifier reply frame DID_REPORT is set as the device identifier of the third unified terminal device UTD3, and the target device identifier DDID of the device identifier reply frame DID_REPORT is set as the first unified terminal device Device identifier for UTD1. After the first unified terminal device UTD1 receives the device identifier reply frame DID_REPORT from the second and third unified terminal devices UTD2 and UTD3, the first unified terminal device UTD1 establishes the entry of the second and third unified terminal devices UTD2 and UTD3 in In the device directory (that is, the first unified terminal device UTD1 adds the device identifiers of the second and third unified terminal devices UTD2 and UTD3 to the device directory of the first unified terminal device UTD1). However, if a device (such as a non-unified terminal device) in the network system cannot recognize the device identifier search frame DID_DISCOVERY, the device will not reply the device identifier search frame DID_DISCOVERY.
请参考图7,图7为本发明实施例一方法70的流程图。方法70用于图2所示的一第一统一终端装置中,用来处理装置搜寻。方法70可被编译为图3所示的程序代码314,且包含以下步骤:Please refer to FIG. 7 , which is a flowchart of a method 70 according to Embodiment 1 of the present invention. The method 70 is used in a first unified terminal device shown in FIG. 2 for processing device search. The method 70 can be compiled into the program code 314 shown in FIG. 3, and includes the following steps:
步骤700:开始。Step 700: start.
步骤702:判断是否从一第二通讯装置接收到包含有该第二通讯装置的一标识符以及一媒体访问控制地址的一搜寻管理帧。Step 702: Determine whether a search management frame including an identifier of the second communication device and a MAC address is received from a second communication device.
步骤704:当接收到该搜寻管理帧时,根据取得的该第二通讯装置的该标识符以及该媒体访问控制地址,更新储存于该第一通讯装置的一装置目录。Step 704: When the search management frame is received, update a device directory stored in the first communication device according to the obtained identifier and the MAC address of the second communication device.
步骤706:结束。Step 706: end.
依据方法70,统一终端装置根据从其它统一终端装置接收到的搜寻管理帧,维护装置目录。详细来说,统一终端装置从搜寻管理帧取得另一统一终端装置的媒体访问控制地址以及装置标识符,从而通过搜寻管理帧的媒体访问控制地址以及装置标识符,更新装置目录。According to the method 70, the unified terminal device maintains a device directory according to the search management frame received from other unified terminal devices. Specifically, the unified terminal device obtains the MAC address and device identifier of another unified terminal device from the search management frame, thereby updating the device list by searching the MAC address and device identifier of the management frame.
关于方法70,举例说明如下。请参考图8,图8为本发明实施例一装置搜寻方法80的示意图。若第一统一终端装置从第二统一终端装置接收到一装置标识符搜寻帧,第一统一终端装置进行处理此装置标识符搜寻帧(步骤802~804)。具体而言,第一统一终端装置通过装置标识符搜寻帧,取得第二统一终端装置的媒体访问控制地址以及装置标识符,从而根据第二统一终端装置的媒体访问控制地址以及装置标识符,更新装置目录。在此情况下,第二统一终端装置被视为第一统一终端装置的一入口。进一步地,第一统一终端装置启动一定时器,此定时器用来确认此入口的有效期限。反之,若第一统一终端装置未接收到任何装置标识符搜寻帧,则装置搜寻方法80结束。The method 70 is illustrated as follows. Please refer to FIG. 8 , which is a schematic diagram of a device search method 80 according to an embodiment of the present invention. If the first unified terminal device receives a device identifier search frame from the second unified terminal device, the first unified terminal device processes the device identifier search frame (steps 802-804). Specifically, the first unified terminal device obtains the MAC address and device identifier of the second unified terminal device through the device identifier search frame, thereby updating the Device directory. In this case, the second unified terminal device is regarded as a portal of the first unified terminal device. Further, the first unified terminal device starts a timer, and the timer is used to confirm the validity period of the entry. On the contrary, if the first unified terminal device does not receive any device identifier search frame, the device search method 80 ends.
此外,请参考图9,图9为依据装置搜寻方法80的一传输时序图。在图9中,第一统一终端装置UTD1将一装置标识符搜寻帧DID_DISCOVERY传送三次。其中,装置标识符搜寻帧DID_DISCOVERY的来源装置标识符SDID是设为第一统一终端装置UTD1的装置标识符,而目标装置标识符DDID则设为传播模式。若第二、第三统一终端装置UTD2、UTD3识别出装置标识符搜寻帧DID_DISCOVERY,则通过装置标识符回复帧DID_REPORT至第一统一终端装置UTD1,以响应该装置标识符搜寻帧DID_DISCOVERY,并根据装置标识符搜寻帧DID_DISCOVERY中的信息(第一统一终端装置UTD1的媒体访问控制地址以及装置标识符),更新本身的装置目录。值得注意的是,当第一统一终端装置UTD1更改其本身的装置标识符时(即网络分配新的装置标识符给第一统一终端装置UTD1时),第一统一终端装置UTD1可启动装置搜寻方法(即开始传播装置标识符搜寻帧DID_DISCOVERY),以使其它统一终端装置(即第二、第三统一终端装置UTD2、UTD3)可立即更新本身的装置目录。In addition, please refer to FIG. 9 , which is a transmission timing diagram according to the device search method 80 . In FIG. 9, the first unified terminal device UTD1 transmits a device identifier search frame DID_DISCOVERY three times. Wherein, the source device identifier SDID of the device identifier search frame DID_DISCOVERY is set as the device identifier of the first unified terminal device UTD1, and the target device identifier DDID is set as the broadcast mode. If the second and third unified terminal devices UTD2 and UTD3 recognize the device identifier search frame DID_DISCOVERY, then the device identifier reply frame DID_REPORT is sent to the first unified terminal device UTD1 in response to the device identifier search frame DID_DISCOVERY, and according to the device The identifier searches for the information in the frame DID_DISCOVERY (the MAC address and the device identifier of the first unified terminal device UTD1), and updates its own device directory. It is worth noting that when the first unified terminal device UTD1 changes its own device identifier (that is, when the network assigns a new device identifier to the first unified terminal device UTD1), the first unified terminal device UTD1 can start the device search method (that is, start to broadcast the device identifier search frame DID_DISCOVERY), so that other unified terminal devices (ie, the second and third unified terminal devices UTD2, UTD3) can update their own device directories immediately.
如上所述,一统一终端装置可启动用于确认一入口有效期限的一定时器。请参考图10,图10为用于装置目录更新的一定时器检查方法1000的流程图。在图10中,统一终端装置UTD周期性地检查每一入口的定时器。若用于一入口的定时器计时期满时,统一终端装置UTD取得此入口的装置标识符XX以及媒体访问控制地址YY,并产生一搜寻管理帧(步骤1004~1008)。值得注意的是,搜寻管理帧的一帧类型是设为装置标识符搜寻帧DID_DISCOVERY,搜寻管理帧的一来源装置标识符SDID是设为统一终端装置的装置标识符,且目标装置标识符DDID是设为此入口的装置标识符XX。随后,统一终端装置UTD根据此入口的媒体访问控制地址YY,将装置标识符搜寻帧DID_DISCOVERY传送三次,并且启动指示对应于此装置标识符搜寻帧DID_DISCOVERY的该回复信息的接收期间的一定时器(步骤1010)。若统一终端装置UTD于定时器计时期满之前,接收到包含有装置标识符XX的一装置标识符回复帧DID_REPORT,统一终端装置UTD将对应于此入口的定时器重置至一默认值(步骤1014)。另一方面,若统一终端装置UTD于定时器计时期满之前,未接收到装置标识符回复帧DID_REPORT,统一终端装置UTD删除此入口(即将装置标识符XX从装置目录中删除)(步骤1016)。由上述可知,通过定时器检查方法1000,统一终端装置可将已离开网络系统的一统一终端装置从装置目录中删除。As described above, a unified terminal device can start a timer for confirming an entry validity period. Please refer to FIG. 10 , which is a flow chart of a timer checking method 1000 for device directory update. In FIG. 10, the unified terminal device UTD periodically checks the timer of each entry. If the timer for an entry expires, the unified terminal device UTD obtains the device identifier XX and the MAC address YY of the entry, and generates a search management frame (steps 1004-1008). It should be noted that a frame type of the search management frame is set as the device identifier search frame DID_DISCOVERY, a source device identifier SDID of the search management frame is set as the device identifier of the unified terminal device, and the target device identifier DDID is Set to the device identifier XX of this entry. Subsequently, the unified terminal device UTD transmits the device identifier search frame DID_DISCOVERY three times according to the MAC address YY of the entry, and starts a timer ( Step 1010). If the unified terminal device UTD receives a device identifier reply frame DID_REPORT including the device identifier XX before the timer expires, the unified terminal device UTD resets the timer corresponding to this entry to a default value (step 1014). On the other hand, if the unified terminal device UTD does not receive the device identifier reply frame DID_REPORT before the timer expires, the unified terminal device UTD deletes this entry (deletes the device identifier XX from the device directory) (step 1016) . It can be seen from the above that, through the timer checking method 1000, the unified terminal device can delete a unified terminal device that has left the network system from the device directory.
此外,请参考图11,图11为依据定时器检查方法1000的一传输时序图。在图11中,第一统一终端装置UTD1判断装置目录中的统一终端装置UTD2的装置标识符已过期,于是,第一统一终端装置UTD1产生一装置标识符搜寻帧DID_DISCOVERY。其中,装置标识符搜寻帧DID_DISCOVERY的来源装置标识符SDID是设为统一终端装置UTD1的装置标识符,而装置标识符搜寻帧DID_DISCOVERY的目标装置标识符DDID是设为统一终端装置UTD2的装置标识符。根据装置目录中的第二统一终端装置UTD2的媒体访问控制地址,将此装置标识符搜寻帧DID_DISCOVERY单播至第二统一终端装置UTD2。若第二统一终端装置UTD2识别出装置标识符搜寻帧DID_DISCOVERY,第二统一终端装置UTD2通过传送装置标识符回复帧DID_REPORT至第一统一终端装置UTD1,来响应装置标识符搜寻帧DID_DISCOVERY。如此一来,第一统一终端装置UTD1将对应于第二统一终端装置UTD2的入口的定时器重置至一默认值。相似地,若第一统一终端装置UTD1判断第三统一终端装置UTD3的装置标识符过期,第一统一终端装置UTD1产生一装置标识符搜寻帧DID_DISCOVERY。其中,该装置标识符搜寻帧DID_DISCOVERY的来源装置标识符SDID是设为第一统一终端装置UTD1的装置标识符,而此装置标识符搜寻帧DID_DISCOVERY的目标装置标识符DDID是设为第三统一终端装置UTD3的装置标识符。根据装置目录中第三统一终端装置UTD3的媒体访问控制地址,第一统一终端装置UTD1持续地将装置标识符搜寻帧DID_DISCOVERY单播至第三统一终端装置UTD3。然而,若第三统一终端装置UTD3已离开网络系统,第三统一终端装置UTD3可能无法响应装置标识符搜寻帧DID_DISCOVERY。在此情况下,第一统一终端装置UTD1将第三统一终端装置UTD3的装置标识符从装置目录中删除。In addition, please refer to FIG. 11 , which is a transmission timing diagram according to the timer checking method 1000 . In FIG. 11 , the first unified terminal device UTD1 determines that the device identifier of the unified terminal device UTD2 in the device directory has expired, so the first unified terminal device UTD1 generates a device identifier search frame DID_DISCOVERY. Wherein, the source device identifier SDID of the device identifier search frame DID_DISCOVERY is set as the device identifier of the unified terminal device UTD1, and the target device identifier DDID of the device identifier search frame DID_DISCOVERY is set as the device identifier of the unified terminal device UTD2 . According to the MAC address of the second unified terminal device UTD2 in the device directory, the device identifier search frame DID_DISCOVERY is unicast to the second unified terminal device UTD2. If the second unified terminal device UTD2 recognizes the device identifier search frame DID_DISCOVERY, the second unified terminal device UTD2 responds to the device identifier search frame DID_DISCOVERY by sending a device identifier reply frame DID_REPORT to the first unified terminal device UTD1. In this way, the first unified terminal device UTD1 resets the timer corresponding to the entry of the second unified terminal device UTD2 to a default value. Similarly, if the first unified terminal device UTD1 determines that the device identifier of the third unified terminal device UTD3 is expired, the first unified terminal device UTD1 generates a device identifier search frame DID_DISCOVERY. Wherein, the source device identifier SDID of the device identifier search frame DID_DISCOVERY is set as the device identifier of the first unified terminal device UTD1, and the target device identifier DDID of the device identifier search frame DID_DISCOVERY is set as the third unified terminal The device identifier of the device UTD3. According to the MAC address of the third unified terminal device UTD3 in the device directory, the first unified terminal device UTD1 continuously unicasts the device identifier search frame DID_DISCOVERY to the third unified terminal device UTD3. However, if the third unified terminal device UTD3 has left the network system, the third unified terminal device UTD3 may not be able to respond to the device identifier search frame DID_DISCOVERY. In this case, the first unified terminal device UTD1 deletes the device identifier of the third unified terminal device UTD3 from the device list.
值得注意的是,本领域技术人员可将方法40、70、装置搜寻方法50、80以及定时器检查方法1000,通过硬件、固件(即硬件装置与计算机指令的组合,硬件装置中的数据为只读软件数据)或电子系统等方式实现。硬件可包含模拟、数字及混合电路(即微电路、微芯片或硅芯片)。电子系统可包含系统单芯片(system on chip,SOC)、系统封装(system inpackage,Sip)、计算机模块(computer on module,COM)及通讯装置30。It is worth noting that those skilled in the art can use the methods 40, 70, the device search methods 50, 80, and the timer checking method 1000 through hardware and firmware (that is, the combination of hardware devices and computer instructions, and the data in the hardware devices are only Read software data) or electronic systems. Hardware can include analog, digital, and mixed circuits (ie, microcircuits, microchips, or silicon chips). The electronic system may include a system on chip (SOC), a system in package (Sip), a computer on module (COM) and a communication device 30 .
综上所述,本发明提供的用于装置搜寻的处理方法,能够建立并维护一通讯装置的装置目录。To sum up, the processing method for device search provided by the present invention can establish and maintain a device directory of a communication device.
虽然本发明已以较佳实施方式揭露如上,然其并非用以限定本发明,任何所属技术领域中的技术人员,在不脱离本发明的范围内,可以做一些改动,因此本发明的保护范围应以权利要求所界定的范围为准。Although the present invention has been disclosed above in a preferred embodiment, it is not intended to limit the present invention, and any skilled person in the technical field can make some changes without departing from the scope of the present invention, so the protection scope of the present invention The scope defined by the claims shall prevail.
Claims (14)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710164986.XA CN107105069A (en) | 2012-07-26 | 2012-07-26 | Device searching processing method |
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710164986.XA CN107105069A (en) | 2012-07-26 | 2012-07-26 | Device searching processing method |
| CN201210262669.9A CN103581125B (en) | 2012-07-26 | 2012-07-26 | How device discovery is handled |
Related Parent Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201210262669.9A Division CN103581125B (en) | 2012-07-26 | 2012-07-26 | How device discovery is handled |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN107105069A true CN107105069A (en) | 2017-08-29 |
Family
ID=50052063
Family Applications (2)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201210262669.9A Active CN103581125B (en) | 2012-07-26 | 2012-07-26 | How device discovery is handled |
| CN201710164986.XA Withdrawn CN107105069A (en) | 2012-07-26 | 2012-07-26 | Device searching processing method |
Family Applications Before (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201210262669.9A Active CN103581125B (en) | 2012-07-26 | 2012-07-26 | How device discovery is handled |
Country Status (1)
| Country | Link |
|---|---|
| CN (2) | CN103581125B (en) |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20080043665A1 (en) * | 2006-08-18 | 2008-02-21 | Jeon Hong-Seok | IPv6 NEIGHBOR DISCOVERY SUPPORT METHOD ON WIRELESS COMMUNICATIONS SYSTEM |
| CN101202668A (en) * | 2006-12-11 | 2008-06-18 | 佳能株式会社 | Network management system and network management method |
| CN101207514A (en) * | 2006-12-22 | 2008-06-25 | 友劲科技股份有限公司 | Network Device Discovery Method |
| CN101288063A (en) * | 2005-04-22 | 2008-10-15 | 微软公司 | Wireless device discovery and configuration |
| US20110177829A1 (en) * | 2009-12-17 | 2011-07-21 | Tim Platt | Method and system for transmitting and receiving messages |
| CN102571888A (en) * | 2010-12-22 | 2012-07-11 | 江苏联优信息科技有限公司 | Method for discovering wireless sensor access multiplexing equipment in centralized control type wireless sensor network |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR100751620B1 (en) * | 2006-09-21 | 2007-08-22 | 포스데이타 주식회사 | Router and Routing Method to Support Mobile Internet Service |
| CN101197780B (en) * | 2007-12-19 | 2011-09-21 | 华为技术有限公司 | Method, system and device for updating MAC address |
-
2012
- 2012-07-26 CN CN201210262669.9A patent/CN103581125B/en active Active
- 2012-07-26 CN CN201710164986.XA patent/CN107105069A/en not_active Withdrawn
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101288063A (en) * | 2005-04-22 | 2008-10-15 | 微软公司 | Wireless device discovery and configuration |
| US20080043665A1 (en) * | 2006-08-18 | 2008-02-21 | Jeon Hong-Seok | IPv6 NEIGHBOR DISCOVERY SUPPORT METHOD ON WIRELESS COMMUNICATIONS SYSTEM |
| CN101202668A (en) * | 2006-12-11 | 2008-06-18 | 佳能株式会社 | Network management system and network management method |
| CN101207514A (en) * | 2006-12-22 | 2008-06-25 | 友劲科技股份有限公司 | Network Device Discovery Method |
| US20110177829A1 (en) * | 2009-12-17 | 2011-07-21 | Tim Platt | Method and system for transmitting and receiving messages |
| CN102571888A (en) * | 2010-12-22 | 2012-07-11 | 江苏联优信息科技有限公司 | Method for discovering wireless sensor access multiplexing equipment in centralized control type wireless sensor network |
Also Published As
| Publication number | Publication date |
|---|---|
| CN103581125A (en) | 2014-02-12 |
| CN103581125B (en) | 2017-04-12 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111373776B (en) | Adjacent platform | |
| CN104754003B (en) | Transmit the method and system of data | |
| TWI501601B (en) | Device search processing method | |
| CN102577581A (en) | Apparatus and method for establishing a personal network for providing a cpns service | |
| CN107889092A (en) | Bluetooth devices control method, device, terminal device and storage medium | |
| CN105430713A (en) | A wireless fidelity WiFi hotspot identification method and terminal | |
| TWI499260B (en) | Method for converging a plurality of communication standards and method for transmitting the packet or the signal | |
| CN109639698B (en) | Data processing method and server | |
| CN107026857B (en) | An information processing method and gateway device | |
| CN103581125B (en) | How device discovery is handled | |
| TWI479932B (en) | Signal transmitting method | |
| JP5400856B2 (en) | Method for performing a service group discovery procedure in a communication system | |
| CN103581124B (en) | Method for processing management frame and related communication device | |
| EP4171168B1 (en) | Relay session establishment method, apparatus, device, and storage medium | |
| TWI481242B (en) | Method for processing management frame and related communication device | |
| TWI481243B (en) | Method of quality of service negotiation cross multi-media | |
| CN108123854A (en) | Network Management System and multi-access point access internet method | |
| CN107295697A (en) | Wireless network system with regional communication and communication method thereof | |
| CN102833225B (en) | Unified Network Architecture with Media Access Control Abstraction Sublayer | |
| CN113726533B (en) | Communication rate determining method, device, server and storage medium | |
| CN107852579B (en) | Network connection method and related equipment | |
| CN119814756A (en) | DS-TT information transmission method, terminal, base station, core network, medium | |
| CN116708010A (en) | A service data acquisition method, device, gateway device, and storage medium | |
| CN109743456A (en) | data transmission method and related device | |
| CN104618944A (en) | Network detection method and terminal thereof |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| WW01 | Invention patent application withdrawn after publication | ||
| WW01 | Invention patent application withdrawn after publication |
Application publication date: 20170829 |