Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Analysis of TCP/UDP message structure

2025-01-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Experiment name: TCP/UDP message structure analysis

Lab Topology:

Lab requirements:

1. Configure the R1-R2 interconnection link: 192.168.1.0 Universe 24

2. Configure the telnet password of R2 to access remotely on R1; grab TCP packets and analyze them

3. Run RIP protocol between R1 and R2; grab UDP packets and analyze them

The steps of the experiment:

1. Configure the port IP address of R2 in R1; (and enable packet capture function)

Interface gi0/0/0

Undo shutdown

Ip address 192.168.1.1 255.255.255.0

Interface gi0/0/0

Undo shutdown

Ip address 192.168.1.2 255.255.255.0

2. Configure the telnet of R2 to use the password

User-interface vty 0 4

Authentication-mode password

Hahahehe

3. Configure the routing protocol-RIP; (the same R1/R2 configuration command) rip undo summary version 2 network 192.168.1.0

4. Verification and testing

Catch TCP: telnet 192.168.1.2

Grab UDP: after configuring RIP, you can grab it at any time. Because RIP is a periodic package.

5. Save the configuration

Save

Summary of the experiment:

-1. Ethernet head mechanism

0. IP header structure

1. TCP structure

2. UDP structure

3. The port number of RIP is udp 520, and the packet is sent by broadcast (255.255.255.255)

4. The port of Telnet is tcp 23.

5. When an application is represented by a port, the port generally represents the target port.

At this point, the corresponding source ports are all "random high ports"

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report