Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for obtaining information at link layer of specific host automatically

A host link, automatic acquisition technology, applied in the field of data communication, can solve problems such as inability to obtain host link layer information, unworkable, etc.

Inactive Publication Date: 2004-05-26
HUAWEI TECH CO LTD
View PDF0 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In some cases, when configuring the router, it is necessary to obtain the address of the peer router in time. The above purpose can be achieved by using the PING method, but when the number of hosts connected to the router is relatively large, or when manual intervention is impossible, this method will not work. of
Forwarding datagrams can also drive the sending of ARP requests, but in some policy routing, when it is necessary to force forward some packets to a certain host, the destination address of the IP packet may not be the same as the host address at this time, so even if the ARP request message is sent It will not contain the IP address of the destination host, so the link layer information of the host cannot be obtained

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for obtaining information at link layer of specific host automatically
  • Method for obtaining information at link layer of specific host automatically
  • Method for obtaining information at link layer of specific host automatically

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] In order to enable those skilled in the art to better understand the present invention, the present invention will be specifically described below in conjunction with the accompanying drawings.

[0022] In the application, in order to meet the needs of special configurations and automatically obtain the link layer information corresponding to the specified IP address in a timely manner, the following steps are adopted:

[0023] 1) recording needs to obtain the host IP address of the link layer information: for specific configuration, when executing the configuration command, the router will record the host IP address that needs to obtain the link layer information. In the present invention, use such as figure 2 The shown linked list records the linked list of the IP addresses of the destination hosts to save the IP address information.

[0024] source port number

destination port number

Sequence number

Confirmation Number

TCP he...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The method includes recording IP address of host; route constructs SYN packet in TCP for each pointed host, and sends the SYN packet; if address of pointed host corresponding to SYN packet in link layer is not existed, route sends out ARP request including IP address of pointed host in order to obtain address in link layer; if route receives reply message from ARP successfully, then information of link layer corresponding to pointed IP address of host can be obtained. Information at link layer of specific host can be obtained automatically by using mature technology of TCP / lP protocol stack. Retransmission mechanism of SOCKET is utilized to trigger route to send request message of ARP in multiple times to obtain information in link layer. Thus, multiple times of trigging can be realized without need of increasing complexity for state maintenance.

Description

technical field [0001] The invention relates to a data communication technology, in particular to a method for automatically acquiring link layer information of a designated host by using TCP / IP technology. Background technique [0002] IP (Internet Protocol) routing technology uses a routing table to forward IP packets, and routing table items include destination address, next hop, outgoing interface, forwarding flag, and the like. When an IP packet arrives, the router uses the method of the longest match of the destination address to determine the next hop and the outgoing interface for forwarding, and then forwards the packet to the next hop. [0003] Such as figure 1 As shown, when the router sends the IP packet to the directly connected host through the outgoing interface, it needs to obtain the link layer information of the host, that is, the link layer address of the destination host. The acquisition of the link layer address of the host is realized through the ARP ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): H04B7/26H04L1/16H04L45/74
Inventor 李振斌胡加伦贺骞
Owner HUAWEI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products