CN105763453B - A kind of message processing method and device - Google Patents
A kind of message processing method and device Download PDFInfo
- Publication number
- CN105763453B CN105763453B CN201610080246.3A CN201610080246A CN105763453B CN 105763453 B CN105763453 B CN 105763453B CN 201610080246 A CN201610080246 A CN 201610080246A CN 105763453 B CN105763453 B CN 105763453B
- Authority
- CN
- China
- Prior art keywords
- address
- http
- message
- configuration information
- terminal
- 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.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/74—Address processing for routing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/70—Admission control; Resource allocation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/09—Mapping addresses
- H04L61/10—Mapping addresses of different types
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer And Data Communications (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The present invention provides a kind of message processing method and device, this method comprises: when being received by the first OS come the HTTP request message for the IP address that the purpose IP address of self terminal is the first OS, if WEB administration interface is located at the 2nd OS, the IP address of the 2nd OS is notified that, to terminal, terminal carries out business configuration to the network equipment according to the IP address of the 2nd OS by the first OS;When being received by the first OS come the non-HTTP message for the IP address that the purpose IP address of self terminal is the first OS, if the 3rd OS is for handling non-HTTP message, the purpose IP address of non-HTTP message is then revised as to by the first OS the IP address of the 3rd OS, modified non-HTTP message is sent to the 3rd OS, when receiving modified non-HTTP message by the 3rd OS, modified non-HTTP message is handled by the 3rd OS.According to the technical solution of the present invention, it does not need to provide the terminal with multiple IP address, access or management is switched between multiple OS, promote user experience.
Description
Technical field
The present invention relates to field of communication technology more particularly to a kind of message processing methods and device.
Background technique
Currently, need integrated business more and more on the network equipment, the network equipment on the basis of network service is provided,
Other business can also be provided, for example, (Network Attached Storage, network building-out are deposited by gateway of internet of things business, NAS
Storage) business etc..
It, can be in net based on multi -CPU (Central Processing Unit, central processing unit) or multi-core CPU technology
Multi -CPU is integrated in network equipment, and perhaps each independent CPU of multi-core CPU or CPU core run an OS (Operating
System, operating system), each OS provides a kind of business.
For example, integrating two CPU in the network equipment, a CPU runs OS1, and OS1 provides network service, has individual
IP address and WEB administration interface, another CPU run OS2, and OS2 provides NAS business, it may have individual IP address and WEB pipe
Manage interface.In this way when user needs the WEB administration interface using network service or the corresponding OS of management, network service pair will use
The IP address of the OS1 answered is accessed or is managed, when user needs the WEB administration interface using NAS business or the corresponding OS of management
When, the IP address that will use the corresponding OS2 of NAS business is accessed or is managed.Therefore, in actual use, Yong Huxu
Will frequent progress handover access or management between multiple OS, and the IP address of multiple OS is also remembered, so that user experience
It is lower.
Summary of the invention
The present invention provides a kind of message processing method, using on network devices, which comprises
Receiving in the first operating system OS by the network equipment come the purpose IP address of self terminal is described the
When the HTTP request message of the IP address of one OS, if the WEB administration interface of the network equipment is located at institute
The 2nd OS that IP address is different from the IP address of the first OS on the network equipment is stated, then passes through the first OS for described second
The IP address of OS notifies to carry out the network equipment with the IP address by the terminal according to the 2nd OS to the terminal
Business configuration;
By the first OS receive the purpose IP address from the terminal be the first OS IP address it is non-
When HTTP message, if IP address threeth OS different from the IP address of the first OS is described for handling on the network equipment
The purpose IP address of the non-HTTP message is then revised as the IP of the 3rd OS by non-HTTP message by the first OS
Modified non-HTTP message is sent to the 3rd OS by location, and described modified being received by the 3rd OS
When non-HTTP message, the modified non-HTTP message is handled by the 3rd OS.
The present invention provides a kind of message process device, and using on network devices, described device includes:
Hypertext transfer protocol HTTP message processing module, for being received by the first operating system OS of the network equipment
When the purpose IP address of arrival self terminal is the HTTP request message of the IP address of the first OS, if the WEB of the network equipment is managed
Reason interface is located at the 2nd OS that IP address is different from the IP address of the first OS on the network equipment, then will by the first OS
The IP address of 2nd OS notifies to the terminal, with by the terminal according to the 2nd OS IP address to the network
Equipment carries out business configuration;
Non- HTTP message processing module, for receiving the purpose IP address from the terminal by the first OS as institute
When stating the non-HTTP message of the IP address of the first OS, if IP address is different from the IP address of the first OS on the network equipment
The purpose IP address of the non-HTTP message is revised as institute by the first OS for handling the non-HTTP message by three OS
Modified non-HTTP message is sent to the 3rd OS, and received by the 3rd OS by the IP address for stating the 3rd OS
When to the modified non-HTTP message, the modified non-HTTP message is handled by the 3rd OS.
Based on the above-mentioned technical proposal, in the embodiment of the present invention, when the network equipment includes at least two OS, and each OS has
When independent IP address, an IP address can be only provided the terminal with, the IP address, management or access packet can be used in terminal
The network equipment for including at least two OS does not need to provide the terminal with multiple IP address, switched between multiple OS access or
Management promotes user experience.
Detailed description of the invention
Fig. 1 is the structural schematic diagram of the network equipment including two OS in one embodiment of the present invention;
Fig. 2 is the flow chart of the message processing method in one embodiment of the present invention;
Fig. 3 is the hardware structure diagram of the network equipment in one embodiment of the present invention;
Fig. 4 is the structure chart of the message process device in one embodiment of the present invention.
Specific embodiment
In term used in this application merely for the sake of for the purpose of describing particular embodiments, rather than limit the application.This Shen
Please it is also intended to the "an" of singular used in claims, " described " and "the" including most forms, unless
Context clearly shows that other meanings.It is also understood that term "and/or" used herein refers to comprising one or more
Associated any or all of project listed may combine.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application
A little information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, not departing from
In the case where the application range, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as
One information.Depending on context, in addition, used word " if " can be construed to " ... when " or " when ... "
Or " in response to determination ".
Aiming at the problems existing in the prior art, a kind of message processing method, this method are proposed in the embodiment of the present invention
Can be using on network devices, and the network equipment includes at least two OS, each OS all have independent IP address (that is,
The IP address of different OS is not identical).It is other for providing the OS of network service including at least one in this at least two OS
OS may include the OS for the providing NAS business and/or OS etc. for providing gateway of internet of things business.It is that the present invention is real with Fig. 1
The application scenarios schematic diagram of example is applied, which may include OS1 and OS2 etc., and OS1 is for providing network service, and OS1
IP address is IP address 1, and OS2 is for providing NAS business, and the IP address of OS2 is IP address 2.
In the embodiment of the present invention, the network equipment is no longer as the prior art, and for each OS, individually a built-in WEB is managed
Interface is managed, but only a built-in WEB administration interface, terminal can use browser and log on to the WEB administration interface, then exist
Related service configuration is carried out to each OS on the network equipment on the WEB administration interface.Match for example, carrying out network service to OS1
It sets;NAS business configuration is carried out to OS2.
Wherein, which can be deployed in any OS.For example, WEB administration interface can be deployed in OS1,
OS2 can be deployed in, regardless of which OS WEB administration interface is deployed in, WEB administration interface include OS1 business configuration and
The business configuration of OS2.
In the embodiment of the present invention, although each OS of the network equipment has an independent IP address, the network equipment pair
It is outer only to provide an IP address, the IP address 1 of OS1 is such as provided, in this way, terminal can send mesh when accessing the network equipment
IP address be IP address 1 message.Assuming that terminal sends message to the corresponding interface hardware of OS1, then the message is hard by interface
OS1 is given on part, OS1 has found that the purpose IP address of the message is the IP of oneself, directly handles message.Assuming that terminal to
The corresponding interface hardware of OS2 sends message, then the message is given OS2 on this interface hardware, and OS2 has found the destination IP of the message
Address is the IP address of OS1, can forward the packet to OS1, is handled later by OS1 the message.
In the embodiment of the present invention, it is assumed that the IP address of the first OS is supplied to terminal, and the first OS can for OS1 or
OS2, and WEB administration interface can be located at OS1 or OS2.
Under above-mentioned application scenarios, as shown in Fig. 2, the message processing method may comprise steps of:
Step 201, it is received by the first OS come the message for the IP address that the purpose IP address of self terminal is the first OS.Its
In, if the message is HTTP request message, then follow the steps 202;If the message is non-HTTP message, then follow the steps
203。
In this step, the message may be the corresponding interface hardware of the first OS receive it is rear directly on give, it is also possible to
What other OS in addition to the first OS were forwarded.
In embodiments of the present invention, since the network equipment is that the IP address of the first OS is supplied to terminal, terminal is only
Know the IP address of the first OS.Terminal can be sent in the first OS of accessing network equipment or other OS to the network equipment
Purpose IP address be the first OS IP address message, without active to the network equipment send purpose IP address be the first OS it
The message of the IP address of outer other OS.
Step 202, if the WEB administration interface of the network equipment is located at the IP address of IP address and the first OS on the network equipment not
The 2nd same OS, then notified the IP address of the 2nd OS to terminal by the first OS, with the IP by terminal according to the 2nd OS
Address carries out business configuration to the network equipment.In addition, being asked by the first OS to HTTP if WEB administration interface is located at the first OS
Message is asked to be handled.
In the embodiment of the present invention, the IP address of the 2nd OS is notified specifically to can wrap to the process of terminal by the first OS
It includes but is not limited to such as under type: sending the HTTP redirection response report for the IP address for carrying the 2nd OS to terminal by the first OS
Text, the HTTP redirection response message be used to indicate the terminal according to the 2nd OS IP address to the network equipment
Carry out business configuration or HTTP access.
In the embodiment of the present invention, the purpose that terminal sends HTTP request message is, inquires WEB management field to the network equipment
Face is at which, so that subsequent terminal carries out business configuration or HTTP access to the network equipment.
When WEB administration interface is located at an OS, the network equipment is handled HTTP request message by the first OS,
That is, informing that SS later carries out business configuration to the network equipment according to the IP address of the first OS or HTTP is accessed.
For example, notifying terminal that will carry out the configuration information of business configuration to the network equipment (that is, WEB is configured by the first OS
Information) on give the first OS.Based on this, terminal can be sent WEB configuration information on the first OS.It is received subsequently through the first OS
Carry out the WEB configuration information of self terminal.If WEB configuration information is the configuration information of the first OS, WEB is matched by confidence by the first OS
Breath is configured on the first OS.If WEB configuration information is the configuration information of other OS in addition to the first OS, made by the first OS
WEB configuration information is sent to other OS with the internal communication protocol between the first OS and other OS, and passes through other OS for WEB
Configuration information is configured on other OS.Herein, at a time, a plurality of WEB configuration information, meeting may be received by the first OS
Determine which OS these WEB configuration informations all refer to respectively.
In another example notifying terminal to give the HTTP for carrying out HTTP access to network equipment access message up sending by the first OS
First OS.Based on this, HTTP can be accessed message and is sent on the first OS by terminal.HTTP access is received subsequently through the first OS
When message, HTTP access message is handled (concrete processing procedure with WEB management is in the prior art respectively provided on each OS
The process that HTTP access message is handled when interface is identical, and this will not be detailed here), and to terminal returning response message.
When WEB administration interface is located at two OS, inform SS later according to the 2nd OS IP address to the network equipment into
Row business configuration or HTTP access, that is, send the HTTP redirection for carrying the IP address of the 2nd OS to terminal by the first OS
Response message carries out business configuration to the network equipment according to the IP address of the 2nd OS with instruction terminal or HTTP is accessed.
For example, notifying terminal that will give the 2nd OS on WEB configuration information by the 2nd OS.Based on this, terminal can match WEB
Confidence breath is sent on the 2nd OS.The WEB configuration information for carrying out self terminal is received subsequently through the 2nd OS.If WEB configuration information is
WEB configuration information is then configured on the 2nd OS by the 2nd OS by the configuration information of the 2nd OS.If WEB configuration information is except the
The configuration information of other OS except two OS, then will using the internal communication protocol between the 2nd OS and other OS by the 2nd OS
WEB configuration information is sent to other OS, and WEB configuration information is configured on other OS by other OS.
In another example notifying terminal to give the HTTP for carrying out HTTP access to network equipment access message up sending by the first OS
2nd OS.Based on this, HTTP can be accessed message and is sent on the 2nd OS by terminal.HTTP access is received subsequently through the 2nd OS
When message, HTTP access message is handled (concrete processing procedure with WEB management is in the prior art respectively provided on each OS
The process that HTTP access message is handled when interface is identical, and this will not be detailed here), and to terminal returning response message.
In the configuration process of above-mentioned WEB configuration information, if WEB configuration information is used for the Configuration network business on OS,
WEB configuration information Configuration network business on corresponding OS is then utilized, so that the OS can provide network service.If WEB
Configuration information is used to configure NAS business on OS, then NAS business is configured on corresponding OS using the WEB configuration information, so that
The OS can provide NAS business.
Also, after an OS obtains the WEB configuration information of another OS, which is mainly used for making this
The WEB configuration information of another OS is sent to another OS by one OS.Wherein, which can be proprietary protocol
Or puppy parc, for example, the internal communication protocol can be Socket (socket)+Json (JavaScript Object
Notation, formula scripting language object representation of literal translating) or HTTP (Hyper Text Transfer Protocol, it is super literary
This transport protocol) etc., without limitation, all modes that WEB configuration information can be transmitted between two OS can be with.
For the process that WEB configuration information is configured to corresponding OS, in the prior art, terminal holds user's needs
Respectively using the corresponding OS of IP address management of each OS on the network equipment, constantly switch between different OS.That is, equal on each OS
There are WEB administration interfaces, in this way, any OS would only receive the WEB configuration information of this OS, are then existed using WEB configuration information
Related service is configured on this OS.
And in the embodiment of the present invention, terminal holds user and can manage the network equipment using only the IP address of an OS
Multiple OS, improve user experience.That is, can only configure WEB administration interface on an OS, in this way, by using OS's
IP address can find the OS where WEB administration interface, and then the OS will receive the WEB configuration that different OS are carried out with business configuration
Information is completed the transmitting of correlation WEB configuration information using internal communication protocol each other, finally realizes the business of multiple OS
Configuration is not necessarily to frequent switching OS.
Step 203, if IP address threeth OS different from the IP address of the first OS is for handling non-HTTP on the network equipment
The purpose IP address of non-HTTP message is revised as the IP address of the 3rd OS by the first OS by message, by modified non-HTTP
Message is sent to the 3rd OS, and when receiving modified non-HTTP message by the 3rd OS, by the 3rd OS to modification after
Non- HTTP message handled.In addition, if the first OS for handling non-HTTP message, by the first OS to non-HTTP message into
Row processing.
Wherein, the 3rd OS and the 2nd above-mentioned OS, may be the same or different.Above-mentioned non-HTTP message can be
For the message of NAS business or gateway of internet of things business.
In this step, it for the process handled by the first OS non-HTTP message, and handles in the prior art
The process of the OS processing corresponding service message of the non-affiliated business of HTTP message is identical, and this will not be detailed here.
In addition, the purpose IP address of non-HTTP message to be revised as to the process of the IP address of the 3rd OS by the first OS, have
Body can include but is not limited to such as under type: the destination port inquiry carried by the first OS using the non-HTTP message is matched in advance
The port mapping table set obtains the IP address of the 3rd OS, wherein record has each non-WEB service (that is, non-in the port mapping table
HTTP business) corresponding port and provide non-WEB service OS IP address between corresponding relationship.It is by the first OS that this is non-
The purpose IP address of HTTP message is revised as the IP address of the 3rd currently available OS.
For the process handled by the 3rd OS the modified non-HTTP message, specifically: pass through the 3rd OS
From being parsed in the modified non-HTTP message for accessing non-WEB service (such as NAS business or gateway of internet of things business)
Access information, and non-WEB service processing is carried out using the access information, obtain the response message of non-WEB service processing.Further
, after being handled by the 3rd OS modified non-HTTP message, it will be directed to by the 3rd OS modified non-
The response message of HTTP message is sent to the first OS, and when receiving the response message by the first OS, then passes through the first OS
The source IP address of the response message is revised as to the IP address of the first OS, and modified response is returned to terminal by the first OS
Message.
In the embodiment of the present invention, nat feature is enabled on the first OS, nat feature is based on, safeguards one in advance on the first OS
A port mapping table records the corresponding port of each non-WEB service in the port mapping table and provides the IP of the OS of the non-WEB service
Corresponding relationship between address.For example, between the corresponding port of record NAS business and the IP address for the OS for providing the NAS business
Corresponding relationship, pair between the corresponding port of record gateway of internet of things business and the IP address for the OS that the gateway of internet of things business is provided
It should be related to.NAS business can be terminal and access shared file by windows file browser, alternatively, terminal passes through FTP
The business of (File Transfer Protocol, File Transfer Protocol) softward interview shared file.
For the treatment process of the message (that is, non-HTTP message) of non-WEB service, in the prior art, user is to visit
It asks a variety of non-WEB service, needs constantly to switch OS.And in embodiments of the present invention, user need to only use the IP address of an OS
It may have access to a variety of non-WEB service, that is, when the first OS receives the non-HTTP message for the IP address that purpose IP address is this OS
When, the non-HTTP message is handled if it is this OS, then directly handles non-HTTP message by this OS, it is non-to handle this if it is other OS
HTTP message then needs to modify based on purpose IP address of the nat feature to non-HTTP message, and by modified non-HTTP
Message is sent to other OS, to assist to complete the access of non-WEB service, improves user experience.
Based on the above-mentioned technical proposal, when the network equipment includes at least two OS, and each OS has independent IP address,
An IP address can be only provided the terminal with, the IP address can be used in terminal, and management or access include at least two OS's
The network equipment does not need to provide the terminal with multiple IP address, and access or management are switched between multiple OS, promotes user's body
It tests.
Message processing method provided by the invention is described in detail below in conjunction with application scenarios shown in FIG. 1.At this
Under application scenarios, the network equipment may include OS1 for providing network service and for providing the OS2 of NAS business, OS1's
IP address is IP address 1, and the IP address of OS2 is IP address 2, in addition, WEB administration interface can be deployed in OS1 or OS2, and
The IP address 1 of OS1 is externally provided.
Under the application scenarios that OS1 receives HTTP request message, above-mentioned message processing method be may comprise steps of:
Step 1, OS1 receive the HTTP request message for carrying out the purpose IP address of self terminal for IP address 1.
Step 2, OS1 judge whether WEB administration interface is located at this OS1, if so, 3 are thened follow the steps, if not, assert
WEB administration interface is located on OS2, thens follow the steps 4.
Step 3, OS1 handle HTTP request message, and to terminal returning response message, with instruction terminal according to IP
Address 1 carries out HTTP access or business configuration to the network equipment.
After terminal receives response message, when needing to carry out HTTP access to the network equipment, HTTP can be sent to OS1 and visited
It asks message (i.e. it is IP address 1 that the HTTP, which accesses the purpose IP address of message), it is subsequent directly to be handled by OS1;It is needing to network
When equipment carries out business configuration, WEB configuration information (can embody in a manner of WEB mutual message) can be sent to OS1, it is subsequent
When OS1 receives WEB configuration information, judge which OS WEB configuration information is, if oneself, WEB is directly matched into confidence
Breath is allocated to oneself;If other OS's, then WEB configuration information is given to by other OS by internal communication protocol, by other OS
Related WEB configuration information is configured.
Step 4, OS1 send the HTTP redirection response message for carrying the IP address of OS2 to terminal, which rings
It answers message to be used to indicate terminal and HTTP access or business configuration is carried out to the network equipment according to the IP address of OS2.
After this step, terminal can send HTTP to OS 2 and visit when needing to carry out HTTP access to the network equipment
It asks message (i.e. it is IP address 2 that the HTTP, which accesses the purpose IP address of message), it is subsequent directly to be handled by OS 2;It is needing to network
When equipment carries out business configuration, WEB configuration information (can embody in a manner of WEB mutual message) can be sent to OS 2, after
When continuous OS 2 receives WEB configuration information, judge which OS WEB configuration information is, if oneself, directly WEB is matched
Confidence breath is allocated to oneself;If other OS's, then WEB configuration information is given to by other OS by internal communication protocol, by it
Related WEB configuration information is configured by its OS.
Under the application scenarios that OS1 receives non-HTTP message, above-mentioned message processing method be may comprise steps of:
Step 1, OS1 receive the non-HTTP message for carrying out the purpose IP address of self terminal for IP address 1.
Step 2, OS1 judge whether to handle the non-HTTP message by this OS1.If so, 3 are thened follow the steps, if not, recognizing
It is fixed that the non-HTTP message (such as NAS service message) is handled by OS2, then follow the steps 5.
Step 3, OS1 parse the access information for accessing non-WEB service from non-HTTP message, and utilize the access
Information carries out non-WEB service processing.
Step 4, OS1 return to the response message that non-WEB service is handled to terminal.
Step 5, OS1 inquire preconfigured port mapping table using the destination port that non-HTTP message carries, and are somebody's turn to do
The IP address 2 of the corresponding OS2 of destination port.
The purpose IP address of non-HTTP message is revised as the IP address 2 of OS2 by step 6, OS1.
Modified non-HTTP message is sent to OS2 by step 7, OS1.
Step 8, OS2 receive the non-HTTP message that purpose IP address is IP address 2.
Step 9, OS2 parse the access information for accessing non-WEB service from non-HTTP message, and utilize the access
Information carries out non-WEB service processing.
Step 10, OS2 return to the response message that non-WEB service is handled to OS1.
Step 11, OS1 repair the source IP address of the response message after the response message for receiving non-WEB service processing
It is changed to the IP address 1 (being the IP address 2 of OS2 before modification) of OS1.
Step 12, OS1 return to modified response message to terminal.
Based on inventive concept same as the above method, a kind of message process device is also provided in the embodiment of the present invention, it should
Message process device application is on network devices.The message process device can by software realization, can also by hardware or
The mode of person's software and hardware combining is realized.It taking software implementation as an example, is by where it as the device on a logical meaning
The processor of the network equipment, corresponding computer program instructions are formed in reading non-volatile storage.From hardware view
Speech, as shown in figure 3, a kind of hardware structure diagram of the network equipment where message process device proposed by the present invention, in addition to Fig. 3
Shown in processor, outside nonvolatile memory, the network equipment can also include other hardware, such as be responsible for the forwarding of processing message
Chip, network interface, memory etc.;From hardware configuration, which is also possible to be distributed apparatus, may include more
A interface card, to carry out the extension of Message processing in hardware view.
As shown in figure 4, being the structure chart of message process device proposed by the present invention, described device includes:
HTTP message processing module 11, for receiving by the first operating system OS of the network equipment come self terminal
When purpose IP address is the HTTP request message of the IP address of the first OS, if the WEB administration interface of the network equipment is located at net
IP address twoth OS different from the IP address of the first OS in network equipment, then by the first OS by the 2nd OS's
IP address is notified to the terminal, carries out business to the network equipment with the IP address by the terminal according to the 2nd OS
Configuration;
Non- HTTP message processing module 12, for being described being received by the first OS come the purpose IP address of self terminal
When the non-HTTP message of the IP address of the first OS, if the IP address third different from the IP address of the first OS on the network equipment
The purpose IP address of the non-HTTP message is revised as described by OS for handling the non-HTTP message, by the first OS
Modified non-HTTP message is sent to the 3rd OS, and received by the 3rd OS by the IP address of the 3rd OS
When the modified non-HTTP message, the modified non-HTTP message is handled by the 3rd OS.
The HTTP message processing module 11, specifically for being notified the IP address of the 2nd OS to described by the first OS
During terminal, the HTTP redirection response message for carrying the IP address of the 2nd OS is sent to terminal by the first OS,
The HTTP redirection response message be used to indicate the terminal according to the 2nd OS IP address to the network equipment into
Row business configuration or HTTP access.
The non-HTTP message processing module 12, specifically for passing through the first OS for the destination IP of the non-HTTP message
During the IP address of the 3rd OS is revised as in address, the mesh of the non-HTTP message carrying is utilized by the first OS
The preconfigured port mapping table of interface querying, obtain the IP address of the 3rd OS, wherein remember in the port mapping table
Record has the corresponding port of each non-WEB service and provides the corresponding relationship between the IP address of the OS of the non-WEB service;Pass through institute
State the IP address that the purpose IP address of the non-HTTP message is revised as currently available the 3rd OS by the first OS;
The non-HTTP message processing module 12 is also used to reporting the modified non-HTTP by the 3rd OS
After text is handled, it will be sent to for the response message of the modified non-HTTP message by the 3rd OS described
First OS, and when receiving the response message by the first OS, by the first OS by the response message
Source IP address is revised as the IP address of the first OS, and returns to modified response to the terminal by the first OS and report
Text.
The HTTP message processing module 11 passes through institute if being also used to the WEB administration interface is located at the first OS
The first OS is stated to handle the HTTP request message;
The non-HTTP message processing module 12 is used to handle the non-HTTP message if being also used to the first OS,
The non-HTTP message is handled by the first OS.
The HTTP message processing module 11, be also used to by the first OS to the HTTP request message at
After reason, the WEB configuration information from the terminal is received by the first OS;
If the WEB configuration information is the configuration information of the first OS, the WEB is configured by the first OS
In information configuration to the first OS;If the WEB configuration information is the configuration information of other OS in addition to the first OS,
Then use the internal communication protocol between the first OS and other OS by the WEB configuration information by the first OS
Other OS are sent to, and the WEB configuration information is configured on other OS by other OS.
The HTTP message processing module 11 is also used to notifying the IP address of the 2nd OS by the first OS
After the terminal, the WEB configuration information from the terminal is received by the 2nd OS;If the WEB configuration information
For the configuration information of the 2nd OS, then the WEB configuration information is configured on the 2nd OS by the 2nd OS;If
The WEB configuration information is the configuration information of other OS in addition to the 2nd OS, then by described in the 2nd OS use
The WEB configuration information is sent to other OS by the internal communication protocol between the 2nd OS and other OS, and is passed through
The WEB configuration information is configured on other OS by other OS.
Wherein, the modules of apparatus of the present invention can integrate in one, can also be deployed separately.Above-mentioned module can close
And be a module, multiple submodule can also be further split into.
Through the above description of the embodiments, those skilled in the art can be understood that the present invention can be by
Software adds the mode of required general hardware platform to realize, naturally it is also possible to which by hardware, but in many cases, the former is more
Good embodiment.Based on this understanding, technical solution of the present invention substantially in other words contributes to the prior art
Part can be embodied in the form of software products, which is stored in a storage medium, if including
Dry instruction is used so that a computer equipment (can be personal computer, server or the network equipment etc.) executes this hair
Method described in bright each embodiment.It will be appreciated by those skilled in the art that attached drawing is the schematic diagram of a preferred embodiment,
Module or process in attached drawing are not necessarily implemented necessary to the present invention.
It will be appreciated by those skilled in the art that the module in device in embodiment can describe be divided according to embodiment
It is distributed in the device of embodiment, corresponding change can also be carried out and be located in one or more devices different from the present embodiment.On
The module for stating embodiment can be merged into a module, can also be further split into multiple submodule.The embodiments of the present invention
Serial number is for illustration only, does not represent the advantages or disadvantages of the embodiments.
Disclosed above is only several specific embodiments of the invention, and still, the present invention is not limited to this, any ability
What the technical staff in domain can think variation should all fall into protection scope of the present invention.
Claims (12)
1. a kind of message processing method, using on network devices, which is characterized in that the described method includes:
Receiving in the first operating system OS by the network equipment come the purpose IP address of self terminal is the first OS
IP address HTTP request message when, if the WEB administration interface of the network equipment is located at the net
IP address twoth OS different from the IP address of the first OS in network equipment, then by the first OS by the 2nd OS's
IP address is notified to the terminal, carries out business to the network equipment with the IP address by the terminal according to the 2nd OS
Configuration;
It is reported in the non-HTTP for receiving the IP address that the purpose IP address from the terminal is the first OS by the first OS
Wen Shi, if IP address threeth OS different from the IP address of the first OS is for handling the non-HTTP on the network equipment
The purpose IP address of the non-HTTP message is then revised as the IP address of the 3rd OS by message by the first OS, will
Modified non-HTTP message is sent to the 3rd OS, and is receiving the modified non-HTTP by the 3rd OS
When message, the modified non-HTTP message is handled by the 3rd OS.
2. the method according to claim 1, wherein it is described by the first OS by the IP of the 2nd OS
Location notifies to specifically include to the process of the terminal:
The HTTP redirection response message for carrying the IP address of the 2nd OS, institute are sent to the terminal by the first OS
State HTTP redirection response message be used to indicate the terminal according to the 2nd OS IP address to the network equipment carry out
Business configuration or HTTP access.
3. the method according to claim 1, wherein it is described by the first OS by the non-HTTP message
Purpose IP address is revised as the process of the IP address of the 3rd OS, specifically includes:
Preconfigured port mapping table is inquired using the destination port that the non-HTTP message carries by the first OS, is obtained
To the IP address of the 3rd OS, wherein record has the corresponding port of each non-WEB service and provides institute in the port mapping table
State the corresponding relationship between the IP address of the OS of non-WEB service;
The purpose IP address of the non-HTTP message is revised as to the IP of currently available the 3rd OS by the first OS
Address;
After being handled by the 3rd OS the modified non-HTTP message, further includes:
By the 3rd OS the first OS will be sent to for the response message of the modified non-HTTP message, and
When receiving the response message by the first OS, the source IP address of the response message is modified by the first OS
For the IP address of the first OS, and modified response message is returned to the terminal by the first OS.
4. method as claimed in any one of claims 1-3, which is characterized in that the method also includes:
If the WEB administration interface is located at the first OS, by the first OS to the HTTP request message at
Reason;
If the first OS for handling the non-HTTP message, by the first OS to the non-HTTP message at
Reason.
5. method as claimed in claim 4, which is characterized in that the method also includes:
After being handled by the first OS the HTTP request message, received by the first OS from described
The WEB configuration information of terminal;
If the WEB configuration information is the configuration information of the first OS, pass through the first OS for the WEB configuration information
It is configured on the first OS;
If the WEB configuration information is the configuration information of other OS in addition to the first OS, made by the first OS
The WEB configuration information is sent to other OS with the internal communication protocol between the first OS and other OS,
And the WEB configuration information is configured on other OS by other OS.
6. the method as described in claim 1, which is characterized in that the method also includes:
After notifying to the terminal by the IP address of the 2nd OS by the first OS, received by the 2nd OS
WEB configuration information from the terminal;
If the WEB configuration information is the configuration information of the 2nd OS, pass through the 2nd OS for the WEB configuration information
It is configured on the 2nd OS;
If the WEB configuration information is the configuration information of other OS in addition to the 2nd OS, made by the 2nd OS
The WEB configuration information is sent to other OS with the internal communication protocol between the 2nd OS and other OS,
And the WEB configuration information is configured on other OS by other OS.
7. a kind of message process device, using on network devices, which is characterized in that described device includes:
Hypertext transfer protocol HTTP message processing module, for the first operating system OS by the network equipment receive come
When the purpose IP address of self terminal is the HTTP request message of the IP address of the first OS, if the WEB management field of the network equipment
Face is located at the 2nd OS that IP address is different from the IP address of the first OS on the network equipment, then will be described by the first OS
The IP address of 2nd OS notifies to the terminal, with by the terminal according to the 2nd OS IP address to the network equipment
Carry out business configuration;
Non- HTTP message processing module, for being described the receiving the purpose IP address from the terminal by the first OS
When the non-HTTP message of the IP address of one OS, if IP address threeth OS different from the IP address of the first OS on the network equipment
For handling the non-HTTP message, the purpose IP address of the non-HTTP message is revised as described by the first OS
Modified non-HTTP message is sent to the 3rd OS, and is receiving institute by the 3rd OS by the IP address of three OS
When stating modified non-HTTP message, the modified non-HTTP message is handled by the 3rd OS.
8. device according to claim 7, which is characterized in that
The HTTP message processing module, specifically for being notified the IP address of the 2nd OS to the terminal by the first OS
In the process, the HTTP redirection response message for carrying the IP address of the 2nd OS is sent to terminal by the first OS, it is described
HTTP redirection response message is used to indicate the terminal and carries out industry to the network equipment according to the IP address of the 2nd OS
Business configuration or HTTP access.
9. device according to claim 7, which is characterized in that
The non-HTTP message processing module, specifically for by the first OS by the destination IP of the non-HTTP message
During the IP address of the 3rd OS is revised as in location, the purpose of the non-HTTP message carrying is utilized by the first OS
The preconfigured port mapping table of interface querying obtains the IP address of the 3rd OS, wherein record in the port mapping table
Corresponding relationship between the IP address of the OS of the corresponding port of each non-WEB service and the offer non-WEB service is provided;By described
The purpose IP address of the non-HTTP message is revised as the IP address of currently available the 3rd OS by the first OS;
The non-HTTP message processing module is also used to carrying out the modified non-HTTP message by the 3rd OS
After processing, described first will be sent to for the response message of the modified non-HTTP message by the 3rd OS
OS, and when receiving the response message by the first OS, by the first OS by the source IP of the response message
The IP address of the first OS is revised as in address, and returns to modified response message to the terminal by the first OS.
10. according to the described in any item devices of claim 7-9, which is characterized in that
The HTTP message processing module passes through described first if being also used to the WEB administration interface is located at the first OS
OS handles the HTTP request message;
The non-HTTP message processing module passes through institute if being also used to the first OS for handling the non-HTTP message
The first OS is stated to handle the non-HTTP message.
11. device according to claim 10, which is characterized in that
The HTTP message processing module is also used to carry out handling it to the HTTP request message by the first OS
Afterwards, the WEB configuration information from the terminal is received by the first OS;
If the WEB configuration information is the configuration information of the first OS, pass through the first OS for the WEB configuration information
It is configured on the first OS;If the WEB configuration information is the configuration information of other OS in addition to the first OS, lead to
The first OS is crossed to send the WEB configuration information using the internal communication protocol between the first OS and other OS
The WEB configuration information is configured on other OS to other OS, and by other OS.
12. device according to claim 7, which is characterized in that
The HTTP message processing module is also used to notifying the IP address of the 2nd OS to described by the first OS
After terminal, the WEB configuration information from the terminal is received by the 2nd OS;If the WEB configuration information is described
The WEB configuration information is then configured on the 2nd OS by the 2nd OS by the configuration information of the 2nd OS;If described
WEB configuration information is the configuration information of other OS in addition to the 2nd OS, then uses described second by the 2nd OS
The WEB configuration information is sent to other OS by the internal communication protocol between OS and other OS, and by described
The WEB configuration information is configured on other OS by other OS.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610080246.3A CN105763453B (en) | 2016-02-04 | 2016-02-04 | A kind of message processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610080246.3A CN105763453B (en) | 2016-02-04 | 2016-02-04 | A kind of message processing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105763453A CN105763453A (en) | 2016-07-13 |
CN105763453B true CN105763453B (en) | 2019-05-07 |
Family
ID=56330654
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610080246.3A Active CN105763453B (en) | 2016-02-04 | 2016-02-04 | A kind of message processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105763453B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103370689A (en) * | 2010-10-01 | 2013-10-23 | Flex Electronics ID Co.,Ltd. | Cross-environment application compatibility |
CN103744729A (en) * | 2014-01-24 | 2014-04-23 | 福州瑞芯微电子有限公司 | Computer system with operating systems switchable |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100251233A1 (en) * | 2009-03-25 | 2010-09-30 | Honeywell International Inc. | Embedded computing system user interface emulated on a separate computing device |
-
2016
- 2016-02-04 CN CN201610080246.3A patent/CN105763453B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103370689A (en) * | 2010-10-01 | 2013-10-23 | Flex Electronics ID Co.,Ltd. | Cross-environment application compatibility |
CN103744729A (en) * | 2014-01-24 | 2014-04-23 | 福州瑞芯微电子有限公司 | Computer system with operating systems switchable |
Also Published As
Publication number | Publication date |
---|---|
CN105763453A (en) | 2016-07-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103403707B (en) | The system and method exchanged for database proxy request | |
CN104364761B (en) | For the system and method for the converting flow in cluster network | |
CN102217273B (en) | Systems and methods for application fluency policies | |
CN103548022B (en) | The pattern matching systems of UTF 8 and method | |
CN103873486B (en) | For the system and method for load balancing real time streaming protocol | |
CN109543463A (en) | Data Access Security method, apparatus, computer equipment and storage medium | |
CN105553977B (en) | Processing, sending method and the device of request message | |
CN104468363B (en) | Page reorientation method, routing device, terminal device and system | |
CN106856434A (en) | The method and apparatus of access request conversion | |
CN110224996A (en) | Network Access Method, device, computer equipment and the storage medium of application program | |
CN107196982A (en) | A kind for the treatment of method and apparatus of user's request | |
CN102460391A (en) | Systems and methods for providing virtual appliance in application delivery fabric | |
CN108183975A (en) | A kind of method and system of domain name mapping | |
CN105556496A (en) | Scalable direct inter-node communication over peripheral component interconnect-express (PCIe) | |
CN108055312A (en) | Method for routing and its device and computer installation and its readable storage medium storing program for executing | |
CN107181779A (en) | Processing method, the device and system of access request | |
CN107613037A (en) | A kind of domain name reorientation method and system | |
CN108156274A (en) | Equipment is made to obtain the method and device of domain name mapping result in a kind of VPN network | |
CN110301119A (en) | Improve the system and method for computer network performance for the multiplexing application-level flow for network flow | |
CN111585786A (en) | Realization of secret-free building method of big data cluster | |
CN109474713A (en) | Message forwarding method and device | |
CN106411742B (en) | A kind of method and apparatus of message transmissions | |
CN107645543A (en) | Method and system applied to the non-80 caching miniport services of caching server HTTP | |
CN109413224A (en) | Message forwarding method and device | |
US11562030B2 (en) | Applying filter expressions to requests at an edge server |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No. Applicant after: Xinhua three Technology Co., Ltd. Address before: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No. Applicant before: Huasan Communication Technology Co., Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |