HK1196729B - Data transmitting apparatus, data receiving apparatus, and method - Google Patents
Data transmitting apparatus, data receiving apparatus, and method Download PDFInfo
- Publication number
- HK1196729B HK1196729B HK14110180.3A HK14110180A HK1196729B HK 1196729 B HK1196729 B HK 1196729B HK 14110180 A HK14110180 A HK 14110180A HK 1196729 B HK1196729 B HK 1196729B
- Authority
- HK
- Hong Kong
- Prior art keywords
- electronic device
- confirmation information
- packets
- tcp
- predetermined number
- Prior art date
Links
Description
本申请是申请号为201110243178.5、申请日为2003年10月27日、发明名称为“数据发送装置、数据接收装置以及方法”的发明专利申请的分案申请。This application is a divisional application of the invention patent application with application number 201110243178.5, application date October 27, 2003, and invention name “Data sending device, data receiving device and method”.
本申请的原始母案是申请号为200380100279.0、申请日为2003年10月27日、发明名称为“通信设备和方法、存储媒体以及程序”的发明专利申请。The original parent case of this application is the invention patent application with application number 200380100279.0, application date October 27, 2003, and invention name “Communication equipment and method, storage medium and program”.
技术领域Technical Field
本发明涉及通信设备和方法、存储媒体以及程序,并且具体地,涉及一种适合于确定数据通信是穿过例如国际互联网的WAN发生还是在房屋内的LAN发生的通信设备和方法,存储媒体,以及程序。The present invention relates to a communication device and method, a storage medium, and a program, and in particular, to a communication device and method, a storage medium, and a program suitable for determining whether data communication occurs across a WAN such as the Internet or a LAN within a house.
背景技术Background Art
近年来,随着例如国际互联网的公用广域网(以下称为“WAN”)和安装于房屋中的局域网(以下称为“LAN”)的广泛应用,以及随着这些网络通信速率的提高,通过在这些WAN和LAN上使用个人计算机和各种电子AV设备,传送多种数据。In recent years, with the widespread use of public wide area networks (hereinafter referred to as "WANs") such as the Internet and local area networks (hereinafter referred to as "LANs") installed in houses, and with the improvement of communication speeds of these networks, various data are transmitted by using personal computers and various electronic AV equipment on these WANs and LANs.
这些网络的广泛应用使得个人可以方便地出售或共享例如视频数据、音频数据及程序数据的内容数据。然而,由于这种方便,受著作权保护的内容数据有时被非法地散布。为了防止这种情况,提出了各种类型的应对方法。The widespread use of these networks has made it easy for individuals to sell or share content data, such as video data, audio data, and program data. However, due to this convenience, copyrighted content data is sometimes illegally distributed. To prevent this, various countermeasures have been proposed.
例如,一些音乐下载服务将存储所下载音频数据的存储媒体限制为具有防止被复制的预定保护的存储媒体。For example, some music download services restrict storage media storing downloaded audio data to storage media having predetermined protection against being copied.
此外例如,在通过例如基于IEEE1394标准的网络的小型网络的内容数据通信中,加密的内容数据在经过鉴证后传送,以防止内容数据传送至未经授权的设备。Furthermore, for example, in content data communication via a small network such as a network based on the IEEE 1394 standard, encrypted content data is transmitted after being authenticated to prevent the content data from being transmitted to unauthorized devices.
不幸的是,还没有为WAN通信中常用的IP协议建立防止内容数据非法散布的通信方案。一种可能的解决办法是,当通过IP协议散布内容数据时,将通信区域限制于LAN中。为了将内容数据的通信限制在LAN之内,必须确定内容数据通信的另一方是位于LAN中还是WAN中。然而,还没有建立用于这种确定的方法。Unfortunately, there is no established communication solution for the IP protocol commonly used in WAN communications to prevent the illegal distribution of content data. One possible solution is to restrict the communication area to the LAN when distributing content data via the IP protocol. In order to restrict the communication of content data to the LAN, it is necessary to determine whether the other party in the content data communication is located in the LAN or the WAN. However, there is no established method for this determination.
发明内容Summary of the Invention
因此,本发明的一个目标是提供一种方案,用于确定内容数据通信的另一方是位于LAN中还是穿过WAN。Therefore, an object of the present invention is to provide a scheme for determining whether the other party of content data communication is located in a LAN or across a WAN.
根据本发明的第一种通信设备包括:用于将表示检验包顺序的信息记录在检验包中之后,发送预定数目的检验包的发送装置;用于接收发送的检验包的接收装置;用于检验由接收装置接收的预定数目的检验包的顺序的检验装置;以及确定装置,它用于基于检验装置的检验结果,确定另一个通信设备是位于与自身相同的第一个网络中,还是穿过与第一个网络不同的第二个网络。According to the first communication device of the present invention, it includes: a sending device for sending a predetermined number of inspection packets after recording information indicating the order of the inspection packets in the inspection packets; a receiving device for receiving the sent inspection packets; an inspection device for inspecting the order of the predetermined number of inspection packets received by the receiving device; and a determination device for determining whether another communication device is located in the same first network as itself or passes through a second network different from the first network based on the inspection result of the inspection device.
如果检验装置确定由接收装置接收到的预定数目的检验包是按顺序的,确定装置可以确定另一个通信设备位于第一个网络中,否则,如果检验装置确定接收装置接收到的预定数目的检验包不是按顺序的,确定装置可以确定另一个通信设备的位置穿过第二个网络。If the inspection device determines that the predetermined number of inspection packets received by the receiving device are in sequence, the determination device can determine that the other communication device is located in the first network. Otherwise, if the inspection device determines that the predetermined number of inspection packets received by the receiving device are not in sequence, the determination device can determine that the location of the other communication device passes through the second network.
第一个网络可以是局域网(LAN),且第二个网络可以是广域网(WAN)。The first network may be a local area network (LAN), and the second network may be a wide area network (WAN).
该发送装置和接收装置可以在UDP协议下工作。The sending device and the receiving device can work under the UDP protocol.
根据本发明的第一种通信方法包括:将表示检验包顺序的信息记录在检验包中之后,发送预定数目的检验包的步骤;接收发送的检验包的步骤;检验在接收步骤中接收的预定数目的检验包的顺序的步骤;以及确定步骤,它基于检验步骤的检验结果,确定另一个通信设备是位于与自身相同的第一个网络中,还是穿过与第一个网络不同的第二个网络。According to the first communication method of the present invention, the step includes: a step of sending a predetermined number of inspection packets after recording information indicating the order of the inspection packets in the inspection packets; a step of receiving the sent inspection packets; a step of checking the order of the predetermined number of inspection packets received in the receiving step; and a determination step, which determines whether another communication device is located in the same first network as itself or passes through a second network different from the first network based on the inspection result of the inspection step.
根据本发明的第一种存储媒体包括一个程序,它包括将表示检验包顺序的信息记录在检验包中之后,发送预定数目的检验包的步骤,接收发送的检验包的步骤,检验在接收步骤中接收的预定数目的检验包的顺序的步骤,以及确定步骤,它基于检验步骤的检验结果,确定另一个通信设备是位于与自身相同的第一个网络中,还是穿过与第一个网络不同的第二个网络。According to the first storage medium of the present invention, a program is included, which includes a step of sending a predetermined number of inspection packets after recording information indicating the order of inspection packets in the inspection packets, a step of receiving the sent inspection packets, a step of checking the order of the predetermined number of inspection packets received in the receiving step, and a determination step of determining whether another communication device is located in a first network identical to itself or passes through a second network different from the first network based on a check result of the checking step.
根据本发明的第一种程序允许计算机执行以下步骤,将表示检验包顺序的信息记录在检验包中之后,发送预定数目的检验包的步骤,接收发送的检验包的步骤,检验在接收步骤中接收的预定数目的检验包的顺序的步骤,以及确定步骤,它基于检验步骤的检验结果,确定另一个通信设备是位于与自身相同的第一个网络中,还是穿过与第一个网络不同的第二个网络。A first program according to the present invention allows a computer to execute the following steps, a step of sending a predetermined number of inspection packets after recording information indicating the order of inspection packets in the inspection packets, a step of receiving the sent inspection packets, a step of checking the order of the predetermined number of inspection packets received in the receiving step, and a determination step, which determines whether another communication device is located in the same first network as itself or passes through a second network different from the first network based on the inspection result of the inspection step.
根据本发明的第二种通信设备包括:用于发送预定数目的检验包的发送装置;用于接收发送的检验包的接收装置;用于在接收装置接收到预定数目的检验包后,产生确认信息并发回该确认信息的信息产生装置;用于获得从另一个通信设备发回的确认信息的获得装置;用于测量从发送装置发送预定数目的检验包到获得装置接收确认信息所经过的时间的测量装置;以及确定装置,它用于基于测量装置的测量结果,确定另一个通信设备是位于与自身相同的第一个网络中,还是穿过与第一个网络不同的第二个网络。According to the second communication device of the present invention, it includes: a sending device for sending a predetermined number of inspection packets; a receiving device for receiving the sent inspection packets; an information generating device for generating confirmation information and sending back the confirmation information after the receiving device receives the predetermined number of inspection packets; an obtaining device for obtaining confirmation information sent back from another communication device; a measuring device for measuring the time elapsed from the sending device sending the predetermined number of inspection packets to the obtaining device receiving the confirmation information; and a determining device, which is used to determine whether the other communication device is located in the same first network as itself or passes through a second network different from the first network based on the measurement result of the measuring device.
如果测量装置测量出的经过时间小于一个预定的阈值,确定装置可以确定另一个通信设备位于第一个网络中,否则如果测量装置测量出的经过时间大于或等于该预定的阈值,则可以确定另一个通信设备的位置穿过第二个网络。If the elapsed time measured by the measuring device is less than a predetermined threshold, the determining device can determine that the other communication device is located in the first network; otherwise, if the elapsed time measured by the measuring device is greater than or equal to the predetermined threshold, it can be determined that the location of the other communication device passes through the second network.
第一个网络可以是局域网(LAN),且第二个网络可以是广域网(WAN)。该发送装置和接收装置可以在TCP协议或UDP协议下工作。The first network may be a local area network (LAN), and the second network may be a wide area network (WAN).The sending device and the receiving device may operate under the TCP protocol or the UDP protocol.
根据本发明的第二种通信方法包括:发送预定数目的检验包的步骤;接收发送的检验包的步骤;在接收步骤中接收到预定数目的检验包后,产生确认信息并发回该确认信息的步骤;获得从另一个通信设备发回的确认信息的步骤;测量从发送步骤中发送预定数目的检验包到获得步骤中接收确认信息所经过的时间的步骤;以及确定步骤,它基于测量步骤中的测量结果,确定另一个通信设备是位于与自身相同的第一个网络中,还是穿过与第一个网络不同的第二个网络。According to the second communication method of the present invention, the steps include: a step of sending a predetermined number of inspection packets; a step of receiving the sent inspection packets; a step of generating confirmation information and sending back the confirmation information after receiving the predetermined number of inspection packets in the receiving step; a step of obtaining confirmation information sent back from another communication device; a step of measuring the time elapsed from sending the predetermined number of inspection packets in the sending step to receiving the confirmation information in the obtaining step; and a determining step, which determines whether the other communication device is located in the same first network as itself or passes through a second network different from the first network based on the measurement result in the measuring step.
第二种存储媒体包括一个程序,它包括发送预定数目的检验包的步骤,接收发送的检验包的步骤,在接收步骤中接收到预定数目的检验包后,产生确认信息并发回该确认信息的步骤,获得从另一个通信设备发回的确认信息的步骤,测量从发送步骤中发送预定数目的检验包到获得步骤中接收确认信息所经过的时间的步骤,以及确定步骤,它基于测量步骤中的测量结果,确定另一个通信设备是位于与自身相同的第一个网络中,还是穿过与第一个网络不同的第二个网络。The second storage medium includes a program, which includes the steps of sending a predetermined number of inspection packets, receiving the sent inspection packets, generating confirmation information and sending back the confirmation information after receiving the predetermined number of inspection packets in the receiving step, obtaining confirmation information sent back from another communication device, measuring the time elapsed from sending the predetermined number of inspection packets in the sending step to receiving the confirmation information in the obtaining step, and a determining step, which determines whether the other communication device is located in the same first network as itself or passes through a second network different from the first network based on the measurement result in the measuring step.
根据本发明的第二种程序允许计算机执行以下步骤,发送预定数目的检验包的步骤,接收发送的检验包的步骤,在接收步骤中接收到预定数目的检验包后,产生确认信息并发回该确认信息的步骤,获得从另一个通信设备发回的确认信息的步骤,测量从发送步骤中发送预定数目的检验包到获得步骤中接收确认信息所经过的时间的步骤,以及确定步骤,它基于测量步骤中的测量结果,确定另一个通信设备是位于与自身相同的第一个网络中,还是穿过与第一个网络不同的第二个网络。A second program according to the present invention allows a computer to execute the following steps, a step of sending a predetermined number of inspection packets, a step of receiving the sent inspection packets, a step of generating confirmation information and sending back the confirmation information after receiving the predetermined number of inspection packets in the receiving step, a step of obtaining confirmation information sent back from another communication device, a step of measuring the time elapsed from sending the predetermined number of inspection packets in the sending step to receiving the confirmation information in the obtaining step, and a determining step, which determines whether the other communication device is located in the same first network as itself or passes through a second network different from the first network based on the measurement result in the measuring step.
根据本发明的第三种通信设备包括:用于发送预定数目的检验包,以及如果发生通信错误则重新发送检验包的发送设备;以及确定设备,它用于如果发送装置没有重新发送检验包,则确定另一个通信设备位于与自身相同的第一个网络中,否则如果发送装置重新发送检验包,则确定另一个通信设备的位置穿过与第一个网络不同的第二个网络。According to the third communication device of the present invention, it includes: a sending device for sending a predetermined number of check packets and resending the check packets if a communication error occurs; and a determination device, which is used to determine that another communication device is located in the same first network as itself if the sending device does not resend the check packets, otherwise if the sending device resends the check packets, determine that the location of the other communication device passes through a second network different from the first network.
该发送装置可以在传送控制协议(TCP)下工作。The sending device may operate under the Transmission Control Protocol (TCP).
第一个网络可以是局域网(LAN),且第二个网络可以是广域网(WAN)。The first network may be a local area network (LAN), and the second network may be a wide area network (WAN).
根据本发明的第三种通信方法包括:发送预定数目的检验包,以及如果发生通信错误则重新发送检验包的步骤;以及确定步骤,如果发送步骤中没有重新发送检验包,则它确定另一个通信设备是位于与自身相同的第一个网络中,否则如果发送步骤中重新发送检验包,则确定另一个通信设备的位置穿过与第一个网络不同的第二个网络。The third communication method according to the present invention includes: sending a predetermined number of check packets, and resending the check packets if a communication error occurs; and a determination step, if the check packets are not resent in the sending step, it determines that the other communication device is located in the same first network as itself, otherwise if the check packets are resent in the sending step, it determines that the location of the other communication device passes through a second network different from the first network.
根据本发明的第三种存储媒体包括一个程序,它包括发送预定数目的检验包,以及如果发生通信错误则重新发送检验包的步骤,以及确定步骤,如果发送步骤中没有重新发送检验包,则它确定另一个通信设备是位于与自身相同的第一个网络中,否则如果发送步骤中重新发送检验包,则确定另一个通信设备的位置穿过与第一个网络不同的第二个网络。According to the third storage medium of the present invention, a program is included, which includes the steps of sending a predetermined number of check packets, and resending the check packets if a communication error occurs, and a determining step, which determines that the other communication device is located in the same first network as itself if the check packet is not resent in the sending step, otherwise determines that the location of the other communication device passes through a second network different from the first network if the check packet is resent in the sending step.
根据本发明的第三种程序允许计算机执行以下步骤,发送预定数目的检验包,以及如果发生通信错误则重新发送检验包的步骤,以及确定步骤,如果发送步骤中没有重新发送检验包,则它确定另一个通信设备是位于与自身相同的第一个网络中,否则如果发送步骤中重新发送检验包,则确定另一个通信设备的位置穿过与第一个网络不同的第二个网络。A third program according to the present invention allows a computer to execute the following steps, a step of sending a predetermined number of check packets, a step of resending the check packets if a communication error occurs, and a determining step, if the check packets are not resent in the sending step, it determines that the other communication device is located in the same first network as itself, otherwise if the check packets are resent in the sending step, it determines that the location of the other communication device passes through a second network different from the first network.
在根据本发明的第一种通信设备、通信方法和程序中,接收其中记录了表示检验包顺序的信息的检验包。检验预定数目的检验包的顺序,且该检验结果用于确定另一个通信设备是位于与自身相同的第一个网络中,还是穿过与第一个网络不同的第二个网络。In a first communication device, communication method, and program according to the present invention, a test packet containing information indicating a test packet sequence is received. A predetermined number of test packets are sequenced, and the sequence is checked. The result of the check is used to determine whether another communication device is located in the same first network as the communication device itself or is passing through a second network different from the first network.
在根据本发明的第二种通信设备、通信方法和程序中,预定数目的检验包被发送至另一个通信设备,并且接收从该设备发回的确认信息。此外,测量从预定数目的检验包的发送到确认信息的接收所经过的时间。测量结果用来确定该通信设备是位于与自身相同的第一个网络中,还是穿过与第一个网络不同的第二个网络。In a second communication device, communication method, and program according to the present invention, a predetermined number of check packets are sent to another communication device, and confirmation information sent back from the device is received. Furthermore, the time elapsed from the sending of the predetermined number of check packets to the receipt of the confirmation information is measured. The measurement result is used to determine whether the communication device is located in the same first network as itself or is passing through a second network different from the first network.
在根据本发明的第三种通信设备、通信方法和程序中,预定数量的检验包被发送至另一个通信设备,并且如果发生通信错误则重新发送检验包。如果没有重新发送检验包,确定另一个通信设备位于与自身相同的第一个网络中。如果重新发送检验包,确定另一个通信设备的位置穿过与第一个网络不同的第二个网络。In a third communication device, communication method, and program according to the present invention, a predetermined number of check packets are sent to another communication device, and if a communication error occurs, the check packets are resent. If the check packets are not resent, it is determined that the other communication device is located in the same first network as the other communication device. If the check packets are resent, it is determined that the other communication device is located across a second network different from the first network.
附图简述BRIEF DESCRIPTION OF THE DRAWINGS
图1是一个通信系统的结构的方框图,本发明即应用于该通信系统;FIG1 is a block diagram of the structure of a communication system to which the present invention is applied;
图2示出了图1中所示的个人计算机的结构;FIG2 shows the structure of the personal computer shown in FIG1;
图3示出了图2中所示的通信单元29的第一种结构;FIG3 shows a first structure of the communication unit 29 shown in FIG2 ;
图4示出了检验包的一个例子;Figure 4 shows an example of a test package;
图5是说明了在通信单元29的第一种结构中的发送过程的流程图;FIG5 is a flowchart illustrating a transmission process in the first structure of the communication unit 29;
图6是说明了在通信单元29的第一种结构中的接收过程的流程图;FIG6 is a flowchart illustrating a receiving process in the first structure of the communication unit 29;
图7示出了图2中所示的通信单元29的第二种结构;FIG7 shows a second structure of the communication unit 29 shown in FIG2 ;
图8是说明了在通信单元29的第二种结构中的接收过程的流程图;FIG8 is a flowchart illustrating a receiving process in the second structure of the communication unit 29;
图9是说明了在通信单元29的第二种结构中的发送过程的流程图;以及FIG9 is a flowchart illustrating a transmission process in the second configuration of the communication unit 29; and
图10是说明了通过TCP协议的发送过程的流程图。FIG. 10 is a flow chart illustrating a transmission process through the TCP protocol.
执行本发明的最佳模式Best Mode for Carrying Out the Invention
图1示出了根据本发明的一个实施例的一种通信系统的结构,该通信系统包括具有个人计算机和AV设备的LAN。在这个通信系统中,LAN1和7以及服务器8通过例如国际互联网的WAN6相互连接。1 shows a structure of a communication system according to an embodiment of the present invention, which includes a LAN having a personal computer and AV equipment. In this communication system, LANs 1 and 7 and a server 8 are connected to each other via a WAN 6 such as the Internet.
LAN1包括个人计算机(PC)3和4,和AV设备5,全部通过交换式集线器2连接。LAN1例如用于在特定的个人或房屋内的家庭之间进行通信。交换式集线器2通过一个例如以太网100BASE-TX的高速接口连接至个人计算机3和4和AV设备5。数据通信可以大约100Mbps的速率和足够低的错误率在个人计算机3和4以及AV设备5之间进行。个人计算机(PC)3和4以及AV设备5可以通过交换式集线器2和WAN6与LAN7或服务器8进行通信。LAN 1 includes personal computers (PCs) 3 and 4 and AV equipment 5, all connected via a switching hub 2. LAN 1 is used, for example, for communication between individuals or families within a house. Switching hub 2 connects to PCs 3 and 4 and AV equipment 5 via a high-speed interface, such as Ethernet 100BASE-TX. Data communication between PCs 3 and 4 and AV equipment 5 can occur at a rate of approximately 100 Mbps with sufficiently low error rates. PCs 3 and 4 and AV equipment 5 can then communicate with LAN 7 or server 8 via switching hub 2 and WAN 6.
在发送内容数据时,个人计算机(PC)3可以确定内容数据通信的另一方是位于LAN1,例如个人计算机4,还是位于穿过WAN6的位置,例如服务器8。When transmitting content data, the personal computer (PC) 3 can determine whether the other party of the content data communication is located in the LAN 1 , such as the personal computer 4 , or located across the WAN 6 , such as the server 8 .
同样地,进行内容数据发送的个人计算机4和AV设备5可以确定内容数据通信的另一方是位于LAN1,例如个人计算机3,还是位于穿过WAN6的位置,例如服务器8。Likewise, the personal computer 4 and the AV device 5 that transmit content data can determine whether the other party of content data communication is located on the LAN 1 , such as the personal computer 3 , or located across the WAN 6 , such as the server 8 .
LAN7具有与LAN1相同的结构,然而它由不同于LAN1的用户进行管理。服务器8由不同于LAN1和7的用户进行管理。LAN 7 has the same structure as LAN 1, but is managed by a different user from that of LAN 1. Server 8 is managed by a different user from that of LANs 1 and 7.
图2示出了个人计算机3的结构。个人计算机3包括一个中央处理单元(CPU)21,I/O(输入/输出)接口25通过总线24与之连接。一个只读存储器(ROM)22和随机存取存储器(RAM)23连接至总线24。2 shows the structure of a personal computer 3. The personal computer 3 includes a central processing unit (CPU) 21 to which an I/O (input/output) interface 25 is connected via a bus 24. A read-only memory (ROM) 22 and a random access memory (RAM) 23 are connected to the bus 24.
I/O接口25包括:一个由I/O设备构成的输入单元26,例如键盘和鼠标,用户通过它来输入操作命令;输出单元27,它将视频信号输出至显示单元上的显示操作屏幕;存储单元28,它包括硬盘驱动器,以存储程序和其它各种类型数据;以及通信单元29,它包含通过连接至交换式集线器2的100BASE-TX线缆发送和接收数据的以太网接口。The I/O interface 25 includes: an input unit 26 composed of I/O devices, such as a keyboard and a mouse, through which the user inputs operation commands; an output unit 27, which outputs a video signal to a display operation screen on the display unit; a storage unit 28, which includes a hard disk drive to store programs and other various types of data; and a communication unit 29, which includes an Ethernet interface for sending and receiving data via a 100BASE-TX cable connected to the switching hub 2.
通信单元29可以包含通用串行总线(USB),或例如电气与电子工程师学会(IEEE)1394的高速接口,代替以太网接口。The communication unit 29 may include a universal serial bus (USB), or a high-speed interface such as the Institute of Electrical and Electronics Engineers (IEEE) 1394, instead of the Ethernet interface.
此外,对存储媒体读写数据的驱动器30连接至I/O接口25,存储媒体例如磁盘31、光盘32、光磁盘33以及半导体存储器34。Furthermore, a drive 30 that reads and writes data to a storage medium such as a magnetic disk 31 , an optical disk 32 , a magneto-optical disk 33 , and a semiconductor memory 34 is connected to the I/O interface 25 .
CPU21在ROM22或RAM23中的程序的控制下,执行各种类型的处理,这将在下文中描述。该程序从磁盘31、光盘32、光磁盘33,或半导体存储器34中读出,存储在存储单元28中,接着从存储单元28载至RAM23。RAM23还存储CPU21执行各种类型的处理所需要的数据。The CPU 21 executes various types of processing, which will be described below, under the control of a program stored in the ROM 22 or RAM 23. The program is read from the magnetic disk 31, optical disk 32, optical-magnetic disk 33, or semiconductor memory 34, stored in the storage unit 28, and then loaded from the storage unit 28 to the RAM 23. The RAM 23 also stores data necessary for the CPU 21 to execute various types of processing.
图3示出了通信单元29响应CPU21的控制所实现的功能块的第一种结构。控制单元41控制发送接收单元43,后者通过用户数据报协议(UDP)发送和接收数据,该协议是通信协议之一。控制单元41访问寄存器42。发送接收单元43响应控制单元41的控制而发送内容数据之前,它发送预定数目的检验包,以确定内容数据通信的另一方是位于LAN1还是穿过WAN6。FIG3 shows a first configuration of functional blocks implemented by the communication unit 29 in response to control by the CPU 21. A control unit 41 controls a transceiver unit 43, which transmits and receives data using the User Datagram Protocol (UDP), one of the communication protocols. The control unit 41 accesses a register 42. Before transmitting content data in response to control by the control unit 41, the transceiver unit 43 sends a predetermined number of check packets to determine whether the other party to the content data communication is located on the LAN 1 or across the WAN 6.
图4示出了检验包的一个例子。具体地,这个检验包的有效载荷存储由控制单元41产生的计数器值。An example of a test packet is shown in FIG4 . Specifically, the payload of the test packet stores the counter value generated by the control unit 41 .
PC4和AV设备5具有与图3中所示的通信单元29相同的硬件或软件功能块。此外,LAN7上的各种类型的设备和服务器8具有相同的功能块。The PC 4 and the AV device 5 have the same hardware or software functional blocks as the communication unit 29 shown in Fig. 3. In addition, various types of devices and the server 8 on the LAN 7 have the same functional blocks.
现在将参考通信单元29的第一种结构,对如何确定内容数据通信的另一方是位于LAN1还是穿过WAN6的概况进行描述。Now, an overview of how to determine whether the other party of the content data communication is located in the LAN 1 or across the WAN 6 will be described with reference to a first configuration of the communication unit 29.
UDP协议定义在发生通信错误的情况下,将没有正确发送的包丢弃,并且不进行重新发送。利用这个特征,可以确定内容数据通信的另一方是位于LAN1还是穿过WAN6。The UDP protocol defines that in the event of a communication error, packets that have not been correctly sent will be discarded and not resent. Utilizing this feature, it is possible to determine whether the other party of the content data communication is located at LAN1 or passes through WAN6.
更具体地,与LAN1上的对等方进行高速通信的交换式集线器2向对等方发送所有包,而不改变包的次序。然而在穿过WAN6与对等方进行的高速通信中,由于广域网连接而发生通信错误,UDP协议丢弃错误的包。因此,对等方接收不到一些包或接收到与发送顺序不同顺序的包。这用于确定内容数据通信的另一方是位于LAN1还是穿过WAN6。More specifically, switching hub 2, which is performing high-speed communication with a peer on LAN 1, sends all packets to the peer without changing the packet order. However, during high-speed communication with the peer across WAN 6, a communication error occurs due to the wide area network connection, and the UDP protocol discards the erroneous packets. As a result, the peer fails to receive some packets or receives packets in a different order than they were sent. This is used to determine whether the other party in the content data communication is located on LAN 1 or across WAN 6.
现在将参照图5中的流程图,描述图3中所示的通信单元29的第一种结构中的发送过程。在内容数据的通信发生之前,这个发送过程确定内容数据通信的另一方是位于LAN1还是穿过WAN6。The transmission process in the first configuration of the communication unit 29 shown in Figure 3 will now be described with reference to the flowchart in Figure 5. This transmission process determines whether the other party of the content data communication is located on LAN 1 or across WAN 6 before communication of content data occurs.
在步骤S1中,控制单元41为其中一个计数器的值(计数器值)分配初始值A。在步骤S2中,控制单元41令计数器递增一个常数值X,接着向发送接收单元43输出该计数器值。在步骤S3中,发送接收单元43响应于控制单元41的控制,将来自控制单元41的计数器值写入一个检验包的有效载荷,接着将该检验包发送到内容数据通信的另一方。In step S1, the control unit 41 assigns an initial value A to the value of one of the counters (counter value). In step S2, the control unit 41 increments the counter by a constant value X and then outputs the counter value to the transmission and reception unit 43. In step S3, the transmission and reception unit 43, in response to control by the control unit 41, writes the counter value from the control unit 41 into the payload of a check packet and then transmits the check packet to the other party of the content data communication.
在步骤S4中,控制单元41确定发送接收单元43是否发送了所有预定数目的检验包。如果还未发送所有预定数目的检验包,该过程返回步骤S2,并且重复后面的步骤。如果在步骤S4中,控制单元41确定发送了所有预定数目的检验包,发送过程完成。如上所述,多个具有相继计数器值的检验包被发送至接收机。In step S4, control unit 41 determines whether transceiver unit 43 has sent all of the predetermined number of inspection packets. If not, the process returns to step S2 and repeats the following steps. If, in step S4, control unit 41 determines that all of the predetermined number of inspection packets have been sent, the sending process is complete. As described above, multiple inspection packets with consecutive counter values are sent to the receiver.
现在将参照图6中的流程图,描述在通信单元29的第一种结构中对应于上述发送过程的接收过程。在步骤S11中,控制单元41在寄存器42中存储初始值A。在步骤S12中,发送接收单元43等候,直到接收到由发送机发送的检验包。当发送接收单元43接收到检验包,过程前进至步骤S13。Referring now to the flowchart in FIG6 , the receiving process corresponding to the above-described transmitting process in the first configuration of communication unit 29 will be described. In step S11, control unit 41 stores initial value A in register 42. In step S12, transceiver unit 43 waits until a check packet is received from the transmitter. When transceiver unit 43 receives the check packet, the process proceeds to step S13.
在步骤S13中,控制单元41计算在步骤S12接收到的检验包的有效载荷中的计数器值与寄存器42中的值的差值。在步骤S14中,检验步骤S13中计算得到的差值,以确定它是否等于常数值X。如果该差值等于常数值X,则没有丢失检验包,且该包以发送的顺序被接收,过程前进至步骤S15。In step S13, the control unit 41 calculates the difference between the counter value in the payload of the inspection packet received in step S12 and the value in the register 42. In step S14, the difference calculated in step S13 is checked to determine whether it is equal to the constant value X. If the difference is equal to the constant value X, the inspection packet is not lost and the packets are received in the order they were sent, and the process proceeds to step S15.
在步骤S15中,控制单元41将步骤S13中记录在包中的计数器值存储在寄存器42中。在步骤S16中,控制单元41确定发送接收单元43是否接收到所有预定数目的检验包。如果还未接受到所有预定数目的检验包,该过程返回到步骤S12,并且重复后面的步骤。接着,如果在步骤S16中确定接收到所有预定数目的检验包,该过程前进至步骤S17。In step S15, control unit 41 stores the counter value recorded in the packet in step S13 in register 42. In step S16, control unit 41 determines whether transceiver unit 43 has received all of the predetermined number of inspection packets. If not, the process returns to step S12 and repeats the subsequent steps. If, in step S16, it is determined that all of the predetermined number of inspection packets have been received, the process proceeds to step S17.
在步骤S17中,控制单元41确定LAN连接,表示发送机位于LAN1中。In step S17 , the control unit 41 determines LAN connection, indicating that the transmitter is located in the LAN1 .
在步骤S14中,如果步骤S13中计算出的差值不等于常数值X,检验包被丢失或检验包以不同于发送的顺序被接收。于是该过程前进至步骤S18。在步骤S18中,控制单元41确定WAN连接,表示发送机位于WAN6上。接收过程描述结束。In step S14, if the difference calculated in step S13 is not equal to the constant value X, the check packet is lost or the check packets are received in a different order than they were sent. The process then proceeds to step S18. In step S18, control unit 41 determines WAN connectivity, indicating that the transmitter is located on WAN 6. This concludes the description of the receiving process.
例如,如果在接收过程中确定通信通过WAN连接发生,则随后从发送机发送的内容数据的使用被严格地限制。相反,如果确定通信通过LAN连接发生,则随后从发送机发送的内容数据的使用被适度地限制。这防止了内容数据通过WAN散布,而不损害LAN中的个人使用。For example, if communication is determined to have occurred via a WAN connection during reception, the use of content data subsequently sent from the transmitter is severely restricted. Conversely, if communication is determined to have occurred via a LAN connection, the use of content data subsequently sent from the transmitter is moderately restricted. This prevents content data from being disseminated across the WAN without compromising personal use within the LAN.
图7示出了通信单元29响应CPU21的控制所实现的功能块的第二种结构。控制单元51控制发送接收单元53,后者在TCP协议或UDP协议下发送和接收数据。控制单元51还访问寄存器52。发送接收单元53响应控制单元51的控制而发送内容数据之前,它发送预定数目的检验包,以确定内容数据通信的另一方是位于LAN1还是穿过WAN6。定时器54响应控制单元51的控制而测量时间。FIG7 shows a second configuration of functional blocks implemented by the communication unit 29 in response to control by the CPU 21. A control unit 51 controls a transceiver unit 53, which transmits and receives data using the TCP or UDP protocols. The control unit 51 also accesses a register 52. Before transmitting content data in response to control by the control unit 51, the transceiver unit 53 transmits a predetermined number of check packets to determine whether the other party to the content data communication is located on the LAN 1 or across the WAN 6. A timer 54 measures time in response to control by the control unit 51.
PC4和AV设备5具有与图7中所示的通信单元29相同的硬件或软件功能块。此外,LAN7上的各种类型的设备和服务器8具有相同的功能块。The PC 4 and the AV device 5 have the same hardware or software functional blocks as the communication unit 29 shown in Fig. 7. In addition, various types of devices on the LAN 7 and the server 8 have the same functional blocks.
现在将参考通信单元29的第二种结构,对如何确定内容数据通信的另一方是位于LAN1还是穿过WAN6的概况进行描述。在LAN1上的通信中,交换式集线器2保证了高速通信速率。相反,由于各种原因,在穿过WAN6的通信中,与LAN1上的通信速率相比通信速率降低。基于此,确定内容数据通信的另一方是位于LAN1还是穿过WAN6。Now, referring to the second configuration of the communication unit 29, an overview of how to determine whether the other party in content data communication is located on the LAN 1 or is passing through the WAN 6 will be described. In communications on the LAN 1, the switching hub 2 ensures a high communication rate. In contrast, for various reasons, in communications passing through the WAN 6, the communication rate decreases compared to the communication rate on the LAN 1. Based on this, it is determined whether the other party in content data communication is located on the LAN 1 or is passing through the WAN 6.
现在将参照图8中的流程图,对通信单元29的第二种结构中的接收过程进行描述。当发送机发送检验包时,这个接收过程开始。The receiving process in the second configuration of the communication unit 29 will now be described with reference to the flowchart in Fig. 8. This receiving process starts when the transmitter transmits a check packet.
在步骤S21中,控制单元51确定发送接收单元53是否接收到所有预定数量的检验包。控制单元51等候,直到确定接收到所有预定数目的检验包。如果确定接收到所有预定数目的检验包,该过程前进至步骤S22。在步骤S22中,控制单元51产生确认信息,表示接收到了所有预定数目的检验包,并且将该信息输出至发送接收单元53。在步骤S23中,发送接收单元53向发送机发送确认信息。由于安全的原因,最好不能由第三方伪造确认信息。例如,发送机和接收机共享密钥信息作为特权信息。所有数据或部分数据与一个散列以及该密钥信息一起被发送。这是接收过程描述的结束。In step S21, the control unit 51 determines whether the sending and receiving unit 53 has received all the predetermined number of inspection packets. The control unit 51 waits until it is determined that all the predetermined number of inspection packets have been received. If it is determined that all the predetermined number of inspection packets have been received, the process proceeds to step S22. In step S22, the control unit 51 generates a confirmation message indicating that all the predetermined number of inspection packets have been received, and outputs this information to the sending and receiving unit 53. In step S23, the sending and receiving unit 53 sends the confirmation message to the transmitter. For security reasons, it is best that the confirmation message cannot be forged by a third party. For example, the transmitter and receiver share key information as privileged information. All data or part of the data is sent together with a hash and the key information. This is the end of the description of the receiving process.
现在将参照图9中的流程图描述通信单元29的第二种结构中的发送过程。在步骤S31中,控制单元51在定时器54中设置一个等候时间。确定该等候时间,使得在发送预定数目的检验包之后,该等候时间足够用来接收从位于LAN1的发送机发回的确认信息。The transmission process in the second configuration of the communication unit 29 will now be described with reference to the flowchart in Figure 9. In step S31, the control unit 51 sets a waiting time in the timer 54. The waiting time is determined so that after a predetermined number of check packets have been transmitted, the waiting time is sufficient to receive confirmation information sent back from the transmitter located on the LAN 1.
在步骤S32中,定时器54响应于控制单元51的控制,开始测量时间。在步骤S33中,发送接收单元53响应控制单元51的控制,发送预定数目的检验包。对于每一次检验,可以在所有检验包的有效载荷中写入一个随机数。接收机如上所述产生确认信息连同一个散列和密钥信息,以防止确认信息被不当伪造。In step S32, the timer 54 begins measuring time in response to control of the control unit 51. In step S33, the transceiver unit 53 transmits a predetermined number of inspection packets in response to control of the control unit 51. For each inspection, a random number may be written into the payload of each inspection packet. The receiver generates confirmation information along with a hash and key information as described above to prevent the confirmation information from being improperly forged.
在步骤S34中,控制单元51确定发送接收单元53是否接收到来自接收机的确认信息。如果控制单元51确定没有接收到确认信息,则该过程继续前进至步骤S35。在步骤S35中,控制单元51检验在步骤S31中设置的等候时间是否已经度过。如果确定该时间还没有度过,该过程返回步骤S34,并且重复后面的步骤。In step S34, the control unit 51 determines whether the transceiver unit 53 has received confirmation information from the receiver. If the control unit 51 determines that the confirmation information has not been received, the process proceeds to step S35. In step S35, the control unit 51 checks whether the waiting time set in step S31 has passed. If it is determined that the waiting time has not passed, the process returns to step S34 and repeats the subsequent steps.
如果在步骤S34中,控制单元51确定接收到了确认信息,该过程前进至步骤S36,其中控制单元51检验确认信息是否正确。如果不正确,该过程前进至步骤S38。否则,该过程前进至步骤S37。在步骤S37中,控制单元51确定通信通过LAN连接发生,也即,接收机位于LAN1中。特别地,为了检验确认信息,发送机可以如接收过程中一样计算期望的确认信息,以将它与来自接收机的值相比较。If, in step S34, control unit 51 determines that confirmation information has been received, the process proceeds to step S36, where control unit 51 verifies whether the confirmation information is correct. If not, the process proceeds to step S38. Otherwise, the process proceeds to step S37. In step S37, control unit 51 determines that communication is occurring via a LAN connection, meaning that the receiver is located within LAN 1. Specifically, to verify the confirmation information, the transmitter can calculate the expected confirmation information, as in the reception process, and compare it with the value received from the receiver.
如果在步骤S35中,确定等候时间已经度过,该过程前进至步骤S38。在步骤S38中,控制单元51确定通信通过WAN连接发生,即接收机位于穿过WAN6的位置。这是发送过程描述的结束。If in step S35 it is determined that the waiting time has elapsed, the process proceeds to step S38. In step S38, the control unit 51 determines that communication occurs via the WAN connection, ie, the receiver is located across the WAN 6. This is the end of the description of the transmission process.
例如,如果在这个发送过程中确定通信的发生穿过WAN连接,后面的内容数据发送停止。相反,如果确定通信发生在LAN连接上,允许后面的内容数据发送。这防止了内容数据通过WAN进行散布,而不损害在LAN中的个人使用。For example, if it is determined that communication is occurring over a WAN connection during this transmission process, subsequent content data transmission is stopped. Conversely, if it is determined that communication is occurring over a LAN connection, subsequent content data transmission is allowed. This prevents content data from being distributed over a WAN without impairing personal use on the LAN.
现在将描述在通信单元29中通过传送控制协议(TCP)的第三种通信。在TCP协议中,当发生通信错误时,重新发送出错的包,直到所有的包被成功地发送。如果发生超过WAN的速度的高速TCP通信,在LAN1中不会发生重新发送,然而,通过WAN1将发生重新发送。The third type of communication using the Transmission Control Protocol (TCP) in the communication unit 29 will now be described. In the TCP protocol, when a communication error occurs, the erroneous packet is retransmitted until all packets are successfully transmitted. If high-speed TCP communication exceeding the speed of the WAN is occurring, retransmission will not occur within the LAN 1, but will occur over the WAN 1.
现在将参照图10中的流程图,对通过TCP协议的这种特点确定接收机是位于LAN1还是穿过WAN6的发送过程进行描述。在内容数据的通信之前进行这个发送过程。在这种情况下,通信单元29的结构与图3中的相同。Now, referring to the flowchart in Figure 10, the transmission process for determining whether the receiver is located in LAN 1 or across WAN 6 by this feature of the TCP protocol will be described. This transmission process is performed before the communication of the content data. In this case, the structure of the communication unit 29 is the same as that in Figure 3.
在步骤S41中,发送接收单元43响应控制单元41的控制开始发送检验包。在步骤S42中,控制单元41确定发送接收单元43是否重新发送检验包。如果确定发生了检验包的重新发送,该过程前进至步骤S43。In step S41, the transmission and reception unit 43 starts transmitting the inspection packet in response to the control of the control unit 41. In step S42, the control unit 41 determines whether the transmission and reception unit 43 retransmits the inspection packet. If it is determined that the inspection packet retransmission occurs, the process proceeds to step S43.
在步骤S43中,控制单元41确定WAN连接,表示接收机位于WAN6上。In step S43 , the control unit 41 determines the WAN connection, indicating that the receiver is located on WAN 6 .
如果在步骤S42中,确定没有发生检验包的重新发送,该过程前进至步骤S44。在步骤S44中,控制单元41确定发送接收单元43是否发送了预定数目的检验包。如果确定没有发送预定数目的检验包,该过程返回步骤S42,并且重复后面的步骤。随后,如果在步骤S44中,确定发送了预定数目的检验包,该过程前进至步骤S45。If, in step S42, it is determined that the inspection packet has not been retransmitted, the process proceeds to step S44. In step S44, the control unit 41 determines whether the transmission and reception unit 43 has transmitted a predetermined number of inspection packets. If, in step S44, it is determined that the predetermined number of inspection packets has not been transmitted, the process returns to step S42 and repeats the subsequent steps. Subsequently, if, in step S44, it is determined that the predetermined number of inspection packets has been transmitted, the process proceeds to step S45.
在步骤S45中,控制单元41确定LAN连接,表示接收机位于LAN1上。这是发送过程描述的结束。In step S45, the control unit 41 determines the LAN connection, indicating that the receiver is located on LAN 1. This is the end of the description of the transmission process.
例如,如果在这个发送过程中确定了通信通过WAN连接发生,后面的内容数据发送停止。相反,如果确定通信通过LAN连接发生,允许后面的内容数据发送。这防止了内容数据通过WAN散布,而不损害在LAN中的个人使用。For example, if it is determined that communication is occurring via a WAN connection during this transmission process, subsequent content data transmission is stopped. Conversely, if it is determined that communication is occurring via a LAN connection, subsequent content data transmission is allowed. This prevents content data from being distributed via the WAN without impairing personal use on the LAN.
在本说明书中,描述存储在存储媒体中的程序的步骤不仅包括按照上述顺序执行的过程,还包括可以并行或独立执行的过程。In this specification, the steps describing the program stored in the storage medium include not only processes that are executed in the order described above but also processes that can be executed in parallel or independently.
此外,如说明书中所使用,“系统”指包括多个设备的整个设备。Furthermore, as used in the specification, a "system" refers to the entire apparatus including a plurality of apparatuses.
工业应用性Industrial Applicability
根据本发明,可以确定内容数据通信的另一方是位于LAN中还是穿过WAN。According to the present invention, it is possible to determine whether the other party of content data communication is located in a LAN or across a WAN.
Claims (11)
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2002-376558 | 2002-12-26 |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| HK1196729A HK1196729A (en) | 2014-12-19 |
| HK1196729B true HK1196729B (en) | 2019-12-13 |
Family
ID=
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8289880B2 (en) | Telecommunications apparatus and method, storage medium, and program | |
| CN100539550C (en) | Information communication system, device and method | |
| US9160735B2 (en) | System for and method of securing a network utilizing credentials | |
| US20110314282A1 (en) | Content transmission apparatus, content reception apparatus and content transmission method | |
| HK1196729B (en) | Data transmitting apparatus, data receiving apparatus, and method | |
| HK1196728B (en) | Data transmitting apparatus, data receiving apparatus, and method | |
| HK1196729A (en) | Data transmitting apparatus, data receiving apparatus, and method | |
| HK1196728A (en) | Data transmitting apparatus, data receiving apparatus, and method | |
| JP4069458B2 (en) | Data communication system and data communication method, data transmission device and data transmission method, data reception device and data reception method, and program | |
| KR20070085748A (en) | Digital rights management using network topology test |