CN102724233A - Method for realizing communication with IPv6 process by IPv4 protocol stack in information appliance system - Google Patents

Method for realizing communication with IPv6 process by IPv4 protocol stack in information appliance system Download PDF

Info

Publication number
CN102724233A
CN102724233A CN2011101495949A CN201110149594A CN102724233A CN 102724233 A CN102724233 A CN 102724233A CN 2011101495949 A CN2011101495949 A CN 2011101495949A CN 201110149594 A CN201110149594 A CN 201110149594A CN 102724233 A CN102724233 A CN 102724233A
Authority
CN
China
Prior art keywords
household electrical
electrical appliances
ipv6
control centre
ipv4
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2011101495949A
Other languages
Chinese (zh)
Inventor
刘�东
刘铭
步日欣
谷晨
董伟
程远
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BEIJING TIANDI INTERCONNECTION INFORMATION TECHNOLOGY Co Ltd
Original Assignee
BEIJING TIANDI INTERCONNECTION INFORMATION TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BEIJING TIANDI INTERCONNECTION INFORMATION TECHNOLOGY Co Ltd filed Critical BEIJING TIANDI INTERCONNECTION INFORMATION TECHNOLOGY Co Ltd
Priority to CN2011101495949A priority Critical patent/CN102724233A/en
Publication of CN102724233A publication Critical patent/CN102724233A/en
Pending legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The invention discloses a method for realizing communication with an internet protocol version 6 (IPv6) process by an IPv4 protocol stack in an information appliance remote control system. In a remote control system of information appliance, an information appliance control center is usually used to carry out organization and management on an appliance local area network; and a web browser at a client is used to carry out remote control on running of the appliance and check the running state. Therefore, on the basis of an analysis of a processing method of a domain resolution address format by an IPv4/IPv6 protocol stack, the invention brings forward and realizes a method with compatibility of IPv4 and IPv6; according to the method, information appliance control centers are combined and functions including a dual protocol stack and proxy and the like are increased so as to realize remote control on information appliance. According to the invention, in the background of gradual replacement of the IPv4 by the IPv6, a problem of realization of seamless transition and compatibility of the IPv4 and the IPv6 can be effectively solved in the remote control system of information appliance, thereby promoting development of information appliance remote control.

Description

Realize the communication means with the IPv6 process with the IPv4 protocol stack in the home information appliance system
Technical field
The present invention relates in a kind of information household appliances tele-control system with the communication means of IPv4 protocol stack realization with the IPv6 process.
Background technology
Along with the continuous development of information and mechanics of communication and the popularization gradually of application, family develops to digitlization, informationization, intelligentized direction, is constantly satisfying people for amusement, information, comfortable, convenient, pursue freedom.The information household appliances Long-distance Control adapts to the product of this trend just.The main feature of information household appliances is digitlization, intellectuality and networked.Information household appliances comprise STB, WEB game machine, WEB TV, and all can be through the consumer electronics product of network system interactive information to also have palmtop PC, Hand held PC, wearable PC etc., and its product category will be fettered an imagination by us in future.In addition, digital network technology is implanted refrigerator, washed also that traditional household electrical appliances such as machine, microwave oven also become the important developing direction of current information man power technology.For example, the refrigerator of intelligentized, networking can be placed an order through the Email supermarket according to the consumption situation of stored goods in the refrigerator automatically, and the supermarket will deliver the article of needs to come to one's home then.
IT-applied household appliances are integrated in the communication technology, computer technology and consumer electronics on the household electrical appliance, and set up the home networking environment on this basis.Its essence is exactly: from existing mobile communication equipment and conventional personal computer, separate some functions commonly used; Combine closely with digital technology and network technology again; Make it to penetrate in many entities, thereby computer and home appliance are ideally combined together with a kind of decomposed form that more is tending towards simple exquisiteness.Wherein, " local area network (LAN) of being made up of household electrical appliance through Internet remote access " become an important symbol of following family, realizes the remote control domestic electrical equipment operation and checks that the function of household electrical appliances running status also is a direction of tame electric control development through Web browser.
But; The IPv4 agreement of current use can not satisfy the development of IT-applied household appliances far away; No matter from the development of computer itself; Still the scale from Internet all has its great limitation with aspects such as network transmission speed, service quality (Qos), transmission securities: the IP address of (1) 32bit will exhaust soon, and The application of new technique such as PDA, wireless device, 3G mobile phone intensify the short contradiction in IP address more; Even automobile, refrigerator all need a global unicast address to link among the Internet, and the address space of IPv4 has satisfied not these demands; (2) service quality of network (Qos) and fail safe are difficult to satisfy the ever-increasing demand of user.
IPv6 is the abbreviation of " Internet Protocol Version 6 ", and it is the IP next generation protocol that is used for substituting current edition IP protocol IP v4 of IETF design.Compared to IPv4, IPv6 has many advantages: (1) address is sufficient: the original intention that IPv6 produces mainly is to IPv4 address shortage problem, promptly from the 32bit address of IPv4, has expanded to the 128bit address of IPv6, has fully solved the deficient problem in address.There is scope the IPv6 address simultaneously, comprises link local address, website local address and propagate the address arbitrarily that this has also further increased the autgmentability of address applications.(2) designs simplification: through measures such as the basic header that is simplified to fix, the verification of adopting 64 bit boundaries location, cancellation IP head and territories, to improve the treatment effeciency of the network equipment to the IP message.(3) flexible extension: introduce extension header flexibly; Require to increase the extension header kind according to different agreement; Rationally arrange prolate-headed order according to processing sequence, wherein the extension header that need handle of the network equipment is in the front portion of heading, and needs extension header that the place end the handles afterbody at heading.(4) the great address space of level zoning: IPv6 makes the address planning of level become possibility; Stipulated the hierarchical structure of each type address simultaneously in the international standard; So both be convenient to searching fast of route; Also help route aggregation, reduction IPv6 routing table size reduces the difficulty that plan the network address.(5) plug and play: IPv6 introduces configuration and reconfiguration technology automatically, realizes automatic additions and deletions renewal configuration for information such as IP addresses, improves the ease of manageability of IPv6.(6) safety next to the shin: IPv6 is integrated IPSec is used for the authentication and the encryption of network layer, for the user provides End-to-End Security, use simpler than IPv4, convenient, can be when moving to IPv6 synchronized development IPSec.(7) QoS considers: newly-increased flow label territory, for sourcesink end fast processing real time business provides possibility, the service terminal that helps low performance is supported application such as the voice of IPv6, video.(8) mobile convenient: MobileIPv6 has strengthened mobility, security feature, the routing characteristic of portable terminal, has reduced the difficulty and the investment of network design, for the user provides permanent online service.
We can say that the These characteristics of IPv6 has fully been catered to future network and merged unified developing direction to IP, and has promoted the runed manageability of IP network.Make up appliance network and the Long-distance Control that realizes household electrical appliances with the IPv6 technology, can overcome the limitation of a lot of IPv4.Because as far as IPv6; Available lsafety level depends on particular network and user's requirement; And can not receive technical limitations, and the needs that can provide the lsafety level of multiple level to satisfy different user, IPv6 can be that each household electrical appliances in the network distribute only IP address, one or several whole world in addition; Make and when the visit appliance network, can set up communication end to end, and can use ipsec protocol to carry out safe communication; The IPv6 agreement also has very powerful automatic allocative abilities; Need do any configuration hardly when making the home appliance that in home network, increases the network enabled function; Home appliance can be accomplished the configuration of information such as its own IP address automatically, and this makes user's new home appliance that can in its home network, induce one very like a cork; At last, can be by oneself to work such as the maintenance of appliance system and upgradings by each manufacturer, promptly convenient for users to use, also made things convenient for the on-line maintenance and the management of producer.Therefore, use the address of IPv6 and data transmission technology to realize the transfer of data of appliance network and the future thrust that Long-distance Control is home appliance remote control system.
The webpage that the Web browser of IPv4 can't be visited based on IPv6 is because the IPv4 address (32) that the IPv4 application program is all used struct sockaddr_in structure storage server; When calling connect function or sendto function; If specified an IPv6 address; And in_addr only has 4 bytes in the structure, can't hold 128 bit address of IPv6, so can not communicate by letter with the IPv6 service processes through client ip v4 protocol stack.If in the Web browser of IPv4, proxy port is set; Be equivalent between browser and Internet, increase one deck forwarding mechanism; The agency becomes " server " end that browser sends request on the one hand; Again as the server forwards request of client to far-end, promptly acting server will be accepted the TCP connection request from browser on the one hand, must send the TCP connection request to Web server again on the other hand on the other hand.
Though the Web browser of IPv4 can't be visited the webpage based on IPv6; But browser is when using the socket function to set up local socket; All use the AF_INET parameter specify to use local IPv4 protocol stack, if on main frame with IPv4/IPv6 dual stack, use the socket function set up local interface the time; Can use AF_INET6 sign to specify to use the IPV6 protocol stack, then just can realize and the communicating by letter of IPV6 service processes through this protocol stack.In case after the connect function connected, network service all had been simplified to the read-write operation of file, all it doesn't matter for this moment and concrete protocol stack and IP address.But the client of using now all is single protocol stack of IPv4 basically, and the code of rewriting browser itself is unpractical.
Like this, can increase the target that " agency service of IPv4/IPv6 dual stack " function realizes communicating by letter in " household electrical appliances control centre ".The network comtrol server of establishing Control Software in household electrical appliances control centre comprises is connected with each network home appliance with the multi-channel network Communication Control card that is attached thereto and through twisted-pair feeder, realizes the centralized control to many network home appliances.Browser is through the setting of proxy port; Request being given " household electrical appliances control centre " handles; Let " household electrical appliances control centre " according to the IPv4 or the IPv6 protocol stack of the different calling systems of the destination address of client-requested through programmed process, realize communicating by letter of client and IPv4 or IPv6 process respectively.
Summary of the invention
The purpose of this invention is to provide in a kind of information household appliances tele-control system with the communication means of IPv4 protocol stack realization with the IPv6 process; Owing in the tele-control system of information household appliances, generally all have an Information Appliance center to carry out the tissue and the abatement functions of household electrical appliances local area network (LAN); And be operation through client Web browser remote control domestic electrical equipment and the state of checking the household electrical appliances operation; Therefore; The present invention increases " agency service of an IPv4/IPv6 dual stack " function in " household electrical appliances control centre ", and browser is given request " household electrical appliances control centre " and handled through the setting of proxy port; Let " household electrical appliances control centre " according to the IPv4 or the IPv6 protocol stack of the different calling systems of the destination address of client-requested through programmed process, realize communicating by letter of client and IPv4 or IPv6 process respectively.
The technical scheme that the present invention adopts is following:
Realize and the communication means of IPv6 process with the IPv4 protocol stack in a kind of home information appliance system, may further comprise the steps:
1) the IPv4/IPv6 dual stack is added in configuration network service in the embedded control system of information household appliances in this system;
2) proxy port of client Web browser is set to the corresponding port of household electrical appliances control centre in the network;
When 3) communicating by letter, browser is given household electrical appliances control centre with the content of importing among the URL and is handled, and household electrical appliances control centre is through domain name mapping, if the IPv4 address, then the agency of household electrical appliances control centre does not handle, and directly sends connection request to Web server; If the address of IPv6, then the agency of household electrical appliances control centre gives IPv6 processing module with request, the IPv6 protocol stack of calling system, and realization is communicated by letter with IPv6's.
Further:
Institute's network configured service comprises: www server, Sendmail server, fire compartment wall.
The Web page or leaf that includes household electrical appliances self-management and control in the said www server makes the user realize the remote monitoring to household electrical appliances through Web browser.
Further:
The agency's of household electrical appliances control centre detailed step is in the said step 3):
3.1) the reception URL of household electrical appliances control centre request, carry out domain name mapping;
3.2) if the IPv4 address, then the agency of household electrical appliances control centre directly sends connection request to Web server, changes step 3.4), otherwise continue step 3.3);
3.3) if the IPv6 protocol stack is then called in the Ipv6 address, set up TCP6 with Web server and be connected, continue 3.4), otherwise return error message;
3.4) set up communication, and between Web server and client, transmit data.
Carry out step 3.1) domain name mapping after, want also whether the judge analysis result is the IP address, if then continue step 3.2), otherwise carry out following treatment step: judge whether to be domain name; If, then resolve domain name, return the IP address, change step 3.2), otherwise return error message.
Be in the electric control center when a plurality of requests of a plurality of requests of a browser or a plurality of browsers are reacted simultaneously, use the daemon listening port of household electrical appliances control centre, make household electrical appliances control centre run into request and just produce subprocess and handle; Promptly monitor socket listenfd through the socket function creation; And call bind and listen function and it is become one monitor socket, make system kernel receive connection request from the client, the connection that the accept function is waited for client is called by household electrical appliances control centre; When the TCP connection request of client Web browser initiation is forwarded to the processing of household electrical appliances control centre; TCP uses three-way handshake to connect, and when finishing when shaking hands, the accept function returns; Its return value is one and is called the new describing word connfd that connects describing word; Household electrical appliances control centre uses the fork function to open a subprocess for this describing word, and handles connection and communicate by letter with this subprocess, and the while parent process still keeps listening state.
When realizing the IPv4/IPv6 dual stack agent functionality of household electrical appliances control centre, use the I/O multiplex technique, in I/O is multiplexing; System congestion is called in select; Wait for that the datagram socket is readable, when select returns socket when readable, system call readline function is read datagram in the buffering area; In connecting foundation and transmission course, household electrical appliances control centre sets up a describing word for each width of cloth picture and each text.
The present invention is the configuration network service in the embedded control system of information household appliances, in this system, adds the IPv4/IPv6 dual stack; The proxy port of client Web browser is set to the corresponding port of household electrical appliances control centre in the network.During communication, browser is given household electrical appliances control centre with the content of importing among the URL and is handled, and household electrical appliances control centre is through domain name mapping, if the IPv4 address, then the agency of household electrical appliances control centre does not handle, and directly sends connection request to Web server; If the address of IPv6, then the agency of household electrical appliances control centre gives IPv6 processing module with request, the IPv6 protocol stack of calling system, and realization is communicated by letter with IPv6's.
The present invention has realized communicating by letter between the IPv4 protocol stack and IPv6 process in the information household appliances tele-control system; Advantage is to utilize " the household electrical appliances control centre " in the information household appliances local area network (LAN); Under the situation that does not change the appliance network structure; Propose and realized the compatible a kind of method of IPv4/IPv6 to the information household appliances Long-distance Control; Make based on the information household appliances of IPv4 with based on " the household electrical appliances control centre " of functions such as the information household appliances of IPv6 identification and the different agreement stack through having IPv4/IPv6 dual stack, domain name mapping, address calls and merge in the same local area network (LAN); Realized visit and control through client to two types of household electrical appliances, thus convenient for users to use and exploitation and maintenance producer.
Description of drawings
Fig. 1 is the structural representation of information household appliances tele-control system;
Fig. 2 is the process chart of household electrical appliances control centre to URL.
Embodiment
The present invention relates to realize and the communication means of IPv6 process with the IPv4 protocol stack in a kind of information household appliances tele-control system, may further comprise the steps:
1) the IPv4/IPv6 dual stack is added in configuration network service in the embedded control system of information household appliances in this system;
2) proxy port of client Web browser is set to the corresponding port of household electrical appliances control centre in the network;
When 3) communicating by letter, browser is given household electrical appliances control centre with the content of importing among the URL and is handled, and household electrical appliances control centre is through domain name mapping, if the IPv4 address, then the agency of household electrical appliances control centre does not handle, and directly sends connection request to Web server; If the address of IPv6, then the agency of household electrical appliances control centre gives IPv6 processing module with request, the IPv6 protocol stack of calling system, and realization is communicated by letter with IPv6's.
Institute's network configured service comprises: www server, Sendmail server, fire compartment wall.
The Web page or leaf that includes household electrical appliances self-management and control in the said www server makes the user realize the remote monitoring to household electrical appliances through Web browser.
Under traditional network; The webpage that the Web browser of IPv4 can't be visited based on IPv6 is because the IPv4 address (32) that the IPv4 application program is all used struct sockaddr_in structure storage server; When calling connect function or sendto function, if specified an IPv6 address, and in_addr only has 4 bytes in the structure; 128 bit address that can't hold IPv6 are so can not communicate by letter with the IPv6 service processes through client ip v4 protocol stack.Therefore; Can increase " agency service of an IPv4/IPv6 dual stack " function in " household electrical appliances control centre "; Browser is through the setting of proxy port; Request is given " household electrical appliances control centre " and handle, let " household electrical appliances control centre " according to the IPv4 or the IPv6 protocol stack of the different calling systems of the destination address of client-requested, realize communicating by letter of client and IPv4 or IPv6 process respectively through programmed process.
Fig. 1 is the structural representation of information household appliances tele-control system, and wherein the first half is respectively the structure of IPv4 information household appliances tele-control system and the structure of IPv6 information household appliances tele-control system, and the latter half is the structure of both compatible systems.Information household appliances are formed the household electrical appliances local area network (LAN) through wireless network access point in IPv4 and IPv6 information household appliances tele-control system, and insert Internet, and " household electrical appliances control centre " has the center the driver's seat.
In the household electrical appliances local area network (LAN) of IPv4; " household electrical appliances control centre " comes down to an application gateway; Its function is to organize household electrical appliances local area network (LAN), the conversion of carrying out data format, leading subscriber and household electrical appliances etc.; Realize that information household appliances insert Internet through a public ip address, and dispose www server, Sendmail server, fire compartment wall etc.Wherein, the Web page or leaf of each household electrical appliances of visit is arranged in the www server, can make the user pass through Web browser remote access application gateway, realize remote monitoring household electrical appliances.
In the household electrical appliances local area network (LAN) of IPv6; " household electrical appliances control centre " has equal status with network home appliance; Its function is that the address of the user of household electrical appliances local area network (LAN) and network home appliance is managed; Simultaneously the electric power starting of household electrical appliances is managed, also can be regarded it as a network home appliance with network management function.Characteristics in conjunction with IPv6 agreement and network home appliance; The function of considering embedded system constantly strengthens; Disposal ability and memory capacity also are greatly improved; Simultaneously, also, in the embedded control system of information household appliances, directly dispose network services such as www server, Sendmail server, fire compartment wall in order to make home network user use the more convenient of information household appliances and more practical.Wherein, include the Web page or leaf of household electrical appliances self-management and control in the www server, make the user realize remote monitoring through Web browser to household electrical appliances, and can be interactive with producer at any time.
In the compatible system that two kinds of information household appliances all have; " household electrical appliances control centre " has the dual-use function of IPv4 household electrical appliances local area network (LAN) and IPv6 household electrical appliances local area network (LAN) " household electrical appliances control centre "; And have IPv4/IPv6 dual stack and IPv4/IPv6 Address Recognition function, can call protocol stack and the Information Appliance system of IPv4 or IPv6 according to the purpose IP address of user capture automatically.In this household electrical appliances local area network (LAN), the information household appliances of IPv4, IPv6 and the relation of " household electrical appliances control centre " and independently the relation in IPv4, the IPv6 household electrical appliances local area network (LAN) be consistent, separately, do not change the structure of original IPv4, IPv6 household electrical appliances local area network (LAN).
1, the selection of setting of agent functionality in the heart and browser in the Information Appliance
In the home appliance remote control system based on the IPv4 technology, general household electrical appliances user can directly import the IP address of " household electrical appliances control centre ", directly has access to information household appliances and control/status page thereof.But in the information household appliances based on IPv6, each household electrical appliances all can have the one or more IP address of oneself, can certainly have domain name.Like this, when considering information household appliances Long-distance Control IPv4/IPv6 compatibling problem, to consider that not only user's URL request directly is the IP address, also will consider the domain name that the user uses information household appliances.Therefore, in " household electrical appliances control centre ", at first to add the IPv4/IPv6 dual stack, and make it to become the web proxy server; Also to have simultaneously the function of request domain name analysis; At last, judge the form of address, according to different agreement call by location corresponding protocols stack.
After the proxy port of client Web browser was set to the corresponding port of " household electrical appliances control centre " in the network, browser was given the content of importing among the URL " household electrical appliances control centre " and is handled.
As shown in Figure 2, the agency's of household electrical appliances control centre detailed step is in the said step 3):
3.1) the reception URL of household electrical appliances control centre request, carry out domain name mapping;
3.2) if the IPv4 address, then the agency of household electrical appliances control centre directly sends connection request to Web server, changes step 3.4), otherwise continue step 3.3);
3.3) if the IPv6 protocol stack is then called in the Ipv6 address, set up TCP6 with Web server and be connected, continue 3.4), otherwise return error message;
3.4) set up communication, and between Web server and client, transmit data.
Wherein, carry out step 3.1) domain name mapping after, want also whether the judge analysis result is the IP address, if then continue step 3.2), otherwise carry out following treatment step: judge whether to be domain name; If, then resolve domain name, return the IP address, change step 3.2), otherwise return error message.
2, the selection of browser and the many URL solution of asking simultaneously
Select to use netscape browser in client; Because through manually be provided with agency link Internet the time; IE will carry out syntax check to the content of importing among its URL, and Netscape does not then do any inspection fully, all gives the task from the domain name mapping to the data forwarding " household electrical appliances control centre "; What so no matter in URL, import is domain name or IPv4 or IPv6 address; Netscape can send into " household electrical appliances control centre " with not adding any inspection, so the access of client Web service and browser are selected netscape browser.
Because " household electrical appliances control centre " will react to a plurality of requests of a browser or a plurality of requests of a plurality of browsers simultaneously; Therefore be in the electric control center when a plurality of requests of a plurality of requests of a browser or a plurality of browsers are reacted simultaneously; Use the daemon listening port of " household electrical appliances control centre "; Making " household electrical appliances control centre " run into request just produces subprocess and handles; Promptly monitor socket listenfd, and call bind and with the listen function it is become one and monitor socket, make the connection request of system kernel reception from the client through the socket function creation." household electrical appliances control centre " calls the connection that the accept function is waited for client.When the TCP connection request of client Web browser initiation is forwarded to " household electrical appliances control centre " processing; TCP uses three-way handshake to connect; When finishing when shaking hands; The accept function returns, and its return value is one and is called the new describing word connfd that connects describing word (connetcted descrIPtor)." household electrical appliances control centre " uses the fork function to open a subprocess for this describing word, and handles connection and communicate by letter with this subprocess, and the while parent process still keeps listening state.
In addition, when realizing the IPv4/IPv6 dual stack agent functionality of " household electrical appliances control centre ", when handling the monitoring socket, handle adapter sleeve interface again, also will handle a plurality of describing word, when addressing this problem, used the I/O multiplex technique.In I/O was multiplexing, system congestion was called in select, waited for that the datagram socket is readable, and when select returns socket when readable, system call readline function is read datagram in the buffering area.In connecting foundation and transmission course, " household electrical appliances control centre " sets up a describing word for each width of cloth picture and each text, therefore, will guarantee that in the parameter of select is provided with each describing word all can read.

Claims (7)

1. realize and the communication means of IPv6 process with the IPv4 protocol stack in a home information appliance system, it is characterized in that may further comprise the steps:
1) the IPv4/IPv6 dual stack is added in configuration network service in the embedded control system of information household appliances in this system;
2) proxy port of client Web browser is set to the corresponding port of household electrical appliances control centre in the network;
When 3) communicating by letter, browser is given household electrical appliances control centre with the content of importing among the URL and is handled, and household electrical appliances control centre is through domain name mapping, if the IPv4 address, then the agency of household electrical appliances control centre does not handle, and directly sends connection request to Web server; If the address of IPv6, then the agency of household electrical appliances control centre gives IPv6 processing module with request, the IPv6 protocol stack of calling system, and realization is communicated by letter with IPv6's.
2. communication means as claimed in claim 1 is characterized in that:
Institute's network configured service comprises: www server, Sendmail server, fire compartment wall.
3. communication means as claimed in claim 2 is characterized in that:
The Web page or leaf that includes household electrical appliances self-management and control in the said www server makes the user realize the remote monitoring to household electrical appliances through Web browser.
4. communication means as claimed in claim 1 is characterized in that:
The agency's of household electrical appliances control centre detailed step is in the said step 3):
3.1) the reception URL of household electrical appliances control centre request, carry out domain name mapping;
3.2) if the IPv4 address, then the agency of household electrical appliances control centre directly sends connection request to Web server, changes step 3.4), otherwise continue step 3.3);
3.3) if the IPv6 protocol stack is then called in the Ipv6 address, set up TCP6 with Web server and be connected, continue 3.4), otherwise return error message;
3.4) set up communication, and between Web server and client, transmit data.
5. communication means as claimed in claim 4 is characterized in that:
Carry out step 3.1) domain name mapping after, want also whether the judge analysis result is the IP address, if then continue step 3.2), otherwise carry out following treatment step:
Judge whether to be domain name;
If, then resolve domain name, return the IP address, change step 3.2), otherwise return error message.
6. communication means as claimed in claim 1 is characterized in that:
Be in the electric control center when a plurality of requests of a plurality of requests of a browser or a plurality of browsers are reacted simultaneously, use the daemon listening port of household electrical appliances control centre, make household electrical appliances control centre run into request and just produce subprocess and handle; Promptly monitor socket listenfd through the socket function creation; And call bind and listen function and it is become one monitor socket, make system kernel receive connection request from the client, the connection that the accept function is waited for client is called by household electrical appliances control centre; When the TCP connection request of client Web browser initiation is forwarded to the processing of household electrical appliances control centre; TCP uses three-way handshake to connect, and when finishing when shaking hands, the accept function returns; Its return value is one and is called the new describing word connfd that connects describing word; Household electrical appliances control centre uses the fork function to open a subprocess for this describing word, and handles connection and communicate by letter with this subprocess, and the while parent process still keeps listening state.
7. communication means as claimed in claim 1 is characterized in that:
When realizing the IPv4/IPv6 dual stack agent functionality of household electrical appliances control centre, use the I/O multiplex technique, in I/O is multiplexing; System congestion is called in select; Wait for that the datagram socket is readable, when select returns socket when readable, system call readline function is read datagram in the buffering area; In connecting foundation and transmission course, household electrical appliances control centre sets up a describing word for each width of cloth picture and each text.
CN2011101495949A 2011-06-03 2011-06-03 Method for realizing communication with IPv6 process by IPv4 protocol stack in information appliance system Pending CN102724233A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011101495949A CN102724233A (en) 2011-06-03 2011-06-03 Method for realizing communication with IPv6 process by IPv4 protocol stack in information appliance system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011101495949A CN102724233A (en) 2011-06-03 2011-06-03 Method for realizing communication with IPv6 process by IPv4 protocol stack in information appliance system

Publications (1)

Publication Number Publication Date
CN102724233A true CN102724233A (en) 2012-10-10

Family

ID=46949894

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011101495949A Pending CN102724233A (en) 2011-06-03 2011-06-03 Method for realizing communication with IPv6 process by IPv4 protocol stack in information appliance system

Country Status (1)

Country Link
CN (1) CN102724233A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103812956A (en) * 2012-11-14 2014-05-21 中国电信股份有限公司 Method and device for switching IPv4/IPv6 applications and intelligent mobile terminal
CN107147655A (en) * 2017-05-25 2017-09-08 北京中电普华信息技术有限公司 A kind of network dual stack parallel process model and its processing method
CN111511041A (en) * 2019-01-31 2020-08-07 大唐移动通信设备有限公司 Remote connection method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050008032A1 (en) * 2003-05-29 2005-01-13 Shu Yamamoto Enabling mobile IPv6 communication over a network containing IPv4 components using ISATAP
CN1776681A (en) * 2005-12-13 2006-05-24 北京大学 WEB control interface unified generating method and IP home network integrated control method
CN1957566A (en) * 2004-05-20 2007-05-02 飞比特网络股份有限公司 Server for routing connection to client device
CN102025777A (en) * 2010-11-24 2011-04-20 华中科技大学 Method for sharing peer-to-peer (P2P) resources under condition of internet protocol version 4/version 6 (IPv4/v6) hybrid networking

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050008032A1 (en) * 2003-05-29 2005-01-13 Shu Yamamoto Enabling mobile IPv6 communication over a network containing IPv4 components using ISATAP
CN1957566A (en) * 2004-05-20 2007-05-02 飞比特网络股份有限公司 Server for routing connection to client device
CN1776681A (en) * 2005-12-13 2006-05-24 北京大学 WEB control interface unified generating method and IP home network integrated control method
CN102025777A (en) * 2010-11-24 2011-04-20 华中科技大学 Method for sharing peer-to-peer (P2P) resources under condition of internet protocol version 4/version 6 (IPv4/v6) hybrid networking

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张杰: "信息家电远程控制中IPv4/IPv6兼容的实现方案", 《微计算机信息》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103812956A (en) * 2012-11-14 2014-05-21 中国电信股份有限公司 Method and device for switching IPv4/IPv6 applications and intelligent mobile terminal
CN107147655A (en) * 2017-05-25 2017-09-08 北京中电普华信息技术有限公司 A kind of network dual stack parallel process model and its processing method
CN111511041A (en) * 2019-01-31 2020-08-07 大唐移动通信设备有限公司 Remote connection method and device

Similar Documents

Publication Publication Date Title
JP4833995B2 (en) Mobile online game system and communication method between mobile game terminals
US8190773B2 (en) System and method for accessing a web server on a device with a dynamic IP-address residing behind a firewall
KR100978336B1 (en) Remote access
JP5494649B2 (en) Relay device, relay method, and relay device control program
JP2016006982A (en) System and method using client-local proxy server to access device having assigned network address
CN101098304A (en) Router and address identification information management server
JP2005244408A (en) Gateway apparatus connected to plurality of networks with different network segments, and program and method for transferring ip packet
CN107222561A (en) A kind of transport layer reverse proxy method
CN104852941A (en) Web service system and method facing area
US20130064250A1 (en) Remotely accessing and controlling user equipment in a private network
JP2003110596A (en) Data communication service providing method
CN102752411A (en) Redirection method and device
CN101197724A (en) Long-range control system and method for information household electrical appliance in IGRS household network based on IPv6
EP1584203B1 (en) Network address translation based mobility management
CN104519077A (en) Multimedia sharing method, registration method, server and proxy server
CN102238238A (en) Method and device for accessing local network equipment
CN104205729A (en) Method, device, and system for configuring device in network
CN102724233A (en) Method for realizing communication with IPv6 process by IPv4 protocol stack in information appliance system
US20030152042A1 (en) Method and system for adding IP routes to a routing mobile terminal with 3G messages
JP4800332B2 (en) Service providing system, service providing method, and service providing program
CN105429880B (en) The network equipment and its method for carrying out routing forwarding
TW201032556A (en) Embedded communication apparatus, method and system for using the same
TW200807988A (en) Configuring a host device by way of MMP
JP6096464B2 (en) Proxy device and relay device
CN101843038B (en) Method for managing network components in a network, and a network component

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20121010