DEV Community

Cover image for Code With Heroines : TCP/IP && Rise and fall of the Han Dynasty
fubumingyu
fubumingyu

Posted on

Code With Heroines : TCP/IP && Rise and fall of the Han Dynasty

Image description

Description

The dramatic fall of the Tang Dynasty within a collapsing virtual world. Zhu Quanzhong, depicted as a determined young girl with advanced hacking skills, leads the charge against a crumbling digital empire. The background is filled with fragmented data structures and corrupted files, symbolizing the breakdown of the system.

Tang Dynasty

Li Yuan founded the Tang Dynasty (618-907) after overthrowing the Sui Dynasty and establishing his rule in Chang'an. His successor, T'ai Zemin, solidified the dynasty's governance with a complex taxation system and a government structure based on the Ritsuryo system, which integrated military and agricultural duties. The central government operated through three ministries and six departments, focusing on criminal and administrative law.

Externally, the Tang Dynasty expanded its influence over neighboring regions, including the Tutsis, Western nations, tribes of the Northeast, and northern Vietnam, establishing local governorates. However, internal challenges arose, especially during the reign of Empress Noriten Wuhu (690-705), causing instability. Emperor Xuanzong (712-756) temporarily restored stability, but later reliance on Yang Guifei's family and local military chief Sodo-sha led to the An Lushan and Fumi Simyeong Rebellion (755-763).

Following the rebellion, the Tang Dynasty struggled with the dominance of local military chiefs, eunuch corruption, and external invasions. The weakening of the Ritsuryo system resulted in increased taxes, the collapse of the peasantry, and the rise of large noble estates. Military and taxation changes, including double taxation and monopolies on commodities like salt, further destabilized the dynasty. The late 9th century saw a major peasant uprising (875-884), and the Tang Dynasty ultimately fell to Zhu Quanzhong, an envoy to Tang China.

What is TCP/IP?

TCP manages the exact transfer of data, while IP determines the path along which data is sent. The following is a specific description of each role.

Roles of TCP

Simply put, it acts like a post office.

  • Data splitting and reassembly: Splits large data into smaller packets and reassembles them back to the original data at the receiving end.
  • Order control: packets are numbered and sent in sequence, then sorted in the correct order at the receiving end.
  • Error detection and correction: Checks whether packets were delivered correctly and requests retransmission if there is an error.
  • Connection establishment and termination: establishes a connection between the sender and receiver before sending data, and terminates the connection when the data transmission is finished.

Roles of IP

Simply put, it acts like a truck driver.

  • Addressing: Uses the source and destination IP addresses to determine where to send the data.
  • Routing: Ensures that data takes the optimal path from source to destination. This may involve going through multiple relay points.
  • Packet delivery: treats each packet individually and delivers it over the optimal route. Packets may take different routes.

Top comments (0)