CN1747410A - Household network system and repeating data packet discrimination therefor - Google Patents
Household network system and repeating data packet discrimination therefor Download PDFInfo
- Publication number
- CN1747410A CN1747410A CNA2004100718263A CN200410071826A CN1747410A CN 1747410 A CN1747410 A CN 1747410A CN A2004100718263 A CNA2004100718263 A CN A2004100718263A CN 200410071826 A CN200410071826 A CN 200410071826A CN 1747410 A CN1747410 A CN 1747410A
- Authority
- CN
- China
- Prior art keywords
- mentioned
- thresholding
- data packet
- packet
- data packets
- 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
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention includes more than one electrical device, at least one network manager, and a network for use in communication and applying with specified network protocol. The electrical device in home electrical appliance network receives normal data packet, and saves the packet number fields, and then receives new packet. Comparing the newly received packet number fields with the saved packet number fields, according to the comparing result and transmission number of new packet, decides if the new packet is a repeated packet, and processes the packet.
Description
Technical field
The present invention relates to a kind of domestic network system and be applicable to the repetitive data packet determination methods of domestic network system.
Background technology
Home network (home Network) is a kind of network that each digitlization man is electrically connected. By home network, can control the household electrical appliances in the family easily whenever and wherever possible, can bring enjoyment in life. Along with the development of digital information processing, the household electrical appliances such as refrigerator or washing machine are developing into the digitlization home appliance gradually. Along with the fast development of household electrical appliances use system technology and high-speed digital communication technology, the information household appliances of above-mentioned technology are appearring fully utilizing. Under above-mentioned background, domestic network system has appearred.
COS shown in this home network following table 1 can be divided into data network, entertainment network, interactive network.
Table 1
Classification | Function | COS |
Data network | Network between PC and peripheral equipment | Exchanges data, network service etc. |
Entertainment network | The network of A/V (Audio/Video) equipment room | Music, the services such as animation |
Interactive network | The network of control home appliance | The control of home appliance, home network braking control, remote monitoring, information service etc. |
Data network (data network) belongs to the network type that makes up for carry out the exchanges data between pc and the peripheral equipment or provide services on the Internet etc. Entertainment network (entertainment network) belongs to the network type between the home appliance of the information of processing ODO or VDO etc. In addition, interactive network (living network) refers to be controlled to be merely with automation appliance or Long-distance Control etc. the network of purpose.
This domestic network system for family is formed by master control (master) equipment and slave as electric equipment. As electric equipment, main control device controls or shows the state of other electric equipment to other electric equipment. As electric equipment, slave is pressed characteristic or other key element of electric equipment, the requirement of main control device is replied, and export the state change information of self. The electric equipment that uses in the specification of the present invention (or new equipment) comprises that not only washing machine, refrigerator etc. are used for the household electrical appliances of above-mentioned interactive network service, also comprises for the household electrical appliances of data network service and the household electrical appliances that are used for the entertainment network service. In addition, also comprise coal gas, automatic air condition equipment, automatically-controlled door and the electrical equipment such as light a lamp.
Yet prior art can not provide to be controlled and the communication specification of the function such as supervision the electric equipment in the domestic network system.
Summary of the invention
The above-mentioned shortcoming that exists in order to overcome prior art, the invention provides a kind of domestic network system and repetitive data packet determination methods, being electric equipment in the domestic network system provides a kind of communication with functions such as control and supervision general with rule, and can be suitable for domestic network system and the repetitive data packet determination methods of controlling procotol.
In addition, purpose of the present invention is for providing a kind of general rule of communication of using, i.e. domestic network system and the repetitive data packet determination methods of interactive network control protocol (Living network Control Protocol:LnCP).
In addition, purpose of the present invention detects and processes the same packet that repeats to receive for providing a kind of, and then improves domestic network system and the repetitive data packet determination methods of data-handling efficiency.
In addition, purpose of the present invention detects and processes domestic network system and the repetitive data packet determination methods of the packet that repeats to receive for providing a kind of in having the network of mutually different a plurality of transmission paths.
Domestic network system of the present invention:
A kind of domestic network system, it is characterized in that, the domestic network system that the network of the employing specific network protocols of being communicated by letter between them by at least more than one electric equipment, network manager and being used for forms, above-mentioned electric equipment receives normal packet from above-mentioned network manager, and stores the package number thresholding of above-mentioned packet; Then receive new data packets, and the data address thresholding of the package number thresholding of the packet of above-mentioned new reception and above-mentioned storage is compared; And according to the number of transmissions of above-mentioned comparison and above-mentioned new data packets, determine whether repetitive data packet of above-mentioned new data packets, and process.
Aforesaid domestic network system, wherein the package number thresholding in above-mentioned new data packets is identical with the package number thresholding of the above-mentioned packet that has stored, when the package number thresholding of above-mentioned new data packets was larger than " 1 ", above-mentioned electric equipment was defined as repetitive data packet to above-mentioned new data packets.
Aforesaid domestic network system, wherein electric equipment judges that according to the transmission counter thresholding of above-mentioned new data packets above-mentioned the number of transmissions is the domestic network system of feature.
Aforesaid domestic network system, wherein the type of data packet of packet and new data packets is request data package.
Aforesaid domestic network system, wherein the comparison of the deliver letters side address thresholding of electric equipment by appending the side's of delivering letters thresholding of carrying out above-mentioned packet and above-mentioned new data packets is judged as repetitive data packet to above-mentioned new data packets.
Aforesaid domestic network system, wherein in addition, above-mentioned electric equipment is receiving above-mentioned new data packets, and through after the repetitive data packet elapsed time (DupElapsedTime) as the particular intermediaries variable, address, the side of delivering letters thresholding, package number thresholding and the number of transmissions of above-mentioned storage initialized.
Aforesaid domestic network system, wherein procotol is interactive network control protocol (LnCP).
The repetitive data packet determination methods of domestic network system of the present invention:
A kind of repetitive data packet determination methods of domestic network system is characterized in that, comprises with the next stage: the stage that receives normal data packet according to specific network protocols; Store the stage of the package number thresholding of above-mentioned packet; Receive the stage of new data packets; The 1st comparison phase that the package number thresholding of above-mentioned new data packets and the package number thresholding of above-mentioned storage compare; According to result and the new data packets the number of transmissions of above-mentioned the 1st comparison phase, determine above-mentioned new data packets stage of repetitive data packet whether.
The repetitive data packet determination methods of aforesaid domestic network system, wherein in above-mentioned definite stage, the package number thresholding of above-mentioned new data packets is identical with the package number thresholding of the above-mentioned packet that has stored, above-mentioned new package number thresholding according to bag is defined as repetitive data packet to above-mentioned new data packets during greater than " 1 ".
The repetitive data packet determination methods of aforesaid domestic network system is wherein judged above-mentioned the number of transmissions according to the transmission counter thresholding of above-mentioned new data packets.
The repetitive data packet determination methods of aforesaid domestic network system, wherein the repetitive data packet determination methods is to append to comprise type of data packet affirmation stage of request data package whether of confirming above-mentioned packet and new data packets.
The repetitive data packet determination methods of aforesaid domestic network system, wherein the repetitive data packet determination methods is to append the 2nd comparison phase that address, the side of the delivering letters thresholding of address, the side of the delivering letters thresholding that comprises above-mentioned packet and above-mentioned new data packets compares; Above-mentioned definite stage is judged as repetitive data packet to above-mentioned new data packets according to above-mentioned the 1st comparison phase and the 2nd comparison phase.
The repetitive data packet determination methods of aforesaid domestic network system, wherein the repetitive data packet determination methods is to comprise, receive above-mentioned new data packets, and through as the repetitive data packet of particular intermediaries variable after the elapsed time, address, the side of delivering letters thresholding, package number thresholding and the number of transmissions of above-mentioned storage carried out the initialized stage.
The repetitive data packet determination methods of aforesaid domestic network system, wherein procotol is the interactive network control protocol.
Domestic network system of the present invention:
A kind of domestic network system, it is characterized in that, by at least more than one electric equipment, at least more than one network manager and for the communication between them, and in the domestic network system by their network formation of specific procotol connection, above-mentioned electric equipment receives normal packet, and stores the judgement thresholding of repetitive data packet at above-mentioned packet; Then receive new data packets, and above-mentioned storage repeat judge that the packet repetitive data packet of thresholding and above-mentioned new reception judges that thresholding compares; According to above-mentioned comparison, determine whether repetitive data packet of above-mentioned new data packets, and process above-mentioned new data packets.
Aforesaid domestic network system, wherein the judgement thresholding of repetitive data packet comprises address, the side of delivering letters thresholding at least, package number thresholding, type of data packet and counter thresholding.
Aforesaid domestic network system, wherein distinguish when identical in the address thresholding of delivering letters of above-mentioned storage, package number thresholding, type of data packet thresholding and transmission counter thresholding and above-mentioned new thresholding, above-mentioned electric equipment is defined as repetitive data packet to above-mentioned new data packets.
Aforesaid domestic network system wherein is formed with a plurality of transmission paths between electric equipment and the above-mentioned network manager.
Aforesaid domestic network system after wherein electric equipment receives above-mentioned packet, is determined whether repetitive data packet of the above-mentioned new data packets that receives in the delay time in max-forwards.
Aforesaid domestic network system, wherein procotol is interactive network control protocol (LnCP).
The repetitive data packet determination methods of domestic network system of the present invention:
A kind of repetitive data packet determination methods of domestic network system is characterized in that, comprises with the next stage: the stage that receives normal data packet according to specific network protocols; In above-mentioned packet, store the stage that repetitive data packet is judged thresholding; Receive the stage of new data packets; The above-mentioned repetitive data packet that has stored is judged the stage that the repetitive data packet judgement thresholding of thresholding and above-mentioned new data packets compares; According to above-mentioned comparison, determine new data packets stage of repetitive data packet whether.
The repetitive data packet determination methods of aforesaid domestic network system, wherein the judgement thresholding of repetitive data packet comprises address, the side of delivering letters thresholding, package number thresholding, type of data packet and counter thresholding at least.
The repetitive data packet determination methods of aforesaid domestic network system, wherein in above-mentioned definite stage, address, the side of the delivering letters thresholding of above-mentioned storage, package number thresholding, type of data packet thresholding and transmission counter thresholding and the thresholding of above-mentioned new data packets are distinguished when identical, and above-mentioned new data packets is defined as repetitive data packet.
The repetitive data packet determination methods of aforesaid domestic network system, wherein domestic network system has a plurality of transmission paths.
The repetitive data packet determination methods of aforesaid domestic network system before wherein determination methods also is included in above-mentioned comparison phase, receives above-mentioned packet, and confirms whether to receive in the delay time in max-forwards the affirmation stage of above-mentioned new data packets.
The repetitive data packet determination methods of aforesaid domestic network system, wherein procotol is the interactive network control protocol.
The routine accompanying drawing of practicality provided by the invention and method, an example of just lifting for concrete statement the technology of the present invention thought. Indubitable, at the technology of the present invention thought range, be not limited only to this. Interest field of the present invention should take accompanying right request scope as the basis, make an explanation.
Description of drawings
The present invention is further described below in conjunction with drawings and Examples.
Fig. 1 is the block diagram of domestic network system of the present invention.
Fig. 2 is the block diagram of interactive network control protocol of the present invention.
Fig. 3 a is the interface schematic diagram between interlayer when physics interlayer 90 connects dependent shape transmission medium among Fig. 2.
Fig. 3 b is the interface schematic diagram between interlayer when physics interlayer 90 connects independent shape transmission medium among Fig. 2.
Fig. 4 a is the structured flowchart of the APDU in the application interlayer 60 among Fig. 3 a, the 3b.
Fig. 4 b is the structured flowchart of the APDU in the application interlayer 70 among Fig. 3 a, the 3b.
Fig. 4 c is the detailed block diagram of NLC among the NPDU.
Fig. 4 d is that Fig. 3 a, 3b are the structured flowchart of the HCNPDU in the attached interlayer 71 of domestic network control.
Fig. 4 e is that Fig. 3 a, 3b are the structured flowchart of the data framework in the data relay interlayer.
Fig. 4 f is that Fig. 3 a, 3b are the structured flowchart of the data framework in the physics interlayer 90.
Fig. 5 is for producing the 1st embodiment of repetitive data packet.
Fig. 6 is the 1st embodiment flow chart of repetitive data packet determination methods of the present invention.
Fig. 7 a and 7b are for producing the 2nd embodiment of repetitive data packet.
Fig. 8 is the flow chart of the 2nd embodiment of repetitive data packet determination methods of the present invention.
The number in the figure explanation:
1: domestic network system 2: the Internet network
3:LnCP server 4: client computer
10: gateway 20~23: network manager
30,31:LnCP router four 0~49: electric equipment
The specific embodiment
As shown in Figure 1, domestic network system 1 is connected to LnCP server 3 by the Internet network 2. Customer equipment 4 is connected to LnCP server 3 by the Internet network 2 in addition. That is, domestic network system 1 is connected into mutually transmission of information to LnCP server 3 and/or customer equipment 4.
The external network of domestic network system 1 comprises the Internet network 2, and the kind of the network based customer equipment 4 of said external also can possess miscellaneous equipment. That is, take this Internet network 2 as example, customer equipment 4 possesses Web server (Websever) (not shown) during for computer, and customer equipment 4 possesses the communication server (Wap sever) (not shown) during for the networking telephone.
LnCP server 3 is connected to respectively domestic network system 1 and customer equipment 4 by specific registration and deregistration procedure, receives supervision and control command etc. from customer equipment 4, and the information by the Internet network 2 usefulness particular forms is sent to domestic network system 1 again. In addition, LnCP server 3 receives and stores the information of particular form or it is sent to customer equipment 4 from domestic network system 1. In addition, LnCP server 3 stores self or the information of generation is sent to above-mentioned domestic network system 1. That is, domestic network system 1 is connected in LnCP server 3, can download the service content that LnCP server 3 provides.
Domestic network system 1 comprises gateway 10, network manager 20~23, LnCP router three 0,31, LnCP adapter (adapter) 35,36 and a plurality of electric equipment 40~49. Gateway 10 has the function that connects the internet. Network manager 20~23 is fulfiled the environment set of electric equipment 40~49 and management function. LnCP router three 0,31 connections of being responsible between the transmission medium. LnCP adapter 35,36 can make network manager 22 and electric equipment 46 be connected to transmission medium.
The transmission medium that network in the domestic network system 1 is shared by each electric equipment 40~49 is coupled to each other and forms. This transmission medium can utilize the transmission medium (non-standardized transmission medium) of the data relay interlayer unnormalizeds such as RS-485 or lower powered RF, the transmission medium (standardized transmission medium) that maybe can utilize power line or IEEE 802.11 isotactics to format.
Network in the domestic network system 1 by with the Internet network 2 are the networks that are separated from each other. That is, the network in the above-mentioned domestic network system 1 consists of the separate network that is connected by wired or wireless transmission medium. Here, although separate network comprises the network that the coupled situation that is in is physically separated in theory.
Domestic network system 1 comprises master control (Master) equipment, subordinate (Slave) equipment. Main control device can control apparatus equipment 40~49 or is monitored its duty. Slave can be responded the request of main control device and the variation information of notice oneself state. This main control device comprises network manager 20~23, and slave comprises electric equipment 40~49. This network manager 20~23 comprises information and the control code of the electric equipment 40~49 that will control, and programmed mode is controlled operation, or receives after the information of LnCP server and/or customer equipment 4 inputs, controls operation. In addition, as shown in the figure, be connected with a plurality of network managers 20~23 o'clock, for carry out and other network manager 20~23 between exchange message, also for the synchronization of information and control, these network managers 20~23 not only can be main control devices but also can be slave. Namely should be a kind of, be an equipment from physical significance, but be the equipment (being compatible equipment) that has simultaneously master control and subordinate function in theory.
In addition, these network managers 20~23 and electric equipment 40~49 can directly be connected on the network (power line network as shown, RS-485 network, RF network). In addition, can also pass through LnCP router three 0,31 and/or LnCP network adapter 35,36 connect.
In addition, electric equipment 40~49 and/or LnCP router three 0,31 and/or LnCP network adapter 35,36 be registered on the network manager 20~23, and according to product information, receive unique theoretical address (for example 0x00,0x01 etc.). This theoretical address and product code (for example air-conditioning is ' 0x02 ', and washing machine is ' 0x01 ') in conjunction with after, use as node address (Node Address). For example, the identical node address by 0x02009 (air-conditioning 1) and 0x0201 (air-conditioning 2) is by electric equipment 40~49 and/or nCP router three 0,31 and/or LnCP network adapter 35,36 identifications. In addition, can also use by specific benchmark (product of the same race, the setting position of product, user etc.) group address that arranges can the more than one electric equipment 40~49 of one-off recognition when using the group address and/or LnCP router three 0,31 and/or LnCP network adapter 35,36. In this group address, this dominant group address is group (cluster) address of a plurality of customer equipment of appointment when being set as " 1 " address choice value (following is mark flag) in dominant group address. The tacit declaration group address is added to " 1 " to all bits (byte) value of theoretical address and/or product code, and then can specify a plurality of customer equipments. Here, it is to be noted especially dominant group address is commonly referred to group's code.
Domestic network system 1 can make network manager 20~23 by the interactive network control protocol (LnCP) among Fig. 2, LnCP router three 0,31, LnCP network adapter 35,36 and electric equipment 40~49 between mutual transmission information. And then, network manager 20~23, LnCP router three 0,31, LnCP network adapter 35,36 and electric equipment 40~49 carry out network service by this LnCP.
As shown in Figure 2, LnCP comprises application software 50, uses interlayer 60, network interlayer 70, data relay interlayer 80, physics interlayer 90 and instrumental variable management interlayer 100. Application software 50 is brought into play network managers 20~23, LnCP router three 0,31, LnCP network adapter 35,36, is reached the inherent function of electric equipment 40~49. And provide and the function of using interlayer 60 and connecting, in order to carry out operated from a distance and supervision at network. Use interlayer 60 and provide service to the user, and have the function that is communicated to the next interlayer after information that the user is provided or the order composition information. Network interlayer 70 can be network manager 20~23, LnCP router three 0,31, LnCP network adapter 35,36 and electric equipment 40~49 between connect and to be reliable network. Data relay interlayer 80 provides and connects the control function, is used for connecting the common transmitted media. Physics interlayer 90 provides network manager 20~23, LnCP router three 0,31, LnCP network adapter 35,36 and electric equipment 40~49 between physical interface and the rule of the bit (byte) that will transmit. The instrumental variable (node parameter) of the node that uses in each interlayer of instrumental variable management interlayer 100 management configuration.
Detailed says, application software 50 also comprises the attached interlayer 51 of network management. The attached interlayer 51 of network management has the management node instrumental variable, and management is connected in network manager 20~23 on the network, LnCP router three 0,31, LnCP network adapter 35,36 and the function of electric equipment 40~49. That is, the attached interlayer 51 of this network management has a kind of function, can manage interlayer 100 by instrumental variable, sets instrumental variable numerical value or the variable that utilizes the medium instrumental variable is managed. When the equipment that is applicable to LnCP was main control device, the attached interlayer 51 of this network management also has fulfiled the function that consists of network or supervising the network.
In addition, network interlayer 70 comprises that also the home network code controls attached interlayer 71. Net connection has network manager 20~23, LnCP router three 0,31, LnCP network adapter 35,36 and electric equipment 40~49. When utilize power line or IEEE 802.11, the dependent shape transmission medium such as wireless (for example LnCP comprise power line communication (PLC) agreement/or during wireless (wireless) agreement) when consisting of above-mentioned network, in order to divide in theory each network, the home network code is controlled the function that home network code and managing family network code are set in attached interlayer 71 performances. This home network code is controlled attached interlayer 71 by independent shape transmission mediums such as picture RS-485, when separating individual networks from physical significance, is not included among the LnCP. This home network code forms with 4 bytes (byte), is set as at random (random) value or user setting value.
The header (header) that domestic network system 1 needs each interlayer and pull code (trailer) information and be added to from the network protocol message unit (Protocol Data Unit:PDU) that upper interlayer receives is being communicated to the next interlayer.
Shown in Fig. 3 a, 3b, APDU (Application layer PDU) uses the data value (data) that transmits between interlayer 60 and the network interlayer 70. NPDU (Network Layer PDU) is the data value that transmits between network interlayer 70 and data relay interlayer 80 or the attached interlayer 71 of home network code. HCNPDU (Home Code Control Sublayer PDU) is the data value that transmits between network interlayer 70 (definite say the attached interlayer 71 of home network code) and data relay interlayer 80 or the attached interlayer 71 of home network code. Press data value (data) between data relay interlayer 80 and the physics interlayer 90, data framework unit forms the interface.
Fig. 4 a is depicted as the APDU structure in using interlayer 60.
AL (APDU Length) territory is the territory of the length (AL is to the length of data framework group) of expression APDU, and minimum of a value is that 4 maximums are 77.
AHL (APDU Header Length) territory be the expression APDU header (header) length (AL is to the length of ALO), the territory, be 3 bytes when not expanding, can expand to 7 bytes. For the encipherment of data framework group, can expand to 7 bytes in order to change the APDU headers (header) such as application protocol in the LnCP procotol.
ALO (Application Layer Option) territory is the territory for extend information 3, and when for example this territory was set to " 0 ", information processing was out in the cold when other value was housed. (sic).
The data framework group is processing user's control information or the territory of project information, and its structure is along with the variation of the contained value of ALO changes.
Fig. 4 b is the structure of the NPDU in the network interlayer 70, and Fig. 4 c is the detailed construction schematic diagram of the NLC among the NPDU.
SLP (Start of LnCP Packet) territory is the domain of expression packet, and its value is 0x02.
The territory of DA (Destination Address) and SA (Source Address) is the destination of the packet that will transmit and the node address of the side of delivering letters, and each is made of 16 bits. Here upper 1 bit is the mark (flag) of demonstration group address, the kind (product code) that ensuing 7 bits are product, and the next 8 bits comprise the theoretical address of getting. Have the network manager 20~23 of a plurality of one species or electric equipment 40~49 o'clock, above-mentioned the next 8 bits are used for dividing above-mentioned each network manager 20~23 or electric equipment 40~49.
PL (Packet Length) territory is for showing the territory of the NPDU overall length that will transmit, and its minimum of a value is 12 bytes, and maximum is 100 bytes.
SP (Service Priority) territory is to give the territory that transmission information transmits priority bit, is made of 3 bits. Each transmits order of priority such as the table 2 of information.
When the subordinate customer equipment is replied the request of master control customer equipment, the order of priority of the solicited message that retinue's master control customer equipment receives.
Table 2
Order of priority | Value | Applicable (Application Layer) |
High (High) | 0 | -when transmitting emergence message |
In (Middle) | 1 | -when transmitting the general data bag-when transmission map network (Online State) reaches the project information of non-presence (Offline State) variation online |
Standard (Normal) | 2 | -when transmitting notice and consisting of the information of network-during transmission general item information |
Low (Low) | 3 | -when transmitting the value according to the producer that downloads or upload |
NHL (NPDU Header Length) territory is the territory of using for expansion NPDU header (header) (the NLC territory of SLP), is 9 bytes when not expanding, and maximum can expand to 16 bytes.
PV (Protocol Version) territory is the territory that shows 1 byte of the network protocol version that adopts, and is made of upper 4 bits and the next 4 bits. Upper 4 bits are version (version) territory, and the next 4 bits are server version (sub-version) territory. Version (version) and server version (sub-version) are respectively with 16 system mark method version of display.
NPT (Network layer Packet Type) territory is 4 bit field of dividing data bag kind in the network interlayer. LnCP comprises request data package (Request Packet), reply data bag (Response Packet), notification data bag (Notification Packet). The NPL territory of master control customer equipment should be set as request data package or notification data bag, and the NPL territory of slave should be set as reply data bag or notification data bag. The NPT value of packet kind is as shown in table 3 below.
Table 3
Value | Explanation |
0 | Request data package |
1~3 | Do not use |
4 | The reply data bag |
5~7 | Do not use |
8 | The notification data bag |
9~12 | Do not use |
13~15 | Controlling the interface that attached interlayer connects with the home network code is worth with reservation |
TC (Transmission Counter) territory is network interlayer generation communication failure, in the time of can not successfully sending request data package or reply data bag, in order to improve the success rate that transmits request data package or reply data bag, 2 bit field that transmit or repeatedly transmit again. The destination can utilize the numerical value in TC territory, detects duplicate message. With the scope of the TC thresholding of NPT value with following table 4.
Table 4
The packet kind | Value (scope) |
Request data package | 1~3 |
The vertical packet of answering | 1 |
The notification data bag | 1~3 |
PN (Packet Number) territory is made of 2 bits. In slave, be used with TC in order to detect repetitive data packet PN (Packet Number) territory. In the master control customer equipment, be used in order to process a plurality of communication cycles. Scope with the PN territory of NPT value is as shown in table 5 below.
Table 5
The packet kind | Value (scope) |
Request data package | 0~3 |
The reply data bag | The PN thresholding of duplicate requests packet |
The notification data bag | 0~3 |
The APDU territory is the unit that uses the Internet protocol data value (data) of the application interlayer that transmits between interlayer 60 and the network interlayer 70. The APDU minimum of a value is 0 byte, and maximum is 88 bytes.
CRC (Cyclic Redundancy Check) territory is 16 bit field for the mistake that detects data accepted bag (SLP is to the APDU territory).
ELP (End of LnCP Packet) territory is the territory that shows the packet end, and its value is 0x03. If receive with packet length field in the corresponding data value of length (data), can not detect the ELP territory, then be shown packet error.
Fig. 4 d is that the home network code is controlled the HCNPDU structure chart in the attached interlayer 71.
As shown in the figure, the upper bit position of NPDU also comprises HC (Home Code) territory.
The numerical value of this home network code is made of 4 bytes. This home network code has unique value in the distance of the propagable circuit of packet.
Fig. 4 e is depicted as the structure of the data framework in the data relay interlayer.
The header (header) of the data framework of the data relay interlayer of LnCP and pull the code (trailer) form different structures according to transmission medium. When data relay interlayer 80 uses the transmission medium of unnormalizeds, the header of data framework (header) and pull code and should have Null territory (Null Field). As use normalized transmission medium, then with the regulation of procotol. The NPDU territory is the unit from the data value of upper network interlayer 70 transmission. HCNPDU is the data value unit that physics interlayer 90 uses during for dependent shape transmission mediums such as power line or IEEE 802.11, is the data value unit of appending 4 byte home network codes at the NPDU front end. Data relay interlayer 80 is not divided the processing of NPDU and HCNPDU.
Fig. 4 f is the data framework structure in the physics interlayer 90.
The physics interlayer 90 of LnCP has the function that physical signalling is sent to transmission medium. As the physics interlayer 90 of LnCP procotol, the transmission medium of the unnormalized data relaying interlayer 80 that can use be equal to RS-485 or low power RF. Can also use the normalization transmission medium that is equal to such as power line or IEEE 802.11. In the domestic network system 1 of applicable LnCP network, for network manager 20~23 and electric equipment 40~49 and RS-485 or LnCP router three 0,31, reach LnCP adapter 35,36 and connect, utilized the signal standards (level) of UART (Universal Asynchronous Receiver and Transmitter) data framework structure and RS-232. When utilizing netting twine (serial bus) to connect between each equipment, UART flows at communication line control bit signal. Shown in Fig. 4 f, in LnCP, the packet that upper interlayer is sent here, be transformed into the UART data framework unit of 10 bit sizes after, transmit by transmission medium. The UART data framework is made of the start bit (Start Bit) of 1 bit, the data value (data) of 8 bits and the position of rest (Stop Bit) of 1 bit. Above-mentioned UART data framework does not use effect position (Parity Bit). The UART data framework is passed on from start bit, passes at last position of rest. When the domestic network system 1 of applicable LnCP utilizes UART, do not use the data framework header (frame header) and the framework that append to pull code (frame trailer).
The type of the following node variable thresholding that will illustrate is equivalent to a kind of in a plurality of thresholding types in the table 6.
Table 6
Mark | The thresholding type | Explanation |
char | signed char | Thresholding is non-to be 1 byte when dominant |
uchar | unsigned char | Thresholding is non-to be 1 byte when dominant |
int | signed int | Thresholding is non-to be 2 bytes when dominant |
uint | unsigned int | Thresholding is non-to be 2 bytes when dominant |
long | signed long | Thresholding is non-to be 4 bytes when dominant |
ulong | unsignedlong | Thresholding is non-to be 4 bytes when dominant |
string | string | When last byte is the text line thresholding of NULL |
FILE | - | Thresholding with file structure |
This network interlayer 70 has following function.
The 1st is address management function, and address management function is the function of the address of the network manager 20~23 that stores self address and destination or electric equipment 40~49. At this moment, use each contained network manager 20~23 of address or information and the positional information of each electric equipment 40~49, the group address can be specified, and stereophonic FM broadcasting (multicasting) and broadcasting (broadcasting) communication can be supported.
The 2nd is the control function that flows, the function of the control function that flows for flowing by communication cycle (cycle) control packet.
The 3rd is wrong control function, and mistake control function is transmitted the function of thresholding again for when in setting time fails to receive the reply data bag. Again the number of transmissions maximum constraints is 3 times.
The 4th is affairs control (Transaction Control) function, affairs control (Transaction Control) function is by detecting repetitive data packet, prevent the information that repeat fulfillment is same, and control the function of simultaneously multiple communication cycle.
The 5th is route control function, and route control function be at the transmission of data bag between transmission medium independently more than two, and in order to prevent the unlimited amplification (loue) of 0~36 of each LnCP router three, the mobile function of control packet.
This network interlayer 70 provides service take communication cycle as unit. This communication cycle has { 1-Request, 1-Response} (1-request 1-replys), { 1-Request, Multi-Responses} (1-request majority-reply), { 1-Notification} (1-notice), { four kinds of Repeated-Notification} (repeatedly-notice) etc.
{ 1-Request, the 1-Response} communication cycle is that a main control device transmits a request data package (Request Packet) to a slave, and slave transmits the communication cycle of a reply data bag (Request Packet) of corresponding above-mentioned request.
{ 1-Request, Multi-Responses} communication cycle are that a main control device transmits a request data package to a plurality of slaves, and each slave also transmits the communication cycle of the reply data bag of acknowledges requests packet successively.
The 1-Notification} communication cycle be equipment (master control or subordinate) take one or more equipment (master control or subordinate) as object, transmit a notification data bag after, at once finish the communication cycle of communication.
The Repeated-Notification} communication cycle be the 1-Notification} communication cycle is in order to ensure transmission reliability, and repeatedly transmit same packet after, finish the communication cycle of communication.
Above-mentioned communication cycle and type of data packet and transmission service (NLservice) are with table 7a.
Table 7a
Communication cycle | Type of data packet | Transmission service (NLService) |
{1-request, 1-response} | Request data package-reply data bag | Acknowledged(0) |
{1-request, multi-response} | Request data package-reply data bag | Acknowledged(0) |
{1-notification} | The notification data bag | Not-acknowledged(1) |
{Repeated -notification} | The notification data bag | Repeated-notification(2) |
The value of the node instrumental variable (Node Parameter) that network interlayer 70 uses is with table 7b.
Table 7b
Title | Form | Explanation | |
Product code | uchar ProductCode | The code that gives for the standalone feature of gathering product. | |
Theoretical address | uchar NP_LogicalAddress | In order to distinguish a plurality of products with same product code, the address of 1 byte. | |
Group code | uchar NP_ClusterCode | Distinguish the address of 1 byte of each equipment. | |
The home network code | ulong NP_HomeCode | The address of 4 bytes of define equipment home network code | |
Maximum is the number of transmissions repeatedly | constant uchar SendRetries | Acknowledged when service, the maximum of request data package is seemingly when the number of transmissions or Repeated-notification service, repeatedly the number of transmissions | |
Suspend transmission |
constant uint
| Network interlayer | 70 is waited for the time of DLLCompleted unit (primitive) behind |
Reply and delay in this world | uint ResDelayTime | Carry out Acknowledged when service take the group address as object, receive request |
Before the slave transmission reply data bag of packet, the time of delaying. The value that any (random) produces in 0~5000ms scope. | ||
The maximum relaying delay time | constant uint RepeaterDelayTime | In network when normal operation,, before the received side of normal data packet that spreads out of from the side of delivering letters received, in the maximum delay time (ms) of permission, this value was 5000ms. |
The repetitive data packet elapsed time | constant uint DupElapsedTime | When slave receives request data package continuously from same main control device, ensure independently minimum time interval between the request data package of each packet, this value is 10,000ms. |
Below be in the slave, the packet that has received carried out the explanation of the repetitive data packet detecting method of repetitive data packet detecting.
Fig. 5 is for producing the 1st embodiment schematic diagram of repetitive data packet.
Although main control device spreads out of request data package, slave normally receives and processes after the request data package, and the reply data bag is transferred to main control device, in the transmission loss is arranged also. At this moment, when main control device fails to receive the reply data bag in suspending (TimeOut), add 1 for the TC thresholding of request data package after, be transferred to again slave. At this moment, slave judges by the value of utilizing the TC packet whether the request data package that has received is repeated transmission. The value of TC packet is contained in the NPDU header of expression the number of transmissions.
Be illustrated in figure 6 as the flow chart of repetitive data packet determination methods of the present invention.
Detailed says so that in the stage (S101), slave is from main control device receive data bag; In the stage (S102), when the packet that has received is judged as request data package, carry out the stage (S103), otherwise finish.
In the stage (S103), slave stores the value in the PN territory of the packet that has received, SA territory respectively with PN_old, SA_old.
In the stage (S104), slave receives new data packets from main control device; The packet of confirming this reception in the stage (S104) is request data package whether. Request data package is then carried out the stage (S106) in this way. Otherwise, carry out the stage (S111), and new data packets confirmed as non-repetitive data packet, and finish.
In stage (S106), slave is used respectively TC, and PN, SA read TC territory, the PN territory of new data packets, the value in SA territory.
In the stage (S107 to S109), the value of the packet PN_old, SA_old value and new data packets PN, the SA that are stored according to new data packets TC is compared respectively. As when satisfying all comparison condition, (S110) is defined as repetitive data packet to new data packets in the stage. Otherwise, carry out the stage (S111), and new data packets confirmed as non-repetitive data packet, and finish. In addition, in the stage (S107), check that whether the TC value is greater than " 1 ". In addition, when in the stage (S109), confirming address, the side of delivering letters, cause is within the time (TimeOut) of the reply data bag of main control device wait slave, other main control device also can be take same slave as the object implements communication, so slave need confirm also whether the address, the side of delivering letters of request data package is identical.
In addition, after slave received youngest request data package, through after the repetitive data packet elapsed time (DupElapsedTime) as network interlayer instrumental variable, the PN_old that stores, SA_old initialized.
Shown in Fig. 7 b, when transmitting request data package 1 such as main control device 400 to slave 500, by path 1 the transmission of data bag 1. In addition, the request data package 11 by transponder 600, receive slave 500 by time interval of repetitive data packet size blanking time by path 2. Only have, because the repetitive data packet by a plurality of transmission paths receives when being same packet with the transmission in different path, the repetitive data packet between the repetitive data packet of reception is not more than the max-forwards delay time (RepeaterDelayTime) blanking time. Here, the max-forwards delay time (RepeaterDelayTime) is the value that comprises processing data packets time and the actual transmissions media delivery time of the transponder 600 on the transmission path.
Because of main control device 400 every transmission packet independently, just add " 1 " to the PN value, so main control device to same independent communication period treatment 3 times after, at the 4th time, max-forwards was not carried out to the process (sic) of the same packet of same slave 500 transmission in the delay time.
The flow chart of repetitive data packet determination methods as shown in Figure 8.
In the stage (S121), slave 500 is from main control device 400 receive data bags. At stage (S122), slave stores the value in the TC territory of data accepted bag, PN territory, SA territory and PT territory respectively with TC_old, PN_old, SA_old and PT_old.
In the stage (S123), slave 500 is from main control device 400 receive data bags. At stage (S124), then carry out the stage (S125) such as packet and the interval between the new data packets of former reception less than the max-forwards delay time (RepeaterDelayTime). Otherwise, finish.
At stage (S125), slave 500 reads the value in the TC territory of new data packets, PN territory, SA territory and PT territory respectively with TC, PN, SA and PT.
At stage (S126 to S129), the TC_old of the packet that is stored, PN_old, the value of SA_old and PT_old and the TC of new data packets, PN, the value of SA and PT compares. As satisfy all comparison condition, then at stage (S130), new data packets is confirmed as repetitive data packet. Otherwise, carry out the stage (S131), new data packets is confirmed as non-repetitive data packet, and finish. Request data package and notification data bag all are applicable to the method.
In addition, among the network interlayer 70a of slave 500, such as the coated repetitive data packet that is judged as of data, then the solicited message that comprises DUPLICATED_PKT (1) value is received (ReqMsgRcv) unit and be communicated to application interlayer 60a.
The invention effect
In sum, the domestic network system of providing and repetitive data packet determination methods are provided in the present invention, namely the electric equipment in the domestic network system are provided the communication of the functions such as control and supervision general with rule.
In addition, the present invention has detection and processes the same packet that repeats to receive, and then improves the effect of data-handling efficiency.
In addition, the present invention has in having the network of mutually different a plurality of transmission paths, detects and process the effect of the packet that repeats to receive.
Claims (26)
1, a kind of domestic network system is characterized in that, the domestic network system that the network of the employing specific network protocols of being communicated by letter between them by at least more than one electric equipment, network manager and being used for forms,
Above-mentioned electric equipment receives normal packet from above-mentioned network manager, and stores the package number thresholding of above-mentioned packet; Then receive new data packets, and the package number thresholding of the package number thresholding of the packet of above-mentioned new reception and above-mentioned storage is compared; And according to the number of transmissions of above-mentioned comparison and above-mentioned new data packets, determine whether repetitive data packet of above-mentioned new data packets, and process.
2, domestic network system according to claim 1, it is characterized in that in the package number thresholding of above-mentioned new data packets identical with the package number thresholding of the above-mentioned packet that has stored, and when the package number thresholding of above-mentioned new data packets was larger than " 1 ", above-mentioned electric equipment was defined as repetitive data packet to above-mentioned new data packets.
3, domestic network system according to claim 1 and 2 is characterized in that above-mentioned electric equipment judges that according to the transmission counter thresholding of above-mentioned new data packets above-mentioned the number of transmissions is the domestic network system of feature.
4, domestic network system according to claim 1 and 2, the type of data packet that it is characterized in that above-mentioned packet and new data packets is request data package.
5, domestic network system according to claim 1 and 2, it is characterized in that the comparison of the deliver letters side address thresholding of above-mentioned electric equipment by appending address, the side of the delivering letters thresholding of carrying out above-mentioned packet and above-mentioned new data packets, above-mentioned new data packets is judged as repetitive data packet.
6, domestic network system according to claim 5, it is characterized in that in addition, above-mentioned electric equipment is receiving above-mentioned new data packets, and through after the repetitive data packet elapsed time (DupElapsedTime) as the particular intermediaries variable, address, the side of delivering letters thresholding, package number thresholding and the number of transmissions of above-mentioned storage initialized.
7, domestic network system according to claim 1 is characterized in that above-mentioned procotol is interactive network control protocol (LnCP).
8, a kind of repetitive data packet determination methods of domestic network system is characterized in that,
Comprise with the next stage:
Receive the stage of normal data packet according to specific network protocols;
Store the stage of the package number thresholding of above-mentioned packet;
Receive the stage of new data packets;
The 1st comparison phase that the package number thresholding of above-mentioned new data packets and the package number thresholding of above-mentioned storage compare;
According to result and the new data packets the number of transmissions of above-mentioned the 1st comparison phase, determine above-mentioned new data packets stage of repetitive data packet whether.
9, the repetitive data packet determination methods of domestic network system according to claim 8, it is characterized in that in above-mentioned definite stage, the package number thresholding of above-mentioned new data packets is identical with the package number thresholding of the above-mentioned packet that has stored, above-mentioned new package number thresholding according to bag is defined as repetitive data packet to above-mentioned new data packets during greater than " 1 ".
10, according to claim 8 or the repetitive data packet determination methods of 9 described domestic network systems, it is characterized in that judging above-mentioned the number of transmissions according to the transmission counter thresholding of above-mentioned new data packets.
11, according to claim 8 or the repetitive data packet determination methods of 9 described domestic network systems, it is characterized in that above-mentioned repetitive data packet determination methods is to append to comprise type of data packet affirmation stage of request data package whether of confirming above-mentioned packet and new data packets.
12, according to claim 8 or the repetitive data packet determination methods of 9 described domestic network systems, it is characterized in that above-mentioned repetitive data packet determination methods is to append the 2nd comparison phase that address, the side of the delivering letters thresholding of address, the side of the delivering letters thresholding that comprises above-mentioned packet and above-mentioned new data packets compares; Above-mentioned definite stage is judged as repetitive data packet to above-mentioned new data packets according to above-mentioned the 1st comparison phase and the 2nd comparison phase.
13, the repetitive data packet determination methods of domestic network system according to claim 12, it is characterized in that above-mentioned repetitive data packet determination methods is to comprise, receive above-mentioned new data packets, and through as the repetitive data packet of particular intermediaries variable after the elapsed time, address, the side of delivering letters thresholding, package number thresholding and the number of transmissions of above-mentioned storage carried out the initialized stage.
14, the repetitive data packet determination methods of domestic network system according to claim 8 is characterized in that above-mentioned procotol is the interactive network control protocol.
15, a kind of domestic network system is characterized in that,
By at least more than one electric equipment, at least more than one network manager and for the communication between them, and connect in the domestic network system that their network forms by specific procotol,
Above-mentioned electric equipment receives normal packet, and stores the judgement thresholding of repetitive data packet at above-mentioned packet; Then receive new data packets, and above-mentioned storage repeat judge that the packet repetitive data packet of thresholding and above-mentioned new reception judges that thresholding compares; According to above-mentioned comparison, determine whether repetitive data packet of above-mentioned new data packets, and process above-mentioned new data packets.
16, domestic network system according to claim 15 is characterized in that the judgement thresholding of above-mentioned repetitive data packet comprises address, the side of delivering letters thresholding at least, package number thresholding, type of data packet and counter thresholding.
17, according to claim 15 or 16 described domestic network systems, it is characterized in that the address thresholding of delivering letters, package number thresholding, type of data packet thresholding in above-mentioned storage and transmission counter thresholding and above-mentioned new thresholding distinguish when identical, above-mentioned electric equipment is defined as repetitive data packet to above-mentioned new data packets.
18, domestic network system according to claim 15 is characterized in that being formed with a plurality of transmission paths between above-mentioned electric equipment and the above-mentioned network manager.
19, domestic network system according to claim 18, it is characterized in that above-mentioned electric equipment receives above-mentioned packet after, determine whether repetitive data packet of the above-mentioned new data packets that receives in the delay time in max-forwards.
20, domestic network system according to claim 15 is characterized in that above-mentioned procotol is interactive network control protocol (LnCP).
21, a kind of repetitive data packet determination methods of domestic network system is characterized in that,
Comprise with the next stage:
Receive the stage of normal data packet according to specific network protocols;
In above-mentioned packet, store the stage that repetitive data packet is judged thresholding;
Receive the stage of new data packets;
The above-mentioned repetitive data packet that has stored is judged the stage that the repetitive data packet judgement thresholding of thresholding and above-mentioned new data packets compares;
According to above-mentioned comparison, determine new data packets stage of repetitive data packet whether.
22, the repetitive data packet determination methods of domestic network system according to claim 21 is characterized in that the judgement thresholding of above-mentioned repetitive data packet comprises address, the side of delivering letters thresholding, package number thresholding, type of data packet and counter thresholding at least.
23, according to claim 21 or the repetitive data packet determination methods of 22 described domestic network systems, it is characterized in that in above-mentioned definite stage, address, the side of the delivering letters thresholding of above-mentioned storage, package number thresholding, type of data packet thresholding and transmission counter thresholding and the thresholding of above-mentioned new data packets are distinguished when identical, and above-mentioned new data packets is defined as repetitive data packet.
24, the repetitive data packet determination methods of domestic network system according to claim 21 is characterized in that above-mentioned domestic network system has a plurality of transmission paths.
25, the repetitive data packet determination methods of domestic network system according to claim 24, before it is characterized in that above-mentioned determination methods also is included in above-mentioned comparison phase, receive above-mentioned packet, and confirm whether to receive in the delay time in max-forwards the affirmation stage of above-mentioned new data packets.
26, the repetitive data packet determination methods of domestic network system according to claim 21 is characterized in that above-mentioned procotol is the interactive network control protocol.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2004100718263A CN1747410A (en) | 2004-09-06 | 2004-09-06 | Household network system and repeating data packet discrimination therefor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2004100718263A CN1747410A (en) | 2004-09-06 | 2004-09-06 | Household network system and repeating data packet discrimination therefor |
Publications (1)
Publication Number | Publication Date |
---|---|
CN1747410A true CN1747410A (en) | 2006-03-15 |
Family
ID=36166742
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNA2004100718263A Pending CN1747410A (en) | 2004-09-06 | 2004-09-06 | Household network system and repeating data packet discrimination therefor |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1747410A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104883669A (en) * | 2015-06-04 | 2015-09-02 | 中国石油天然气集团公司 | Data processing device, base station and communication system |
-
2004
- 2004-09-06 CN CNA2004100718263A patent/CN1747410A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104883669A (en) * | 2015-06-04 | 2015-09-02 | 中国石油天然气集团公司 | Data processing device, base station and communication system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR100996309B1 (en) | Network device | |
CN1820457A (en) | Home network system | |
CN1747410A (en) | Household network system and repeating data packet discrimination therefor | |
CN1767472A (en) | Household network system | |
CN1747413A (en) | Household network system | |
CN1767459A (en) | Household network system and its electrical appliance equipment | |
CN1747416A (en) | Household network system | |
CN1767481A (en) | Household network system and information acquisition method and electrical appliance | |
CN1767467A (en) | Household network system | |
CN1747414A (en) | Household network system | |
CN1767466A (en) | Household network system | |
CN1767469A (en) | Household network system | |
CN1767465A (en) | Household network system | |
CN1767471A (en) | Household network system | |
CN1747441A (en) | Transmission of data link layer | |
CN1747411A (en) | Household network system | |
CN1767462A (en) | Household network system | |
CN1767458A (en) | Household network system and its affirmation method | |
CN1767468A (en) | Household network system | |
CN1767460A (en) | Household network system and its affirmation method | |
CN1767476A (en) | Household network system and its variable acquisition method and associated electrical appliance equipment | |
CN1767463A (en) | Household network system | |
CN1767461A (en) | Household network system | |
CN1767473A (en) | Household network system and its item informing method and electrical appliance equipment | |
CN1767464A (en) | Household network system |
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 |