DEVICE AND METHOD FOR COMMUNICATION OVER A NETWORK

Abstract: The present invention relates to a system for communication over a network (130). The system comprises a network application (111), a protocol stack (123) and a Medium Access Control layer (124) (MAC layer). Further, the system is functionally and physically divided into a network application device (110) and a network interface device (120). The network application device (110) comprises the network application (111) and the network interface device (120) comprises the protocol stack (123) and the MAC layer (124). A physical interface for bi-directional communication is arranged between the two devices. Also, the invention relates to the network application device (110) and the network interface device (120) separately and to a method for transmitting and receiving information via the network.

Description: DEVICE AND METHOD FOR COMMUNICATION OVER A NETWORK Technical Field The present invention relates to a system for communication over a network and comprising a network application, a network protocol stack having protocols, for transmission control and path control, and further comprising a Medium Access Control layer (MAC layer) for transforming information for communication between the system and the network. The invention also relates to two devices forming part of the system and to a method for communication over a network. Background of the Invention Devices for communication over a network of the above-mentioned type are commonly known, e.g. network interface cards (NIC) , and are usually used to connect peripheral units such as printers, scanners, and CD units to a network. However, according to this solution the manufacturer and the developer of peripheral units are highly dependent on the NIC supplier since an enhancement or a further development of the peripheral unit in many cases leads to the need for implementation of a new interface for the NIC. This might give rise to heavy expenses and be highly time-consuming. Even if the manufacturer of the peripheral unit only wants to make changes in the way the unit is presented to other network units, it is usually necessary for the NIC supplier to be involved. Other known devices for communication over a network are network cards. These are commonly used to connect a powerful system, such as a computer or a server, to the network. Therefore only a MAC layer is normally implemented on the network card. The information to be sent over the network is transformed by the network card to suit the network. If the unit intended for communication over a network should be able to utilise such a network card, its internal system must be able to handle a large amount of extra program code. However, the usually small amount of free internal system resources, which is left when the unit is optimised for its purpose, is not sufficient to handle said extra program code. Summary of the Invention The object of the present invention is to point out a solution to the above-mentioned problems by granting a manufacturer of network application devices greater liberty to develop new network application devices or develop existing network application devices further, resulting in less cost and time-consumption for the development or the further development and enabling the manufacturer to use an existing internal system of a network application device without losing the advantages mentioned above. These objects as well as other objects that will become apparent from the following description, are now achieved by a system of the type mentioned by way of introduction and further comprising the features in the characterising clause of claim 1. The objects are also achieved by a device according to claim 6 and claim 9 and by a method according to claim 11 and claim 15. According to the invention the system comprises two devices, namely a network application device and a network interface device. The network application device can be a device of any kind, for example, a printer, an industrial robot, a control unit or a gauge for a process, that is intended to be connected to a network for sending information thereto or for receiving information from equipment connected to the network. The network application device comprises a network application which for example may be formed by any of the protocols for http, Telnet, FTP, SNMP or SMTP, and a network API (Application Programming Interface) , which for example may be a Berkley sockets API, a Winsock2 API or a Java Sockets API. The network interface device is situated between the network application device and the network, and it comprises a protocol stack which for example may comprise protocols for TCP/IP, NetWare, NetBIOS/NetBEUI or AppleTalk, and a MAC layer, which for example may be an implementation of CSMA/CD, Token bus or Token ring. Between these two devices, a physical interface is provided, which makes it possible to transmit information between the two devices . The invention gives rise to a number of advantages. Manufacturers of applications will be able to easily implement new or altered applications and protocols on top of the existing protocol stack without any involvement of the manufacturer of network interface devices . It will also be possible to henceforth use an existing internal system or an existing CPU, because of the fact that most processor and memory requiring parts regarding network communication, such as the protocol stack, are situated in the network interface unit, and new protocol standards may be added by the manufacturer of network interface devices without the need for the manufacturer of applications to reprogram or rebuild the network application device. According to one advantageous embodiment of the invention, a network application programming interface (API) is provided in the network application device between the network application and the physical interface with respect to information transport . One advantage thereof is that development and testing of network appli- cations may be performed from almost any platform, as long as it is able to use the same network API as the network application device. According to another advantageous embodiment of the invention, a packet-based protocol is provided in connection with the physical interface for communication between the network application device and the network interface device. One specific advantage thereof is that no changes of a logical interface or the physical interface are required during development, enhancement and updating of e.g. the protocol stack, the network application or the application. Another advantage thereof is that no change is required in the network application when enhancements are added to the protocol stack. According to another advantageous embodiment, the physical interface is of the type having two coacting interface means, which admit simple connection with and disconnection from each other. Consequently, each device of the system can be tested separately. Also, initial tests of the network application device can be performed by an application simulated in a computer. Brief Description of the Drawings The invention will now be described in more detail with reference to the accompanying drawings, which show a presently preferred embodiment of the invention. Fig. 1 is a schematic of the system in a typical environment. Fig. 2 is a block diagram of the system. Fig. 3 is a flow chart of the information path through the system during transmission. Fig. 4 is a flow chart of the information path through the system during receiving. Detailed Description of a Preferred Embodiment With reference to Fig. 1, there is described a network 130 and units of different types connected thereto, such as computers 150, control equipment, other applications not comprising the system of the invention 140 or other applications comprising the system of the invention 100. The application using the system 100 is intended to communicate over the network 130 with different units connected thereto. The arrows on the lines connecting units to each other or to the network 130 symbolise bi- directional communication. With reference to Fig. 2, a preferred embodiment of the system comprises a network application device (NAD) 110 and a network interface device (NID) 120. The network application device 110 is a device which is intended to be connected to a network. Such a device could be, for example, a printer, an industrial robot, a control unit or a gauge for a process. The network application device 110 is preferably equipped with a CPU and memory units as well as hardware to perform other tasks than communicating over the network. Further a network application 111 is implemented in the form of a Web Server and a HTTP protocol, a network API 112, in the form of a standard network API, a packet protocol 114, in the form of IEEE 1284.4, a protocol agent 113 which transforms the information that the network application via the API intends to send with the packet protocol to a format that is suitable for the packet protocol 114. The network interface device (NID) 120 is in itself an interface between the NAD 110 and the network 130. In the NID 120 there are implemented a packet protocol 121 corresponding to the packet protocol 114 in the NAD 110, a protocol agent 122 corresponding to the one 113 present in the NAD 110, a protocol stack 123 in the form of a TCP, an IP and an LLC protocol (Logical Link Control) , a MAC layer (Medium Access Control) , e.g. in the form of an implementation of CSMA/CD and a connection to the network. In the NID the physical network interface is implemented according to IEEE 802.3. A physical interface 115 is located between the NAD 110 and the NID 120. If the NAD 110 and the NID 120 are implemented on the same printed circuit card the physical interface 115 could be in the form of conductors between the two devices. If they are implemented on separate printed circuit cards then the physical interface 115 could be a male and a female connector, which are connected either directly to each other or by a cable, arranged on the cards respectively. Another possibility is to put a female connector on one of the cards and make the conductors of the other card reach the edge of that card, which then is inserted in the connector for establishing contact. A logical interface 125 is defined by the protocol agents 113, 122 and the packet protocols 114, 121. With reference to Fig. 3 there is described in which order and by which internal unit information is treated in a preferred embodiment when information is intended to be sent to the network. The information that the NAD 210 wishes to present via the network is sent to the network application 211, where the web server structures the information. From the network application, the processed and structured information is sent to a network API 212, where the information is structured into a general format required by the protocol stack. Then information is sent further to the protocol agent 213 where the information is adapted to the packet protocol 214. The packet protocol 214 in the form of an IEEE 1284.4 protocol then takes care of the information and sends it on a data channel to the packet protocol 221, which is implemented in the NID 110, via the physical interface 215. The two packet protocols 214, 221 works as a peer-to-peer connection. After the packet protocol 221, a protocol agent 222 takes care of the information, and also this agent works as a peer protocol in relation to the corresponding protocol agent 213. The protocol agent 222 transforms the information back to the form it had before it was processed by the previous protocol agent 213 and transmits it on to the protocol stack 223. As a result, the protocol stack 223 will see the information as if it came immediately from the network API. The protocol stack in the form of a TCP, IP and LLC protocol processes and administrates the information based on the instructions received. Subsequently this processed information is sent further on to the MAC layer 224 where the information is given features necessary to send it over the network, such as being adapted to CSMA/CD standard, whereupon it is sent on the network. With reference to Fig. 4 there is described in which order and by which internal unit information is processed in a preferred embodiment when the information is received from the network. Information intended for the application and coming from the network is received and treated by the MAC layer 324, to be forwarded to the protocol stack 323. The different protocols, in this case the protocols for TCP, IP and LLC, in the protocol stack 323 process and administrate the information according to each protocol. This processed information generated by the protocol stack 323 is then sent further on to the protocol agent 322, where it is adapted to the packet protocol 321. The packet protocol 321, in the form of a protocol according to the IEEE 1284.4 standard, then takes care of the information and sends it on a data channel to the packet protocol 314, which is implemented in the NAD 120, via the physical interface 315. The packet protocols work like a peer-to-peer connection. After the packet protocol, a protocol agent 313 takes care of the information. Also the protocol agent works as a peer protocol relative to its corresponding protocol agent 322. The protocol agent 313 reproduces the information in the form it had before being treated by the previous protocol agent 322. The information is then passed on to the network API 312, where the information is structured into a general format required by the net- work application 311. From the network API, the informa ¬ tion is sent further on to the network application 311.

Claims: CLAIMS 1. A system for communication over a network and comprising a network application (111) , a protocol stack (123) having protocols, for transmission control and path control, and further comprising a Medium Access Control layer (MAC layer) (124) for transforming information for communication between the network and the sys- tern, c h a r a c t e r i s e d in that the system is functionally and physically divided into one network interface device (120) , which comprises the network protocol stack (123) and the MAC layer (124) , and one network application device (110) , which comprises the network application (111) , that the system is provided, between the network application device ' (110) and the network interface device (120) with respect to information transport, with a physical interface (115) for bi-directional communica- tion. 2. A system according to claim 1, wherein a network application programming interface (API) (112) is provided in the network application device (110) between the network application (111) and the physical interface (115) with respect to information transport. 3. A system according to claim 1 or 2 , wherein the network application device (110) and the network interface device (120) each comprises a packet-based protocol (114,121), which is provided in connection with the physical interface (115) for communication between the network application device (110) and the network interface device (120) . 4. A system according to claim 3, wherein the packet-based protocol (114, 121) further is a bi-direc- tional, connection-oriented, peer-to-peer protocol. 5. A system according to claim 3 or 4 , wherein a protocol agent (113) is provided between the network API (112) and the packet protocol (114) in the network application device (110) with respect to information transport and a protocol agent (122) is provided between the protocol stack (123) and the packet protocol (121) in the network interface device (120) with respect to information transport, said protocol agents (113, 122) being provided to transform information to a format that can be interpreted by a function intended to process the information in a next step. 6. A system according to any one of claims 1-5, wherein the physical interface (115) comprises two coacting interface means enabling simple connection of the network application device (110) to the network interface device (120) and simple disconnection therefrom. 7. A network application device (110), comprising: a network application (111) ; a bi-directional physical interface means (115) being provided for connection with a network interface device (120) ; and a network API (112) being arranged in connection with the network application (111) and between the network application (111) and the physical interface (115) with respect to information transport. 8. A network application device (110) according to claim 7, wherein a packet-based protocol (114) is provided in connection with the physical interface (115) and between the physical interface (115) and the network API (112) with respect to information transport. 9. A network application device (110) according to claim 8, wherein a protocol agent (113) is provided between the network API (112) and the packet protocol (114) with respect to information transport, and wherein the protocol agent (113) is arranged to transform information to a format that can be interpreted by a function in- tended to process the information in a next step. 10. A network interface device (120), comprising: a protocol stack (123) with protocols for transmission control and path control; a MAC layer (124) to transform information for communication on a network (130) ; and a bi-directional physical interface means (115) , which is provided to connect a network application device (110) for communication therewith. 11. A network interface device (120) according to claim 10, wherein a packet-based protocol (121) is pro- vided in connection with the physical interface (115) and between the physical interface (115) and the protocol stack (123) with respect to information transport. 12. A network interface device (120) according to claim 11, wherein a protocol agent (122) is provided be- tween the packet-based protocol (121) and the protocol stack (123) with respect to information transport. 13. A method of establishing communication over a network, comprising the steps of: sending information from a network applica- tion (211) , which is provided in a network application device (210) , to a network API (212) , where the information is transformed to a format which is readable by a network protocol stack (223) , sending the transformed information from the network API (212) to a physical interface means (215) provided in the network application device (210) , transmitting information from this physical interface (215) via a physical communication link to a corresponding physical interface (215) , which is provided in a network interface device (220) , thereafter transferring information to a network protocol stack (223) provided in the network interface device (220) , wherein said information is processed and administrated in the network protocol stack (223) for communication between applications, and sending information from the network protocol stack (223) to a MAC layer (224) , which is provided in the network interface device (220) and in which the information is adapted to and sent on to the present network communication medium. 14. A method according to claim 13, wherein informa- tion are transmitted over the physical interface (215) by means of a packet-based protocol (214, 221) . 15. A method according to claim 14, wherein information is transmitted over the physical interface (215) by means of a packet-based, two-way, peer-to-peer proto- col (214, 221) . 16. A method according to any one of claims 14-15, further comprising the steps of sending information from the network API (212) to a protocol agent (213) to be transformed to a format that is readable to the packet protocol (214) , sending this transformed information on to the packet protocol (214) provided in the network application device (210) , sending information from the packet protocol (221) provided in the network interface device (220) to a protocol agent (222) to be transformed to a format readable to the protocol stack (223), and sending this transformed information on to the protocol stack (223) . 17. A method of communicating over a network comprising the steps of: receiving information from a unit connected to a network, said information being received by a MAC layer (324) in a network interface device (320), transforming in the MAC layer (324) the information to a format that is readable by the protocols in a protocol stack (323) , subsequently transferring information to a network protocol stack (323) provided in the network interface device (320) , in which information is processed and administrated, transmitting information from the protocol stack (323) to a physical interface means (315) of the network interface device (320) , sending the information from this physical interface means (315) via a physical communication link to a corresponding physical interface (315) , which is provided in a network application device (310) , sending the information from the physical interface means (315) of the network application device (310) to a network API (312) , where the information is transformed to a format that is readable by a network application (311) , and subsequently transmitting said information to the network application (311) . 18. A method according to claim 17, wherein information is transmitted over the physical interface (315) by means of a packet-based protocol (314, 321) . 19. A method according to claim 18, wherein information are transmitted over the physical interface (215) by means of a packet-based, two-way, peer-to-peer protocol (214, 221) . 20. A method according to claim 18-19, wherein the information from the protocol stack (323) are sent to a protocol agent (322) for transformation to a format that is readable by the packet protocol (321) , said information is sent to the packet protocol (321) in the network interface device (320) , information from the packet protocol of the network application device (310) is sent to a protocol agent (313) of the network application device (310) , in which said information is transformed to a format that is readable by the network API (312) , whereupon said information is sent to the network API (312) .

Inventors: HUGOSSON FREDRIK, RIPA HARALD, HUGOSSON, FREDRIK, RIPA, HARALD
Applicants: AXIS AB, HUGOSSON FREDRIK, RIPA HARALD, HUGOSSON, FREDRIK, RIPA, HARALD
Application year: 2000
Main classification: H04M
IPC codes: G06F13, H04L12, H04L29