CN104869026A - Method, access equipment and gateway equipment for LAN (Local Area Network) background flow detection - Google Patents

Method, access equipment and gateway equipment for LAN (Local Area Network) background flow detection Download PDF

Info

Publication number
CN104869026A
CN104869026A CN201410063081.XA CN201410063081A CN104869026A CN 104869026 A CN104869026 A CN 104869026A CN 201410063081 A CN201410063081 A CN 201410063081A CN 104869026 A CN104869026 A CN 104869026A
Authority
CN
China
Prior art keywords
request message
soap
upnp
access device
gateway device
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
CN201410063081.XA
Other languages
Chinese (zh)
Other versions
CN104869026B (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.)
Datang Software Technologies Co Ltd
Original Assignee
Datang Software Technologies 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 Datang Software Technologies Co Ltd filed Critical Datang Software Technologies Co Ltd
Priority to CN201410063081.XA priority Critical patent/CN104869026B/en
Publication of CN104869026A publication Critical patent/CN104869026A/en
Application granted granted Critical
Publication of CN104869026B publication Critical patent/CN104869026B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method, access equipment and gateway equipment for LAN background flow detection. The access equipment and the gateway equipment are included in the LAN. The method comprises that the access equipment broadcasts a UPNP protocol request message to the LAN; when the access equipment receives a UPNP protocol response message which is returned by the gateway equipment aimed at the UPNP protocol request message, service description information of the gateway equipment is extracted from the UPNP protocol response message; the service description information is used to generate an SOAP request message; the SOAP request message is sent to the gateway equipment, and a SOAP response message which is returned by the gateway equipment aimed at the SOAP request message is received; and the current background network flow of the LAN is calculated according to the SOAP response message. According to the method, access equipment and gateway equipment, the LAN background flow can be accurately measured, the accuracy of broadband speed measuring result is ensured, and the reusability of the detection method is higher.

Description

For method, access device and gateway device that local area network (LAN) background traffic detects
Technical field
The present invention relates to Internet technical field, be specifically related to a kind of method detected for local area network (LAN) background traffic, a kind of access device detected for local area network (LAN) background traffic, and a kind of gateway device detected for local area network (LAN) background traffic.
Background technology
Along with the number of electronic devices explosive growth of accessing Internet, and the increase of broadband inserting service provider, in LAN environment, as in home network environment and business network environment, there is the electronic equipment of various access network, such as: desktop computer, notebook computer, mobile phone, flat board etc., these electronic equipments need to pass through gateway device, use network address translation (NetworkAddress Translation, NAT) technology accessing Internet.
Adopt gateway device composition LAN environment in carry out broadband test the speed time, other electronic equipments be under same gateway may produce network traffics communicating with gateway device simultaneously, or the background program of the PC that tests the speed produces network traffics, and equipment proper communication produces network traffics, these network traffics are referred to as background traffic, the result that broadband can be caused to test the speed is inaccurate, departs from actual bandwidth value, thus needs the actual numerical value detecting background traffic in current local area network environment.
In order to detect the background traffic in current local area network environment, what prior art adopted is the method for carrying out network host discovery at the current PC of testing the speed.Specifically, any network Detection task is exactly be main frame movable in a part of scope one group of IP range shorter, detects it.Because network host finds to realize frequently by ping utility, be therefore usually referred to as ping scanning.The object of ping scanning is acquisition response is movable to show certain IP address, is namely used by certain main frame, then can think that the main frame corresponding with this IP is in local area network (LAN).
But, ping utility is the echo echo request and the response that control message ICMP agreement based on Internet, user can ignore all ICMP echo by configuration icmp_echo_ignore_all option to be asked, when causing using the online host number of ping Scanning Detction local area network (LAN), source host cannot the ICMP echo of receiving target network respond, and cannot obtain correct online number of host; Secondly, when the fire compartment wall of immaculating in defence is between the source host carrying out Network finding and objective network, when fire compartment wall is caught and abandons ICMP detection bag or respond packet, some main frames just can not be detected, and also just cannot obtain correct online number of host; Finally, namely allow to obtain correct online number of host, also only just determine that the main frame of corresponding IP is current and add local area network (LAN), cannot determine whether online main frame produces background traffic, also cannot the background traffic likely produced be quantized accurately.
Therefore, the technical problem needing those skilled in the art urgently to solve at present is exactly: provide a kind of method, access device and the gateway device that detect for local area network (LAN) background traffic, in order to accurately to measure local area network (LAN) background traffic, thus ensure to test the speed the accuracy of result in broadband.
Summary of the invention
In view of the above problems, propose the present invention so as to provide a kind of overcome the problems referred to above or solve the problem at least in part a kind of for local area network (LAN) background traffic detect access device, and a kind of for local area network (LAN) background traffic detect gateway device and accordingly a kind of for local area network (LAN) background traffic detection method.
In order to solve the problem, the invention discloses a kind of method detected for local area network (LAN) background traffic, described local area network (LAN) comprises access device and gateway device, and described method comprises:
Access device is to described LAN broadcast UPnP UPNP agreement request message;
When described access device receives the UPNP protocol responses message that gateway device returns for described UPNP agreement request message, from described UPNP protocol responses message, extract the service description information of described gateway device;
Described service description information is adopted to generate simple object access protocol request message;
Described SOAP request message is sent to described gateway device, and, receive the SOAP response message that described gateway device returns for described SOAP request message;
The network traffics on current local area network backstage are calculated according to described SOAP response message.
Preferably, step from described access device to described LAN broadcast UPnP UPNP agreement request message before also comprise:
When access device access to LAN, obtain the IP address of described access device.
Preferably, described UPNP agreement request message is the tcp data grouping meeting UPNP agreement, and described access device comprises to the step of described LAN broadcast UPnP UPNP agreement request message:
When behind the IP address obtaining described access device, described access device generates the tcp data grouping meeting UPNP agreement;
Obtain IP address and the subnet mask of described gateway device;
Adopt IP address and the subnet mask account broadcast address of described gateway device;
Adopt described broadcast address in described local area network (LAN), broadcast the grouping of described tcp data.
Preferably, described when described access device receives the UPNP protocol responses message that gateway device returns for described UPNP agreement request message, the step extracting the service description information of described gateway device from described UPNP protocol responses message comprises:
One or more UPNP protocol responses messages that the equipment that described access device receives one or more support UPNP agreement in described local area network (LAN) returns for described UPNP agreement request message;
From described one or more UPNP protocol responses message, choose the UPNP protocol responses message with the IP matching addresses of described gateway device;
Service describing URL is extracted from the UPNP protocol responses message of described coupling;
Access described service describing URL, obtain corresponding service describing XML file;
Resolve described service describing XML file, obtain service description information.
Preferably, described service description information comprises total transmission byte number GetTotalBytesSent, and/or, total reception byte number GetTotalBytesReceived, and/or, total transmission packet count GetTotalPacketsSent, and/or, total reception packet count GetTotalPacketsReceived.
Preferably, the described service describing XML file of described parsing, the sub-step obtaining service description information comprises further:
Create DOM resolver;
Load in described service describing XML file to described DOM resolver;
SAXReader object is created in described DOM resolver;
Call SAXReader.read (File) function of described SAXReader object, described service describing XML file is converted to Document object;
Call the Document.getRootElement () function of described Document object, obtain the root node of described service describing XML file;
According to described root node, obtain the actionList node in described service describing XML;
The action information that the current gateway equipment comprised under extracting described actionList node is supported, as service description information.
Preferably, described SOAP request message comprises a SOAP request message and the 2nd SOAP request message, described SOAP response message comprises a SOAP response message and the 2nd SOAP response message, described described SOAP request message is sent to described gateway device, and the step receiving the SOAP response message that described gateway device returns for described SOAP request message comprises:
Described access device sends a SOAP request message to described gateway device;
Receive the SOAP response message that described gateway device returns for a described SOAP request message, a described SOAP response message comprises first of current time and receives total bytes;
After prefixed time interval, described access device sends the 2nd SOAP request message to described gateway device;
Receive the 2nd SOAP response message that described gateway device returns for described 2nd SOAP request message, after described 2nd SOAP response message comprises described interval, second of the time receives total bytes;
The described step calculating the network traffics on current local area network backstage according to described SOAP response message comprises:
Calculate described second and receive the difference that total bytes and described first receives total bytes, using the network traffics of described difference as current local area network backstage.
Preferably, after the step of the described network traffics according to described SOAP response message calculating current local area network backstage, described method also comprises:
Judge whether the network traffics on described current local area network backstage are greater than pre-set bandwidths detection threshold, if so, then judge the current access device network bandwidth that can take and actual bandwidth inconsistent;
If not, then judge that the network bandwidth that current access device can take is consistent with actual bandwidth.
In order to solve the problem, the invention also discloses a kind of method detected for local area network (LAN) background traffic, described local area network (LAN) comprises access device and gateway device, and described method comprises:
Gateway device receives the UPnP UPNP agreement request message that access device sends;
Gateway device returns UPNP protocol responses message corresponding to described UPNP agreement request message to described access device;
Gateway device receives the simple object access protocol request message that access device sends, described SOAP request message is after access device extracts the service description information of gateway device from described UPNP protocol responses message, described service description information is adopted to generate, and gateway device returns SOAP response message corresponding to described SOAP request message to described access device.
In order to solve the problem, the invention also discloses a kind of access device detected for local area network (LAN) background traffic, comprising:
Broadcast module, for described LAN broadcast UPnP UPNP agreement request message;
Service description information extraction module, during for receiving UPNP protocol responses message that gateway device returns for described UPNP agreement request message at described access device, extracts the service description information of described gateway device from described UPNP protocol responses message;
Request message generation module, generates simple object access protocol request message for adopting described service description information;
Send and receiver module, for described SOAP request message is sent to described gateway device, and, receive the SOAP response message that described gateway device returns for described SOAP request message;
Background traffic computing module, for calculating the network traffics on current local area network backstage according to described SOAP response message.
Preferably, described system also comprises:
IP address acquisition module, for when access device access to LAN, obtains the IP address of described access device.
Preferably, described broadcast module comprises:
Tcp data grouping generates submodule, and for behind the IP address obtaining described access device, described access device generates the tcp data grouping meeting UPNP agreement;
Gateway ip address obtains submodule, for obtaining IP address and the subnet mask of described gateway device;
Broadcast address calculating sub module, for adopting IP address and the subnet mask account broadcast address of described gateway device;
Tcp data multicasting submodule, broadcasts the grouping of described tcp data for adopting described broadcast address in described local area network (LAN).
Preferably, described service description information extraction module comprises:
Response message receives submodule, one or more UPNP protocol responses messages that the equipment receiving one or more support UPNP agreement in described local area network (LAN) for described access device returns for described UPNP agreement request message;
The response message of gateway device chooses submodule, for from described one or more UPNP protocol responses message, chooses the UPNP protocol responses message with the IP matching addresses of described gateway device;
Service describing URL extracts submodule, for extracting service describing URL from the UPNP protocol responses message of described coupling;
Service describing XML file obtains submodule, for accessing described service describing URL, obtains corresponding service describing XML file;
Service describing XML file analyzing sub-module, for resolving described service describing XML file, obtains service description information;
Preferably, described service description information comprises total transmission byte number GetTotalBytesSent, and/or, total reception byte number GetTotalBytesReceived, and/or, total transmission packet count GetTotalPacketsSent, and/or, total reception packet count GetTotalPacketsReceived.
Preferably, described service describing XML file analyzing sub-module comprises:
Resolver creates submodule, for creating DOM resolver;
Files loading submodule, for loading in described service describing XML file to described DOM resolver;
SAXReader Object Creation submodule, for creating SAXReader object in described DOM resolver;
Described service describing XML file, for calling SAXReader.read (File) function of described SAXReader object, is Document object by Document object transform subblock;
Root node obtains submodule, for calling the Document.getRootElement () function of described Document object, obtains the root node of described service describing XML file;
ActionList node obtains submodule, for according to described root node, obtains the actionList node in described service describing XML;
Action information extraction submodule, the action information that the current gateway equipment for comprising under extracting described actionList node is supported, as service description information.
Preferably, described SOAP request message comprises a SOAP request message and the 2nd SOAP request message, and described SOAP response message comprises a SOAP response message and the 2nd SOAP response message, and described transmission and receiver module comprise:
One SOAP request message sends submodule, sends a SOAP request message to described gateway device for described access device;
One SOAP response message receives submodule, and for receiving the SOAP response message that described gateway device returns for a described SOAP request message, a described SOAP response message comprises first of current time and receives total bytes;
2nd SOAP request message sends submodule, and for after prefixed time interval, described access device sends the 2nd SOAP request message to described gateway device;
2nd SOAP response message receives submodule, and for receiving the 2nd SOAP response message that described gateway device returns for described 2nd SOAP request message, after described 2nd SOAP response message comprises described interval, second of the time receives total bytes.
Preferably, described SOAP response message comprises the first reception total bytes and second and receives total bytes, and described background traffic computing module comprises:
Network traffics calculating sub module, receives the difference that total bytes and described first receives total bytes, using the network traffics of described difference as current local area network backstage for calculating described second.
Preferably, described system also comprises:
First decision sub-module, for when the network traffics on described current local area network backstage are greater than pre-set bandwidths detection threshold, then judge the current access device network bandwidth that can take and actual bandwidth inconsistent;
Second decision sub-module, for when the network traffics on described current local area network backstage are less than or equal to pre-set bandwidths detection threshold, then judges that the network bandwidth that current access device can take is consistent with actual bandwidth.
In order to solve the problem, the invention also discloses a kind of gateway device detected for local area network (LAN) background traffic, comprising:
Request message receiver module, for receiving the UPnP UPNP agreement request message that access device sends;
Response message returns module, for returning UPNP protocol responses message corresponding to described UPNP agreement request message to described access device;
Receive and return module, for receiving the simple object access protocol request message that access device sends, described SOAP request message is after access device extracts the service description information of gateway device from described UPNP protocol responses message, described service description information is adopted to generate, and, for returning SOAP response message corresponding to described SOAP request message to described access device.
Preferably, described UPNP agreement request message is the tcp data grouping meeting UPNP agreement.
Preferably, described SOAP request message comprises a SOAP request message and the 2nd SOAP request message, described reception with return module and comprise following submodule:
One SOAP request message receives submodule, for receiving the SOAP request message that access device sends;
One SOAP response message returns submodule, and for returning for a SOAP response message corresponding to a described SOAP request message to described access device, a described SOAP response message comprises first of current time and receives total bytes;
2nd SOAP request message receives submodule, and for after prefixed time interval, gateway device receives the 2nd SOAP request message that access device sends;
2nd SOAP response message returns submodule, and for returning for the 2nd SOAP response message corresponding to described 2nd SOAP request message to described access device, after described 2nd SOAP response message comprises described interval, second of the time receives total bytes.
Compared with background technology, the present invention includes following advantage:
The present invention is by sending simple object access protocol request message to described gateway device, and, calculate the network traffics on current local area network backstage for the SOAP response message that described SOAP request message returns according to described gateway device, accurate measurement local area network (LAN) background traffic, thus ensure to test the speed the accuracy of result in broadband.
The present invention is by resolving described device description XML file, obtain the service description information that action node accurately can extract gateway device, thus can need to select different interfaces according to difference, and, by the UPNP agreement of International standardization, the difference of different gateway devices can be ignored, for the gateway device that different manufacturer produces, realize the cross-platform characteristic detecting local area network (LAN) background network data, improve the reusability of detection method.
The present invention contrasts by adopting the network traffics on described current local area network backstage and pre-set bandwidths detection threshold, whether unanimously with actual bandwidth can detect the network bandwidth that current access device takies, thus ensures to test the speed the accuracy of result in broadband.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to technological means of the present invention can be better understood, and can be implemented according to the content of specification, and can become apparent, below especially exemplified by the specific embodiment of the present invention to allow above and other objects of the present invention, feature and advantage.
Accompanying drawing explanation
By reading hereafter detailed description of the preferred embodiment, various other advantage and benefit will become cheer and bright for those of ordinary skill in the art.Accompanying drawing only for illustrating the object of preferred implementation, and does not think limitation of the present invention.And in whole accompanying drawing, represent identical parts by identical reference symbol.In the accompanying drawings:
Fig. 1 shows a kind of according to an embodiment of the invention flow chart of steps of the embodiment of the method 1 for the detection of local area network (LAN) background traffic;
Fig. 2 shows a kind of according to an embodiment of the invention flow chart of steps of the embodiment of the method 2 for the detection of local area network (LAN) background traffic;
Fig. 3 shows a kind of according to an embodiment of the invention structured flowchart of the access device embodiment for the detection of local area network (LAN) background traffic;
Fig. 4 shows a kind of according to an embodiment of the invention structured flowchart of the gateway device embodiment for the detection of local area network (LAN) background traffic.
Embodiment
Below with reference to accompanying drawings exemplary embodiment of the present disclosure is described in more detail.Although show exemplary embodiment of the present disclosure in accompanying drawing, however should be appreciated that can realize the disclosure in a variety of manners and not should limit by the embodiment set forth here.On the contrary, provide these embodiments to be in order to more thoroughly the disclosure can be understood, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
For making those skilled in the art understand the present invention better, below correlation technique involved in the present invention is briefly described.
Local area network (LAN) background traffic, refer to that the electronic equipment in local area network (LAN) initiatively carries out the network traffics of network traffics and the proper communication generation produced when uploading downloading task, such as test the speed the network traffics of the electronic equipment beyond PC, or, network traffics of the background program of the PC that tests the speed etc.The network traffics that proper communication produces refer to that electronic equipment is in the network traffics of initiatively not carrying out the necessity produced when uploading downloading task, generally can float within the scope of normality threshold.
The broadband instrument of testing the speed of current main flow merely provides up to the Internet of the PC that tests the speed, and/or, downlink traffic detects, for the LAN subscriber by gateway device access network, the measurement network bandwidth carried out when indefinite local area network (LAN) background traffic, have ignored local area network (LAN) background traffic, the measurement result obtained is not often real bandwidth rates, it is compared to ISP ISP(Internet Service Provider) the broadband speed of reality that provides is on the low side, on the low side even far away.Occur that the reason of this situation is likely the problem of the service quality QoS (Quality of Service) of ISP, also be likely the existence that user have ignored local area network (LAN) background traffic, and the network bandwidth of user's each electronic equipment in indefinite residing local area network (LAN) actual is when taking the service condition of situation and background traffic, often think and occur that measurement result goes wrong lower than the service quality QoS that the reason of bandwidth application speed is ISP, therefore, be unfavorable for that the QoS Consumer's Experience of ISP carries out data statistics, and then the O&M of ISP own network infrastructure and renewal are brought inconvenience.
Inventor herein finds the seriousness of this problem just, creatively one of core idea proposing the embodiment of the present invention is, a kind of testing mechanism of local area network (LAN) background traffic is provided, can be implemented in the network traffics by SOAP response message accurate Calculation current local area network backstage under LAN environment, thus ensure to test the speed the accuracy of result in broadband.
With reference to Fig. 1, show a kind of according to an embodiment of the invention flow chart of steps of the embodiment of the method 1 for the detection of local area network (LAN) background traffic, described local area network (LAN) comprises access device and gateway device, specifically can comprise the steps:
Step 101, access device is to described LAN broadcast UPnP UPNP agreement request message;
In actual applications, UPnP UPNP agreement is based on ICP/IP protocol with for equipment communication and the new Internet agreement of working out to each other; Broadcast is the communication mode of a main frame to the every other main frame transmission frame on network, and network all unconditionally copies the signal that wherein each main frame sends and forwards, and All hosts can receive all signals, though main frame the need of; Access device normally tests the speed PC, can broadcast UPnP UPNP agreement request message by the PC that tests the speed to LAN broadcast.
In one preferred embodiment of the invention, before described step 101, the embodiment of the present invention can also comprise the steps:
When access device access to LAN, obtain the IP address of described access device.
In a particular application, the IP address obtaining access device can adopt the following two kinds mode:
1) by dynamic host configuration DHCP agreement, the IP address in local area network (LAN) is automatically distributed;
2) by the IP address of static state setting local area network gateway equipment, the IP address in designated local area network.
Specifically, mode 1) in, by DHCP agreement, any access device automatic acquisition IP address can be made, when moving to other position in network when access device, automatically can receive new IP address equally.DHCP agreement employs the concept of lease, or is called the term of validity of Computer IP address.Rental period is indefinite, depends primarily on user and connects Internet needs in somewhere how long, and this is very practical for education sector and frequent user changing environment.By the shorter rental period, DHCP agreement dynamically can reconfigure network in the environment of a number of computers more than available IP-addresses number.The support of DHCP agreement is that computer distributes static address, as needed the Web server of permanent IP address.
Mode 2) in, by static state setting IP address, the IP address of Non-follow control access device can be guaranteed, but shortcoming fault-tolerance, when access device moves to other positions, need to reset the IP address of access device.
In embodiments of the present invention, those skilled in the art can select suitable mode to obtain the IP address of described access device as required, and the embodiment of the present invention is not limited this.
In one preferred embodiment of the invention, described UPNP agreement request message is the tcp data grouping meeting UPNP agreement, and described step 101 specifically can comprise following sub-step:
Sub-step S11, when behind the IP address obtaining described access device, described access device generates the tcp data grouping meeting UPNP agreement;
Sub-step S12, obtains IP address and the subnet mask of described gateway device;
Sub-step S13, adopts IP address and the subnet mask account broadcast address of described gateway device;
Sub-step S14, adopts described broadcast address in described local area network (LAN), broadcast the grouping of described tcp data.
Specifically, access device can generate the tcp data grouping meeting UPNP agreement, according to the IP address of described access device, IP address and the subnet mask of current gateway equipment can be confirmed, thus can be easy to calculate the broadcast address of tcp data grouping, according to broadcast address tcp data grouping sent to the main frame in local area network (LAN).
Certainly, just exemplarily, when implementing the embodiment of the present invention, can arrange the broadcasting method of other tcp datas grouping according to actual conditions, the embodiment of the present invention is not limited this broadcasting method of above-mentioned tcp data grouping.In addition, except the broadcasting method that above-mentioned tcp data divides into groups, the broadcasting method that those skilled in the art can also adopt other tcp data to divide into groups according to actual needs, the embodiment of the present invention is not also limited this.
Step 102, when described access device receives the UPNP protocol responses message that gateway device returns for described UPNP agreement request message, extracts the service description information of described gateway device from described UPNP protocol responses message;
In specific implementation, if access device cannot obtain the UPNP protocol responses message supporting that the equipment of UPNP agreement returns for described UPNP agreement request message, prove that this gateway device is not supported UPNP agreement, or UPNP agreement is disabled, call back function when then performing unsuccessfully, exits the detection of current local area network background traffic.When described access device receives the UPNP protocol responses message that gateway device returns for described UPNP agreement request message, from described UPNP protocol responses message, extract the service description information of described gateway device.
In one preferred embodiment of the invention, described step 102 specifically can comprise following sub-step:
Sub-step S201, one or more UPNP protocol responses messages that the equipment that described access device receives one or more support UPNP agreement in described local area network (LAN) returns for described UPNP agreement request message;
Sub-step S202, from described one or more UPNP protocol responses message, chooses the UPNP protocol responses message with the IP matching addresses of described gateway device;
Sub-step S203, extracts service describing URL from the UPNP protocol responses message of described coupling;
Sub-step S204, accesses described service describing URL, obtains corresponding service describing XML file;
Sub-step S205, resolves described service describing XML file, obtains service description information.
In one preferred embodiment of the invention, described service description information can comprise total transmission byte number GetTotalBytesSent, and/or, total reception byte number GetTotalBytesReceived, and/or, total transmission packet count GetTotalPacketsSent, and/or, total reception packet count GetTotalPacketsReceived etc.
In concrete enforcement, broadcast UPNP agreement request message in local area network (LAN) after, in local area network (LAN), all devices all can receive the portion copy of this request message, in local area network (LAN), each supports that the equipment of UPNP agreement can return a message responsively message, when there is the equipment of one or more support UPNP agreement in local area network (LAN), the UPNP protocol responses message with the IP matching addresses of gateway device is found from one or more UPNP protocol responses message, extract the service describing URL wherein comprised, the service describing XML file that this service describing URL can obtain the gateway device of this support UPNP agreement is accessed by Hyper text transfer http protocol, resolve this service describing XML file, obtain service description information, wherein service description information can comprise: total transmission byte number GetTotalBytesSent, and/or, total reception byte number GetTotalBytesReceived, and/or, total transmission packet count GetTotalPacketsSent, and/or, total reception packet count GetTotalPacketsReceived.
It should be noted that, the interface that the gateway device that different manufacturer produces externally provides is different, the present invention is by resolving described device description XML file, obtain the service description information that action node accurately can extract gateway device, thus can need to select different interfaces according to difference, and, by the UPNP agreement of International standardization, the difference of different gateway devices can be ignored, for the gateway device that different manufacturer produces, realize the cross-platform characteristic detecting local area network (LAN) background network data, improve the reusability of detection method.
In one preferred embodiment of the invention, described sub-step S205 specifically can comprise following sub-step:
Sub-step A101, creates DOM resolver;
Sub-step A102, loads in described service describing XML file to described DOM resolver;
Sub-step A103, creates SAXReader object in described DOM resolver;
Sub-step A104, calls SAXReader.read (File) function of described SAXReader object, described service describing XML file is converted to Document object;
Sub-step A105, calls the Document.getRootElement () function of described Document object, obtains the root node of described service describing XML file;
Sub-step A106, according to described root node, obtains the actionList node in described service describing XML;
Sub-step A107, the action information that the current gateway equipment comprised under extracting described actionList node is supported, as service description information.
In a particular application, after reading the service describing XML file of gateway device, create DOM resolver, loading service describes XML file, first SAXReader object is created out, call SAXReader.read (File) function and service describing XML file can be converted to Document object, and call the root node that Document.getRootElement () function can obtain service describing XML file, read the actionList node in the root node of service describing XML file as required, the action information that this gateway device is supported can be comprised under this node, the i.e. interface that externally provides of this gateway device, as service description information.The i.e. interface that externally provides of this gateway device, can perform corresponding action by sending this gateway device of SOAP request message requests.
Certainly, the described service describing XML file of above-mentioned parsing, obtain the processing method of service description information just exemplarily, when implementing the embodiment of the present invention, other can be set according to actual conditions and resolve described service describing XML file, obtain the processing method of service description information, the embodiment of the present invention is not limited this.In addition, except above-mentioned obtaining resolves described service describing XML file, obtain outside the processing method of service description information, those skilled in the art can also adopt other to resolve described service describing XML file according to actual needs, obtain the processing method of service description information, the embodiment of the present invention is not also limited this.
Step 103, adopts described service description information to generate simple object access protocol request message;
In embodiments of the present invention, Simple Object Access Protocol be a kind of light weight, simple, based on the agreement of XML, be used for the form of transmission of information.According to the service describing XML file of service description information, corresponding simple object access protocol request message can be generated.
Particularly, after obtaining the service describing XML file of gateway device, the service list serviceList that gateway device is supported can be obtained, can initialization SOAP request message according to service list serviceList.
Step 104, sends to described gateway device by described SOAP request message, and, receive the SOAP response message that described gateway device returns for described SOAP request message;
In a particular application, the interface that access device externally can provide according to gateway device, send SOAP request message to gateway device, after gateway device receives SOAP request message, perform the corresponding operating that SOAP request message is asked, call the network service Web Service of gateway device self, used by response message SOAP response message to return access device afterwards equally.
In one preferred embodiment of the invention, described SOAP request message comprises a SOAP request message and the 2nd SOAP request message, described SOAP response message comprises a SOAP response message and the 2nd SOAP response message, and described step 104 specifically can comprise following sub-step:
Sub-step S301, described access device sends a SOAP request message to described gateway device;
Sub-step S302, receives the SOAP response message that described gateway device returns for a described SOAP request message, and a described SOAP response message comprises first of current time and receives total bytes;
Sub-step S303, after prefixed time interval, described access device sends the 2nd SOAP request message to described gateway device;
Sub-step S304, receives the 2nd SOAP response message that described gateway device returns for described 2nd SOAP request message, and after described 2nd SOAP response message comprises described interval, second of the time receives total bytes.
In actual applications, after SOAP request message generates, need transmission the one SOAP request message to gateway device, obtain the SOAP response message that gateway device returns for a described SOAP request message, a described SOAP response message comprises the first reception total bytes, represent the total bytes that current time receives, after prefixed time interval, in a kind of preferred exemplary of the embodiment of the present invention, prefixed time interval was preferably for 30 seconds, again send the 2nd SOAP request message to gateway device, obtain the 2nd SOAP response message that gateway device returns for described 2nd SOAP request message, described 2nd SOAP response message comprises the second reception total bytes, the total bytes received after representing prefixed time interval.
Certainly, the processing method of above-mentioned transmission SOAP request message and reception SOAP response message just exemplarily, when implementing the embodiment of the present invention, can arrange other processing methods sending SOAP request message and receive SOAP response message according to actual conditions, the embodiment of the present invention is not limited this.In addition, except above-mentioned transmission SOAP request message is with except the processing method of reception SOAP response message, those skilled in the art can also adopt other processing method sending SOAP request message and receive SOAP response message according to actual needs, and the embodiment of the present invention is not also limited this.
Step 105, calculates the network traffics on current local area network backstage according to described SOAP response message.
In concrete enforcement, SOAP response message has characterized the total network traffics of current local area network, and access device extracts by carrying out parsing to SOAP response message, calculates respective value, draws the result of calculation of algorithm.
In one preferred embodiment of the invention, described SOAP response message comprises the first reception total bytes and second and receives total bytes, and described step 105 specifically can comprise following sub-step:
Sub-step S401, calculates described second and receives the difference that total bytes and described first receives total bytes, using the network traffics of described difference as current local area network backstage.
For the network traffics on current local area network backstage, the second reception total bytes and described first can be adopted to receive total bytes and carry out asking poor, gained difference is the background traffic that WAN mouth that all electronic equipments in current local area network flow through gateway device produces.
Certainly, the computational methods of the network traffics on above-mentioned current local area network backstage just exemplarily, when implementing the embodiment of the present invention, can arrange the computational methods of the network traffics on other current local area network backstages according to actual conditions, the embodiment of the present invention is not limited this.In addition, except the computational methods of the network traffics on above-mentioned current local area network backstage, those skilled in the art can also adopt the computational methods of the network traffics on other current local area network backstage according to actual needs, and the embodiment of the present invention is not also limited this.
The present invention is by sending simple object access protocol request message to described gateway device, and, calculate the network traffics on current local area network backstage for the SOAP response message that described SOAP request message returns according to described gateway device, accurate measurement local area network (LAN) background traffic, thus ensure to test the speed the accuracy of result in broadband.
In addition, can by the device description URL of described gateway device, and the service describing XML file corresponding with device description URL, be stored in access device by the file system interface persistence of operating system, wait until and reuse in the future.
The embodiment of the present invention is applied in testing the speed in broadband, accurately can learn current local area network background traffic numerical value, carry out the broadband result that tests the speed obtained that tests the speed and represent the network bandwidth that current access device can take, the result that can ensure when current local area network background traffic is within the scope of pre-set bandwidths detection threshold to test the speed is consistent with actual bandwidth, if carry out broadband when current local area network background traffic exceedes pre-set bandwidths detection threshold scope to test the speed, the result that then tests the speed does not represent actual bandwidth, actual bandwidth is also for local area network (LAN) background traffic, then can also comprise after described step 105:
Judge whether the network traffics on described current local area network backstage are greater than pre-set bandwidths detection threshold, if so, then judge the current access device network bandwidth that can take and actual bandwidth inconsistent;
If not, then judge that the network bandwidth that current access device can take is consistent with actual bandwidth.
By judging whether the network traffics on described current local area network backstage are greater than pre-set bandwidths detection threshold, the network bandwidth amount that background traffic uses can be specified, thus judge that whether the network bandwidth that current access device can take is consistent with actual bandwidth, improve the accuracy of the result that tests the speed, if when the network traffics on current local area network backstage are less than or equal to pre-set bandwidths detection threshold, carry out broadband to test the speed the result that tests the speed obtained, also be actual bandwidth, still lower than the broadband speed that ISP should provide, then can judge that ISP needs to safeguard own network infrastructure and upgrade, if when the network traffics on current local area network backstage are less than or equal to pre-set bandwidths detection threshold, carry out broadband to test the speed the result that tests the speed obtained, also be actual bandwidth, be more than or equal to the broadband speed that ISP should provide, then can judge that current network bandwidth is good, ISP does not need to safeguard own network infrastructure and upgrade, therefore the QoS Consumer's Experience being conducive to ISP carries out data statistics, is convenient to ISP to own network infrastructure O&M and renewal.
In a particular application, if can be gone out within the scope of normal home local area network (LAN) by the large batch of data statistics of collection and initiatively carry out local area network (LAN) background traffic normality threshold when uploading downloading task without other electronic equipments, in a kind of preferred exemplary of the present invention, because the service quality of each ISP there are differences, local area network (LAN) background traffic normality threshold preferable range is 0-64KB/S in an idle state, clearly can judge that whether the network bandwidth that current access device can take is consistent with actual bandwidth, if the network traffics on current local area network backstage exceed even significantly exceed this pre-set bandwidths detection threshold, namely the current access device network bandwidth that can take and actual bandwidth inconsistent, background traffic will affect this result that tests the speed, be reported to access device, and exit the detection of current local area network background traffic, otherwise prompting test is passed through, and the network bandwidth that current access device can take is consistent with actual bandwidth, can carry out broadband and test the speed, complete the detection of current local area network background traffic.
The present invention contrasts by adopting the network traffics on described current local area network backstage and pre-set bandwidths detection threshold, whether unanimously with actual bandwidth can detect the network bandwidth that current access device takies, thus ensures to test the speed the accuracy of result in broadband.
With reference to Fig. 2, show a kind of according to an embodiment of the invention flow chart of steps of the embodiment of the method 2 for the detection of local area network (LAN) background traffic, described local area network (LAN) comprises access device and gateway device, specifically can comprise the following steps:
Step 201, gateway device receives the UPnP UPNP agreement request message that access device sends;
Step 202, gateway device returns UPNP protocol responses message corresponding to described UPNP agreement request message to described access device;
Step 203, gateway device receives the simple object access protocol request message that access device sends, described SOAP request message is after access device extracts the service description information of gateway device from described UPNP protocol responses message, described service description information is adopted to generate, and gateway device returns SOAP response message corresponding to described SOAP request message to described access device.
In one preferred embodiment of the invention, described UPNP agreement request message is the tcp data grouping meeting UPNP agreement.
In one preferred embodiment of the invention, described SOAP request message comprises a SOAP request message and the 2nd SOAP request message, and described step 203 specifically can comprise following sub-step:
Gateway device receives the SOAP request message that access device sends;
The SOAP response message that described gateway device returns for a described SOAP request message, a described SOAP response message comprises first of current time and receives total bytes;
After prefixed time interval, gateway device receives the 2nd SOAP request message that access device sends;
The 2nd SOAP response message that described gateway device returns for described 2nd SOAP request message, after described 2nd SOAP response message comprises described interval, second of the time receives total bytes.
In embodiments of the present invention, by the UPNP agreement of International standardization, the difference of different gateway devices can be ignored, for the gateway device that different manufacturer produces, realize the cross-platform characteristic detecting local area network (LAN) background network data, improve the reusability of detection method.
For embodiment of the method, in order to simple description, therefore it is all expressed as a series of combination of actions, but those skilled in the art should know, the embodiment of the present invention is not by the restriction of described sequence of movement, because according to the embodiment of the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in specification all belongs to preferred embodiment, and involved action might not be that the embodiment of the present invention is necessary.
With reference to Fig. 3, show a kind of according to an embodiment of the invention structured flowchart of the access device embodiment for the detection of local area network (LAN) background traffic, specifically can comprise as lower module:
Broadcast module 301, for described LAN broadcast UPnP UPNP agreement request message;
Service description information extraction module 302, during for receiving UPNP protocol responses message that gateway device returns for described UPNP agreement request message at described access device, from described UPNP protocol responses message, extract the service description information of described gateway device;
Request message generation module 303, generates simple object access protocol request message for adopting described service description information;
Send and receiver module 304, for described SOAP request message is sent to described gateway device, and, receive the SOAP response message that described gateway device returns for described SOAP request message;
Background traffic computing module 305, for calculating the network traffics on current local area network backstage according to described SOAP response message.
In one preferred embodiment of the invention, described system can also comprise:
IP address acquisition module, for when access device access to LAN, obtains the IP address of described access device.
In one preferred embodiment of the invention, described broadcast module 301 can comprise:
Tcp data grouping generates submodule, and for behind the IP address obtaining described access device, described access device generates the tcp data grouping meeting UPNP agreement;
Gateway ip address obtains submodule, for obtaining IP address and the subnet mask of described gateway device;
Broadcast address calculating sub module, for adopting IP address and the subnet mask account broadcast address of described gateway device;
Tcp data multicasting submodule, broadcasts the grouping of described tcp data for adopting described broadcast address in described local area network (LAN).
In one preferred embodiment of the invention, described service description information extraction module 302 can comprise:
Response message receives submodule, one or more UPNP protocol responses messages that the equipment receiving one or more support UPNP agreement in described local area network (LAN) for described access device returns for described UPNP agreement request message;
The response message of gateway device chooses submodule, for from described one or more UPNP protocol responses message, chooses the UPNP protocol responses message with the IP matching addresses of described gateway device;
Service describing URL extracts submodule, for extracting service describing URL from the UPNP protocol responses message of described coupling;
Service describing XML file obtains submodule, for accessing described service describing URL, obtains corresponding service describing XML file;
Service describing XML file analyzing sub-module, for resolving described service describing XML file, obtains service description information;
In one preferred embodiment of the invention, described service description information comprises total transmission byte number GetTotalBytesSent, and/or, total reception byte number GetTotalBytesReceived, and/or, total transmission packet count GetTotalPacketsSent, and/or, total reception packet count GetTotalPacketsReceived.
In one preferred embodiment of the invention, described service describing XML file analyzing sub-module can comprise:
Resolver creates submodule, for creating DOM resolver;
Files loading submodule, for loading in described service describing XML file to described DOM resolver;
SAXReader Object Creation submodule, for creating SAXReader object in described DOM resolver;
Described service describing XML file, for calling SAXReader.read (File) function of described SAXReader object, is Document object by Document object transform subblock;
Root node obtains submodule, for calling the Document.getRootElement () function of described Document object, obtains the root node of described service describing XML file;
ActionList node obtains submodule, for according to described root node, obtains the actionList node in described service describing XML;
Action information extraction submodule, the action information that the current gateway equipment for comprising under extracting described actionList node is supported, as service description information.
In one preferred embodiment of the invention, described SOAP request message comprises a SOAP request message and the 2nd SOAP request message, described SOAP response message comprises a SOAP response message and the 2nd SOAP response message, and described transmission and receiver module 304 can comprise:
One SOAP request message sends submodule, sends a SOAP request message to described gateway device for described access device;
One SOAP response message receives submodule, and for receiving the SOAP response message that described gateway device returns for a described SOAP request message, a described SOAP response message comprises first of current time and receives total bytes;
2nd SOAP request message sends submodule, and for after prefixed time interval, described access device sends the 2nd SOAP request message to described gateway device;
2nd SOAP response message receives submodule, and for receiving the 2nd SOAP response message that described gateway device returns for described 2nd SOAP request message, after described 2nd SOAP response message comprises described interval, second of the time receives total bytes.
In one preferred embodiment of the invention, described SOAP response message comprises the first reception total bytes and second and receives total bytes, and described background traffic computing module 305 can comprise:
Network traffics calculating sub module, receives the difference that total bytes and described first receives total bytes, using the network traffics of described difference as current local area network backstage for calculating described second.
In one preferred embodiment of the invention, described system can also comprise:
First decision sub-module, for when the network traffics on described current local area network backstage are greater than pre-set bandwidths detection threshold, then judge the current access device network bandwidth that can take and actual bandwidth inconsistent;
Second decision sub-module, for when the network traffics on described current local area network backstage are less than or equal to pre-set bandwidths detection threshold, then judges that the network bandwidth that current access device can take is consistent with actual bandwidth.
For the system embodiment shown in Fig. 3, due to the embodiment of the method basic simlarity shown in itself and Fig. 1, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
With reference to Fig. 4, show a kind of according to an embodiment of the invention structured flowchart of the gateway device embodiment for the detection of local area network (LAN) background traffic, specifically can comprise as lower module:
Request message receiver module 401, for receiving the UPnP UPNP agreement request message that access device sends;
Response message returns module 402, for returning UPNP protocol responses message corresponding to described UPNP agreement request message to described access device;
Receive and return module 403, for receiving the simple object access protocol request message that access device sends, described SOAP request message is after access device extracts the service description information of gateway device from described UPNP protocol responses message, described service description information is adopted to generate, and, for returning SOAP response message corresponding to described SOAP request message to described access device.
In one preferred embodiment of the invention, described UPNP agreement request message is the tcp data grouping meeting UPNP agreement.
In one preferred embodiment of the invention, described SOAP request message comprises a SOAP request message and the 2nd SOAP request message, described reception with return module 403 and specifically can comprise following submodule:
One SOAP request message receives submodule, for receiving the SOAP request message that access device sends;
One SOAP response message returns submodule, and for returning for a SOAP response message corresponding to a described SOAP request message to described access device, a described SOAP response message comprises first of current time and receives total bytes;
2nd SOAP request message receives submodule, and for after prefixed time interval, gateway device receives the 2nd SOAP request message that access device sends;
2nd SOAP response message returns submodule, and for returning for the 2nd SOAP response message corresponding to described 2nd SOAP request message to described access device, after described 2nd SOAP response message comprises described interval, second of the time receives total bytes.
For the system embodiment shown in Fig. 4, due to the embodiment of the method basic simlarity shown in itself and Fig. 2, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
Intrinsic not relevant to any certain computer, virtual system or miscellaneous equipment with display at this algorithm provided.Various general-purpose system also can with use based on together with this teaching.According to description above, the structure constructed required by this type systematic is apparent.In addition, the present invention is not also for any certain programmed language.It should be understood that and various programming language can be utilized to realize content of the present invention described here, and the description done language-specific is above to disclose preferred forms of the present invention.
In specification provided herein, describe a large amount of detail.But can understand, embodiments of the invention can be put into practice when not having these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand in each inventive aspect one or more, in the description above to exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or the description to it sometimes.But, the method for the disclosure should be construed to the following intention of reflection: namely the present invention for required protection requires feature more more than the feature clearly recorded in each claim.Or rather, as claims below reflect, all features of disclosed single embodiment before inventive aspect is to be less than.Therefore, the claims following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and adaptively can change the module in the equipment in embodiment and they are arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and multiple submodule or subelement or sub-component can be put them in addition.Except at least some in such feature and/or process or unit be mutually repel except, any combination can be adopted to combine all processes of all features disclosed in this specification (comprising adjoint claim, summary and accompanying drawing) and so disclosed any method or equipment or unit.Unless expressly stated otherwise, each feature disclosed in this specification (comprising adjoint claim, summary and accompanying drawing) can by providing identical, alternative features that is equivalent or similar object replaces.
In addition, those skilled in the art can understand, although embodiments more described herein to comprise in other embodiment some included feature instead of further feature, the combination of the feature of different embodiment means and to be within scope of the present invention and to form different embodiments.Such as, in the following claims, the one of any of embodiment required for protection can use with arbitrary compound mode.
All parts embodiment of the present invention with hardware implementing, or can realize with the software module run on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that the some or all functions of the some or all parts in the detection method for local area network (LAN) background traffic, access device and the gateway device that microprocessor or digital signal processor (DSP) can be used in practice to realize according to the embodiment of the present invention.The present invention can also be embodied as part or all equipment for performing method as described herein or device program (such as, computer program and computer program).Realizing program of the present invention and can store on a computer-readable medium like this, or the form of one or more signal can be had.Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or provides with any other form.
The present invention will be described instead of limit the invention to it should be noted above-described embodiment, and those skilled in the art can design alternative embodiment when not departing from the scope of claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and does not arrange element in the claims or step.Word "a" or "an" before being positioned at element is not got rid of and be there is multiple such element.The present invention can by means of including the hardware of some different elements and realizing by means of the computer of suitably programming.In the unit claim listing some devices, several in these devices can be carry out imbody by same hardware branch.Word first, second and third-class use do not represent any order.Can be title by these word explanations.

Claims (11)

1., for the method that local area network (LAN) background traffic detects, it is characterized in that, described local area network (LAN) comprises access device and gateway device, and described method comprises:
Access device is to described LAN broadcast UPnP UPNP agreement request message;
When described access device receives the UPNP protocol responses message that gateway device returns for described UPNP agreement request message, from described UPNP protocol responses message, extract the service description information of described gateway device;
Described service description information is adopted to generate simple object access protocol request message;
Described SOAP request message is sent to described gateway device, and, receive the SOAP response message that described gateway device returns for described SOAP request message;
The network traffics on current local area network backstage are calculated according to described SOAP response message.
2. the method for claim 1, is characterized in that, step from described access device to described LAN broadcast UPnP UPNP agreement request message before also comprise:
When access device access to LAN, obtain the IP address of described access device.
3. method as claimed in claim 2, is characterized in that, described UPNP agreement request message is the tcp data grouping meeting UPNP agreement, and described access device comprises to the step of described LAN broadcast UPnP UPNP agreement request message:
When behind the IP address obtaining described access device, described access device generates the tcp data grouping meeting UPNP agreement;
Obtain IP address and the subnet mask of described gateway device;
Adopt IP address and the subnet mask account broadcast address of described gateway device;
Adopt described broadcast address in described local area network (LAN), broadcast the grouping of described tcp data.
4. method as claimed in claim 3, it is characterized in that, described when described access device receives the UPNP protocol responses message that gateway device returns for described UPNP agreement request message, the step extracting the service description information of described gateway device from described UPNP protocol responses message comprises:
One or more UPNP protocol responses messages that the equipment that described access device receives one or more support UPNP agreement in described local area network (LAN) returns for described UPNP agreement request message;
From described one or more UPNP protocol responses message, choose the UPNP protocol responses message with the IP matching addresses of described gateway device;
Service describing URL is extracted from the UPNP protocol responses message of described coupling;
Access described service describing URL, obtain corresponding service describing XML file;
Resolve described service describing XML file, obtain service description information.
5. method as claimed in claim 4, it is characterized in that, described service description information comprises total transmission byte number GetTotalBytesSent, and/or, total reception byte number GetTotalBytesReceived, and/or, total transmission packet count GetTotalPacketsSent, and/or, total reception packet count GetTotalPacketsReceived.
6. the method as described in claim 4 or 5, is characterized in that, the described service describing XML file of described parsing, and the sub-step obtaining service description information comprises further:
Create DOM resolver;
Load in described service describing XML file to described DOM resolver;
SAXReader object is created in described DOM resolver;
Call SAXReader.read (File) function of described SAXReader object, described service describing XML file is converted to Document object;
Call the Document.getRootElement () function of described Document object, obtain the root node of described service describing XML file;
According to described root node, obtain the actionList node in described service describing XML;
The action information that the current gateway equipment comprised under extracting described actionList node is supported, as service description information.
7. the method as described in claim 1 or 2 or 3 or 4 or 5, it is characterized in that, described SOAP request message comprises a SOAP request message and the 2nd SOAP request message, described SOAP response message comprises a SOAP response message and the 2nd SOAP response message, described described SOAP request message is sent to described gateway device, and the step receiving the SOAP response message that described gateway device returns for described SOAP request message comprises:
Described access device sends a SOAP request message to described gateway device;
Receive the SOAP response message that described gateway device returns for a described SOAP request message, a described SOAP response message comprises first of current time and receives total bytes;
After prefixed time interval, described access device sends the 2nd SOAP request message to described gateway device;
Receive the 2nd SOAP response message that described gateway device returns for described 2nd SOAP request message, after described 2nd SOAP response message comprises described interval, second of the time receives total bytes;
The described step calculating the network traffics on current local area network backstage according to described SOAP response message comprises:
Calculate described second and receive the difference that total bytes and described first receives total bytes, using the network traffics of described difference as current local area network backstage.
8. method as claimed in claim 7, is characterized in that, after the step of the described network traffics according to described SOAP response message calculating current local area network backstage, described method also comprises:
Judge whether the network traffics on described current local area network backstage are greater than pre-set bandwidths detection threshold, if so, then judge the current access device network bandwidth that can take and actual bandwidth inconsistent;
If not, then judge that the network bandwidth that current access device can take is consistent with actual bandwidth.
9., for the method that local area network (LAN) background traffic detects, it is characterized in that, described local area network (LAN) comprises access device and gateway device, and described method comprises:
Gateway device receives the UPnP UPNP agreement request message that access device sends;
Gateway device returns UPNP protocol responses message corresponding to described UPNP agreement request message to described access device;
Gateway device receives the simple object access protocol request message that access device sends, described SOAP request message is after access device extracts the service description information of gateway device from described UPNP protocol responses message, described service description information is adopted to generate, and gateway device returns SOAP response message corresponding to described SOAP request message to described access device.
10., for the access device that local area network (LAN) background traffic detects, it is characterized in that, comprising:
Broadcast module, for described LAN broadcast UPnP UPNP agreement request message;
Service description information extraction module, during for receiving UPNP protocol responses message that gateway device returns for described UPNP agreement request message at described access device, extracts the service description information of described gateway device from described UPNP protocol responses message;
Request message generation module, generates simple object access protocol request message for adopting described service description information;
Send and receiver module, for described SOAP request message is sent to described gateway device, and, receive the SOAP response message that described gateway device returns for described SOAP request message;
Background traffic computing module, for calculating the network traffics on current local area network backstage according to described SOAP response message.
11. 1 kinds of gateway devices detected for local area network (LAN) background traffic, is characterized in that, comprising:
Request message receiver module, for receiving the UPnP UPNP agreement request message that access device sends;
Response message returns module, for returning UPNP protocol responses message corresponding to described UPNP agreement request message to described access device;
Receive and return module, for receiving the simple object access protocol request message that access device sends, described SOAP request message is after access device extracts the service description information of gateway device from described UPNP protocol responses message, described service description information is adopted to generate, and, for returning SOAP response message corresponding to described SOAP request message to described access device.
CN201410063081.XA 2014-02-24 2014-02-24 Method, access device and gateway for the detection of local area network background traffic Expired - Fee Related CN104869026B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410063081.XA CN104869026B (en) 2014-02-24 2014-02-24 Method, access device and gateway for the detection of local area network background traffic

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410063081.XA CN104869026B (en) 2014-02-24 2014-02-24 Method, access device and gateway for the detection of local area network background traffic

Publications (2)

Publication Number Publication Date
CN104869026A true CN104869026A (en) 2015-08-26
CN104869026B CN104869026B (en) 2019-08-23

Family

ID=53914567

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410063081.XA Expired - Fee Related CN104869026B (en) 2014-02-24 2014-02-24 Method, access device and gateway for the detection of local area network background traffic

Country Status (1)

Country Link
CN (1) CN104869026B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108712513A (en) * 2018-03-27 2018-10-26 广东欧珀移动通信有限公司 network address setting method, device, terminal device and storage medium
CN115277477A (en) * 2022-07-24 2022-11-01 杭州迪普科技股份有限公司 Flow detection method and device based on simple object access protocol
CN117834386A (en) * 2023-12-20 2024-04-05 北京联广通网络科技有限公司 Automatic alarm system and method for flow chart network monitoring faults

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080043684A1 (en) * 2006-08-18 2008-02-21 General Motors Corporation Lightweight protocol for use in a tcp/ip communications network
CN101136839A (en) * 2006-08-31 2008-03-05 中兴通讯股份有限公司 Method and equipment for discovering and controlling terminal-to-terminal equity network user flux
CN102404237A (en) * 2011-12-31 2012-04-04 网宿科技股份有限公司 Method and system for adjusting physical bandwidth based on traffic
CN102970378A (en) * 2012-12-13 2013-03-13 中国电子科技集团公司第十五研究所 Binary data optimized transmission system
CN103546343A (en) * 2013-10-18 2014-01-29 中国南方电网有限责任公司 Network flow display method and system for network flow analyzing systems

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080043684A1 (en) * 2006-08-18 2008-02-21 General Motors Corporation Lightweight protocol for use in a tcp/ip communications network
CN101136839A (en) * 2006-08-31 2008-03-05 中兴通讯股份有限公司 Method and equipment for discovering and controlling terminal-to-terminal equity network user flux
CN102404237A (en) * 2011-12-31 2012-04-04 网宿科技股份有限公司 Method and system for adjusting physical bandwidth based on traffic
CN102970378A (en) * 2012-12-13 2013-03-13 中国电子科技集团公司第十五研究所 Binary data optimized transmission system
CN103546343A (en) * 2013-10-18 2014-01-29 中国南方电网有限责任公司 Network flow display method and system for network flow analyzing systems

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108712513A (en) * 2018-03-27 2018-10-26 广东欧珀移动通信有限公司 network address setting method, device, terminal device and storage medium
CN115277477A (en) * 2022-07-24 2022-11-01 杭州迪普科技股份有限公司 Flow detection method and device based on simple object access protocol
CN115277477B (en) * 2022-07-24 2024-03-01 杭州迪普科技股份有限公司 Flow detection method and device based on simple object access protocol
CN117834386A (en) * 2023-12-20 2024-04-05 北京联广通网络科技有限公司 Automatic alarm system and method for flow chart network monitoring faults

Also Published As

Publication number Publication date
CN104869026B (en) 2019-08-23

Similar Documents

Publication Publication Date Title
CN107896241B (en) Network access speed detection method and device, storage medium and electronic equipment
EP2564559B1 (en) Using dns reflection to measure network performance
EP2482525B1 (en) Method and apparatus for determining a server which should respond to a service request
CN103067214B (en) For testing the method for web site performance, client, server and system
CN110392130B (en) Information processing method based on network, electronic equipment and network system
CN108924005B (en) Network detection method, network detection apparatus, medium, and device
CN111106983B (en) Method and device for detecting network connectivity
US12004076B2 (en) Evaluating a hosting device for installation of a virtualized function within a network infrastructure
CN104092792A (en) Method, system and client-side for achieving flow optimization based on domain name resolution request
CN103780714A (en) Method and apparatus for probing DNS server
CN104717107A (en) Method, device and system for detecting network device
CN111182089A (en) Container cluster system, method and device for accessing big data assembly and server
US20210184940A1 (en) Prediction of a performance indicator
CN112217856A (en) Address acquisition method, device, equipment and storage medium of application example
CN110018956B (en) Application debugging method and related device
CN104486361A (en) Online game connection building method, game terminal and system
CN104869026A (en) Method, access equipment and gateway equipment for LAN (Local Area Network) background flow detection
CN108111496B (en) Method, device and system for exposing http service for dubbo distributed application
US11297131B2 (en) Method and apparatus for multi-vendor GTM fabric
RU2008121872A (en) NEAREST NODE FOR CONNECTIONS OF DISTRIBUTED SERVICES
CN101494654B (en) Method and apparatus for determining server accessibility
US10666604B2 (en) Application access method and application access system via a split domain name system
CN109981386B (en) Network quality testing method, testing server and testing system
CN111130948A (en) Network quality detection method and device
US20070008919A1 (en) Value added services system of wireless local area network and method for providing the same

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190823