CN101242311A - Method and system for automatic network connection mode detection - Google Patents

Method and system for automatic network connection mode detection Download PDF

Info

Publication number
CN101242311A
CN101242311A CN 200710003469 CN200710003469A CN101242311A CN 101242311 A CN101242311 A CN 101242311A CN 200710003469 CN200710003469 CN 200710003469 CN 200710003469 A CN200710003469 A CN 200710003469A CN 101242311 A CN101242311 A CN 101242311A
Authority
CN
China
Prior art keywords
mode
network connection
packet
network
module
Prior art date
Application number
CN 200710003469
Other languages
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 智邦科技股份有限公司
Priority to CN 200710003469 priority Critical patent/CN101242311A/en
Publication of CN101242311A publication Critical patent/CN101242311A/en

Links

Abstract

The invention relates to a method for auto detecting a network connect mode which determines the connect mode between a user terminal and a servo terminal, wherein the user terminal has a transmitting module, a receiving module and a judge module. The method comprises: a first detecting package transmitting program which sends a first connect mode detecting package from the transmitting module to the servo terminal; a first judge program which judges whether the receiving module receives a respond package of the first network connect mode to determine whether the network connect mode is the first network connect mode or not; a second detecting package transmitting program which sends a second connect mode detecting package from the transmitting module to the servo terminal when the receives module does not receives the first network connect mode respond package; and a second judge program which judges whether the network connect mode is the second network connect mode or not when the receiving module receives a respond package of the second network connect mode. The invention can raise the convenience in use.

Description

自动侦测网络连线模式的方法与系统技术领域本发明涉及一种网络连线模式的设定方法及与统,特别是涉及一种自动侦测网络连线模式的方法与系统。 The method of automatically detecting the network connection mode TECHNICAL FIELD The present invention relates to a network connection mode setting method and system and, more particularly to a method and system for automatically detecting the network connection mode. 背景技术一般而言,目前宽频网络的主要连线模式主要区分为点对点通讯协定(Point-to-Point Protocol over Ethernet, PPPoE)、动态位址通讯协定(Dynamic Host Configuration Protocol, DHCP)以及固定位址(Static IP Address)等三种连线模式,当使用者欲使一电子设备与网络连线,必须先将电子设备与一网络存取装置或一网络伺服器取得通讯协定,才能够令电子设备连上网络,因此使用者必须先手动设定网络连线模式才得以连线至网际网络而使用网络资源。 BACKGROUND In general, the main mode of broadband connections is mainly divided into point to point protocol (Point-to-Point Protocol over Ethernet, PPPoE), dynamic address protocol (Dynamic Host Configuration Protocol, DHCP) and a fixed address (Static IP Address), three connected mode, when the user purports to an electronic device and network connection protocol must obtain a first electronic device and a network access device or a network server, it is possible to make the electronic device connected to the network, so the user must manually set the mode network connection was able to connect to the Internet and use of network resources. 然而,不同的连线模式所需要设定的参数皆不尽相同,除非使用者对于网络有相当程度的认识与研究而可自行设定外,对于一般不熟悉网络的使用者而言,要了解各种网络连线模式的设定方式是较为困难及复杂的。 However, different connection modes need to set the parameters are not the same, unless the user network for a considerable degree of knowledge and research and can be set, but generally not familiar with the network to the user is concerned, to understand various network connection setting modes is more difficult and complex. 因此常常有使用者因为对于网络连线模式的设定不清楚,导致网络连线模式设定发生错误而无法使用,或是需要经过较长的时间来研究如何设定,而造成使用者的困扰。 So often users because the network connection mode setting is not clear, resulting in network connection mode setting error can not be used, or the need to go through a longer time to study how to set up, while causing distress users . 因此,如何提供一种能够令使用者简易的设定网络连线模式,以节省网络连线模式的设定时间,实属当前重要课题之一。 Therefore, how to provide a user can make simple setup network connection mode to conserve set time network connection mode, it is currently one of the important issues. 由此可见,上述现有的设定网络连线模式在结构与使用上,显然仍存在有不便与缺陷,而亟待加以进一步改进。 Thus, the conventional network connection mode is set in the structure and use, there is clearly still problems and disadvantages, and the urgent need to be further improved. 为了解决上述存在的问题,相关厂商莫不费尽心思来谋求解决之道,但长久以来一直未见适用的设计被发展完成,而一般产品又没有适切的结构能够解决上述问题,此显然是相关业者急欲解决的问题。 In order to solve the above problems, the firms did not dare to think hard and to seek a solution, but has long been seen to be applicable to the design of the development is complete, and general product and no relevance structure can solve the above problems, this is clearly relevant operators eager to solve the problem. 因此如何能创设一种新型的自动侦测网络连线模式的方法与系统,实属当前重要研发课题之一,亦成为当前业界极需改进的目标。 So how can we create a new mode automatically detects network connection methods and systems, it is currently one of the important research and development issues, has become the current industry in dire need of improvement goals. 有筌于上述现有的设定网络连线模式存在的缺陷,本发明人基于从事此类产品设计制造多年丰富的实务经验及专业知识,并配合学理的运用,积极加以研究创新,以期创设一种新型的自动侦测网络连线模式的方法与系统,能够改进一般现有的设定网络连线模式,使其更具有实用性。 There Quan defects in the existing network connection mode is set, the present invention is based on many years engaged in the design and manufacture of such products a wealth of practical experience and professional knowledge, and with the use of scientific principle, be actively pursued research and innovation, in order to create a automatically detect new types of network connection mode method and system, capable of improving the conventional general network connection setting mode, it is more practical. 经过不断的研究、设计,并经过反复试作样品及改进后,终于创设出确具实用价值的本发明。 Through continuous research, design, and repeated the test sample and make improvements through, and finally the creation of the present invention indeed has practical value. 发明内容本发明的主要目的在于,克服现有的设定网络连线模式存在的缺陷,而提供一种新型的自动侦测网络连线模式的方法与系统,所要解决的技术问题是使其藉由自动侦测网络连线模式,以减少使用者在设定网络连线模式时因为不熟悉设定方式而产生错误发生与时间浪费,以提高使用的便利性,从而更加适于实用。 The main object of the present invention is to solve the problems of a conventional network connection setting mode, and to provide a novel network connection mode of automatic detection method and system, the technical problem to be solved by it by the automatic detection of network connection mode to reduce users not familiar setting mode to generate an error and a waste of time, in order to improve ease of use, and thus more suitable for practical use when setting up the network connection mode. 本发明的目的及解决其技术问题是采用以下技术方案来实现的。 Objects and solve the technical problem of the invention is achieved by the following technical solutions. 依据本发明提出的一种自动侦测网络连线模式的方法,是决定一用户端与一伺服器端的一网络连线模式,该用户端具有一发送模组、 一接收模组及一判断模组,其特征在于该自动侦测网络连线模式的方法包含: 一第一侦测封包发送程序,其是由该发送模组发送一第一网络连线模式侦测封包至该伺服器端; 一第一判断程序,判断该接收模组是否接收一第一网络连线模式回应封包,以决定该网络连线模式是否为一第一网络连线模式; 一第二侦测封包发送程序,当该接收模组未接收到该第一网络连线模式回应封包,由该发送模组发送一第二网络连线模式侦测封包至该伺服器端;以及一第二判断程序,当该接收模组接收一第二网络连线模式回应封包时,判断该网络连线模式是为一第二网络连线模式。 According to a method for automatically detecting the network connection mode proposed by the present invention, is to determine a network connection mode of a client and a server side, the user terminal has a transmitting module, a receiving module and a determination module group, wherein the method of automatically detecting the network connection mode comprises: detecting a first packet transmission program, which is transmitted by the transmission module to detect a first network packet to the connected mode terminal server; a first determination program determines whether or not the receiving module receives a response packet a first network connected mode, the network connection mode to determine whether a first network connected mode; detecting a second packet transmission program, when the receiving module does not receive the network connection mode of the first response packet, sent by the transmission module and a second mode of network connection server detection packet to the terminal; and a second determination program, when the receiving mold receiving a second set of network connection mode response packet, determines whether the network mode is a second connection network connected mode. 本发明的目的及解决其技术问题还可采用以下技术措施进一步实现。 The purpose and solve the technical problem of the present invention also adopt the following measures to further implement technology. 前述的自动侦测网络连线模式的方法,其中所述的第一侦测封包发送程序更包含:记录该发送模组所发送的该第一网络连线模式侦测封包的次数。 The automatic method for detecting the network connection mode, wherein said first detecting packet transmission program further comprising: recording the first network connection mode of the transmission module number transmitted packet detection. 前述的自动侦测网络连线模式的方法,其中所述的第一判断程序包含:判断该发送模组所发送的该第一网络连线模式侦测封包的次数是否达到一第一预设值;以及当该次数达到该第一预设值时,执行该第二侦测封包发送程序或当该次数未达到该第一预设值时,执行该第一侦测封包发送程序。 The automatic method for detecting the network connection mode, wherein said first determination program comprising: determining a first number of the network connection mode of the transmission module to detect transmitted packet reaches a first predetermined value ; and when the number reaches the first predetermined value, performing the second detection packet transmission program or when the number of times does not reach the first predetermined value, performing the first detection packet transmission program. 前述的自动侦测网络连线模式的方法,其中所述的第二侦测封包发送程序更包含:记录该发送模组所发送的该第二网络连线模式侦测封包的次数。 The automatic method for detecting the network connection mode, wherein said second detecting packet transmission program further comprising: recording the second network connection mode of the transmission module number transmitted packet detection. 前述的自动侦测网络连线模式的方法,其中所述的第二判断程序包舍判断该发送模组所发送的该第二网络连线模式侦测封包的次数是否达到一第二预设值;以及当该次数达到该第二预设值时,决定该网络连线模式是为一固定位址连线模式或当该次数未达到该第二预设值时,执行该第二侦测封包发送程序。 The automatic method for detecting the network connection mode, determining a second package wherein the round number determination of the second network connection mode of the transmission module to detect transmitted packet reaches a second predetermined value ; and when the number reaches the second predetermined value, determining the network connection mode is connected mode or a fixed address when the number of times does not reach the second predetermined value, performing the second detection packet send program. 前述的自动侦测网络连线模式的方法,其中所述的第一判断程序包含:计算该发送模组在发送该第一网络连线模式侦测封包后至该接收模组接收该第一网络连线模式回应封包的一第一等待时间;以及当该第一等待时间超过一第一预设时间时,执行该第二侦测封包发送程序。 The automatic method for detecting the network connection mode, wherein said first determination program comprising: calculating the transmission module after sending the first network packet to the connected mode to detect the first network receiving module receives connected mode in response to a first waiting time of the packet; and when the first waiting time exceeds a first predetermined time, performing the second detection packet transmission program. 前述的自动侦测网络连线模式的方法,其中所述的第二判断程序包^:计算该发送模组在发送该第二网络连线模式侦测封包后至该接收模组接收该第二网络连线模式回应封包的一第二等待时间;以及当该第二等待时间超过一第二预设时间时,决定该网络连线模式是为一固定位址连线模式或当该第二等待时间未超过该第二预设时间时,执行该第二侦测封包发送程序。 The automatic method for detecting the network connection mode, wherein said second determination program packet ^: calculating the transmission module after sending the second network packet to the connected mode to detect the second receiving module receives network connection mode in response to a second waiting time of the packet; and when the second waiting time exceeds a second preset time, determining the network connection modes for connecting a fixed address when the second waiting mode or when the time does not exceed the second preset time, the implementation of the second detection packet transmission program. 前述的自动侦测网络连线模式的方法,其中所述的第一网络连线模式侦测封包或该第二网络连线模式侦测封包是为一点对点通讯协定主动发现起始讯框或一动态位址发现讯框。 The automatic method for detecting the network connection mode, wherein said first packet network connection mode or the second detection mode detection packet network connection is a point to point communication protocol is active discovery information frame or a starting dynamic address discovery information box. 前述的自动侦测网络连线模式的方法,其中所述的第一网络连线模式及该第二网络连线模式是分别为一通讯协定连线^^莫式。 The automatic method for detecting the network connection mode, wherein said first network connection and the second mode are respectively connected mode network protocol connection ^^ a Mohs. 前述的自动侦测网络连线模式的方法,其中所述的通讯协定连线模式是为一点对点通讯协定连线模式或一动态位址连线模式。 The automatic method for detecting the network connection mode, connected mode communication protocol, wherein said communication protocol is a point to point connection mode, connected mode or a dynamic address. 本发明的目的及解决其技术问题还采用以下技术方案来实现。 Objects and to solve the technical problem of the present invention is further achieved by the following technical solution. 依据本发明提出的一种自动侦测网络连线模式的系统,是由一用户端与一伺服器端配合应用,该自动侦测网络连线模式的系统包含: 一发送模组,是发送一第一网络连线模式侦测封包或一第二网络连线模式侦测封包至该伺服器端; 一接收模组,是接收该伺服器端回传的一第一网络连线模式回应封包或一第二网络连线模式回应封包;以及一判断模组,是依据该接收模组接收该伺服器端所回传该第一网络连线模式回应封包或该第二网络连线模式回应封包,以决定该网络连线模式是为一第一网络连线模式、 一第二网络连线模式或一固定位址连线模式。 According to one proposed system automatically detects the network connection mode of the present invention, it is fitted with a server-side application by a UE, the network connection mode of the automatic detection system comprising: a sending module, sending a a first network connection mode detection packet or a second mode of network connection server detection packet to the terminal; a receiving module, receiving the server-side return a first response packet or network connected mode a second response packet network connected mode; and a determining module, a receiving module according to the response packet received by the server-side backhaul network connection to the first mode or the second network response packet mode connection, model to determine whether the network connection is a network connection mode of a first, a second fixed network connected mode or a connected mode address. 本发明的目的及解决其技术问题还可采用以下技术措施进一步实现。 The purpose and solve the technical problem of the present invention also adopt the following measures to further implement technology. 前述的自动侦测网络连线模式的系统,其中所述的判断模组更包含:一计数单元,是记录该发送模组发送该第一网络连线模式侦测封包的次数或记录该第二网络连线模式侦测封包的次数;以及一计时单元,是计算该发送模组在发送该第一网络连线模式侦测封包后至该接收模组接收该第一网络连线模式回应封包的一第一等待时间,或计算该发送模组在发送该第二网络连线模式侦测封包后至该接收模组接收该第二网络连线模式回应封包的一第二等待时间。 Automatically detects the network connection mode of the system, wherein the determining module further comprises: a counting unit, recording the transmission module to transmit the first packet network connection mode detection or recording the second number of times detecting the number of packet network connected mode; and a timing unit, it is to calculate the transmission module after sending the first network packet to the connected mode to detect the first network receiving module receives the connection response packet mode a first waiting time, or calculating the transmission module after sending the second network packet to the connected mode detection module receives the second reception mode in response to a second network connection latency packet. 前述的自动侦测网络连线模式的系统,其中所述的第一网络连线模式侦测封包或该第二网络连线模式侦测封包是为一点对点通讯协定主动发现起始讯框或一动态位址发现讯框。 Automatically detects the network connection mode of the system, wherein said first packet network connection mode or the second detection mode detection packet network connection is a point to point communication protocol is active discovery information frame or a starting dynamic address discovery information box. 前述的自动侦测网络连线模式的系统,其中所述的第一网络连线模式及该第二网络连线模式是分别为一通讯协定连线模式。 The system automatically detects the network connection mode, wherein the first mode and the second network connection network connection mode is a communication protocol are connected mode. 前述的自动侦测网络连线模式的系统,其中所述的通讯协定连线模式是为一点对点通讯协定连线模式或一动态位址连线模式。 The system automatically detects the network connection mode, wherein the communication protocol is a point to point connection mode protocol connected mode or a connected mode dynamic address. 本发明与现有技术相比具有明显的优点和有益效果。 The prior art and the present invention has obvious advantages and beneficial effects compared. 由以上技术方案可知,本发明自动侦测网络连线模式的方法与系统至少具有下列优点:承上所述,因依据本发明的自动侦测网络连线模式的方法与系统,藉由用户端自动发送网络连线模式侦测封包来侦测网络连线模式,而能够减少使用者在设定网络连线模式时产生错误发生与时间浪费的情况,以提高使用的便利性。 Seen from the above technical solutions, the present invention automatically detects a network connected mode method and system having at least the following advantages: the bearing, because the method and system according to the automatic detection of network connected mode of the present invention, by the UE automatic transmission packet network connection detection mode to detect network connection mode, it is possible to reduce the user-generated event of an error and waste of time in setting the network connection mode to improve the convenience of use. 综上所述,本发明是有关于一种自动侦测网络连线模式的方法是决定一用户端与一伺服器端的一网络连线模式,用户端具有一发送模组、 一接收模组及一判断模组。 In summary, the present invention relates to a method for automatically detecting the network connection mode is to determine a user terminal and a network connection mode, a UE has a server side transmitting module and a receiving module a judgment module. 此方法包含: 一第一侦测封包发送程序,其是由发送模组发送一第一网络连线模式侦测封包至伺服器端; 一第一判断程序,其是判断接收模组是否接收一第一网络连线模式回应封包,以决定网络连线模式是否为一第一网络连线模式; 一第二侦测封包发送程序,其是当接收模组未接收一第一网络连线模式回应封包,由发送模组发送一第二网络连线模式侦测封包至伺服器端;以及一第二判断程序,其是当接收模组接收一第二网络连线模式回应封包时,判断网络连线模式是为一第二网络连线模式。 The method comprising: detecting a first packet transmission program, which is transmitted by the transmitting module to detect a first network packet to the server connected mode terminal; a first determination program, which is a receiving module determines whether to receive a a first network connected mode response packet, to determine whether a network connection mode of a first network connected mode; detecting a second packet transmission program, which is when the receiving module does not receive a response to a first mode of network connection packet transmitted by the transmitting module detects a second network packet to the server connected mode terminal; and when a second determination program, which is when the second receiving module receives a response packet network connected mode, the network connection is determined line mode is a second mode of network connection. 本发明可提高使用的便利性。 The present invention can improve the convenience of use. 本发明具有上述诸多优点及实用价值,其不论在方法或功能上皆有较大的改进,在技术上有显著的进步,并产生了好用及实用的效果,且较现有的设定网络连线模式具有增进的突出功效,从而更加适于实用,并具有产业的广泛利用价值,诚为一新颖、进步、实用的新设计。 The present invention has the above advantages and practical value, regardless of which method or function on Jie greater improvement technically significant progress, and generates a useful and practical results, and than the existing network settings connection mode has highlighted the effectiveness of the promotion, which is more suitable for practical use, and has a wide range of value industries, the best for a new, progressive, practical new design. 上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其他目的、特征和优点能够更明显易懂,以下特举较佳实施例,并配合附图,详细说明如下。 The above description is only an overview of the technical solution of the present invention, in order to more fully understood from the present invention, but may be implemented in accordance with the contents of the specification, and in order to make the aforementioned and other objects, features and advantages become more readily apparent the following Patent cited preferred embodiments accompanied with figures are described in detail below. 附图说明图1A是显示依本发明较佳实施例的自动侦测网络连线模式的系统的一示意图;图1B是显示依本发明较佳实施例的自动侦测网络连线模式的系统的另一示意图;以及图2是显示依本发明较佳实施例的自动侦测网络连线模式的方法的一流程图。 BRIEF DESCRIPTION OF DRAWINGS FIG 1A is a schematic of a system to automatically detect network connection mode under this invention, the preferred embodiment of the display; FIG. 1B is automatically detect network connection mode is displayed under this invention, the preferred embodiment another schematic; and FIG. 2 is a flowchart of a method for automatically detecting the network connection mode according to the invention under this preferred embodiment. 1:自动侦测网络连线模式的系统2:伺服器端3:用户端31:发送模组311:第一网络连线模式侦测封包312:第二网络连线模式侦测封包32:接收模组321:第一网络连线模式回应封包322:第二网络连线模式回应封包33:判断模組331:计数单元332:计时单元Sl:第一侦测封包发送程序Sll-S12:第一侦测封包发送程序的步骤S2:第一判断程序S21-S23:第一判断程序的步骤S3:第二侦测封包发送程序S31-S32:第二侦测封包发送程序的步骤S4:第二判断程序S41-S44:第二判断程序的步骤具体实施方式为更进一步阐述本发明为达成预定发明目的所采取的技术手段及功效,以下结合附图及较佳实施例,对依据本发明提出的自动侦测网络连线模式的方法与系统其具体实施方式、结构、特征及其功效,详细说明如后。 1: network system automatically detects the connected mode 2: server-side 3: UE 31: the transmission module 311: a first mode detection packet network connection 312: second detection packet network 32 connected mode: receiving module 321: a first network connected mode response packet 322: a second network connected mode response packet 33: Analyzing module 331: counting unit 332: timing unit Sl is: first detecting packet transmission program Sll-S12: first the step of detecting packet transmission program S2: a first determination program S21-S23: a first determination step procedure S3: second detecting packet transmission procedure S31-S32: the second step of detecting packet transmission procedure S4: second determination S41-S44: step second determination program as further specific embodiments set forth technical means and effects the present invention is predetermined to achieve the object of the invention taken in conjunction with the accompanying drawings and the following preferred embodiments according to the present invention, the automatic proposed method and system to detect the specific network connection mode of embodiment, the structure, characteristics and efficacy, as described in detail later. 如图1A与图1B所示,是为本发明较佳实施例的自动侦测网络连线模式的系统1。 Shown in FIGS. 1A and 1B, the system automatically detects the network connection mode preferred embodiment of the present invention. 自动侦测网络连线模式的系统1是包含一伺服器端2与一用户端3,其中用户端3是包含一发送模组31、 一接收模组32以及一判断模组33。 Automatic network connection mode detection system comprising a server and a client terminal 2 3, wherein the UE comprises a transmitter module 3 is 31, a receiving module 32 and a determining module 33. 发送模组31是发送一第一网络连线模式侦测封包311 (如图1A所示) 或一第二网络连线模式侦测封包312 (如图1B所示)至伺服器端2。 Transmitting a transmission module 31 is a first detection mode packet network connection 311 (FIG. 1A) or a second mode detection packet network connection 312 (FIG. 1B) to the server 2 side. 接收模组32是接收伺服器端2所回传的一第一网络连线模式回应封包321或一第二网络连线模式回应封包322。 Receiving module 32 is received by the server terminal 2 return a response packet a first network 321 connected mode or a second mode of network connection response packet 322. 判断模组33是依据接收模组32接收伺服器端2所回传第一网络连线模式回应封包321或第二网络连线模式回应封包322,以决定网络连线模式是为一第一网络连线模式、 一第二网络连线模式或一固定位址连线模式,其中第一网络连线模式及第二网络连线模式是分别为一点对点通讯协定(PPPoE )连线模式或一动态位址(DHCP)连线模式。 Analyzing module 33 is based on the server side receiving module 32 receives a first backhaul network 2 connected mode response packet 321 or the second network connection mode response packet 322, to determine the network connection mode for a first network connected mode, a second mode or a fixed network connection address connection mode, wherein the first network connection mode and a second mode of network connection is a point to point protocol, respectively (PPPoE) mode or a dynamic connection address (DHCP) connection mode. 本实施例中,判断模组33更包含一计数单元331及一计时单元332。 In this embodiment, the determining module 33 further comprises a counting unit 331 and a timing unit 332. 计数单元331是记录由发送模组31发送的第一网络连线模式侦测封包311 的次数或第二网络连线模式侦测封包312的次数。 Recording a first counting unit 331 is a network connected mode transmitted by the transmitting module 31 to detect the number of packets or a second network connected mode 311 312 packet number detection. 另外,计时单元332是计算发送模组31在发送第一网络连线模式侦测封包311后至接收模组32 接收到第一网络连线模式回应封包321的一第一等待时间,或计算发送模组31在发送第二网络连线模式侦测封包312后至接收模组32接收到第二网络连线模式回应封包322的一第二等待时间。 Further, the timing calculation unit 332 is sent to the module receiving module 32 receives a first mode in response to a first network connection packet 321 after the waiting time in the transmission 31 to detect a first packet network connected mode 311, or calculates the transmission after the module 31 to receiving module 312 detects the packet network connection in the second transmission mode to a second network connection 32 receives a second response waiting time mode packet 322. 在上述自动侦测网络连线模式的系统1中,第一网络连线模式侦测封包311是可为一点对点通讯协定主动发现起始讯框(PPPoE active discovery initiation frame),而第二网络连线冲莫式侦测封包312是可为一动态位址发现讯框(DHCP discovery frame);当然,第一网络连线模式侦测封包311亦可为动态位址发现讯框,而第二网络连线模式侦测封包312 是可为点对点通讯协定主动发现起始讯框。 In the system described above automatically detects a network connection modes, a first mode detection packet network connection 311 is a Active Discovery start frame information (PPPoE active discovery initiation frame) is a point to point protocol, and the second network connection Morse red wire 312 is found in detecting the packet frame information (DHCP discovery frame) is a dynamic address; of course, a first packet network connection mode detection block 311 may also be found in a dynamic address information, and the second network connection mode detection packet 312 is to proactively identify the starting point to point protocol information box. 另外,如图2所示,是为本发明较佳实施例的自动侦测网络连线模式的方法,其是决定一用户端与一伺服器端的一网络连线模式。 Further, FIG. 2, the automatic detection method of the preferred network connection mode of embodiment of the invention, which is a UE determines a network connection with a server-side model. 用户端具有一发送模组、 一接收模组及一判断模组。 UE having a transmission module, a receiving module and a determining module. 自动侦测网络连线模式的方法是包含一第一侦测封包发送程序S1、 一第一判断程序S2、 一第二侦测封包发送程序S3以及一第二判断程序S4。 The method of automatically detecting the network connection modes comprising a first detection packet sender S1, a first determination program S2, a second detecting packet transmission program and a second determination program S3 S4. 在以下说明中,亦请同时参照图IA与图1B。 In the following description, please also refer to FIGS. IA and FIG. 1B. 第一侦测封包发送程序Sl是包括步骤Sll与步骤S12。 First detecting packet transmission program comprising the step Sl Sll to step S12. 在步骤S11中, 是由用户端3的发送模组31发送一第一网络连线模式侦测封包311至伺服器端2,其中第一网络连线模式侦测封包311是为一点对点通讯协定主动发现起始讯框。 In step S11, the client 3 by the transmission module 31 transmits a packet to detect a first network connected mode terminal 311 to the server 2, wherein the first mode detection packet network connection 311 is a point to point protocol proactively identify initial hearing box. 接着,在步骤S12中,是由计数单元331将发送模组31所发送的第一网络连线模式侦测封包311的次数值加1,并记录第一网络连线模式侦测封包311的发送次数。 Next, in step S12, the counting unit 331 by the module (31) transmits a first transmitted packet network connection modes 311 detects the number added to the value 1, and a first recording mode to detect transmitted packet network connection 311 frequency. 第一判断程序S2是包括步骤S21、 S22与S23。 S2 is the first judgment program comprising the steps S21, S22 and S23. 在步骤S21中,判断模组33是在一第一等待时间内判断接收模组32是否有接收到一第一网络连线模式回应封包321,以决定网络连线模式是否为一第一网络连线模式。 In step S21, the determining module 33 determines a first waiting time in the receiving module 32 whether there is received a first network to a connected mode response packet 321, to determine whether a network connection to a first network connection mode line mode. 本实施例中,当接收模组在第一等待时间内接收到第一网络连线模式回应封包321,则如步骤S23所示,决定该网络连线模式是为第一网络连线模式。 In this embodiment, when the receiving module receives the waiting time in the first mode to the first network connection response packet 321, then as shown in step S23, the network connection mode is determined as a first network connected mode. 而当接收模组32在第一等待时间超过一第一预设时间(例如5秒)未接收到第一网络连线模式回应封包321,则如步骤S22所示,进一步判断第一网络连线模式侦测封包311的发送次数是否达到一第一预设值(例如3次)。 When the receiving module 32 first waiting time exceeds a first predetermined time (e.g. 5 seconds) has not received the response packet a first network connected mode 321, then as shown in step S22, further determines a first network connection detecting the number of packet mode transmission 311 reaches a first predetermined value (e.g., three times). 当然,第一预设时间及第一预设值是可依据实际设计而作调整,在此并不加以限制。 Of course, the first preset time and the first preset value is adjusted based on the actual design, which should not be limited. 当判断模组33判断第一网络连线模式侦测封包311的发送次数未达到第一预设值时,流程是回到第一侦测封包发送程序Sl的步骤Sll。 When determining module 33 determines a first detection mode packet transmission network connection 311 times does not reach a first predetermined value, the flow returns to step Sll is the first detection of the packet sender Sl. 当判断模组33是判断第一网络连线模式侦测封包311的发送次数达到第一预设值时,则执行第二侦测封包发送程序S3。 When a first determining module 33 is to determine the number of network connection mode detects transmission packet 311 reaches a first predetermined value, second detecting packet transmission program S3 is executed. 需注意,当系统l并无计时机制存在时,则接收模组32在第一等待时间超过第一预设时间,而未接收到第一网络连线模式回应封包321时,即执行第二侦测封包发送程序S3。 It should be noted, when there is no system timing mechanism l, the receiving module 32 is in the first waiting time exceeds the first predetermined time, without receiving a first mode of network connection response packet 321, i.e. performing the second investigation measured packet transmission program S3. 第二侦测封包发送程序S3是包括步骤S31与步骤S32。 Second detecting packet transmission program comprising the steps S3 and S31 to step S32. 在步骤S31中,是由用户端3的发送模组31发送一第二网络连线模式侦测封包312至伺服器端2,其中第二网络连线模式侦测封包312为一动态位址发现讯41接着,在步骤S32中,是由计数单元331将发送模组31所发送的笫二网络连线模式侦测封包312的次数值加1,并记录第二网络连线模式侦测封包312的发送次数。 In step S31, the client 3 by the second transmission module 31 transmits a packet network connection mode detection terminal 312 to the server 2, wherein the second mode detection packet network connection 312 is a dynamic address discovery News 41 Next, in step S32, the counting unit 331 by the module (31) transmits the transmitted Zi second network connected mode 312 detects the number of packets added to the value 1, and a second recording mode detection packet network connection 312 the number of transmissions. 第二判断程序S4是包括步骤S41、 S42、 S43与S44。 S4 is a second judgment program comprising the steps S41, S42, S43 and S44. 在步骤S41中,判断模组33是在一第二等待时间内判断接收;f莫组32是否有接收到一第二网络连线模式回应封包322,以决定网络连线模式是否为一第二网络连线模式。 In step S41, the determining module 33 is received is determined in a second waiting time; group F Mo 32 whether there is received a second network connection mode of the response packet 322, to determine whether a network connection mode of the second network connection mode. 本实施例中,当接收模组32在第二等待时间内接收到第二网络连线模式回应封包322,则如步骤S43所示,决定网络连线模式是为第二网络连线模式。 In this embodiment, when the receiving module 32 receives the waiting time in the second mode to the second network connection response packet 322, then as shown in step S43, the decision is for a second network connection mode of the network connection mode. 而当接收模组32在第二等待时间超过一第二预设时间(例如5秒) 未接收到第二网络连线模式回应封包322,则如步骤S42所示,进一步判断第二网络连线模式侦测封包312的发送次数是否达到一第二预设值(例如3 次)。 When the receiving module 32 and the second waiting time exceeds a second predetermined time (e.g. 5 seconds) is not received a second network connected mode response packet 322, as shown in the step S42, the second network connection is further determined detecting the number of packet transmission mode 312 reaches a second predetermined value (e.g., three times). 当然,第二预设时间及第二预设值是可依据实际设计而作调整,在此并不加以限制。 Of course, the second predetermined time and the second predetermined value is adjusted based on the actual design, which should not be limited. 当判断模组33判断第二网络连线模式侦测封包312的发送次数未达到第二预设值时,流程是回到第二侦测封包发送程序S3的步骤S31。 When determining module 33 determines the second detection mode packet transmission network connection 312 number does not reach the second predetermined value, the flow returns to step S31 is detected a second packet transmission program S3. 当判断模组33判断第二网络连线模式侦测封包312的发送次数达到第二预设值时,则如步骤S44,决定网络连线模式是为固定位址网络连线模式。 When determining module 33 determines that the second network connection detection mode packet transmission times reaches the second predetermined value 312, then, as step S44, the network connection mode is determined as a fixed network connected mode address. 在上述自动侦测网络连线模式的方法中,第一网络连线模式侦测封包亦可为动态位址发现讯框,而第二网络连线模式侦测封包亦可为点对点通讯协定主动发现起始讯框,而第一判断程序S2则是判断网络连线模式是否为动态位址连线模式,第二判断程序S4则是判断网络连线模式是为点对点通讯协定连线模式或是为固定位址连线模式。 In the network connection mode automatic detection method, a first packet network connection mode detection frame information also found a dynamic address, the second network may also be connected mode packet detection point Active Discovery Protocol frame start information, a first determination program and S2 is determined whether the network connection mode dynamic address connection mode, a second determination program determines S4 are connected mode is an ad hoc network protocol for the connected mode, or fixed address connected mode. 以上所述,仅是本发明的较佳实施例而已,并非对本发明作任何形式上的限制,虽然本发明已以较佳实施例揭露如上,然而并非用以限定本发明,任何熟悉本专业的技术人员,在不脱离本发明技术方案范围内,当可利用上述揭示的技术内容作出些许更动或修饰为等同变化的等效实施例,但凡是未脱离本发明技术方案内容,依据本发明的技术实质对以上实施例所作的任何简单修改、等同变化与修饰,均仍属于本发明技术方案的范围内。 Above, only the preferred embodiment of the present invention, but the present invention does not form any limitation, embodiments of the present invention has been disclosed, although the preferred embodiment described above, however, not intended to limit the present invention, any skilled professional in the art, without departing from the scope of the technical solution of the present invention, when some minor modifications may be made using the techniques disclosed content of modification or equivalent change in equivalent embodiments it is not to limit the technical solution of the present invention departing from the contents, according to the present invention. technical spirit any simple modification of the above embodiment made equivalent modifications and variations, provided they fall within the scope of the present invention.

Claims (15)

1. 一种自动侦测网络连线模式的方法,是决定一用户端与一伺服器端的一网络连线模式,该用户端具有一发送模组、一接收模组及一判断模组,其特征在于该自动侦测网络连线模式的方法包含: 一第一侦测封包发送程序,其是由该发送模组发送一第一网络连线模式侦测封包至该伺服器端; 一第一判断程序,判断该接收模组是否接收一第一网络连线模式回应封包,以决定该网络连线模式是否为一第一网络连线模式; 一第二侦测封包发送程序,当该接收模组未接收到该第一网络连线模式回应封包,由该发送模组发送一第二网络连线模式侦测封包至该伺服器端;以及一第二判断程序,当该接收模组接收一第二网络连线模式回应封包时,判断该网络连线模式是为一第二网络连线模式。 A method for automatically detecting the network connection mode is a mode of determining a network connection with a server side user terminal, the user terminal has a transmitting module, a receiving module and a determining module, which characterized in that the auto-detect mode network connection method comprising: detecting a first packet transmission program, which is transmitted by the transmission module is a first mode of network connection server detection packet to the terminal; a first Analyzing the program, determines whether the receiving module receives a response packet a first network connected mode, the network connection mode to determine whether a first network connected mode; detecting a second packet transmission program, when the receiving mold a first group did not receive the response packet network connected mode, the transmission transmitted by a second network module connected mode detection packet to the server side; and a second determination program, when the receiving module receives a the second response packet network connection mode, determining whether the connected mode network is a second network connected mode.
2、 根据权利要求l所述的自动侦测网络连线模式的方法,其特征在于其中所述的第一侦测封包发送程序更包含:记录该发送模组所发送的该第一网络连线模式侦测封包的次数。 2. The method of claim l automatically detect network connection mode claims wherein said first detection program packet transmission further comprises: recording the first network connection module is transmitted to the transmission the number of packet mode detection.
3、 根据权利要求2所述的自动侦测网络连线模式的方法,其特征在于其中所述的第一判断程序包含:判断该发送模组所发送的该第一网络连线模式侦测封包的次数是否达到一第一预设值;以及当该次数达到该第一预设值时,执行该第二侦测封包发送程序或当该次数未达到该第一预设值时,执行该第一侦测封包发送程序。 3. The method of claim 2 automatically detects a network connection mode of the preceding claims, wherein said first determination program comprising: determining whether the first network connection mode of the transmission transmitted packet detection module the number reaches a first predetermined value; and when the count reaches the first predetermined value, performing the second detection packet transmission program or when the number of times does not reach the first predetermined value, the execution of send a packet detection program.
4、 根据权利要求l所述的自动侦测网络连线模式的方法,其特征在于其中所述的第二侦测封包发送程序更包含:记录该发送模组所发送的该第二网络连线模式侦测封包的次数。 4. The method of claim l automatically detect network connection mode of claim wherein said second detecting packet transmission program further comprises: recording the transmission module of the second network connection transmitted the number of packet mode detection.
5、 根据权利要求4所述的自动侦测网络连线模式的方法,其特征在于其中所述的第二判断程序包含:判断该发送模组所发送的该第二网络连线模式侦测封包的次数是否达到一第二预设值;以及当该次数达到该第二预设值时,决定该网络连线模式是为一固定位址连线模式或当该次数未达到该第二预设值时,执行该第二侦测封包发送程序。 5. The method of claim automatically detect network connection mode according to claim 4, characterized in that wherein said second determination program comprising: determining whether the second network connection mode of the transmission transmitted packet detection module the second number of times reaches a predetermined value; and when the count reaches the second predetermined value, determining the network connection mode is connected mode or a fixed address when the number of times does not reach the second predetermined value, performing the second detection packet transmission program.
6、 根据权利要求l所述的自动侦测网络连线模式的方法,其特征在于其中所述的第一判断程序包含:计算该发送模组在发送该第一网络连线模式侦测封包后至该接收模组接收该第一网络连线-漠式回应封包的一第一等待时间;以及当该第一等待时间超过一第一预设时间时,执行该第二侦测封包发送程序。 After calculating the transmit module detects the transmission of the first packet network connection modes: 6. The method of automatically detecting mode of the network connection according to claim l, characterized in that wherein said first determination program comprising the receiving module to receive the first network connection - desert type response packet a first waiting time; and when the first waiting time exceeds a first predetermined time, performing the second detection packet transmission program.
7、 根据权利要求l所述的自动侦测网络连线模式的方法,其特征在于其中所述的第二判断程序包含:计算该发送模组在发送该第二网络连线模式侦测封包后至该接收模组接收该第二网络连线模式回应封包的一第二等待时间;以及当该第二等待时间超过一第二预设时间时,决定该网络连线模式是为一固定位址连线模式或当该第二等待时间未超过该第二预设时间时,执行该第二侦测封包发送程序。 After calculating the transmit module detects the transmission of the second packet network connection modes: 7. The method of automatically detecting mode of the network connection according to claim l, characterized in that wherein said second determination program comprising the receiving module to receive the second connection mode in response to a second network latency packet; and when the second waiting time exceeds a second predetermined time, determining the network connection mode for a fixed address connected mode or when the second waiting time does not exceed the second predetermined time, performing the second detection packet transmission program.
8、 根据权利要求l所述的自动侦测网络连线模式的方法,其特征在于其中所述的第一网络连线模式侦测封包或该第二网络连线模式侦测封包是为一点对点通讯协定主动发现起始讯框或一动态位址发现讯框。 8. The method of automatically detecting mode of the network connection according to claim l, characterized in that said first connection mode detection packet network or the second network connection is a packet mode detection point protocol proactively identify initial hearing box or a dynamic address discovery information box.
9、 根据权利要求1所述的自动侦测网络连线模式的方法,其特征在于其中所述的第一网络连线模式及该第二网络连线模式是分别为一通讯协定连线模式。 9. The method of automatically detecting mode of network connection claim wherein said first mode and the second network connection network connection mode is a communication protocol are connected mode.
10、 根据权利要求9所述的自动侦测网络连线模式的方法,其特征在于其中所述的通讯协定连线模式是为一点对点通讯协定连线模式或一动态位址连线模式。 10. The method of claim 9 automatically detects the network connection mode of the preceding claims, characterized in that the connected mode protocol, wherein said communication protocol is a point to point connection mode, connected mode or a dynamic address.
11、 一种自动侦测网络连线模式的系统,是由一用户端与一伺服器端配合应用,该自动侦测网络连线模式的系统包含:一发送模组,是发送一第一网络连线模式侦测封包或一第二网络连线模式侦测封包至该伺服器端;一接收模组,是接收该伺服器端回传的一第一网络连线模式回应封包或一第二网络连线;溪式回应封包;以及一判断模组,是依据该接收模组接收该伺服器端所回传该第一网络连线模式回应封包或该第二网络连线模式回应封包,以决定该网络连线模式是为一第一网络连线模式、 一第二网络连线模式或一固定位址连线模式。 11, an automatic mode of network connection detection system, is composed of a client and a server-side with the application, the system automatically detects the network connection modes comprising: a transmission module, a first network is transmitted detecting connected mode packet or a second mode of network connection server detection packet to the terminal; a receiving module, the server-side receiving a return of the first network connected mode or a second response packet. network connection; formula Creek response packet; and a determining module, the receiving module is based on the server side receiving the backhaul network connection to the first mode or the second network response packet mode connection response packet to determining the network connection mode is a connection mode of a first network, a second network connection mode or connected mode a fixed address.
12、 根据权利要求ll所述的自动侦测网络连线模式的系统,其特征在于其中所述的判断模组更包含:一计数单元,是记录该发送模组发送该第一网络连线模式侦测封包的次数或记录该第二网络连线模式侦测封包的次数;以及一计时单元,是计算该发送模组在发送该第一网络连线模式侦测封包后至该接收模组接收该第一网络连线模式回应封包的一第一等待时间,或计算该发送模组在发送该第二网络连线模式侦测封包后至该接收模组接收该第二网络连线模式回应封包的一第二等待时间。 12. The system of claim ll automatically detect network connection mode of claim wherein said determination module further comprises: a counting unit, recording the transmission module to transmit the first network connection mode detecting the number of packets or the number of times the second recording packet network connection detection mode; and a timing unit, it is to calculate the transmission module after sending the first network packet to the connection detection mode receiving module receiving the first network connection mode in response to a first waiting time of the packet, or calculating the transmission module after sending the second network packet to the connected mode to detect the second receiving module receives the response packet network connection mode the wait for a second time.
13、 根据权利要求ll所述的自动侦测网络连线模式的系统,其特征在于其中所述的第一网络连线模式侦测封包或该第二网络连线模式侦测封包是为一点对点通讯协定主动发现起始讯框或一动态位址发现讯框。 13. A system according to claim ll automatically detect network connection mode as claimed in claim, characterized in that wherein said first packet network connection mode or the second detection mode detection packet network connection is a point- protocol proactively identify initial hearing box or a dynamic address discovery information box.
14、 根据权利要求ll所述的自动侦测网络连线模式的系统,其特征在于其中所述的第一网络连线模式及该第二网络连线模式是分别为一通讯协定连线模式。 14. A system according to claim ll automatically detect network connection mode as claimed in claim, characterized in that wherein said first mode and the second network connection network connection mode is a communication protocol are connected mode.
15、 根据权利要求14所述的自动侦测网络连线模式的系统,其特征在于其中所述的通讯协定连线模式是为一点对点通讯协定连线模式或一动态位址连线模式。 15. The system of claim 14 automatically detects the network connection mode, characterized in that the protocol is a wired mode wherein the communication connection is a point to point protocol mode or a connected mode dynamic address.
CN 200710003469 2007-02-05 2007-02-05 Method and system for automatic network connection mode detection CN101242311A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200710003469 CN101242311A (en) 2007-02-05 2007-02-05 Method and system for automatic network connection mode detection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200710003469 CN101242311A (en) 2007-02-05 2007-02-05 Method and system for automatic network connection mode detection

Publications (1)

Publication Number Publication Date
CN101242311A true CN101242311A (en) 2008-08-13

Family

ID=39933534

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200710003469 CN101242311A (en) 2007-02-05 2007-02-05 Method and system for automatic network connection mode detection

Country Status (1)

Country Link
CN (1) CN101242311A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104065541A (en) * 2014-07-14 2014-09-24 上海斐讯数据通信技术有限公司 Method and system for automatically performing network mode testing

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104065541A (en) * 2014-07-14 2014-09-24 上海斐讯数据通信技术有限公司 Method and system for automatically performing network mode testing

Similar Documents

Publication Publication Date Title
CN101742618B (en) Method and base station for determining discontinuous transmission mode
US7558604B2 (en) Method and apparatus for remote discovery of client and access point settings in a wireless LAN
JP5869130B2 (en) Topology discovery within the hybrid network
CN102148752B (en) Routing implementing method based on content distribution network and related equipment and system
WO2012012109A3 (en) Method and apparatus for reducing application update traffic in cellular networks
CN104871496A (en) Methods and apparatus for transmitting data between different peer-to-peer communication groups
CN103368749A (en) A system and a method for power control in a physical layer device
CN101640629A (en) Method for monitoring link packet loss and bidirectional forwarding detector
CN101360021B (en) Monitoring method and system for wireless broadband user status
WO2011028038A3 (en) Apparatus and method for transmitting a mac pdu based on mac header type information
CN101325559B (en) Method for commending game room, system and game server
CN102752792A (en) Method, device and system for monitoring internet service quality of mobile terminal
RU2010150117A (en) An apparatus and method for dynamically detecting vehicle communication interface
CN102098301B (en) Multilink adapted data transmission method and system
US20170078179A1 (en) Synthetic client
CN104067669A (en) Systems and methods of relay selection and setup
CN104040953A (en) Quality of user experience testing for video transmissions
CN102523210B (en) Phishing website detection method and device
CN103621151B (en) Techniques for streaming media traffic in the network management entity
CN100553213C (en) WLAN abnormal quick restoring method and device
CN102404780A (en) Measurement method, equipment and system of user feeling
CN103023715B (en) Based method for fault monitoring bus communication link rs485
CN103916367A (en) Method and apparatus for transmission of multimedia data
CN103095517A (en) Method and related equipment and system of obtaining streaming media transmission quality assessment and information
CN102546640A (en) Information circulation method and server in single-account number and multiple-device login

Legal Events

Date Code Title Description
C06 Publication
C10 Request of examination as to substance
C02 Deemed withdrawal of patent application after publication (patent law 2001)