CN101207565A - Network communication method - Google Patents

Network communication method Download PDF

Info

Publication number
CN101207565A
CN101207565A CNA2006101707956A CN200610170795A CN101207565A CN 101207565 A CN101207565 A CN 101207565A CN A2006101707956 A CNA2006101707956 A CN A2006101707956A CN 200610170795 A CN200610170795 A CN 200610170795A CN 101207565 A CN101207565 A CN 101207565A
Authority
CN
China
Prior art keywords
network communication
procedure
network
program
protocol
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.)
Granted
Application number
CNA2006101707956A
Other languages
Chinese (zh)
Other versions
CN101207565B (en
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.)
State Grid Shanghai Electric Power Co Ltd
Original Assignee
Inventec Corp
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 Inventec Corp filed Critical Inventec Corp
Priority to CN200610170795A priority Critical patent/CN101207565B/en
Publication of CN101207565A publication Critical patent/CN101207565A/en
Application granted granted Critical
Publication of CN101207565B publication Critical patent/CN101207565B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The invention discloses a network communication method, and the method drives the network communication program which can reside in an internal memory to carry out the network data transmission under the real mode without a network card. Firstly, a standard network communication program is retrenched; a pre-start program is programmed; the PXE related services of a pre-execute environment are set on a network and a client system; the pre-start program is downloaded from a network server; the pre-start program is executed; the standard network communication program in the pre-start program is stored in an internal memory space; the network communication interruption is added in an interrupt vector table; the data area of a basic input-output system (BIOS) is modified. The method carries out the accessing through the interruption mechanism dispensing with the supporting of a special driver program, and the data transmission reliability is guaranteed by utilizing the connection-oriented service; furthermore, the invention adopts the short communication protocol which is hidden in the BIOS data area, thereby not influencing the operation of other programs.

Description

Network communication method
Technical field
The present invention relates to a kind of network communication method, relate in particular to a kind of by need not network interface card drive can resident internal storage the network communication program carry out the network communication method of real pattern lower network transfer of data.
Background technology
At present, be the operating system of hardware structure with x86, as Windows, linux system etc., it still adopts the working method of real pattern to the protected mode transition when starting.And certain application is also arranged as the disc operating system (DOS) that under real pattern, moves, and as some 16 dedicated system, perhaps some hardware detection systems etc.The visit of computer hardware normally by driver, need be selected different dedicated programs for use at different chip models and different system.But some hardware vendors no longer provide system driver under the real pattern now, perhaps are not loaded as yet in the primary stage of os starting network device driver, all can't carry out the transmission of network data under above-mentioned two kinds of situations.Simultaneously, (BasicInput Output System does not provide the interface of universal network equipment I/O (I/O) control in BIOS) to basic input output system yet.
At the above situation that can't carry out Network Transmission, (Preboot Execution Environment, PXE) agreement is finished network data transmission by pre-loaded execution environment usually at present.Pre-loaded execution environment agreement is the netboot agreement that Intel Company releases, at first, the network interface card of supporting pre-loaded execution environment agreement will be housed in the system, need to configure DynamicHost configuration agreement (Dynamic Host Configuration Protocol in the network environment simultaneously, DHCP) and simple and easy file transfer protocol (FTP) (TrivialFile Transfer Protocol TFTP) waits relevant service.After the system power-up self check, configure network environment, then pre-start-up procedure (NBP) is loaded into this locality and finishes the guiding work of system start-up by a series of automation mechanized operation.
Pre-loaded execution environment agreement groundwork step is as follows:
After the client self check was finished, the PXE network interface card was taken over CPU control;
DynamicHost configuration protocol server (DHCP Server) communication in the PXE network interface card of client and the network, so that obtain the information of Internet Protocol (IP) address and pre-start-up procedure (NBP);
Download pre-start-up procedure (NBP) by simple and easy file transfer protocol (FTP) server (TFTPServer) in simple and easy file transfer protocol (FTP) (TFTP) automatic network;
The guiding of the complete client of pre-start-up procedure (NBP) beginning.
Can finish certain network data transmission by pre-loaded execution environment agreement, but pre-loaded execution environment protocol specification only provides simple and easy file transfer protocol (FTP), agreement (the UserDatagram Protocol of user data unit, UDP), start (Pre-Boot) application interface in advance, and do not provide the common transmission control protocol of Network Transmission (Transmission Control Protocol, TCP).Adopt user data unit agreement/Internet Protocol carry out communication then reliability of data transmission can not get guaranteeing that this is undoubtedly fatal defective for those data to be relied on very strong application.Though, can introduce like this that extra agreement is disposed and work such as maintenance upgrade by can guarantee the correctness and the reliability of transfer of data in the form of taking to add again on the user data unit agreement basis proprietary protocol.
Summary of the invention
In order to solve above-mentioned the problems of the prior art and defective, the object of the present invention is to provide a kind of network communication method, by need not network interface card drive can resident internal storage the network communication program carry out the transmission of real pattern lower network data.
A kind of network communication method provided by the present invention, comprise following steps: the standard network communication program is simplified, connect so that the standard network communication program under the prerequisite that can satisfy the actual data transfer needs, has effective reliability, and take less internal memory space; Work out a pre-start-up procedure and pre-start-up procedure is stored in the webserver, the standard network communication program after simplifying is worked out among pre-start-up procedure, and pre-start-up procedure is set to real pattern network communication environment; On the FTP client FTP of supporting pre-loaded execution environment agreement, be set at the network interface card start-up mode, and dispose pre-loaded execution environment relevant DynamicHost configuration protocol service and simple and easy file transfer protocol (FTP) service; Start FTP client FTP, pre-loaded execution environment network adapter obtains the information of Internet protocol addresses and pre-start-up procedure by DynamicHost configuration protocol service, and downloads pre-start-up procedure by simple and easy file transfer protocol (FTP) automatic network server; Carry out pre-start-up procedure, to judge current soft, demand that whether hardware environment meets network communication; In the basic internal storage of client, choose suitable space, so that the standard network communication program after the simplifying in the pre-start-up procedure is assigned in internal memory space; In interrupt vector table, add configuration item, with thinking that the standard network communication program after simplifying disposes soft interruption so that call the standard network communication program; And the data field of revising basic input output system, so that being assigned in the basic input output system space, the position at standard network communication program place protects.
Wherein, the mode that the standard network communication program is simplified the protocol suite by simplifying transmission control protocol/Internet Protocol is finished.The structure that protocol suite kept of the transmission control protocol/Internet Protocol after simplifying includes: transmission control protocol (TCP) layer, in order to guarantee reliability of data transmission; Internet Protocol (IP) layer is in order to be responsible for the transmitting-receiving of data; And universal network UDI (UNDI), in order to carry out the control of the network equipment.
In sum, compared with prior art, the invention has the advantages that:
1, network communication method of the present invention need not real pattern under the proprietary driver support of different chips;
2, network communication method of the present invention is easy to use, and adopts general hardware access mode, i.e. interrupt mode under the real pattern;
3, network communication method of the present invention connects by effective continuation, has guaranteed reliability of data transmission;
4, adopted in the network communication method of the present invention simplify after the standard network communication program saved basic internal memory space valuable under the real pattern, and other program implementation in the not influence system is (for example: the startup of Windows NT kernel operations system);
5, in the network communication method of the present invention, the standard network communication program after simplifying is hidden in the data of input/output system district of internal storage, takes suitable protection mechanism can avoid the network communication program to be destroyed by other executive program;
6, network communication method of the present invention adopts the standard network communications protocol program of simplifying, and by the deployment of special-purpose proprietary protocol, can obtain the interoperability of network data transmission to greatest extent.
Describe the present invention below in conjunction with the drawings and specific embodiments, but not as a limitation of the invention.
Description of drawings
Fig. 1 is the method flow diagram of a kind of network communication method of the present invention; And
Fig. 2 is the system block diagrams of the applied embodiment of a kind of network communication method of the present invention.
Wherein, Reference numeral
10 FTP client FTPs
20 DynamicHost configuration protocol servers
30 simple and easy file transfer protocol (FTP) servers
40 storage servers
Step 100 pair standard network communication program is simplified
Standard network communication program after step 110 will be simplified is worked out in pre-start-up procedure
Step 120 is stored in pre-start-up procedure in the webserver
Be set at the network interface card start-up mode on step 130 FTP client FTP, and dispose the relevant service of pre-loaded execution environment
Step 140 is obtained the information of Internet protocol addresses and pre-start-up procedure by DynamicHost configuration protocol service
Step 150 is downloaded pre-start-up procedure by simple and easy file transfer protocol (FTP) server
Step 160 is carried out pre-start-up procedure to judge current soft, demand that whether hardware environment meets network communication
Step 170 is assigned the network communication program in the client internal memory space
Step 180 is provided with an interrupt vector table
Step 190 is revised the data field of basic input output system
Embodiment
Below, will elaborate to better embodiment of the present invention in conjunction with graphic part.
In order to overcome the defective that proprietary driver is installed in the prior art, adopt the mode of pre-loaded execution environment (PXE) protocol specification to realize network communication now usually.Pre-loaded execution environment agreement has obtained the support of most network interface card manufacturer at present, the bottom of pre-loaded execution environment agreement has complete network interface card I/O call method, it is network driver interface, but, pre-loaded execution environment agreement only provides the non-standing of user data unit agreement to connect in the transport layer of the protocol suite of transmission control protocol/Internet Protocol, and it can not satisfy the needs of reliability of data transmission under the applied environment of data sensitive.Method of the present invention utilizes pre-loaded execution environment agreement to realize the visit to network just, has overcome the drawback that pre-loaded execution environment agreement transport layer only provides the unreliable connection of user data unit agreement simultaneously.
See also Fig. 1, this figure is the method flow diagram of a kind of network communication method of the present invention, and as shown in the figure, a kind of network communication method of the present invention includes following steps:
At first, the standard network communication program is simplified (step 100), because internal memory space available under the real pattern of no operating system is very little, usually the real pattern stage has only a part of space of preceding 640KB to use before the os starting, and all the other are then taken by basic input output system program, display routine etc.; And the transmission of real data still needs extra program support, server end should be avoided the deployment-specific agreement as far as possible and must meet the demand of existing route mode, so the standard network communication program after requiring in the method for the present invention to simplify only takies less internal memory space, and make the standard network communication program under the prerequisite that can satisfy the actual data transfer needs, having effective reliability connects, wherein, the mode of tool use value is for to simplify the protocol suite of transmission control protocol/Internet Protocol, make it be simplified the back and only keep following structure function: a transmission control protocol layer, in order to guarantee reliability of data transmission, an Internet Protocol layer, in order to be responsible for the transmitting-receiving of data, and a universal network UDI, in order to carry out the control of the network equipment;
Then, work out a pre-start-up procedure by the developer, and the standard network communication program after will simplifying is worked out among pre-start-up procedure (step 110), its concrete function and realization details can be formulated according to demand, can also finish other function except the network communication environment that is set at real pattern;
Next, pre-start-up procedure is stored in (step 120) in the webserver;
Then, on the FTP client FTP of supporting pre-loaded execution environment agreement, be set at the network interface card start-up mode, and dispose pre-loaded execution environment relevant DynamicHost configuration protocol service and simple and easy file transfer protocol (FTP) service (step 130);
Then, start FTP client FTP, pre-loaded execution environment network adapter is obtained the information (step 140) of Internet protocol addresses and pre-start-up procedure by DynamicHost configuration protocol service; And by simple and easy file transfer protocol (FTP) automatic network server download pre-start-up procedure (step 150);
Then, carry out pre-start-up procedure, for example judge whether the version of pre-loaded execution environment agreement is suitable to judge current soft, demand (step 160) that whether hardware environment meets network communication, if meet then continue to carry out subsequent step, otherwise end;
In the basic internal storage of client, choose suitable space, so that the standard network communication program after the simplifying in the pre-start-up procedure is assigned in internal memory space (step 170), after wherein pre-start-up procedure is taken over CPU, the standard network communication program that is stored in after the simplifying in self program space is assigned in the top of the remaining basic internal storage of client;
An interrupt vector list item (step 180) is set, with thinking that the standard network communication program after simplifying disposes soft interruption so that call the standard network communication program; And
Revise the data field (step 190) of basic input output system; the 40:13h position in data of input/output system district records the apical position of residue internal storage; have no progeny in soft configuring the network communication program and configure, revise this data field content and can protect this section network communication program.All can think that by the program of the basic internal storage remaining space of 40:13h position enquiring this space is taken by data of input/output system; thereby avoid this position; and then realization is to the protection of network communication program; wherein before pre-start-up procedure withdraws from; can also carry out display reminding information, automatic network reading of data and the feature operation of calling other program execution.
See also Fig. 2 now, Figure 2 shows that the system block diagrams of the applied embodiment of a kind of network communication method of the present invention, this embodiment is a no disk operating system, for example, this no disk operating system can be applied to knife edge type server (Blade Sever) and high-performance calculation (High PerformanceComputing; HPC) etc. in the system, suppose that no disc system supports pre-loaded execution environment (PXE) to start, at first, DynamicHost configuration protocol server 20 communications in the PXE network interface card of FTP client FTP 10 and the network, so that obtain the information of Internet Protocol (IP) address and pre-start-up procedure, then, start the execution phase at pre-loaded execution environment, FTP client FTP 10 is downloaded pre-start-up procedure earlier in simple and easy file transfer protocol (FTP) server 30, wherein network communication program composition is in pre-start-up procedure, then in the pre-start-up procedure execution phase, the top that control FTP client FTP 10 is assigned the network communication program the basic internal storage remaining area in its basic input output system space, revise the interruption of local hard drive simultaneously in interrupt vector table, the position of the interrupt handling routine of its sensing is exactly the entrance of network communication program.When os starting, all operations to local hard drive all are automatically transferred on the system image that stores in the storage server 40 of network, because the reliability that adopt to continue connects, therefore avoided causing starting owing to loss of data in the network communication process catastrophic effect of failure.In the space of internal storage 640KB; os starting and basic input output system handling procedure all will take internal memory space; therefore the space that stays is very limited; because the network communication program after simplifying is very short and small; therefore can be stored in fully in the internal memory space; revise the data field of basic input output system simultaneously; the handling procedure of basic input output system self is can be regarded as in the shared space of network communication program after simplifying, so just can be avoided extraneous interference by the protecting network communication program.
For other application, can in interrupt vector table, add new soft interruption with reference to above-mentioned no disc system, when the network communication program under the real pattern needs accesses network equipment, only need call corresponding interruption and get final product.
Certainly; the present invention also can have other various embodiments; under the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art work as can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection range of the appended claim of the present invention.

Claims (5)

1. network communication method, by need not network interface card drive can resident internal storage the network communication program carry out the transmission of real pattern lower network data, it is characterized in that this method includes following steps:
The standard network communication program is simplified, connect so that this standard network communication program under the prerequisite that can satisfy the actual data transfer needs, has effective reliability, and take less internal memory space;
Work out a pre-start-up procedure and also this pre-start-up procedure is stored in the webserver, the standard network communication program after this is simplified is worked out among this pre-start-up procedure, and this pre-start-up procedure is set to real pattern network communication environment;
On the FTP client FTP of supporting pre-loaded execution environment PXE agreement, be set at the network interface card start-up mode, and dispose relevant DynamicHost configuration protocol DHCP service of pre-loaded execution environment and simple and easy file transfer protocol (FTP) TFTP service;
Start FTP client FTP, pre-loaded execution environment PXE network adapter obtains the information of Internet protocol addresses and this pre-start-up procedure by DynamicHost configuration protocol service, and downloads this pre-start-up procedure by simple and easy file transfer protocol (FTP) from this webserver;
Carry out this pre-start-up procedure, to judge current soft, demand that whether hardware environment meets network communication;
In the basic internal storage of this client, choose suitable space, assign in this internal memory space with the standard network communication program after in this pre-start-up procedure this simplified;
In an interrupt vector table, add configuration item, with thinking that this standard network communication program after simplifying disposes soft interruption so that call this standard network communication program; And
Revise the data field of basic input-output system BIOS, protect so that the position at this standard network communication program place is assigned in this basic input output system space.
2. network communication method according to claim 1 is characterized in that, this standard network communication program is simplified the mode of the protocol suite by simplifying transmission control protocol/Internet Protocol TCP/IP and finishes.
3. network communication method according to claim 2 is characterized in that, the structure that protocol suite kept of the transmission control protocol/Internet Protocol after this is simplified includes:
One transmission control protocol TCP layer is in order to guarantee reliability of data transmission;
One Internet Protocol IP layer is in order to be responsible for the transmitting-receiving of data; And
One universal network UDI UNDI is in order to carry out the control of the network equipment.
4. network communication method according to claim 1 is characterized in that, in the process of carrying out this pre-start-up procedure, can also carry out display reminding information, automatic network reading of data and call the feature operation that other program is carried out.
5. network communication method according to claim 1 is characterized in that, the standard network communication program after this in this pre-start-up procedure simplified is assigned in the top of the remaining basic internal storage of this client.
CN200610170795A 2006-12-22 2006-12-22 Network communication method Expired - Fee Related CN101207565B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200610170795A CN101207565B (en) 2006-12-22 2006-12-22 Network communication method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200610170795A CN101207565B (en) 2006-12-22 2006-12-22 Network communication method

Publications (2)

Publication Number Publication Date
CN101207565A true CN101207565A (en) 2008-06-25
CN101207565B CN101207565B (en) 2010-05-19

Family

ID=39567463

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200610170795A Expired - Fee Related CN101207565B (en) 2006-12-22 2006-12-22 Network communication method

Country Status (1)

Country Link
CN (1) CN101207565B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103200271A (en) * 2013-04-17 2013-07-10 北京百度网讯科技有限公司 Advanced Risc machine (ARM) server and method of automatic installation system thereof
CN104516746A (en) * 2013-09-27 2015-04-15 联想(北京)有限公司 Information processing method and electronic device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1333339C (en) * 2005-04-06 2007-08-22 清华大学 Transparent computing based computing apparatus and method
CN1731738A (en) * 2005-08-30 2006-02-08 西安交通大学 Automated quick deployment method for large-scale computer cluster node

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103200271A (en) * 2013-04-17 2013-07-10 北京百度网讯科技有限公司 Advanced Risc machine (ARM) server and method of automatic installation system thereof
CN103200271B (en) * 2013-04-17 2016-03-16 北京百度网讯科技有限公司 The method of ARM server and automation installation system thereof
CN104516746A (en) * 2013-09-27 2015-04-15 联想(北京)有限公司 Information processing method and electronic device
CN104516746B (en) * 2013-09-27 2018-03-23 联想(北京)有限公司 A kind of information processing method and electronic equipment

Also Published As

Publication number Publication date
CN101207565B (en) 2010-05-19

Similar Documents

Publication Publication Date Title
US8387045B2 (en) Cloning image creation using virtual machine environment
EP1280058A2 (en) Method and system for creating and employing an operating system having selected functionality
US6986033B2 (en) System for automated boot from disk image
US7237238B2 (en) Method and apparatus for automated operating systems upgrade
US7318149B2 (en) Semi-persistent relocatable ram-based virtual floppy disk method
US7401332B2 (en) System and apparatus for eliminating user interaction during hardware configuration at system boot
US20040230963A1 (en) Method for updating firmware in an operating system agnostic manner
EP3518099B1 (en) Installation of operating system
US9184991B2 (en) Method and apparatus for developing service processor solutions
CN109426613B (en) Method for retrieving debugging data in UEFI and computer system thereof
WO2004025486A2 (en) Use of off-motherboard resources in a computer system
CN104679540A (en) Computer system and computer system starting method
US7949736B2 (en) Centralization configuration of data processing systems
US5968174A (en) Method and apparatus for implementing a 32-bit operating system which supports 16-bit code
US20020120835A1 (en) System information display method and apparatus
Pajankar et al. Introduction to single board computers and raspberry pi
US20100043006A1 (en) Systems and methods for a configurable deployment platform with virtualization of processing resource specific persistent settings
US7299345B2 (en) Reserved ROM space for storage of operating system drivers
CN101207565B (en) Network communication method
US20040243385A1 (en) Emulation of hardware devices in a pre-boot environment
US8549545B2 (en) Abstraction of computer disk image cloning capabilities from bootable media
CN111782474A (en) Log processing method and device, electronic equipment and medium
US20090210589A1 (en) Dynamic Vital Product Data Update Based on an Installed Feature Card
US7100031B1 (en) Detector and operational method for a firmware interface
CN114296810A (en) Operating system migration method, device, server and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
ASS Succession or assignment of patent right

Owner name: STATE GRID SHANGHAI ELECTRIC POWER COMPANY

Free format text: FORMER OWNER: YINGYEDA CO., LTD., TAIWAN

Effective date: 20140918

C41 Transfer of patent application or patent right or utility model
C53 Correction of patent for invention or patent application
CB03 Change of inventor or designer information

Inventor after: Zhao Zhenyu

Inventor after: Liu Wenhan

Inventor after: Fan Qunhua

Inventor after: Wang Chao

Inventor after: Zhang Yanyan

Inventor after: Zhang Weiwei

Inventor after: Ren Jie

Inventor after: Wang Yunsong

Inventor after: Liu Wei

Inventor after: Chen Xuantong

Inventor before: Wang Yunsong

Inventor before: Liu Wei

Inventor before: Chen Xuantong

Inventor before: Liu Wenhan

COR Change of bibliographic data

Free format text: CORRECT: INVENTOR; FROM: WANG YUNSONG LIU WEI CHEN XUANTONG LIU WENHAN TO: ZHAO ZHENYU FAN QUNHUA WANG CHAO ZHANG YANYAN ZHANG WEIWEI REN JIE WANG YUNSONG LIU WEI CHEN XUANTONG LIU WENHAN

Free format text: CORRECT: ADDRESS; FROM: TAIWAN, CHINA TO: 200002 HUANGPU, SHANGHAI

TR01 Transfer of patent right

Effective date of registration: 20140918

Address after: 200002 Nanjing East Road, Shanghai, No. 181, No.

Patentee after: State Grid Shanghai Municipal Electric Power Company

Address before: Taipei City, Taiwan, China

Patentee before: Inventec Corporation

CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20100519

Termination date: 20141222

EXPY Termination of patent right or utility model