[go: up one dir, main page]

CN1630238A - Plug and play network device and its operation method - Google Patents

Plug and play network device and its operation method Download PDF

Info

Publication number
CN1630238A
CN1630238A CN 200310121270 CN200310121270A CN1630238A CN 1630238 A CN1630238 A CN 1630238A CN 200310121270 CN200310121270 CN 200310121270 CN 200310121270 A CN200310121270 A CN 200310121270A CN 1630238 A CN1630238 A CN 1630238A
Authority
CN
China
Prior art keywords
address
access control
media access
network equipment
control address
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.)
Pending
Application number
CN 200310121270
Other languages
Chinese (zh)
Inventor
李俊诚
林瑞鑫
黄敬博
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kuanhua Network Technology Co ltd
Original Assignee
Kuanhua Network Technology Co ltd
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 Kuanhua Network Technology Co ltd filed Critical Kuanhua Network Technology Co ltd
Priority to CN 200310121270 priority Critical patent/CN1630238A/en
Publication of CN1630238A publication Critical patent/CN1630238A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

A plug-and-play network device and its operation method, the network device has two network ports connected in series in any LAN with a pair of external routers, the network device is a bridge conforming to 802.11d, in which a specific IP address not belonging to the same network segment with the serial LAN is preset, but any user end in LAN can be directly connected with the network device without changing any setting, when the user connects with the network device of the specific IP, the network packet is transferred to the external router, because the network device is connected in series with the necessary path of the network signal connected with the external router, all packets to be transmitted to the specific IP can be intercepted, the MAC address of the user end is obtained and recorded, and the intercepted information packet is automatically responded, before the information packet is sent in response, the recorded MAC address of the user end replaces the MAC address of the receiving end of the information packet, and then the information packet is sent out, so that the network device achieves the effect of plug and play.

Description

即插即用的网络装置及其运作方法Plug and play network device and its operation method

技术领域technical field

本发明涉及一种即插即用的网络装置,特别是涉及一种不需进行网络相关设定即可直接连结网络使用的即插即用的网络装置及其运作方法。The invention relates to a plug-and-play network device, in particular to a plug-and-play network device which can be directly connected to a network without network-related settings and its operating method.

背景技术Background technique

如图1所示,以往要在一局域网络(LAN:Local Area Network)上架设一网络装置4(例如防火墙、频宽管理器、负载平衡设备、路由器等网络网关设备)且透过网络联机时,必须先对该网络装置4进行一些前置设定,例如,更改网络装置4的网络协议(IP:Internet Protocol)地址(例如192.168.168.100)及IP屏蔽(Mask)(例如255.255.255.0),以及预设路由器(router)5的gateway(网关地址)(例如192.168.168.254)和域名服务器(DNS:Domin Name Server)相关设定,使其与局域网络的网段地址(192.168.168.x)相同,网络装置4才算架设完成。As shown in Figure 1, in the past, a network device 4 (such as firewall, bandwidth manager, load balancing device, router and other network gateway devices) was set up on a local area network (LAN: Local Area Network) and connected through the network , must first carry out some presettings to the network device 4, for example, change the network protocol (IP: Internet Protocol) address (such as 192.168.168.100) and IP shielding (Mask) (such as 255.255.255.0) of the network device 4, And the gateway (gateway address) (eg 192.168.168.254) and domain name server (DNS: Domin Name Server) related settings of the default router (router) 5, so that it is consistent with the network segment address of the LAN (192.168.168.x) Similarly, the installation of the network device 4 is considered complete.

但是,上述在网络上架设网络装置的种种繁杂设定,于实际操作上通常需透过一与该网络装置连接的终端平台(console)或动态主机配置协议(DHCP:Dynamic Host configuration Protocol)方式进行,除了对企业内部的管理信息服务(MIS:Management Information Service)人员或网管人员造成负担外,对于对英特网(internet)相关技术并不入门的一般使用者而言,要在网络上自行架设服务器或网站更无异是一项困难的挑战。However, the above-mentioned various complicated settings of setting up network devices on the network usually need to be carried out through a terminal platform (console) connected to the network device or a Dynamic Host Configuration Protocol (DHCP: Dynamic Host configuration Protocol) in actual operation. In addition to burdening the internal management information service (MIS: Management Information Service) personnel or network administrators of the enterprise, for ordinary users who are not familiar with Internet related technologies, they need to set up their own on the network. Server or website is nothing less than a difficult challenge.

发明内容Contents of the invention

本发明的目的在于提供一种不需进行网络相关设定即可直接连结网络使用的即插即用的网络装置及其运作方法。The purpose of the present invention is to provide a plug-and-play network device and its operating method that can be directly connected to the network without network-related settings.

本发明即插即用的网络装置的运作方法,该网络装置是设在一局域网络中通往外部网络的讯号必经的路径上,且该局域网络具有一对外路由器。该方法包括:(A)在该网络装置上预设一不存在于该局域网络中的特定IP地址,使该网络装置在一使用者端发出目的端IP为该特定IP地址的信息要求封包时可截收该封包,并记录该使用者端的媒体访问控制(MAC:Media Access Control)地址;(B)在该网络装置上预存一预设路由器的MAC地址,使该网络装置因应该信息要求封包回传一信息封包时,使用该预设路由器的MAC地址做为该信息封包的目的端MAC地址;及(C)令该网络装置在送出该信息封包前,以该使用者端的MAC地址取代该信息封包的目的端MAC地址后,再将该信息封包送出。借此,使该网络装置达到即插即用的功效。According to the operation method of the plug-and-play network device of the present invention, the network device is set on the path that the signal leading to the external network must pass through in a local area network, and the local area network has a pair of external routers. The method includes: (A) preset a specific IP address that does not exist in the local area network on the network device, so that the network device sends a destination IP address to the specific IP address when a user end sends a message request packet The packet can be intercepted, and the media access control (MAC: Media Access Control) address of the user end can be recorded; (B) the MAC address of a default router is pre-stored on the network device, so that the network device can request a packet in response to the information When returning an information packet, use the MAC address of the default router as the destination MAC address of the information packet; and (C) make the network device replace the MAC address of the user end before sending the information packet; After the destination MAC address of the information packet is determined, the information packet is sent out. In this way, the network device achieves plug-and-play functionality.

此外,本发明的一种计算机可读取的记录媒体,其可被载置于一即插即用的网络装置中,所述的网络装置设在一局域网络中通往外部网络的讯号必经的路径上,所述的局域网络具有一对外路由器,且所述的网络装置中预设有一不存在于该内部网络中的特定网络协议地址并预存有一预设路由器的MAC地址;且所述的记录媒体中记录有一程序代码,所述的程序代码可于所述的网络装置中执行下列步骤:In addition, a computer-readable recording medium of the present invention can be loaded in a plug-and-play network device, and the network device is set in a local area network, and the signal leading to the external network must pass through On the path, the local area network has a pair of external routers, and a specific network protocol address that does not exist in the internal network is preset in the network device and a MAC address of a preset router is pre-stored; and the A program code is recorded in the recording medium, and the program code can execute the following steps in the network device:

(A)当一使用者端发出目的端网络协议为所述的特定网络协议地址的信息要求封包时,截收所述的信息要求封包并记录所述的使用者端的MAC地址;(A) When a user end sends out a destination end network protocol for the information request packet of the specific network protocol address, intercepting the information request packet and recording the MAC address of the user end;

(B)当所述的网络装置根据所述的信息要求封包的要求回传一信息封包时,使用所述的预设路由器的MAC地址做为所述的信息封包的目的端MAC地址;及(B) when the network device returns an information packet according to the request of the information request packet, using the MAC address of the preset router as the destination MAC address of the information packet; and

(C)令所述的网络装置在送出所述的信息封包前,以所述的使用者端的MAC地址取代所述的信息封包的目的端MAC地址后,再将所述的信息封包送出。借此,使所述的网络装置达到即插即用的功效。(C) Before sending the information packet, the network device replaces the destination MAC address of the information packet with the MAC address of the user end, and then sends the information packet. In this way, the network device achieves the effect of plug and play.

再者,本发明用以实现上述一种即插即用的网络装置的运作方法的一种即插即用的网络装置,是架设在一局域网络中讯号必经的路径上,该局域网络具有一对外的路由器;该即插即用的网络装置上设有一不存在于网络中的特定IP地址以及一预设路由器的MAC地址。当一使用者发出目的端为该特定IP地址的信息要求封包时,截收该信息要求封包并记录该使用者端的MAC地址,以及当该网络装置根据该信息要求封包的要求响应一信息封包时,使用该预设路由器的MAC地址做为该信息封包的接收端地址,并于该信息封包送出前,以该使用者端的MAC地址取代该预设路由器的MAC地址后,再将该信息封包送出。借此,使该网络装置达到即插即用的功效。Furthermore, the plug-and-play network device used in the present invention to realize the operation method of the above-mentioned plug-and-play network device is set up on the path that signals must pass through in a local area network, and the local area network has A pair of external routers; the plug-and-play network device is provided with a specific IP address that does not exist in the network and a MAC address of a default router. When a user sends an information request packet whose destination is the specific IP address, intercept the information request packet and record the MAC address of the user end, and when the network device responds to an information packet according to the request of the information request packet , use the MAC address of the default router as the receiving end address of the information packet, and before sending the information packet, replace the MAC address of the default router with the MAC address of the user end, and then send the information packet . In this way, the network device achieves plug-and-play functionality.

附图说明Description of drawings

图1是以往在一局域网络上架设一网络装置时的相关设定说明图;FIG. 1 is an explanatory diagram of related settings when setting up a network device on a local area network in the past;

图2是本发明即插即用的网络装置及其运作方法的一较佳实施例的网络拓朴图;2 is a network topology diagram of a preferred embodiment of the plug-and-play network device and its operation method of the present invention;

图3是本实施例的网络装置的相关地址表;Fig. 3 is the related address table of the network device of this embodiment;

图4是本实施例的使用者端-P的相关地址表;FIG. 4 is a related address table of the user terminal-P in this embodiment;

图5是本实施例中该网络装置、使用者端-P及局域网络之间封包传输运作流程图。FIG. 5 is a flow chart of the packet transmission operation among the network device, the client-P and the local area network in this embodiment.

图号说明Description of figure number

1、4........网络装置              2 ........局域网络1, 4........Network Devices 2...........Local Area Network

3、6........对外路由器            20........必经路径3, 6.....External routers 20.....must pass the path

具体实施方式Detailed ways

下面通过最佳实施例及附图对本发明即插即用的网络装置及其运作方法进行详细说明:The plug-and-play network device of the present invention and its operation method are described in detail below through the preferred embodiment and accompanying drawings:

如图2所示,是本发明即插即用的网络装置及其运作方法的一较佳实施例,其中局域网络2(IP:192.168.1.x)可以是一企业内部、一栋大楼或一有限区域中复数台终端计算机(以使用者端-P、使用者端-Q、使用者端-R、使用者端-F代表)所共同组成的一小型网络,且局域网络2是透过一对外路由器3连上英特网。As shown in Figure 2, it is a preferred embodiment of the plug-and-play network device and its operation method of the present invention, wherein the local area network 2 (IP: 192.168.1.x) can be inside an enterprise, a building or A small network composed of a plurality of terminal computers (represented by client-P, client-Q, client-R, and client-F) in a limited area, and the local area network 2 is through A pair of external routers 3 are connected to the Internet.

在本实施例中,即插即用的网络装置1(以下简称网络装置1)是设置在局域网络2中使用者端与其对外路由器3之间,又网络装置1在本实施例中是应用于一网页(web)服务器,但也可应用于例如文件传送协议(FTP:FileTransfer Protocol)服务器、邮件服务器、或其它设于一网络节点(node)上的网络加值服务。且网络装置1的实体架构类似于一符合802.11.D标准的透明桥接器(bridge),其设有一进一出两个以太网络端口,连接在局域网络2中讯号必经的路径20上,使通过其中的讯号可以自由进出而不致影响在路径20上的讯号的流通。且网络装置1并未经网管人员或使用者设定局域网络2中的一IP地址,亦即对于局域网络2中的所有使用者端(即使用者计算机)而言,并不晓得网络装置1的存在,但是所有的使用者端要连上对外路由器3时皆会经过网络装置1。In this embodiment, the plug-and-play network device 1 (hereinafter referred to as the network device 1) is set between the user terminal and the external router 3 in the local area network 2, and the network device 1 is used in this embodiment A web page (web) server, but can also be applied to, for example, a file transfer protocol (FTP: FileTransfer Protocol) server, a mail server, or other network value-added services provided on a network node (node). And the physical structure of the network device 1 is similar to a transparent bridge (bridge) conforming to the 802.11. Signals passing through it can freely enter and exit without affecting the circulation of signals on the path 20 . And the network device 1 does not set an IP address in the local area network 2 without a network manager or user, that is, for all user terminals (ie user computers) in the local area network 2, they do not know the network device 1 However, all client terminals will pass through the network device 1 when they want to connect to the external router 3 .

基于此前题,通过本发明,网络装置1将在不需进行任何网络相关设定的情况下供局域网络2中的所有使用者端连结登入。因此,本实施例的网络装置1的运作方法如下:Based on the above problem, through the present invention, the network device 1 will allow all clients in the local area network 2 to connect and log in without any network-related settings. Therefore, the operation method of the network device 1 of this embodiment is as follows:

首先,如图3所示并配合图5,在步骤(a)中,网络装置1设有一进一出两个以太网络端口eth0及eth1,其中eth0预设有一MAC地址(例如ff.aa.aa.aa.aa.aa)及一特定IP地址(例如168.1.1.1)及该特定IP对应的预设路由器(或称虚拟路由器,因为实际上并不存在)的IP(例如168.1.1.254),且该特定IP地址是一以向IP申请单位买断而不存在于其它网络中的IP为佳。eth1则预设有一MAC地址(例如ff.bb.bb.bb.bb.bb)。而且如图3所示,网络装置1中设有一闪存(下称Flash)11及一地址解析协议高速缓存(Address ResolutionProtocol Cache)12,(下称ARP cache),在Flash 11中预存有网络装置1的特定IP地址(168.1.1.1),该预设路由器的IP地址(168.1.1.254)以及其MAC地址(aa.aa.aa.aa.aa.aa),当网络装置1一开机(步骤b)时,上述存在Flash 11中的特定IP(168.1.1.1)被取出做为网络装置1的eth0的IP,并将其对应的预设路由器设为168.1.1.254,而另一存在Flash 11中的预设路由器的IP及MAC地址即被自动加载ARP Cache 12中。First, as shown in Figure 3 and in conjunction with Figure 5, in step (a), the network device 1 is provided with two Ethernet ports eth0 and eth1, one in and one out, wherein eth0 is preset with a MAC address (such as ff.aa.aa .aa.aa.aa) and a specific IP address (such as 168.1.1.1) and the IP of the default router (or virtual router, because it does not actually exist) corresponding to the specific IP (such as 168.1.1.254), and The specific IP address is preferably an IP that is bought out from the IP applicant and does not exist in other networks. eth1 is preset with a MAC address (eg ff.bb.bb.bb.bb.bb). And as shown in Figure 3, be provided with a flash memory (hereinafter referred to as Flash) 11 and an Address Resolution Protocol high-speed cache (Address Resolution Protocol Cache) 12, (hereinafter referred to as ARP cache) in the network device 1, prestored with network device 1 in the Flash 11 The specific IP address (168.1.1.1), the IP address (168.1.1.254) and its MAC address (aa.aa.aa.aa.aa.aa) of the default router, when the network device 1 is turned on (step b) At this time, the above-mentioned specific IP (168.1.1.1) stored in Flash 11 is taken out as the IP of eth0 of network device 1, and its corresponding preset router is set to 168.1.1.254, while another preset IP (168.1.1.1) stored in Flash 11 It is assumed that the IP and MAC addresses of the router are automatically loaded in the ARP Cache 12.

因此,如图5的步骤(c)并配合图2及图4所示,当局域网络2中一使用者端-P(假设其IP:192.168.1.1,MAC:aa.bb.cc.dd.ee.ff)欲连结网络装置1的web服务器,而在其计算机的浏览器(browser)上输入该特定IP地址(168.1.1.1)时,使用者端-P计算机将发现该特定IP地址(168.1.1.1)并不属于局域网络2,因此欲将该特定IP地址(168.1.1.1)借封包送到局域网络的对外路由器3。但IP封包在开放系统互联(OSI:Open System Interconnection)的layer 2(数据链路层)底下封装成以太网络封包传送前,必须先以ARP协议取得目的端(即对外路由器3)的MAC地址。Therefore, as shown in step (c) of FIG. 5 and in conjunction with FIG. 2 and FIG. ee.ff) When wanting to connect to the web server of the network device 1, and input the specific IP address (168.1.1.1) on the browser (browser) of its computer, the client-P computer will find the specific IP address (168.1 .1.1) does not belong to the local area network 2, so it is desired to send the specific IP address (168.1.1.1) to the external router 3 of the local area network by means of a packet. However, before the IP packet is encapsulated into an Ethernet packet under the layer 2 (data link layer) of the Open System Interconnection (OSI: Open System Interconnection), the MAC address of the destination (that is, the external router 3) must be obtained through the ARP protocol.

所以,如图5的步骤(d)所示,使用者端-P对外广播一ARP要求封包询问IP为192.168.1.254(即其对外路由器3)的MAC地址。因此,当对外路由器3收到该广播ARP封包时,即如图5的步骤(e),回传一夹带其MAC地址(例如aa.bb.11.22.33.44)的ARP响应封包给使用者端-P。且本网络装置1由于符合标准桥接器(bridge)协议,因此并不影响ARP封包的交换。Therefore, as shown in step (d) of FIG. 5 , the client-P broadcasts an ARP request packet externally to inquire about the MAC address whose IP is 192.168.1.254 (that is, its external router 3 ). Therefore, when the external router 3 receives the broadcast ARP packet, it will return an ARP response packet with its MAC address (such as aa.bb.11.22.33.44) to the user end as shown in step (e) of Figure 5- p. Moreover, since the network device 1 conforms to the standard bridge (bridge) protocol, it does not affect the exchange of ARP packets.

接着,使用者获得对外路由器3的MAC地址后,如图5的步骤(f)所示,使用者端-P准备往对外路由器3送出http request封包,此时所送出的封包目的端IP地址为168.1.1.1,MAC地址为对外路由器3 MAC地址(aa.bb.11.22.33.44)以及端口(port)传输控制协议端口(TCP port:Transfer Control Protocol Port)编号为80。Next, after the user obtains the MAC address of the external router 3, as shown in step (f) of Figure 5, the user-P prepares to send an http request packet to the external router 3, and the destination IP address of the packet sent at this time is 168.1.1.1, MAC address is external router 3 MAC address (aa.bb.11.22.33.44) and port (port) Transmission Control Protocol port (TCP port: Transfer Control Protocol Port) number is 80.

且由于网络装置1是设在局域网络2与对外路由器3之间,所以,如图5的步骤(g)所示,所有经过网络装置1的封包都会被网络装置1看到并检查其目的端IP。因此,当该特定IP地址封包送到网络装置1的eth0网络端口时,当网络装置1的底层(是一驱动程序)发现该封包目的端IP及port号分别为168.1.1.1及80(即eth0本身的IP:168.1.1.1)时,即接收该特定IP地址封包,并将封包目的端的MAC地址(aa.bb.11.22.33.44)换成本身的MAC地址(ff.aa.aa.aa.aa.aa)后(此一做法的目的是为不影响设备本身符合网络通讯规范),再上传给其中所包含的一服务器(图中未示),以进一步处理使用者端-P的要求。And because the network device 1 is located between the local area network 2 and the external router 3, so, as shown in step (g) of Figure 5, all packets passing through the network device 1 will be seen by the network device 1 and check its destination IP. Therefore, when the specific IP address packet is sent to the eth0 network port of the network device 1, when the bottom layer of the network device 1 (which is a driver program) finds that the destination IP and port number of the packet are 168.1.1.1 and 80 (ie eth0 own IP: 168.1.1.1), it receives the specific IP address packet, and replaces the MAC address of the destination end of the packet (aa.bb.11.22.33.44) with its own MAC address (ff.aa.aa.aa.aa .aa) (the purpose of this approach is not to affect the compliance of the device itself with the network communication specification), and then upload to a server included therein (not shown in the figure) to further process the requirements of the user end-P.

同时,如步骤(h)所示,网络装置1的底层将根据此connection(connection的定义是指依据来源端IP、目的端IP、来源端port号及目的端port号所建立的连接)记录该特定IP封包的来源端MAC地址(aa.bb.cc.dd.ee.ff)。At the same time, as shown in step (h), the bottom layer of the network device 1 will record the connection according to the connection (the definition of connection refers to the connection established according to the source IP, destination IP, source port number and destination port number). The source MAC address (aa.bb.cc.dd.ee.ff) of a specific IP packet.

由上述说明可知,本发明在使用者不需对网络装置1进行任何设定的情况下,借由在网络装置1上预设特定IP地址并利用ARP要求机制,让使用者端-P循正常网络传输协议将该特定IP地址封包送出后,网络装置1可借由判别封包目的端IP地址而接收该特定IP地址封包。As can be seen from the above description, the present invention allows the user terminal-P to operate normally by presetting a specific IP address on the network device 1 and using the ARP request mechanism without the user needing to make any settings on the network device 1. After the network transmission protocol sends the packet with the specific IP address, the network device 1 can receive the packet with the specific IP address by determining the destination IP address of the packet.

接续上述步骤(h),如步骤(i),当网络装置1的web服务器针对使用者端-P的要求(http request)欲响应一信息封包(例如一网页)给使用者端-P时,如步骤(j)所示,网络装置1将查知该信息封包的目的端(即使用者端-P计算机)IP(192.168.1.1)与网络装置1本身的IP(eth0)并不属于同一网域,故需将该信息封包送至其预设路由器,然在此之前,如前所述,必须先得到其预设路由器的MAC地址。所以网络装置1将广播ARP要求封包,但在此之前,依据网络协议规范,网络装置1会先检视其ARP Cache 12中是否预存有该预设路由器的MAC地址,若有,则直接取用。Continuing with the above step (h), as in step (i), when the web server of the network device 1 intends to respond to an information packet (such as a web page) to the client-P for the request (http request) of the client-P, As shown in step (j), the network device 1 will find out that the IP (192.168.1.1) of the destination end of the information packet (that is, the user-P computer) and the IP (eth0) of the network device 1 itself do not belong to the same network. domain, so the information packet needs to be sent to its default router, but before that, as mentioned above, the MAC address of its default router must be obtained first. Therefore, the network device 1 will broadcast the ARP request packet, but before that, according to the network protocol specification, the network device 1 will first check whether the MAC address of the default router is pre-stored in its ARP Cache 12, and if so, directly use it.

因此,在前述步骤(a)中,早以软件程序或其它方式将预设路由器的IP地址(168.1.1.254)及MAC地址(aa.aa.aa.aa.aa.aa)存在ARP Cache 12中。所以,如图5的步骤(k)所示,网络装置1将从ARP Cache 12中取得预设路由器的MAC地址做为该信息封包的目的端MAC地址,再将该信息封包送至其底层(即其网络驱动程序)。Therefore, in the aforementioned step (a), the IP address (168.1.1.254) and the MAC address (aa.aa.aa.aa.aa.aa) of the default router are stored in the ARP Cache 12 by software programs or other methods . Therefore, as shown in step (k) of Figure 5, the network device 1 will obtain the MAC address of the preset router from the ARP Cache 12 as the destination MAC address of the information packet, and then send the information packet to its bottom layer ( i.e. its network driver).

承上述,网络装置1的底层会对所有进出网络装置1的封包进行检查后再送出,因此,为使网络装置1能在依循网络传输协议的情况下将该信息封包顺利送达使用者端-P,如图5的步骤(1),在该信息封包被送至底层时,当底层检查到该信息封包的来源端IP及port号分别为168.1.1.1及80(即本身的IP及port编号)时,即查询先前依该connetcion值所记录的使用者端MAC地址(aa.bb.cc.dd.ee.ff)取代该信息封包的目的端MAC地址(aa.aa.aa.aa.aa.aa)后,再将该信息封包送出(步骤m)。Based on the above, the bottom layer of the network device 1 will check all the packets entering and leaving the network device 1 before sending them out. Therefore, in order to enable the network device 1 to smoothly deliver the information packets to the user end under the condition of following the network transmission protocol- P, as shown in step (1) of Figure 5, when the information packet is sent to the bottom layer, when the bottom layer checks that the source end IP and port number of the information packet are 168.1.1.1 and 80 (i.e. its own IP and port number ), that is, query the user-side MAC address (aa.bb.cc.dd.ee.ff) previously recorded according to the connetcion value to replace the destination MAC address of the information packet (aa.aa.aa.aa.aa .aa), and then send the information packet (step m).

如此,该信息封包最终将依据使用者端-P的MAC地址被传送至使用者端-P(虽然表面上看起来以为网络装置1是将信息封包送至其虚拟的预设路由器),借此,让网络装置1在不须进行网络架设相关设定的情况下,响应局域网络2中的使用者端-P的要求,使网络装置1看起来好象是一架设在局域网络2中并可直接与使用者端-P双向沟通的网络服务器,而达到即插即用的目的与功效。In this way, the information packet will finally be transmitted to the user end-P according to the MAC address of the user end-P (although it seems that the network device 1 sends the information packet to its virtual default router), thereby , so that the network device 1 can respond to the request of the user terminal-P in the local area network 2 without setting up the relevant settings of the network, so that the network device 1 looks as if it is set up in the local area network 2 and can The network server directly communicates with the client-P two-way, so as to achieve the purpose and effect of plug and play.

由上述说明可知,本发明在不改变原有网络传输协议的情况下(即遵循网络环境中封包传送的所有相关协议),借由上述网络装置1的运作,使架设在局域网络2中的网络装置1不须经过任何设定,即可供局域网络2中所有使用者端连结并进行双向沟通,对于一般不熟悉网络架设技术的使用者而言,无异提供了高度的便利性,而对企业内部的网管人员而言,也因免除为各网络节点装置逐一设置IP而明显降低其工作负担。As can be seen from the above description, the present invention, without changing the original network transmission protocol (that is, following all relevant protocols of packet transmission in the network environment), uses the operation of the above-mentioned network device 1 to make the network set up in the local area network 2 The device 1 can be used by all users in the local area network 2 to connect and perform two-way communication without any settings. For users who are generally not familiar with network construction technology, it provides a high degree of convenience. For the network administrators within the enterprise, it is also possible to significantly reduce their workload because they are exempted from setting IP addresses for each network node device one by one.

在详细说明本发明的较佳实施例之后,熟悉本项技术的人员可清楚的了解,以上内容仅仅用于说明本发明,但不因此限定本发明的范围。After describing the preferred embodiments of the present invention in detail, those skilled in the art can clearly understand that the above content is only used to illustrate the present invention, but not to limit the scope of the present invention.

Claims (9)

1. the How It Works of the network equipment of a plug and play, described network equipment be located at lead to external network in the LAN signal must through the path on, and described LAN has a pair of outer router; It is characterized in that:
Described method comprises:
(A) a default specific network protocols address that is not present in the described LAN on described network equipment, make described network equipment when user end sends the destination procotol and is the information requirements package of described specific network protocols address, but the described package of intercept and write down the media access control address of described user's end;
(B) on described network equipment, the prestore media access control address of a default router, when making described network equipment return a message packet, use the destination media access control address of the media access control address of described default router as described message packet in response to this information requirements package; And
(C) make described network equipment before sending described message packet, replace the destination media access control address of described message packet with the media access control address of described user end after, more described message packet is sent.
2. the How It Works of the network equipment of a kind of plug and play according to claim 1, it is characterized in that: when the specific network protocols address of step (A) makes the user in the described LAN hold desire to link described network equipment, need to carry out the ARP information exchange with described external router earlier and after obtaining the media access control address of described external router, with the destination media access control address of described media access control address as described information requirements package.
3. according to the How It Works of the network equipment of the described a kind of plug and play of claim 1, it is characterized in that: described network equipment more comprises a flash memory and an address analytic protocol cache, and the media access control address of the described default router in the step (B) and one internet protocol address are to leave in the described flash memory, when described network equipment activates, promptly from described flash memory, take out the media access control address and the internet protocol address of described default router automatically and deposit in the described address analytic protocol cache.
4. the recording medium of an embodied on computer readable, it can be by mounting in the network equipment of a plug and play, described network equipment be located in the LAN lead to external network signal must through the path on, described LAN has a pair of outer router, and is preset with one in the described network equipment and is not present in the specific network protocols address in this internal network and prestores the media access control address of a default router; And record a program code in the described recording medium, described program code can be carried out the following step in described network equipment:
(A) when user end sent the destination procotol and is the information requirements package of described specific network protocols address, the described information requirements package of intercept also write down the media access control address of described user's end;
(B) when described network equipment returns a message packet according to the requirement of described information requirements package, use the destination media access control address of the media access control address of described default router as described message packet; And
(C) make described network equipment before sending described message packet, replace the destination media access control address of described message packet with the media access control address of described user end after, more described message packet is sent.
5. the recording medium of a kind of embodied on computer readable according to claim 4, it is characterized in that: in step (A), when described specific network protocols address will make the user in the described LAN hold desire to link described network equipment, need to carry out the ARP information exchange with described external router earlier and after obtaining the media access control address of described external router, with the destination media access control address of described media access control address as described information requirements package.
6. the recording medium of a kind of embodied on computer readable according to claim 4, it is characterized in that: described network equipment more comprises a flash memory and an address analytic protocol cache, and the media access control address of the described default router in the step (C) and one internet protocol address are to leave in the described flash memory, when described network equipment activates, promptly from described flash memory, take out the media access control address and the internet protocol address of described default router automatically and deposit in the described address analytic protocol cache.
7. the network equipment of a plug and play, be erected at lead to external network in the LAN signal must through the path on, and described LAN has a pair of outer router; It is characterized in that:
Described network equipment comprises:
One is not present in the specific network protocols address in the described LAN, make when user end sends the destination procotol and is the information requirements package of described specific network protocols address, but the described information requirements package of described network equipment intercept and write down the media access control address of described user's end; And
The media access control address of one default router, when described network equipment responds a message packet according to the requirement of described information requirements package, use the destination media access control address of the media access control address of described default router as described message packet, and before described message packet is sent, after replacing the media access control address of described default router with the media access control address of described user end, more described message packet is sent.
8. the network equipment of a kind of plug and play according to claim 7, described specific network protocols address it is characterized in that: when will make the user in the described LAN hold desire to link described network equipment, need to carry out the ARP information exchange with described external router earlier and after obtaining the media access control address of described external router, with the destination media access control address of described media access control address as described information requirements package.
9. the network equipment of a kind of plug and play according to claim 7, it is characterized in that: described network equipment more comprises a flash memory and an address analytic protocol cache, and the media access control address of the default router of described network equipment and one internet protocol address leave in respectively in the described flash memory, when described network equipment activates, promptly from described flash memory, take out the media access control address and the internet protocol address of described default router automatically and deposit in the described address analytic protocol cache.
CN 200310121270 2003-12-17 2003-12-17 Plug and play network device and its operation method Pending CN1630238A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200310121270 CN1630238A (en) 2003-12-17 2003-12-17 Plug and play network device and its operation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200310121270 CN1630238A (en) 2003-12-17 2003-12-17 Plug and play network device and its operation method

Publications (1)

Publication Number Publication Date
CN1630238A true CN1630238A (en) 2005-06-22

Family

ID=34844138

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200310121270 Pending CN1630238A (en) 2003-12-17 2003-12-17 Plug and play network device and its operation method

Country Status (1)

Country Link
CN (1) CN1630238A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100505672C (en) * 2006-07-03 2009-06-24 三捷科技股份有限公司 Method for plug-and-play and connection backup of network device with IP address

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100505672C (en) * 2006-07-03 2009-06-24 三捷科技股份有限公司 Method for plug-and-play and connection backup of network device with IP address

Similar Documents

Publication Publication Date Title
US6857009B1 (en) System and method for network access without reconfiguration
EP1234246B1 (en) System and method for network access without reconfiguration
US20020112076A1 (en) Internet protocol-based computer network service
CN1232080C (en) Method of providing internal service apparatus in network for saving IP address
US8458303B2 (en) Utilizing a gateway for the assignment of internet protocol addresses to client devices in a shared subset
JP2002502152A (en) Proxy server for TCP / IP network address mobile terminal
CN101848235A (en) Real-time multimedia data P2P transmission scheme for supporting NAT traversal
CN1411210A (en) Method of acting address analytic protocol Ethernet Switch in application
CN108900351A (en) The recognition methods of Intranet device type and device
CN115150312B (en) Routing method and device
CN113225270B (en) Network system supporting IPv4 and IPv6 dual-stack mixing
CN117460085A (en) Individual PFCP session model for residential gateway network access
CN102780584B (en) Method and device for quickly accessing network management system of Ethernet equipment
US20040205251A1 (en) System and method for implementing a generic enhanced network driver
US8509235B2 (en) Layer-2 packet return in proxy-router communication protocol environments
CN1578243A (en) Method and arrangement for configuration of a device in a data network
US20060268863A1 (en) Transparent address translation methods
CN100481771C (en) System for intercepting network access and method thereof
MacDonald et al. Microsoft windows 2000 tcp/ip implementation details
CN1630238A (en) Plug and play network device and its operation method
CN1292565C (en) Method for responding requests from address analysis protocol of network address conversion virtual address
Cisco Configuring AppleTalk
Cisco Configuring AppleTalk
KR101996588B1 (en) Network bridge apparatus and control method thereof to support arp protocols
KR20040011936A (en) Switching apparatus for ethernet having a plurality of vlans and communication method by using same

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication