CN112073557B - Method for realizing gateway to automatically acquire name of down-hanging device under network static IP condition - Google Patents

Method for realizing gateway to automatically acquire name of down-hanging device under network static IP condition Download PDF

Info

Publication number
CN112073557B
CN112073557B CN202010989353.4A CN202010989353A CN112073557B CN 112073557 B CN112073557 B CN 112073557B CN 202010989353 A CN202010989353 A CN 202010989353A CN 112073557 B CN112073557 B CN 112073557B
Authority
CN
China
Prior art keywords
operation code
gateway
arp
name
hanging 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.)
Active
Application number
CN202010989353.4A
Other languages
Chinese (zh)
Other versions
CN112073557A (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.)
Taicang T&W Electronics Co Ltd
Original Assignee
Shanghai Gongjin Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Gongjin Communication Technology Co Ltd filed Critical Shanghai Gongjin Communication Technology Co Ltd
Priority to CN202010989353.4A priority Critical patent/CN112073557B/en
Publication of CN112073557A publication Critical patent/CN112073557A/en
Application granted granted Critical
Publication of CN112073557B publication Critical patent/CN112073557B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0078Avoidance of errors by organising the transmitted data in a format specifically designed to deal with errors, e.g. location
    • H04L1/0079Formats for control data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/1607Details of the supervisory signal
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to a method for realizing gateway automatic acquisition of down-hanging device name under network static IP condition, comprising that down-hanging device is accessed to gateway through static IP, gateway sends improved ARP request data format to network in broadcasting mode, and expands operation code; judging whether the lower two bits of the operation code are ARP requests, if so, expanding the operation code for an ARP protocol; otherwise, if the lower two bits of the operation code are ARP response, the operation code is extended to ARP protocol, and two fields are added on the basis of source ARP data format. The method for automatically acquiring the name of the down-hanging device by the gateway under the static IP condition of the network is adopted, and under the condition that the down-hanging device on the LAN side is accessed to the gateway by the static IP, the gateway automatically acquires the name of the down-hanging device by an improved ARP method, so that the capability of the gateway for managing the down-hanging device is improved.

Description

Method for realizing gateway to automatically acquire name of down-hanging device under network static IP condition
Technical Field
The invention relates to the field of home gateways, in particular to the field of home gateway IP access, and specifically relates to a method for automatically acquiring a down-hanging device name by a gateway under a network static IP condition.
Background
In a home gateway, a LAN side generally accesses a plurality of underhung devices. When some devices are accessed to the gateway in a static IP manner, the gateway generally has difficulty in acquiring the names of the devices, which causes inconvenience to the gateway in managing the devices.
Disclosure of Invention
The invention aims to overcome the defects of the prior art, and provides a method for automatically acquiring the name of the down-hanging device by the gateway under the network static IP condition, which is convenient to manage, simple and convenient to operate and wide in application range.
In order to achieve the above purpose, the method for implementing the gateway to automatically acquire the name of the down-hanging device under the network static IP condition of the present invention is as follows:
the method for automatically acquiring the name of the down-hanging device by the gateway under the static IP condition of the network is mainly characterized by comprising the following steps:
(1) The down-hanging equipment is accessed to a gateway through static IP, and the gateway transmits an improved ARP request data format to a network in a broadcast mode to expand an expansion operation code;
(2) Judging whether the lower two bits of the operation code are ARP requests, if so, expanding the operation code for an ARP protocol; otherwise, continuing the step (3);
(3) Whether the lower two bits of the operation code are ARP response or not, the operation code is extended to ARP protocol, and two fields are added on the basis of source ARP data format.
Preferably, the step (2) specifically includes the following steps:
(2.1) judging whether the lower two bits of the operation code are ARP requests, if so, continuing the step (2.2); otherwise, continuing the step (3);
(2.2) determining whether the extended opcode field bit3 is 0, if so, indicating that the hostname is not requested, the device receiving such ARP request will not send hostname information; otherwise, the opcode field bit3 is 1, indicating that the host name is requested and the device receiving such ARP request will send the host name information.
Preferably, the step (3) specifically includes the following steps:
(3.1) the bit3 of the extended operation code field returned by the down-hanging device is the same as the bit3 of the received extended operation code field;
(3.2) judging whether the extended operation code field bit3 is 0, if so, requesting no host name, wherein the length of the source host name is 0, and the source host names are all filled with 0; otherwise, the extended opcode field bit3 is 1, indicating that there is a hostname request, the source hostname length is the actual length of the source hostname, and the source hostname field is filled with the actual name.
Preferably, in the 2 bytes where the extended operation code in the step (1) is located, the extended operation code field bit3 is 0 and indicates that the host name is not carried, and the extended operation code field bit3 is 1 and indicates that the host name is carried.
Preferably, in the step (2), the operation code fields bit2 and bit1 of the ARP request are respectively 0 and 1.
Preferably, in the step (2), the operation code fields bit2 and bit1 of the ARP reply are 1 and 0, respectively.
The method for automatically acquiring the name of the down-hanging device by the gateway under the static IP condition of the network is adopted, and under the condition that the down-hanging device on the LAN side is accessed to the gateway by the static IP, the gateway automatically acquires the name of the down-hanging device by an improved ARP method, so that the capability of the gateway for managing the down-hanging device is improved.
Drawings
Fig. 1 is a schematic diagram of a method for implementing automatic acquisition of a down-hanging device name by a gateway under a network static IP condition according to the present invention.
Detailed Description
In order to more clearly describe the technical contents of the present invention, a further description will be made below in connection with specific embodiments.
The method for realizing the gateway to automatically acquire the name of the down-hanging device under the static IP condition of the network comprises the following steps:
(1) The down-hanging equipment is accessed to a gateway through static IP, and the gateway transmits an improved ARP request data format to a network in a broadcast mode to expand an expansion operation code;
(2) Judging whether the lower two bits of the operation code are ARP requests, if so, expanding the operation code for an ARP protocol; otherwise, continuing the step (3);
(2.1) judging whether the lower two bits of the operation code are ARP requests, if so, continuing the step (2.2); otherwise, continuing the step (3);
(2.2) determining whether bit3 of the extended operation code is 0, if so, indicating that the host name is not requested, and the device receiving such ARP request will not send host name information; otherwise, bit3 of the extended operation code is 1, which indicates that the host name is requested, and the device receiving the ARP request will send the host name information;
(3) If the lower two bits of the operation code are ARP responses, expanding the operation code for an ARP protocol, and adding two fields on the basis of a source ARP data format;
(3.1) bit3 of the extended opcode is the same as bit3 of the received extended opcode field;
(3.2) judging whether bit3 of the extended operation code is 0, if so, requesting no host name, wherein the length of the source host name is 0, and the source host names are all filled with 0; otherwise, bit3 of the extended operation code is 1, which indicates a hostname request, the source hostname length is the actual length of the source hostname, and the source hostname field is filled with the actual name.
As a preferred embodiment of the present invention, in the 2 bytes where the extended operation code in the step (1) is located, an extended bit3 of 0 indicates that the host name is not carried, and an extended bit3 of 1 indicates that the host name is carried.
As a preferred embodiment of the present invention, the operation codes bit2 and bit1 of the ARP request in step (2) are 0 and 1, respectively.
As a preferred embodiment of the present invention, the operation codes bit2 and bit1 of the ARP reply in step (2) are 1 and 0, respectively.
The embodiment of the invention relates to a method for a home gateway to acquire a down-hanging device name under the static IP condition of a LAN side. At present, a home gateway is generally connected to a plurality of hanging devices, such as a computer, a mobile phone, a set top box and the like. When the devices are accessed by static IP access, it is difficult for the gateway to obtain the names of the access devices, which sometimes causes inconvenience to the gateway in managing the devices, as compared with dynamic IP access. The method ensures that the gateway automatically acquires the name of the down-hanging device through an improved ARP method under the condition that the down-hanging device on the LAN side is in a static IP access gateway, thereby improving the capability of the gateway for managing the down-hanging device.
The method for obtaining the name of the down-hanging device under the static IP condition comprises the following steps when the down-hanging device is accessed to a gateway through the static IP after the system is started up:
when a static IP device accesses a gateway, the gateway will send the modified ARP request data format to the network in a broadcast format. The extended opcode is extended here in 2 bytes, bit3 of the extended opcode indicating whether the hostname is carried. 0 indicates no carry and 1 indicates carry.
When the lower two bits of the opcode are ARP requests (bit 2 and bit1 of the opcode are 0 and 1, respectively), only the opcode is extended for ARP protocols. The method comprises the following steps:
(1) bit3 is 0, indicating that the hostname is not requested. Devices receiving such ARP requests will not send hostname information.
(2) bit3 is 1, indicating that the hostname is requested. Devices receiving such ARP requests will send hostname information.
When the lower two bits of the operation code are ARP replies (bit 2 and bit1 of the operation code are 1 and 0 respectively), two fields, namely a source host name length and a source host name, are added on the basis of the source ARP data format in addition to the expansion operation code. The method comprises the following steps:
(1) Bit3 of the extended opcode is the same as bit3 of the received extended opcode field.
(2) If bit3 of the extended opcode is 0, this indicates a hostless request. The source hostname length is now 0, and the source hostnames are all filled with 0.
(3) If bit3 of the extended opcode is 1, a hostname request is indicated. The source hostname length is the actual length of the source hostname, and the source hostname field is filled with the actual name.
The improved ARP request data format:
Figure BDA0002690322060000041
the improved ARP response data format:
Figure BDA0002690322060000042
the method for automatically acquiring the name of the down-hanging device by the gateway under the static IP condition of the network is adopted, and under the condition that the down-hanging device on the LAN side is accessed to the gateway by the static IP, the gateway automatically acquires the name of the down-hanging device by an improved ARP method, so that the capability of the gateway for managing the down-hanging device is improved.
In this specification, the invention has been described with reference to specific embodiments thereof. It will be apparent, however, that various modifications and changes may be made without departing from the spirit and scope of the invention. The specification and drawings are, accordingly, to be regarded in an illustrative rather than a restrictive sense.

Claims (5)

1. A method for realizing gateway to automatically acquire the name of a down-hanging device under the static IP condition of a network is characterized by comprising the following steps:
(1) The down-hanging equipment is accessed to a gateway through static IP, and the gateway transmits an improved ARP request data format to a network in a broadcast mode to expand an expansion operation code;
(2) Judging whether the lower two bits of the operation code are ARP requests, if so, expanding the operation code for an ARP protocol; otherwise, continuing the step (3);
(3) Whether the lower two bits of the operation code are ARP response or not, expanding the operation code for an ARP protocol, and adding two fields on the basis of a source ARP data format;
the step (3) specifically comprises the following steps:
(3.1) the bit3 of the extended operation code field returned by the down-hanging device is the same as the bit3 of the received extended operation code field;
(3.2) judging whether bit3 of the extended operation code field is 0, if so, requesting no host name, and filling all source host names with 0, wherein the length of the source host name is 0; otherwise, the extended opcode field bit3 is 1, indicating a hostname request, the source hostname length is the actual length of the source hostname, and the source hostname field is filled with the actual name.
2. The method for implementing gateway to automatically obtain the name of the down-hanging device under the static IP condition of the network as claimed in claim 1, wherein said step (2) specifically comprises the following steps:
(2.1) judging whether the lower two bits of the operation code are ARP requests, if so, continuing the step (2.2); otherwise, continuing the step (3);
(2.2) judging whether bit3 of the extended operation code is 0, if so, indicating that the host name is not requested; otherwise, bit3 of the opcode is 1, indicating that the hostname is requested.
3. The method for automatically obtaining the name of the down-hanging device by the gateway under the static IP condition of the network according to claim 1, wherein in the 2 bytes where the extended operation code in the step (1) is located, bit3 of the extended operation code is 0 to indicate that the host name is not carried, and bit3 of the extended operation code is 1 to indicate that the host name is carried.
4. The method for implementing gateway to automatically obtain the name of the down-hanging device under the static IP condition of the network as claimed in claim 1, wherein the operation codes bit2 and bit1 of the ARP request in step (2) are respectively 0 and 1.
5. The method for automatically obtaining the name of the down-hanging device by the gateway under the static IP condition of the network as claimed in claim 1, wherein the operation codes bit2 and bit1 of the ARP reply in step (2) are 1 and 0, respectively.
CN202010989353.4A 2020-09-18 2020-09-18 Method for realizing gateway to automatically acquire name of down-hanging device under network static IP condition Active CN112073557B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010989353.4A CN112073557B (en) 2020-09-18 2020-09-18 Method for realizing gateway to automatically acquire name of down-hanging device under network static IP condition

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010989353.4A CN112073557B (en) 2020-09-18 2020-09-18 Method for realizing gateway to automatically acquire name of down-hanging device under network static IP condition

Publications (2)

Publication Number Publication Date
CN112073557A CN112073557A (en) 2020-12-11
CN112073557B true CN112073557B (en) 2023-04-28

Family

ID=73681218

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010989353.4A Active CN112073557B (en) 2020-09-18 2020-09-18 Method for realizing gateway to automatically acquire name of down-hanging device under network static IP condition

Country Status (1)

Country Link
CN (1) CN112073557B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008047987A (en) * 2006-08-11 2008-02-28 Hitachi Information Systems Ltd Fixed ip address acquisition method and ip segment extension method in dhcp environment, and their device and program
CN106888276A (en) * 2016-12-10 2017-06-23 程飞 The method and the network equipment of network equipment lookup are carried out using ARP packets
CN107070908A (en) * 2017-04-01 2017-08-18 汕头大学 A kind of method of automatic detection personation gateway A RP deceptions

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6785738B1 (en) * 1999-12-23 2004-08-31 Cisco Technology, Inc. ARP packet to preserve canonical form of addresses
CN101030980A (en) * 2007-04-05 2007-09-05 中兴通讯股份有限公司 Wide-band terminal identifier based on Ethernet and its identifying method
CN103297559A (en) * 2013-05-09 2013-09-11 厦门亿联网络技术股份有限公司 Method for quickly searching equipment information within local area network
CN108833612B (en) * 2018-09-03 2021-06-15 武汉虹信科技发展有限责任公司 Local area network equipment communication method based on ARP protocol
CN111225080B (en) * 2020-01-06 2022-11-08 博为科技有限公司 Method for acquiring gateway down-hanging equipment information

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008047987A (en) * 2006-08-11 2008-02-28 Hitachi Information Systems Ltd Fixed ip address acquisition method and ip segment extension method in dhcp environment, and their device and program
CN106888276A (en) * 2016-12-10 2017-06-23 程飞 The method and the network equipment of network equipment lookup are carried out using ARP packets
CN107070908A (en) * 2017-04-01 2017-08-18 汕头大学 A kind of method of automatic detection personation gateway A RP deceptions

Also Published As

Publication number Publication date
CN112073557A (en) 2020-12-11

Similar Documents

Publication Publication Date Title
KR100453050B1 (en) Method for communicating data between IPv4 and IPv6 and apparatus thereof
JP4144882B2 (en) Information processing apparatus, information system, proxy processing method, program, and recording medium
CN102859942B (en) Using DNS reflection to measure network performance
US7385981B2 (en) Apparatus for converting internet protocol address and home network system using the same
US20030126239A1 (en) Mobile communication terminal, network access system and method thereof using the same
CN110858838B (en) Method and apparatus for bridging communications
CN109391703A (en) Domain name analytic method, device, equipment and computer storage medium
CN112202833B (en) CDN system, request processing method and scheduling server
CN107070978B (en) Method and system for cross-network proxy Web map service and proxy server
US8504702B2 (en) Providing server identification to a client
KR20150023878A (en) Service information discovery method and device
CN110933193B (en) Domain name resolution method and device, electronic equipment and computer readable storage medium
CN111541799A (en) Domain name resolution method, system, terminal and storage medium
CN112073557B (en) Method for realizing gateway to automatically acquire name of down-hanging device under network static IP condition
US20110264779A1 (en) Using Values Represented as Internet Protocol (IP) Addresses to Access Resources in a Non-Internet Protocol Address Space
CN113315852B (en) Domain name resolution method, device and system
US20130148572A1 (en) Communication system and method
CN103973819A (en) Method, related device and system for responding to request for community domain name
CN103414713A (en) Method, device and DLNA device with access to cloud medium resource
CN105872125A (en) Domain name resolution method and apparatus
CN115021831B (en) Weak network test method, device, system, equipment and storage medium
CN113285920B (en) Service access method, device, equipment and storage medium
CN114143332B (en) Processing method, electronic equipment and medium based on content delivery network CDN
US8073957B2 (en) Communication control system
CN106664327A (en) Domain name system accessing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20231012

Address after: 215412 No.89 Jiangnan Road, Ludu Town, Taicang City, Suzhou City, Jiangsu Province

Patentee after: TAICANG T&W ELECTRONICS Co.,Ltd.

Address before: 200235 7th floor, Yuanzhong scientific research building, 1905 Hongmei Road, Xuhui District, Shanghai

Patentee before: SHANGHAI GONGJIN COMMUNICATIONS TECHNOLOGY Co.,Ltd.